/* ROOTED demo colour-scheme bar. Demo only: remove for client sites. */
.rd-bar {
  position: fixed; left: 16px; bottom: 16px; z-index: 9999;
  width: 248px; background: #fff; color: #1c1a16;
  border-radius: 14px; box-shadow: 0 10px 34px rgba(0, 0, 0, 0.22), 0 0 0 1px rgba(0, 0, 0, 0.06);
  font: 400 14px/1.4 system-ui, -apple-system, "Segoe UI", sans-serif;
  letter-spacing: normal; text-transform: none; text-align: left;
}
.rd-bar *, .rd-bar *::before, .rd-bar *::after { box-sizing: border-box; }
.rd-toggle {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 12px 14px; background: none; border: 0; border-radius: 14px;
  font: 600 14px/1 system-ui, -apple-system, "Segoe UI", sans-serif; color: inherit; cursor: pointer;
}
.rd-dot { width: 18px; height: 18px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12); }
.rd-toggle-text { flex: 1; text-align: left; }
.rd-chev {
  width: 8px; height: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px); transition: transform 0.2s;
}
.rd-closed .rd-chev { transform: rotate(-135deg) translate(-2px, -2px); }
.rd-body { padding: 0 14px 14px; }
.rd-closed .rd-body { display: none; }
.rd-closed { width: auto; }
.rd-swatches { display: flex; gap: 10px; }
.rd-swatch {
  width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12); transition: transform 0.15s;
}
.rd-swatch:hover { transform: scale(1.08); }
.rd-swatch[aria-checked="true"] { outline: 2px solid #1c1a16; outline-offset: 3px; }
.rd-swatch:focus-visible, .rd-toggle:focus-visible, .rd-choose:focus-visible { outline: 2px solid #1c1a16; outline-offset: 3px; }
.rd-name { margin: 12px 0 12px; font-size: 13px; color: #55524b; }
.rd-choose {
  display: flex; justify-content: center; align-items: center; gap: 6px; min-height: 42px;
  background: #1c1a16; color: #fff; border-radius: 999px; text-decoration: none; font-weight: 600;
}
.rd-choose:hover { background: #3a362e; }
.rd-note { margin: 10px 0 0; font-size: 11.5px; color: #77736a; }
.rd-note a { color: inherit; }

/* Smooth colour change while switching */
.rd-fade, .rd-fade *, .rd-fade *::before, .rd-fade *::after {
  transition: background-color 0.5s ease, color 0.5s ease, border-color 0.5s ease, fill 0.5s ease, stroke 0.5s ease !important;
}

@media (max-width: 640px) {
  .rd-bar { left: 12px; bottom: 12px; }
  .rd-bar:not(.rd-closed) { right: 12px; width: auto; }
  .rd-swatch { width: 40px; height: 40px; }
}
@media print { .rd-bar { display: none; } }
