/* Gift cards for customers (customer/gift-cards.js): the card itself, My
   Hair › Gift cards, the Add gift card window and its button on the
   standard salon page.

   The card (owner-approved 11-29): a WHITE card with bright light colour in
   two corners, a hairline edge, faint guilloché rings in one corner and a
   slow white light crossing it. Never a dark or coloured full background,
   and never a pastel ground with black text. Its words scale with the card
   (container units), so a small card in the window and a big one in My Hair
   read the same. Only transform, opacity and filter move. */

:root {
  --gc-ink: #16201c;
  --gc-ink-2: #4b5752;
  --gc-violet: #6a48d0;
  --gc-violet-ink: #5236b3;
  --gc-violet-soft: #f4f0fd;
  --gc-violet-line: #d9cdf8;
  --gc-text: #1d1a24;
  --gc-muted: #6d6778;
  --gc-line: #f0edf5;
  --gc-ground: #fbf9ff;
  --gc-green: #17694f;
  --gc-green-soft: #e9f8f2;
  --gc-gradient: linear-gradient(135deg, #4fcfa9 0%, #5468d6 22%, #7a52dd 62%, #6a48d0 100%);
  --gc-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --gc-font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --gc-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* ---- The card ----------------------------------------------------------- */
.rl-cgc-card {
  --gc-a: rgba(64, 224, 170, 0.62);
  --gc-b: rgba(92, 196, 255, 0.45);
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1.75 / 1;
  overflow: hidden;
  isolation: isolate;
  container-type: inline-size;
  border-radius: 20px;
  background:
    radial-gradient(80% 120% at 100% 0%, var(--gc-a) 0%, transparent 62%),
    radial-gradient(70% 110% at 0% 100%, var(--gc-b) 0%, transparent 64%),
    #ffffff;
  color: var(--gc-ink);
  font-family: var(--gc-font);
  text-align: left;
  box-shadow:
    inset 0 0 0 1px rgba(22, 32, 28, 0.09),
    0 24px 44px -26px rgba(52, 70, 120, 0.38),
    0 6px 14px -8px rgba(52, 70, 120, 0.16);
  -webkit-font-smoothing: antialiased;
}
.rl-cgc-card.is-compact { border-radius: 18px; }
.rl-cgc-card.is-mint { --gc-a: rgba(64, 224, 170, 0.62); --gc-b: rgba(92, 196, 255, 0.45); }
.rl-cgc-card.is-sky { --gc-a: rgba(96, 168, 255, 0.6); --gc-b: rgba(168, 140, 255, 0.42); }
.rl-cgc-card.is-lilac { --gc-a: rgba(186, 136, 255, 0.58); --gc-b: rgba(255, 136, 198, 0.42); }
.rl-cgc-card.is-peach { --gc-a: rgba(255, 176, 102, 0.62); --gc-b: rgba(255, 122, 146, 0.42); }

.rl-cgc-rings {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: repeating-radial-gradient(circle at 105% 115%, rgba(22, 32, 28, 0.06) 0 1px, transparent 1px 10px);
  -webkit-mask-image: linear-gradient(200deg, #000 0%, transparent 65%);
  mask-image: linear-gradient(200deg, #000 0%, transparent 65%);
}
.rl-cgc-sheen {
  position: absolute;
  top: -40%;
  bottom: -40%;
  left: 0;
  z-index: -1;
  width: 55%;
  background: linear-gradient(100deg, transparent 15%, rgba(255, 255, 255, 0.55) 42%, rgba(255, 255, 255, 0.9) 50%, rgba(255, 255, 255, 0.55) 58%, transparent 85%);
  transform: translateX(-130%) rotate(14deg);
  animation: rl-cgc-sheen 6.5s cubic-bezier(0.45, 0, 0.2, 1) infinite;
  will-change: transform;
}
.rl-cgc-item:nth-child(2n) .rl-cgc-sheen { animation-delay: 2s; }
.rl-cgc-item:nth-child(3n) .rl-cgc-sheen { animation-delay: 3.4s; }
@keyframes rl-cgc-sheen {
  0% { transform: translateX(-130%) rotate(14deg); }
  55%, 100% { transform: translateX(230%) rotate(14deg); }
}

.rl-cgc-face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 7% 7.5%;
}
.rl-cgc-top,
.rl-cgc-bottom { display: flex; align-items: center; justify-content: space-between; gap: 4cqi; min-width: 0; }
.rl-cgc-label {
  font-size: max(8px, 3.5cqi);
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1.2;
  text-transform: uppercase;
}
.rl-cgc-salon { overflow: hidden; color: var(--gc-ink-2); text-overflow: ellipsis; white-space: nowrap; }
.rl-cgc-foil {
  flex: none;
  background: linear-gradient(90deg, #0ea47a, #3b6fe8 50%, #8b4fe3);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.rl-cgc-value { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 2.6cqi; min-width: 0; }
.rl-cgc-big {
  font-size: 17cqi;
  font-weight: 750;
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.rl-cgc-unit {
  overflow: hidden;
  max-width: 100%;
  color: var(--gc-ink-2);
  font-size: 6cqi;
  font-weight: 650;
  letter-spacing: -0.01em;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rl-cgc-sub {
  flex-basis: 100%;
  margin-top: 2cqi;
  color: rgba(22, 32, 28, 0.62);
  font-size: 5cqi;
  font-weight: 600;
}
.rl-cgc-recipient,
.rl-cgc-expiry { overflow: hidden; color: rgba(22, 32, 28, 0.62); font-size: max(10px, 4.2cqi); font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.rl-cgc-recipient { color: var(--gc-ink); }
.rl-cgc-expiry { flex: none; }
.rl-cgc-dots { display: inline-flex; gap: 2cqi; }
.rl-cgc-dots i { width: 3.3cqi; height: 3.3cqi; min-width: 6px; min-height: 6px; border-radius: 50%; background: rgba(22, 32, 28, 0.14); }
.rl-cgc-dots i.is-left { background: #18b886; }
.rl-cgc-meter { position: relative; flex: 0 1 34%; height: max(4px, 1.7cqi); overflow: hidden; border-radius: 99px; background: rgba(22, 32, 28, 0.12); }
.rl-cgc-meter i { position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(90deg, #22c993, #4f86ff); transform-origin: left center; }

/* Used up, expired or cancelled: the colour drains and the light stops. */
.rl-cgc-card.is-inactive { filter: grayscale(0.85); opacity: 0.72; }
.rl-cgc-card.is-inactive .rl-cgc-sheen { animation: none; opacity: 0; }

/* A card arriving: it rises in once. */
.rl-cgc-card.is-rising { animation: rl-cgc-rise 0.75s var(--gc-ease) both; }
@keyframes rl-cgc-rise {
  from { opacity: 0; transform: translateY(22px) scale(0.94); }
  to { opacity: 1; transform: none; }
}

/* ---- My Hair › Gift cards --------------------------------------------- */
.rl-cgc-page { display: flex; flex-direction: column; gap: 22px; min-width: 0; font-family: var(--gc-font); }
.rl-cgc-page-header .rl-cgc-add-button { display: inline-flex; align-items: center; gap: 8px; }
.rl-cgc-page-header .rl-cgc-add-button .icon { width: 17px; height: 17px; stroke-width: 2.2; }
.rl-cgc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 22px;
}
.rl-cgc-item { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
html body .rl-cgc-page .rl-cgc-pick {
  display: block;
  width: 100%;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 20px;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  transition: transform 220ms var(--gc-ease);
  -webkit-tap-highlight-color: transparent;
}
html body .rl-cgc-page .rl-cgc-pick:hover { transform: translateY(-3px); }
html body .rl-cgc-page .rl-cgc-pick:active { transform: scale(0.985); }
html body .rl-cgc-page .rl-cgc-pick:focus-visible { outline: 3px solid var(--gc-violet); outline-offset: 4px; }
.rl-cgc-item.is-selected .rl-cgc-card {
  box-shadow:
    inset 0 0 0 1px rgba(22, 32, 28, 0.09),
    0 0 0 3px var(--gc-ground),
    0 0 0 5px var(--gc-violet),
    0 26px 50px -26px rgba(52, 70, 120, 0.38);
}
.rl-cgc-item-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; min-height: 26px; color: var(--gc-muted); font-size: 14px; }
.rl-cgc-item-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rl-cgc-pill {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--gc-violet-soft);
  color: var(--gc-violet-ink);
  font-size: 12.5px;
  font-weight: 700;
}
.rl-cgc-pill.is-new { background: var(--gc-green-soft); color: var(--gc-green); }
.rl-cgc-pill:is(.is-used_up, .is-expired, .is-void) { background: #f1eff4; color: #5d5866; }
.rl-cgc-card-outline { box-shadow: none; }
.rl-cgc-card-outline.sk-block { border-radius: 20px; }

.rl-cgc-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  align-items: start;
  gap: 22px;
}
.rl-cgc-details > .me-content-section { margin: 0; min-width: 0; }
.rl-cgc-show { display: flex; flex-direction: column; gap: 14px; }
.rl-cgc-barcode-frame {
  display: flex;
  justify-content: center;
  max-width: 100%;
  overflow: hidden;
  padding: 14px 0;
  border-radius: 14px;
  background: #fff;
}
.rl-cgc-barcode { display: block; flex: none; max-width: none; image-rendering: pixelated; shape-rendering: crispEdges; }
.rl-cgc-show.is-inactive .rl-cgc-barcode-frame { opacity: 0.35; }
.rl-cgc-code-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 14px; }
/* My Hair sets every span's font to the page's (customer-refresh.css); the
   code keeps its fixed-width letters. */
html body .rl-cgc-page .rl-cgc-code,
html body.me-workspace-mode .me-dashboard .rl-cgc-page .rl-cgc-code { color: var(--gc-text); font-family: var(--gc-mono); font-size: 20px; font-weight: 650; letter-spacing: 0.22em; font-variant-numeric: tabular-nums; }
html body .rl-cgc-page .rl-cgc-copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px !important;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: var(--gc-violet-soft);
  color: var(--gc-violet-ink);
  font-size: 13px;
  font-weight: 700;
}
html body .rl-cgc-page .rl-cgc-copy .icon { width: 15px; height: 15px; }
html body .rl-cgc-page .rl-cgc-copy.is-copied { background: var(--gc-green-soft); color: var(--gc-green); }
.rl-cgc-quiet { margin: 0; color: var(--gc-muted); font-size: 14px; line-height: 1.45; text-align: center; text-wrap: pretty; }
.rl-cgc-facts .rl-cgc-quiet { text-align: left; }
.rl-cgc-facts .me-section-heading { align-items: flex-start; }
.rl-cgc-salon-link { display: inline-flex; align-items: center; gap: 4px; flex: none; }
.rl-cgc-salon-link .icon { width: 15px; height: 15px; }
.rl-cgc-rows { margin: 6px 0 0; }
.rl-cgc-rows > div { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; border-top: 1px solid var(--gc-line); font-size: 14.5px; }
.rl-cgc-rows > div:first-child { border-top: 0; }
.rl-cgc-rows dt { color: var(--gc-muted); }
.rl-cgc-rows dd { margin: 0; color: var(--gc-text); font-weight: 650; text-align: right; }
.rl-cgc-message { margin: 8px 0 0; padding: 12px 14px; border-left: 3px solid var(--gc-violet-line); border-radius: 0 14px 14px 0; background: #fff; }
.rl-cgc-message span { display: block; color: var(--gc-muted); font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.rl-cgc-message p { margin: 4px 0 0; color: var(--gc-text); font-size: 14.5px; line-height: 1.45; white-space: pre-line; }
html body .rl-cgc-page .rl-cgc-subhead { margin: 16px 0 2px; color: var(--gc-muted); font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.rl-cgc-history { margin: 0; padding: 0; list-style: none; }
.rl-cgc-move { display: flex; align-items: center; gap: 14px; padding: 13px 0; border-top: 1px solid var(--gc-line); }
.rl-cgc-move:first-child { border-top: 0; }
.rl-cgc-move-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--gc-violet); }
.rl-cgc-move:is(.is-sell, .is-issue) .rl-cgc-move-dot { background: #4fcfa9; }
.rl-cgc-move.is-use .rl-cgc-move-dot { background: #4f86ff; }
.rl-cgc-move:is(.is-void, .is-adjust, .is-move) .rl-cgc-move-dot { background: #b4adbf; }
.rl-cgc-move-copy { display: flex; flex: 1 1 auto; flex-direction: column; gap: 2px; min-width: 0; }
.rl-cgc-move-copy strong { color: var(--gc-text); font-size: 15px; font-weight: 650; }
.rl-cgc-move-copy small { color: var(--gc-muted); font-size: 13.5px; }
.rl-cgc-move.is-undone .rl-cgc-move-copy strong { color: var(--gc-muted); text-decoration: line-through; text-decoration-color: rgba(109, 103, 120, 0.5); }
.rl-cgc-move-after { flex: none; color: var(--gc-text); font-size: 14.5px; font-weight: 650; font-variant-numeric: tabular-nums; }
.rl-cgc-history-retry { padding: 10px 0; }
.rl-cgc-terms { margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: #f7f4fe; color: #4b4556; font-size: 13.5px; line-height: 1.45; }
.rl-cgc-terms strong { display: block; color: var(--gc-text); font-size: 13px; }
.rl-cgc-terms p { margin: 2px 0 0; white-space: pre-line; }
.rl-cgc-empty .me-empty-state > span .icon { width: 22px; height: 22px; }

/* ---- Add gift card on the standard salon page --------------------------- */
html body .salon-page .sp-gift-card-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 48px !important;
  margin-top: -6px;
  padding: 0 20px;
  border: 1px solid var(--gc-violet-line);
  border-radius: 999px;
  background: #fff;
  color: #3f2890;
  font-family: var(--gc-font);
  font-size: 15px;
  font-weight: 650;
  box-shadow: none;
  transition: background-color 180ms ease, box-shadow 180ms ease, transform 120ms ease;
}
html body .salon-page .sp-gift-card-add .icon { width: 18px; height: 18px; stroke-width: 1.8; }
html body .salon-page .sp-gift-card-add:hover { background: var(--gc-violet-soft); box-shadow: 0 0 0 3px rgba(106, 72, 208, 0.12); }
html body .salon-page .sp-gift-card-add:active { transform: scale(0.98); }
/* The header pill only where the booking card is gone (≤999px). */
html body .salon-page .sp-gift-card-pill { display: none; }
@container sp (max-width: 999px) {
  html body .salon-page .sp-gift-card-pill { display: inline-flex; }
}

/* ---- The window ----------------------------------------------------------- */
html.rl-cgc-modal-open,
html.rl-cgc-modal-open body { overflow: hidden; }
.rl-cgc-layer {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  overflow-y: auto;
  font-family: var(--gc-font);
  color: #24212b;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: contain;
}
.rl-cgc-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(29, 26, 36, 0.45);
  animation: rl-cgc-fade 240ms ease both;
}
.rl-cgc-dialog {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  max-width: 460px;
  margin: auto 0;
  padding: 24px 24px 22px;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 40px 90px -30px rgba(29, 26, 36, 0.6);
  animation: rl-cgc-dialog-in 320ms var(--gc-ease) both;
  outline: none;
}
.rl-cgc-layer.is-leaving .rl-cgc-backdrop { animation: rl-cgc-fade-out 200ms ease both; }
.rl-cgc-layer.is-leaving .rl-cgc-dialog { animation: rl-cgc-dialog-out 200ms ease both; }
@keyframes rl-cgc-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes rl-cgc-fade-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes rl-cgc-dialog-in { from { opacity: 0; transform: translateY(14px) scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes rl-cgc-dialog-out { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(8px) scale(0.985); } }
.rl-cgc-dialog-head { display: flex; align-items: center; gap: 12px; }
.rl-cgc-dialog-head h2 { flex: 1 1 auto; margin: 0; color: var(--gc-text); font-size: 24px; font-weight: 750; letter-spacing: -0.02em; line-height: 1.15; }
html body .rl-cgc-layer .rl-cgc-close {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  min-height: 40px !important;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--gc-violet-soft);
  color: #3f2890;
}
html body .rl-cgc-layer .rl-cgc-close .icon { width: 18px; height: 18px; stroke-width: 2.2; }
html body .rl-cgc-layer .rl-cgc-close:hover { background: #ebe3fc; }
.rl-cgc-dialog-body { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
/* One column: what to do, the camera, then the code. */
.rl-cgc-entry { display: flex; flex-direction: column; align-items: stretch; gap: 16px; min-width: 0; }
.rl-cgc-lead { margin: -6px 0 0; color: var(--gc-muted); font-size: 15px; line-height: 1.45; text-wrap: pretty; overflow-wrap: anywhere; }

/* The camera, or the picture of a card's back before it starts. */
.rl-cgc-scan {
  position: relative;
  flex: none;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 0;
  overflow: hidden;
  border-radius: 20px;
  background: radial-gradient(70% 80% at 50% 45%, #3a3631 0%, #141210 100%);
  isolation: isolate;
}
.rl-cgc-scan video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rl-cgc-scan-art { position: absolute; inset: 0; display: grid; place-items: center; }
.rl-cgc-scan-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 172px;
  height: 98px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #fbfaf7;
  box-shadow: 0 18px 30px -18px rgba(0, 0, 0, 0.7);
  transform: rotate(-4deg) translateY(-14px);
}
.rl-cgc-scan-bars { display: block; width: 140px; height: 32px; }
.rl-cgc-scan-bars .rl-cgc-barcode { display: block; width: 100%; height: 100%; }
.rl-cgc-scan-code { color: var(--gc-ink); font-family: var(--gc-mono); font-size: 7px; font-weight: 700; letter-spacing: 0.14em; }
.rl-cgc-corners i { position: absolute; width: 26px; height: 26px; border: 0 solid #9ff5d6; }
.rl-cgc-corners i:nth-child(1) { left: 18px; top: 14px; border-width: 3px 0 0 3px; border-radius: 6px 0 0 0; }
.rl-cgc-corners i:nth-child(2) { right: 18px; top: 14px; border-width: 3px 3px 0 0; border-radius: 0 6px 0 0; }
.rl-cgc-corners i:nth-child(3) { left: 18px; bottom: 14px; border-width: 0 0 3px 3px; border-radius: 0 0 0 6px; }
.rl-cgc-corners i:nth-child(4) { right: 18px; bottom: 14px; border-width: 0 3px 3px 0; border-radius: 0 0 6px 0; }
.rl-cgc-scanline {
  position: absolute;
  left: 22px;
  right: 22px;
  top: 50%;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, #9ff5d6 20%, #9ff5d6 80%, transparent);
  box-shadow: 0 0 12px rgba(159, 245, 214, 0.8);
  animation: rl-cgc-scanline 1.8s ease-in-out infinite alternate;
}
@keyframes rl-cgc-scanline { from { transform: translateY(-34px); } to { transform: translateY(34px); } }
html body .rl-cgc-layer :is(.rl-cgc-scan-start, .rl-cgc-scan-stop) {
  position: absolute;
  left: 50%;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px !important;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--gc-text);
  font-size: 13.5px;
  font-weight: 700;
  white-space: nowrap;
  transform: translateX(-50%);
  box-shadow: 0 8px 20px -10px rgba(0, 0, 0, 0.6);
}
html body .rl-cgc-layer .rl-cgc-scan-start .icon { width: 16px; height: 16px; }
html body .rl-cgc-layer .rl-cgc-scan-start:disabled { opacity: 1; cursor: progress; }
html body .rl-cgc-layer .rl-cgc-scan-start:not(:disabled):hover { background: #fff; }
html body .rl-cgc-layer .rl-cgc-scan-stop { bottom: 10px; min-height: 30px !important; padding: 0 12px; font-size: 12.5px; }

.rl-cgc-form {
  --text-entry-focus-surface: #fff;
  --text-entry-focus-accent: var(--gc-violet);
  --text-entry-border: var(--gc-violet);
  display: flex;
  flex: none;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
/* "Code on the back" as a quiet divider between the camera and the field. */
.rl-cgc-form .rl-cgc-divider { display: flex; align-items: center; gap: 12px; color: var(--gc-muted); font-size: 13px; font-weight: 650; }
.rl-cgc-divider::before,
.rl-cgc-divider::after { content: ""; flex: 1 1 0; height: 1px; background: #e1dbea; }
.rl-cgc-divider span { flex: none; max-width: 70%; text-align: center; }
html body .rl-cgc-layer .rl-cgc-code-input {
  width: 100%;
  height: 58px;
  min-height: 58px !important;
  padding: 0 14px;
  text-align: center;
  border: 1.5px solid #d9d2e6;
  border-radius: 14px;
  background: #fff;
  color: var(--gc-text);
  font-family: var(--gc-mono);
  font-size: 20px !important;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
html body .rl-cgc-layer .rl-cgc-code-input::placeholder { color: #b8b1c4; letter-spacing: 0.16em; }
html body .rl-cgc-layer .rl-cgc-code-input.is-valid { border-color: #2fb488; }
html body .rl-cgc-layer .rl-cgc-code-input[aria-invalid="true"] { border-color: #d0607a; outline: 2px solid rgba(208, 96, 122, 0.35); outline-offset: -2px; }
.rl-cgc-hint { color: var(--gc-muted); font-size: 13px; line-height: 1.4; }

html body .rl-cgc-layer .rl-cgc-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 54px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: var(--gc-gradient);
  color: #fff;
  font-family: var(--gc-font);
  font-size: 17px;
  font-weight: 700;
  box-shadow: 0 10px 22px -14px rgba(106, 72, 208, 0.7);
  transition: transform 120ms ease, box-shadow 180ms ease, filter 180ms ease;
}
html body .rl-cgc-layer .rl-cgc-primary:hover:not(:disabled) { box-shadow: 0 16px 30px -16px rgba(106, 72, 208, 0.85); }
html body .rl-cgc-layer .rl-cgc-primary:active:not(:disabled) { transform: scale(0.985); }
html body .rl-cgc-layer .rl-cgc-primary.is-busy { opacity: 1; cursor: progress; }
html body .rl-cgc-layer .rl-cgc-primary.is-busy::before {
  content: "";
  width: 18px;
  height: 18px;
  border: 2.4px solid rgba(255, 255, 255, 0.45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: rl-cgc-spin 0.8s linear infinite;
}
@keyframes rl-cgc-spin { to { transform: rotate(360deg); } }
html body .rl-cgc-layer .rl-cgc-secondary {
  width: 100%;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--gc-violet-line);
  border-radius: 999px;
  background: #fff;
  color: #3f2890;
  font-family: var(--gc-font);
  font-size: 15.5px;
  font-weight: 650;
}
html body .rl-cgc-layer .rl-cgc-secondary:hover { background: var(--gc-violet-soft); }
.rl-cgc-fine { margin: 0; color: var(--gc-muted); font-size: 13px; line-height: 1.45; text-align: center; text-wrap: pretty; }

/* Card found, then Added: the card rises in, the line under it turns. */
.rl-cgc-result {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding: 14px;
  border-radius: 20px;
  background: #f7f4fe;
  animation: rl-cgc-fade 260ms ease both;
}
.rl-cgc-result { flex-direction: column; align-items: stretch; }
.rl-cgc-result-card { flex: none; width: min(100%, 280px); align-self: center; }
.rl-cgc-result-copy { display: flex; flex: none; flex-direction: column; gap: 2px; min-width: 0; }
.rl-cgc-result-copy > strong { margin-top: 4px; color: var(--gc-text); font-size: 19px; font-weight: 750; letter-spacing: -0.01em; line-height: 1.25; }
.rl-cgc-result-copy > span { color: var(--gc-muted); font-size: 14px; }
.rl-cgc-found { position: relative; display: grid; margin: 0; color: var(--gc-green); font-size: 13.5px; font-weight: 700; }
.rl-cgc-found-step { grid-area: 1 / 1; display: inline-flex; align-items: center; gap: 8px; transition: opacity 260ms ease, transform 320ms var(--gc-ease); }
.rl-cgc-found-step .icon { width: 16px; height: 16px; stroke-width: 2.6; }
.rl-cgc-found-step.is-added { opacity: 0; transform: translateY(6px); }
.rl-cgc-found.is-added .rl-cgc-found-step.is-found { opacity: 0; transform: translateY(-6px); }
.rl-cgc-found.is-added .rl-cgc-found-step.is-added { opacity: 1; transform: none; }
.rl-cgc-found.is-added .rl-cgc-found-step.is-added .icon { animation: rl-cgc-pop 420ms var(--gc-ease) both; }
@keyframes rl-cgc-pop { 0% { transform: scale(0.4); opacity: 0; } 60% { transform: scale(1.18); opacity: 1; } 100% { transform: none; } }
html body .rl-cgc-layer .rl-cgc-terms-toggle {
  align-self: flex-start;
  min-height: 0 !important;
  margin-top: 6px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--gc-violet-ink);
  font-size: 14px;
  font-weight: 650;
}
html body .rl-cgc-layer .rl-cgc-terms-toggle:hover { color: #3f2890; text-decoration: underline; text-underline-offset: 3px; }
.rl-cgc-result-terms { margin: 6px 0 0; color: #4b4556; font-size: 13.5px; line-height: 1.45; white-space: pre-line; }
.rl-cgc-actions { display: flex; flex-direction: column; gap: 10px; animation: rl-cgc-fade 300ms ease 200ms both; }

/* ---- Phones: the window is a sheet from the bottom ---------------------- */
@media (max-width: 760px) {
  .rl-cgc-layer { align-items: flex-end; padding: 0; }
  .rl-cgc-dialog {
    max-width: none;
    margin: 0;
    max-height: calc(100dvh - 24px);
    overflow-y: auto;
    padding: 18px 16px calc(18px + env(safe-area-inset-bottom));
    border-radius: 28px 28px 0 0;
    animation-name: rl-cgc-sheet-in;
    animation-duration: 380ms;
  }
  .rl-cgc-layer.is-leaving .rl-cgc-dialog { animation-name: rl-cgc-sheet-out; }
  @keyframes rl-cgc-sheet-in { from { transform: translateY(100%); } to { transform: none; } }
  @keyframes rl-cgc-sheet-out { from { transform: none; } to { transform: translateY(100%); } }
  .rl-cgc-dialog-head h2 { font-size: 21px; }
  .rl-cgc-entry { flex-direction: column; }
  .rl-cgc-lead { font-size: 14.5px; }
  .rl-cgc-result { flex-direction: column; align-items: stretch; }
  .rl-cgc-result-card { flex: none; width: min(100%, 280px); align-self: center; }
  .rl-cgc-result-copy { flex: none; }
  .rl-cgc-page { gap: 18px; }
  .rl-cgc-grid { gap: 18px; }
  .rl-cgc-details { gap: 16px; }
  html body .rl-cgc-page .rl-cgc-code { font-size: 18px; letter-spacing: 0.18em; }
  html body.customer-mode .rl-cgc-page-header .rl-cgc-add-button { min-height: 44px; }
}

/* ---- Less motion: no rise, no light, a plain fade ----------------------- */
@media (prefers-reduced-motion: reduce) {
  .rl-cgc-sheen,
  .rl-cgc-scanline { animation: none; opacity: 0; }
  .rl-cgc-card.is-rising { animation: rl-cgc-fade 200ms ease both; }
  .rl-cgc-dialog,
  .rl-cgc-layer.is-leaving .rl-cgc-dialog { animation: rl-cgc-fade 160ms ease both; }
  .rl-cgc-layer.is-leaving .rl-cgc-dialog { animation-name: rl-cgc-fade-out; }
  .rl-cgc-found-step,
  .rl-cgc-found.is-added .rl-cgc-found-step.is-added .icon { transition: none; animation: none; }
  html body .rl-cgc-page .rl-cgc-pick,
  html body .rl-cgc-page .rl-cgc-pick:hover { transform: none; transition: none; }
}
