/* ==========================================================================
   Atelier Diamante — Ring Configurator v2 (Luxury Guided Flow)
   File: assets/ad-ring-configurator.css

   Design tokens:
     --ad-accent:      #C9A96E  (champagne gold)
     --ad-accent-light:#F0E8DE
     --ad-dark:        #1A1A1A
     --ad-muted:       #8A8A8A
     --ad-bg:          #FAFAF8  (warm off-white)
     --ad-surface:     #FFFFFF
     --ad-border:      #E8E4DF

   Mobile-first. 750px = tablet+, 990px = desktop.
   ========================================================================== */

.ad-ring-configurator {
  --ad-accent: #C9A96E;
  --ad-accent-light: #F0E8DE;
  --ad-dark: #1A1A1A;
  --ad-muted: #8A8A8A;
  --ad-bg: #FAFAF8;
  --ad-surface: #FFFFFF;
  --ad-border: #E8E4DF;
  --ad-serif: 'Playfair Display', Georgia, serif;
  --ad-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --ad-radius: 8px;
  --ad-radius-lg: 12px;
  --ad-shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --ad-shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --ad-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  background: var(--ad-bg);
  color: var(--ad-dark);
  font-family: var(--ad-sans);
  -webkit-font-smoothing: antialiased;
}

[x-cloak] { display: none !important; }

/* ==========================================================================
   LAYOUT
   ========================================================================== */

.ad-rc-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 16px 120px;
}

@media (min-width: 990px) {
  .ad-rc-layout {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 48px;
    padding: 40px 32px 60px;
    align-items: start;
  }
}

/* ==========================================================================
   HEADER
   ========================================================================== */

.ad-rc-header { text-align: center; margin-bottom: 32px; padding: 0 16px; }
.ad-rc-header__eyebrow {
  font-size: 11px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--ad-accent); margin-bottom: 8px;
}
.ad-rc-header__title {
  font-family: var(--ad-serif); font-size: 28px; font-weight: 400;
  line-height: 1.2; margin: 0 0 8px;
}
.ad-rc-header__subtitle { font-size: 15px; color: var(--ad-muted); margin: 0; line-height: 1.5; }
@media (min-width: 750px) { .ad-rc-header__title { font-size: 36px; } }

/* ==========================================================================
   PROGRESS BAR
   ========================================================================== */

.ad-rc-progress { margin-bottom: 32px; padding: 0 16px; max-width: 1200px; margin-left: auto; margin-right: auto; }
.ad-rc-progress__bar {
  width: 100%; height: 3px; background: var(--ad-border);
  border-radius: 2px; overflow: hidden; position: relative; margin-bottom: 12px;
}
.ad-rc-progress__fill {
  height: 100%; background: var(--ad-accent);
  border-radius: 2px; transition: width 0.4s ease;
}
.ad-rc-progress__steps {
  display: flex; gap: 4px; list-style: none; margin: 0; padding: 0;
}
.ad-rc-progress__step {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  gap: 6px; cursor: pointer;
}
.ad-rc-progress__dot {
  width: 10px; height: 10px; border-radius: 50%;
  border: 2px solid var(--ad-border); background: var(--ad-surface);
  transition: all var(--ad-transition);
}
.ad-rc-progress__step.is-active .ad-rc-progress__dot {
  border-color: var(--ad-accent); background: var(--ad-accent);
  box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.2);
  animation: ad-rc-pulse 2s ease-in-out infinite;
}
.ad-rc-progress__step.is-complete .ad-rc-progress__dot {
  border-color: var(--ad-accent); background: var(--ad-accent);
}
@keyframes ad-rc-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.2); }
  50% { box-shadow: 0 0 0 5px rgba(201, 169, 110, 0.1); }
}
.ad-rc-progress__label {
  font-size: 10px; letter-spacing: 0.5px; text-transform: uppercase;
  color: var(--ad-muted); transition: color var(--ad-transition); white-space: nowrap;
}
.ad-rc-progress__step.is-active .ad-rc-progress__label { color: var(--ad-dark); font-weight: 600; }
.ad-rc-progress__step.is-complete .ad-rc-progress__label { color: var(--ad-accent); }
@media (max-width: 749px) { .ad-rc-progress__label { font-size: 11px; } }

/* ==========================================================================
   STICKY PREVIEW (desktop sidebar)
   ========================================================================== */

.ad-rc-preview { display: none; }
@media (min-width: 990px) {
  .ad-rc-preview {
    display: block; position: sticky; top: 24px; background: var(--ad-surface);
    border: 1px solid var(--ad-border); border-radius: var(--ad-radius-lg);
    padding: 24px; box-shadow: var(--ad-shadow-sm);
  }
}
.ad-rc-preview__image-wrap {
  width: 100%; aspect-ratio: 1; border-radius: var(--ad-radius);
  overflow: hidden; background: var(--ad-bg); margin-bottom: 20px;
  display: flex; align-items: center; justify-content: center;
}
.ad-rc-preview__image { width: 100%; height: 100%; object-fit: contain; }
.ad-rc-preview__placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; color: var(--ad-muted); font-size: 13px; text-align: center; padding: 20px;
}
.ad-rc-preview__summary { margin-top: 16px; }
.ad-rc-preview__row {
  display: flex; justify-content: space-between; padding: 8px 0;
  border-bottom: 1px solid var(--ad-border); font-size: 13px;
}
.ad-rc-preview__row:last-child { border-bottom: none; }
.ad-rc-preview__label { color: var(--ad-muted); }
.ad-rc-preview__value { font-weight: 500; }
.ad-rc-preview__price {
  text-align: center; padding: 16px 0 0; border-top: 1px solid var(--ad-border); margin-top: 8px;
}
.ad-rc-preview__price span { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--ad-muted); display: block; margin-bottom: 4px; }
.ad-rc-preview__price strong { font-family: var(--ad-serif); font-size: 28px; }

/* ==========================================================================
   STEPS (shared)
   ========================================================================== */

.ad-rc-steps { min-width: 0; }
.ad-rc-step { animation: ad-rc-fadein 0.4s ease-out; }
@keyframes ad-rc-fadein {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.ad-rc-step__title {
  font-family: var(--ad-serif); font-size: 24px; font-weight: 400; margin: 0 0 6px;
}
.ad-rc-step__desc { font-size: 14px; color: var(--ad-muted); margin: 0 0 24px; line-height: 1.5; }
.ad-rc-step__subtitle { font-size: 16px; font-weight: 500; margin: 32px 0 16px; }
.ad-rc-step__nav { display: flex; gap: 12px; margin-top: 32px; align-items: center; }
.ad-rc-step__nav--review { flex-wrap: wrap; }
@media (min-width: 750px) { .ad-rc-step__title { font-size: 28px; } }

/* ==========================================================================
   STEP 1 — SHAPE CARDS
   ========================================================================== */

.ad-rc-shape-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 750px) { .ad-rc-shape-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; } }

.ad-rc-shape-card {
  background: var(--ad-surface); border: 2px solid var(--ad-border);
  border-radius: var(--ad-radius-lg); padding: 20px 16px 16px; cursor: pointer;
  text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px;
  transition: border-color var(--ad-transition), box-shadow var(--ad-transition), transform 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.ad-rc-shape-card:hover { border-color: var(--ad-accent); transform: translateY(-2px); box-shadow: var(--ad-shadow-md); }
.ad-rc-shape-card.is-selected {
  border-color: var(--ad-accent); background: var(--ad-accent-light);
  box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.15);
}
.ad-rc-shape-card__icon { width: 56px; height: 56px; }
@media (min-width: 750px) { .ad-rc-shape-card__icon { width: 64px; height: 64px; } .ad-rc-shape-card { padding: 24px 20px 18px; } }
.ad-rc-shape-card__label { font-weight: 500; font-size: 14px; }
.ad-rc-shape-card__tagline { font-size: 12px; color: var(--ad-muted); line-height: 1.4; display: none; }
@media (min-width: 750px) { .ad-rc-shape-card__tagline { display: block; } }

/* ==========================================================================
   STEP 2 — PREFERENCES
   ========================================================================== */

.ad-rc-prefs { display: flex; flex-direction: column; gap: 32px; }
.ad-rc-prefs__group {
  background: var(--ad-surface); border: 1px solid var(--ad-border);
  border-radius: var(--ad-radius-lg); padding: 24px;
}
.ad-rc-prefs__label {
  display: flex; justify-content: space-between; align-items: baseline;
  font-weight: 500; font-size: 14px; margin-bottom: 16px;
}
.ad-rc-prefs__range-display { font-size: 13px; color: var(--ad-accent); font-weight: 500; }
.ad-rc-prefs__sliders { display: flex; flex-direction: column; gap: 12px; }
.ad-rc-prefs__slider-row { display: flex; align-items: center; gap: 12px; }
.ad-rc-prefs__slider-label { font-size: 11px; color: var(--ad-muted); text-transform: uppercase; letter-spacing: 1px; min-width: 32px; }
.ad-rc-prefs__slider-value { font-size: 13px; font-weight: 500; min-width: 48px; text-align: right; }

.ad-rc-range {
  flex: 1; -webkit-appearance: none; appearance: none; height: 4px;
  background: var(--ad-border); border-radius: 2px; outline: none;
}
.ad-rc-range::-webkit-slider-thumb {
  -webkit-appearance: none; width: 20px; height: 20px; background: var(--ad-accent);
  border-radius: 50%; cursor: pointer; border: 3px solid var(--ad-surface);
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}
.ad-rc-range::-moz-range-thumb {
  width: 20px; height: 20px; background: var(--ad-accent); border-radius: 50%;
  cursor: pointer; border: 3px solid var(--ad-surface); box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}

/* ==========================================================================
   STEP 3 — DIAMOND GRID
   ========================================================================== */

.ad-rc-diamond-toolbar {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 16px; flex-wrap: wrap; gap: 8px;
}
.ad-rc-diamond-toolbar__count { font-size: 13px; color: var(--ad-muted); }
.ad-rc-diamond-toolbar__controls { display: flex; align-items: center; gap: 8px; }
.ad-rc-diamond-toolbar__sort-label { font-size: 12px; color: var(--ad-muted); }

.ad-rc-select {
  font-size: 13px; padding: 6px 10px; border: 1px solid var(--ad-border);
  border-radius: var(--ad-radius); background: var(--ad-surface); cursor: pointer;
  font-family: var(--ad-sans);
}

.ad-rc-diamond-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 750px) { .ad-rc-diamond-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; } }

.ad-rc-diamond-card {
  background: var(--ad-surface); border: 2px solid var(--ad-border);
  border-radius: var(--ad-radius-lg); overflow: hidden; cursor: pointer;
  transition: border-color var(--ad-transition), box-shadow var(--ad-transition), transform 0.2s;
  -webkit-tap-highlight-color: transparent; position: relative;
}
.ad-rc-diamond-card:hover { border-color: var(--ad-accent); transform: translateY(-2px); box-shadow: var(--ad-shadow-md); }
.ad-rc-diamond-card.is-selected { border-color: var(--ad-accent); box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.2); }
.ad-rc-diamond-card__image-wrap { width: 100%; aspect-ratio: 1; overflow: hidden; background: var(--ad-bg); }
.ad-rc-diamond-card__image { width: 100%; height: 100%; object-fit: cover; }
.ad-rc-diamond-card__info { padding: 12px; }
.ad-rc-diamond-card__carat { font-weight: 600; font-size: 15px; display: block; margin-bottom: 2px; }
.ad-rc-diamond-card__specs { font-size: 12px; color: var(--ad-muted); display: block; margin-bottom: 6px; }
.ad-rc-diamond-card__price { font-weight: 600; font-size: 14px; color: var(--ad-accent); display: block; }
.ad-rc-diamond-card__check {
  position: absolute; top: 8px; right: 8px; width: 24px; height: 24px;
  background: var(--ad-accent); color: white; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: bold;
}

.ad-rc-diamond-loading { text-align: center; padding: 60px 20px; color: var(--ad-muted); }
.ad-rc-diamond-empty { text-align: center; padding: 40px 20px; color: var(--ad-muted); font-size: 14px; }
.ad-rc-diamond-empty p { margin-bottom: 16px; }
.ad-rc-diamond-more { text-align: center; margin-top: 16px; }

.ad-rc-spinner {
  display: inline-block; width: 32px; height: 32px;
  border: 2px solid var(--ad-border); border-top-color: var(--ad-accent);
  border-radius: 50%; animation: ad-rc-spin 0.8s linear infinite; margin-bottom: 12px;
}
@keyframes ad-rc-spin { to { transform: rotate(360deg); } }

/* ==========================================================================
   STEP 4 — SETTING + METAL
   ========================================================================== */

.ad-rc-setting-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 32px; }
@media (min-width: 750px) { .ad-rc-setting-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; } }

.ad-rc-setting-card {
  background: var(--ad-surface); border: 2px solid var(--ad-border);
  border-radius: var(--ad-radius-lg); padding: 20px 16px 16px; cursor: pointer;
  text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px;
  transition: border-color var(--ad-transition), box-shadow var(--ad-transition);
  -webkit-tap-highlight-color: transparent;
}
.ad-rc-setting-card:hover { border-color: var(--ad-accent); box-shadow: var(--ad-shadow-sm); }
.ad-rc-setting-card.is-selected { border-color: var(--ad-accent); background: var(--ad-accent-light); }
.ad-rc-setting-card__icon { width: 48px; height: 48px; color: var(--ad-accent); }
.ad-rc-setting-card__icon svg { width: 100%; height: 100%; }
.ad-rc-setting-card__label { font-weight: 500; font-size: 14px; }
.ad-rc-setting-card__price { font-size: 13px; font-weight: 600; color: var(--ad-accent); }
.ad-rc-setting-card__desc { font-size: 11px; color: var(--ad-muted); line-height: 1.4; display: none; }
@media (min-width: 750px) { .ad-rc-setting-card__desc { display: block; } }

.ad-rc-metal-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 750px) { .ad-rc-metal-grid { grid-template-columns: repeat(4, 1fr); } }

.ad-rc-metal-card {
  background: var(--ad-surface); border: 2px solid var(--ad-border);
  border-radius: var(--ad-radius-lg); padding: 16px; cursor: pointer;
  text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px;
  transition: border-color var(--ad-transition), box-shadow var(--ad-transition);
  -webkit-tap-highlight-color: transparent;
}
.ad-rc-metal-card:hover { border-color: var(--ad-accent); }
.ad-rc-metal-card.is-selected { border-color: var(--ad-accent); background: var(--ad-accent-light); }
.ad-rc-metal-card__swatch { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(0,0,0,0.1); display: block; }
.ad-rc-metal-card__label { font-size: 13px; font-weight: 500; }
.ad-rc-metal-card__price { font-size: 12px; font-weight: 600; color: var(--ad-accent); }
.ad-rc-metal-card__price.is-included { color: var(--ad-muted); font-weight: 400; font-style: italic; }
.ad-rc-metal-card__desc { font-size: 11px; color: var(--ad-muted); line-height: 1.4; display: none; }
@media (min-width: 750px) { .ad-rc-metal-card__desc { display: block; } }

/* ==========================================================================
   STEP 5 — REVIEW
   ========================================================================== */

.ad-rc-review {
  background: var(--ad-surface); border: 1px solid var(--ad-border);
  border-radius: var(--ad-radius-lg); padding: 24px; margin-bottom: 24px;
}
.ad-rc-review__row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 0; border-bottom: 1px solid var(--ad-border); font-size: 14px;
}
.ad-rc-review__row:last-child { border-bottom: none; }
.ad-rc-review__label { color: var(--ad-muted); flex-shrink: 0; }
.ad-rc-review__value { font-weight: 500; text-align: right; flex: 1; margin: 0 8px; }
.ad-rc-review__edit {
  font-size: 12px; color: var(--ad-accent); background: none; border: none;
  cursor: pointer; text-decoration: underline; text-underline-offset: 2px;
  padding: 4px 8px; flex-shrink: 0;
}
.ad-rc-review__edit:hover { color: var(--ad-dark); }
.ad-rc-review__total {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 16px 0 0; border-top: 2px solid var(--ad-dark); margin-top: 8px;
}
.ad-rc-review__total span { font-size: 14px; font-weight: 500; }
.ad-rc-review__total strong { font-family: var(--ad-serif); font-size: 28px; }
.ad-rc-review__note { font-size: 12px; color: var(--ad-muted); margin: 12px 0 0; text-align: center; line-height: 1.4; }

/* Trust badges */
.ad-rc-trust { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 24px; }
@media (min-width: 750px) { .ad-rc-trust { grid-template-columns: repeat(4, 1fr); } }
.ad-rc-trust__badge {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 6px; padding: 12px 8px; color: var(--ad-accent);
}
.ad-rc-trust__badge svg { flex-shrink: 0; }
.ad-rc-trust__badge span { font-size: 11px; color: var(--ad-muted); line-height: 1.3; }

/* Cart success */
.ad-rc-cart-success { text-align: center; width: 100%; }
.ad-rc-cart-success p { font-size: 16px; font-weight: 500; color: #2D7F5E; margin: 0 0 12px; }
.ad-rc-cart-success__note { font-size: 12px; color: var(--ad-muted); margin-top: 12px !important; }

/* Cart error */
.ad-rc-cart-error {
  background: #FEF2F2; border: 1px solid #FECACA; border-radius: var(--ad-radius);
  padding: 12px 16px; color: #991B1B; font-size: 13px; margin-top: 12px; text-align: center;
  width: 100%;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.ad-rc-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 32px; font-size: 14px; font-weight: 500; letter-spacing: 0.5px;
  border-radius: var(--ad-radius); cursor: pointer; transition: all var(--ad-transition);
  border: none; text-decoration: none; font-family: var(--ad-sans);
  -webkit-tap-highlight-color: transparent;
}
.ad-rc-btn--primary { background: var(--ad-dark); color: white; }
.ad-rc-btn--primary:hover { background: #333; }
.ad-rc-btn--primary:disabled { background: var(--ad-border); color: var(--ad-muted); cursor: not-allowed; }
.ad-rc-btn--secondary { background: transparent; color: var(--ad-dark); border: 1px solid var(--ad-border); }
.ad-rc-btn--secondary:hover { border-color: var(--ad-accent); }
.ad-rc-btn--ghost { background: transparent; color: var(--ad-accent); padding: 10px 0; text-decoration: underline; text-underline-offset: 3px; }
.ad-rc-btn--lg { padding: 16px 40px; font-size: 15px; width: 100%; }
.ad-rc-btn--sm { padding: 8px 16px; font-size: 12px; }

/* ==========================================================================
   MOBILE STICKY BAR
   ========================================================================== */

.ad-rc-mobile-bar {
  position: fixed; bottom: 0; left: 0; right: 0; background: var(--ad-surface);
  border-top: 1px solid var(--ad-border); padding: 12px 16px;
  display: flex; align-items: center; gap: 12px; z-index: 100;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
}
@media (min-width: 990px) { .ad-rc-mobile-bar { display: none; } }
.ad-rc-mobile-bar__summary { flex: 1; min-width: 0; }
.ad-rc-mobile-bar__text { font-size: 12px; color: var(--ad-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.ad-rc-mobile-bar__price { font-weight: 600; font-size: 15px; display: block; }
.ad-rc-mobile-bar__cta {
  padding: 14px 24px; background: var(--ad-dark); color: white; border: none;
  border-radius: var(--ad-radius); font-size: 14px; font-weight: 500; cursor: pointer;
  white-space: nowrap; flex-shrink: 0; transition: background var(--ad-transition);
  min-height: 44px;
}
.ad-rc-mobile-bar__cta:hover { background: #333; }
.ad-rc-mobile-bar__cta:disabled { background: var(--ad-border); color: var(--ad-muted); cursor: not-allowed; }

/* ==========================================================================
   STEP 5 — PERSONALIZE: ring size + engraving
   ========================================================================== */

.ad-rc-required,
.ad-rc-optional {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--ad-border);
  vertical-align: 2px;
}
.ad-rc-required { color: var(--ad-accent); border-color: var(--ad-accent); }
.ad-rc-optional { color: var(--ad-muted); }

.ad-rc-step__subtitle--spaced { margin-top: 48px; }

/* Size grid */
.ad-rc-size-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(58px, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}
@media (min-width: 750px) {
  .ad-rc-size-grid { grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 10px; }
}

.ad-rc-size-card {
  appearance: none;
  background: var(--ad-surface);
  border: 1px solid var(--ad-border);
  padding: 14px 4px;
  cursor: pointer;
  font-family: var(--ad-serif);
  font-size: 18px;
  font-weight: 400;
  color: var(--ad-dark);
  transition: border-color var(--ad-transition), background var(--ad-transition), color var(--ad-transition);
  text-align: center;
}
.ad-rc-size-card:hover { border-color: var(--ad-accent); }
.ad-rc-size-card.is-selected {
  border-color: var(--ad-accent);
  background: var(--ad-accent);
  color: #fff;
}
.ad-rc-size-card__num { display: block; line-height: 1; }

/* Size help row */
.ad-rc-size-help {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 8px;
  padding-top: 8px;
}
@media (min-width: 750px) {
  .ad-rc-size-help { flex-direction: row; align-items: center; justify-content: space-between; }
}

.ad-rc-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--ad-dark);
  cursor: pointer;
  min-height: 44px;
}
.ad-rc-checkbox input[type="checkbox"] {
  appearance: none;
  width: 18px;
  height: 18px;
  border: 1px solid var(--ad-border);
  background: var(--ad-surface);
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  transition: border-color var(--ad-transition), background var(--ad-transition);
}
.ad-rc-checkbox input[type="checkbox"]:checked {
  background: var(--ad-accent);
  border-color: var(--ad-accent);
}
.ad-rc-checkbox input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 1px;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.ad-rc-help-link {
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ad-accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(201,169,110,0.35);
  padding-bottom: 1px;
  align-self: flex-start;
}
.ad-rc-help-link:hover { color: var(--ad-dark); border-color: var(--ad-dark); }

/* Engraving */
.ad-rc-engraving {
  background: var(--ad-surface);
  border: 1px solid var(--ad-border);
  padding: 20px;
}
@media (min-width: 750px) { .ad-rc-engraving { padding: 24px; } }

.ad-rc-engraving__label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ad-muted);
  margin-bottom: 10px;
}

.ad-rc-input {
  width: 100%;
  appearance: none;
  background: var(--ad-bg);
  border: 1px solid var(--ad-border);
  padding: 14px 16px;
  font-family: var(--ad-serif);
  font-size: 18px;
  color: var(--ad-dark);
  letter-spacing: 0.04em;
  transition: border-color var(--ad-transition);
}
.ad-rc-input::placeholder { color: var(--ad-muted); font-style: italic; }
.ad-rc-input:focus { outline: none; border-color: var(--ad-accent); }

.ad-rc-engraving__meta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}
@media (min-width: 750px) {
  .ad-rc-engraving__meta { flex-direction: row; align-items: center; justify-content: space-between; }
}

.ad-rc-engraving__count {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ad-muted);
  font-variant-numeric: tabular-nums;
}

.ad-rc-engraving__fonts {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ad-rc-engraving__fonts-label {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ad-muted);
  text-transform: uppercase;
}

.ad-rc-engraving__font-btn {
  appearance: none;
  background: transparent;
  border: 1px solid var(--ad-border);
  padding: 6px 12px;
  font-size: 16px;
  cursor: pointer;
  color: var(--ad-dark);
  transition: border-color var(--ad-transition), background var(--ad-transition);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

/* ==========================================================================
   360° PKONLINE IFRAME VIEWER (left panel — primary, Diamond step)
   ========================================================================== */

.ad-rc-360-viewer {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  background: #f0ece6;
  transition: opacity 0.12s ease;
}

/* Fade-out while swapping stone */
.ad-rc-360-viewer.is-fading {
  opacity: 0;
}

.ad-rc-360-viewer__iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  /* Prevent iframe from capturing pointer events outside its bounds */
  pointer-events: auto;
}

/* ==========================================================================
   360° SPIN VIEWER (left panel — fallback when no pkonline stoneId)
   ========================================================================== */

.ad-rc-spin-viewer {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  background: #f0ece6;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}

.ad-rc-spin-viewer.is-multi {
  cursor: grab;
}
.ad-rc-spin-viewer.is-multi.is-dragging {
  cursor: grabbing;
}

.ad-rc-spin-viewer__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  transition: opacity 0.05s ease;
}

/* drag hint overlay */
.ad-rc-spin-viewer__hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: #fff;
  font-family: var(--ad-sans);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  padding: 5px 12px;
  border-radius: 20px;
  white-space: nowrap;
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 5px;
  animation: ad-hint-fade 3s ease 1.5s forwards;
}
.ad-rc-spin-viewer__hint span {
  display: flex;
  align-items: center;
  gap: 5px;
}

@keyframes ad-hint-fade {
  0%   { opacity: 1; }
  80%  { opacity: 1; }
  100% { opacity: 0; }
}

/* frame dots */
.ad-rc-spin-viewer__dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 4px;
  pointer-events: none;
}
.ad-rc-spin-viewer__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  transition: background 0.15s;
}
.ad-rc-spin-viewer__dot.is-active {
  background: var(--ad-accent);
}

/* "View full details" link */
.ad-rc-spin-viewer__pdp-link {
  position: absolute;
  top: 8px;
  right: 8px;
  font-family: var(--ad-sans);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  color: var(--ad-accent);
  background: rgba(255,255,255,0.88);
  padding: 4px 8px;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.15s;
}
.ad-rc-spin-viewer__pdp-link:hover {
  background: #fff;
}

/* ==========================================================================
   MOBILE DIAMOND INSPECTOR (step 3 — shown below title on mobile only)
   ========================================================================== */

.ad-rc-mobile-inspector {
  display: block;
  margin-bottom: 24px;
  border: 1px solid var(--ad-border);
  border-radius: var(--ad-radius-lg);
  overflow: hidden;
  background: var(--ad-surface);
}

/* Hide on desktop — sidebar handles it */
@media (min-width: 990px) {
  .ad-rc-mobile-inspector {
    display: none !important;
  }
}

/* Viewer fills top of the card */
.ad-rc-mobile-inspector .ad-rc-360-viewer {
  border-radius: 0;
}

/* Stone panel sits flush below the viewer */
.ad-rc-mobile-inspector .ad-rc-stone-panel {
  margin-top: 0;
  border: none;
  border-top: 1px solid var(--ad-border);
  border-radius: 0;
}

/* ==========================================================================
   STEP 3 — STONE INSPECTION PANEL (replaces modal, lives in left sidebar)
   ========================================================================== */

/* is-previewing: card being inspected but not yet confirmed */
.ad-rc-diamond-card.is-previewing {
  border-color: var(--ad-accent);
  box-shadow: 0 0 0 2px rgba(201, 169, 110, 0.35);
  background: var(--ad-accent-light);
}

/* Stone panel below the 360° viewer in the left sidebar */
.ad-rc-stone-panel {
  margin-top: 16px;
  padding: 20px;
  background: var(--ad-surface);
  border: 1px solid var(--ad-border);
  border-radius: var(--ad-radius-lg);
  animation: ad-rc-fadein 0.25s ease-out;
}

.ad-rc-stone-panel__id {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ad-muted);
  margin: 0 0 4px;
}

.ad-rc-stone-panel__title {
  font-family: var(--ad-serif);
  font-size: 18px;
  font-weight: 400;
  margin: 0 0 6px;
  line-height: 1.2;
}

.ad-rc-stone-panel__price {
  font-size: 20px;
  font-weight: 600;
  color: var(--ad-accent);
  margin: 0 0 16px;
}

/* 2-column spec grid */
.ad-rc-stone-panel__specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
  margin: 0 0 18px;
}

.ad-rc-stone-panel__spec {
  background: var(--ad-bg);
  border-radius: 6px;
  padding: 8px 10px;
}

.ad-rc-stone-panel__spec dt {
  font-size: 10px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--ad-muted);
  margin-bottom: 2px;
}

.ad-rc-stone-panel__spec dd {
  font-size: 13px;
  font-weight: 600;
  color: var(--ad-dark);
  margin: 0;
}

/* Full-width confirm button */
.ad-rc-btn--full {
  width: 100%;
  justify-content: center;
}

/* ==========================================================================
   DIAMOND QUICK-VIEW MODAL
   ========================================================================== */

.ad-rc-diamond-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow-y: auto;
}

/* transition classes */
.ad-rc-modal-enter         { transition: opacity 0.2s ease, transform 0.2s ease; }
.ad-rc-modal-enter-start   { opacity: 0; transform: scale(0.96); }
.ad-rc-modal-enter-end     { opacity: 1; transform: scale(1); }
.ad-rc-modal-leave         { transition: opacity 0.15s ease; }
.ad-rc-modal-leave-start   { opacity: 1; }
.ad-rc-modal-leave-end     { opacity: 0; }

.ad-rc-diamond-modal {
  background: #fff;
  border-radius: 12px;
  width: 100%;
  max-width: 820px;
  max-height: 90vh;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  box-shadow: 0 24px 60px rgba(0,0,0,0.18);
}

@media (max-width: 640px) {
  .ad-rc-diamond-modal {
    grid-template-columns: 1fr;
    max-height: 92vh;
  }
}

.ad-rc-diamond-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0,0,0,0.06);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ad-dark);
  z-index: 2;
  transition: background 0.15s;
}
.ad-rc-diamond-modal__close:hover {
  background: rgba(0,0,0,0.12);
}

/* Viewer side */
.ad-rc-diamond-modal__viewer {
  position: relative;
  aspect-ratio: 1;
  background: #f0ece6;
  border-radius: 12px 0 0 12px;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}
.ad-rc-diamond-modal__viewer.is-multi {
  cursor: grab;
}
.ad-rc-diamond-modal__viewer.is-multi.is-dragging {
  cursor: grabbing;
}
.ad-rc-diamond-modal__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

@media (max-width: 640px) {
  .ad-rc-diamond-modal__viewer {
    border-radius: 12px 12px 0 0;
    aspect-ratio: 4/3;
  }
}

/* Details side */
.ad-rc-diamond-modal__details {
  padding: 32px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ad-rc-diamond-modal__stone-id {
  font-family: var(--ad-sans);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ad-muted);
  margin: 0;
}

.ad-rc-diamond-modal__title {
  font-family: var(--ad-serif);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--ad-dark);
  margin: 0;
  line-height: 1.2;
}

.ad-rc-diamond-modal__price {
  font-family: var(--ad-serif);
  font-size: 1.6rem;
  color: var(--ad-accent);
  font-weight: 400;
  margin: 0;
}

.ad-rc-diamond-modal__specs {
  margin: 0;
  border-top: 1px solid var(--ad-border);
  border-bottom: 1px solid var(--ad-border);
  padding: 12px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ad-rc-diamond-modal__spec-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ad-rc-diamond-modal__spec-row dt {
  font-family: var(--ad-sans);
  font-size: 0.82rem;
  color: var(--ad-muted);
  font-weight: 400;
}
.ad-rc-diamond-modal__spec-row dd {
  font-family: var(--ad-sans);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ad-dark);
  margin: 0;
}

.ad-rc-diamond-modal__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

.ad-rc-btn--full {
  width: 100%;
  text-align: center;
  justify-content: center;
}

.ad-rc-diamond-modal__note {
  font-family: var(--ad-sans);
  font-size: 0.72rem;
  color: var(--ad-muted);
  text-align: center;
  margin: 0;
  letter-spacing: 0.03em;
}
.ad-rc-engraving__font-btn:hover { border-color: var(--ad-accent); }
.ad-rc-engraving__font-btn.is-selected {
  border-color: var(--ad-accent);
  background: var(--ad-accent-light);
}

/* Review row sub-text (engraving font name) */
.ad-rc-review__sub {
  font-size: 12px;
  color: var(--ad-muted);
  margin-left: 4px;
}

/* ── Diamond Type toggle (Step 2) ────────────────────────────────────────── */
.ad-rc-color-type {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 2rem;
}
.ad-rc-color-type__btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 1rem 1.1rem;
  background: var(--ad-surface);
  border: 1.5px solid var(--ad-border);
  border-radius: var(--ad-radius);
  cursor: pointer;
  text-align: left;
  transition: border-color var(--ad-transition), background var(--ad-transition), box-shadow var(--ad-transition);
}
.ad-rc-color-type__btn:hover {
  border-color: var(--ad-accent);
  background: var(--ad-accent-light);
}
.ad-rc-color-type__btn.is-selected {
  border-color: var(--ad-accent);
  background: var(--ad-accent-light);
  box-shadow: 0 0 0 3px rgba(201,169,110,.15);
}
.ad-rc-color-type__icon {
  font-size: 1.3rem;
  line-height: 1;
  color: var(--ad-accent);
}
.ad-rc-color-type__label {
  font-family: var(--ad-sans);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ad-dark);
  letter-spacing: 0.02em;
}
.ad-rc-color-type__sub {
  font-family: var(--ad-sans);
  font-size: 0.75rem;
  color: var(--ad-muted);
  line-height: 1.4;
}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         
/* ============================================================
   CUSTOM DESIGN — drop-in panel (Step 4)
   ============================================================ */

/* Highlight the Custom Design card with a subtle gold tint */
.ad-rc-setting-card--custom {
  border: 1px dashed rgba(201,169,110,0.55);
  background: rgba(201,169,110,0.04);
}
.ad-rc-setting-card--custom.is-selected {
  border-style: solid;
  border-color: var(--ad-color-gold, #C9A96E);
  background: rgba(201,169,110,0.1);
}

/* The expandable panel */
.ad-rc-custom {
  margin: 1.5rem 0 2rem;
  background: var(--ad-color-cream, #FAF7F4);
  border: 1px solid rgba(201,169,110,0.3);
}
.ad-rc-custom__inner {
  padding: clamp(1.25rem, 3vw, 2rem);
}
.ad-rc-custom__head {
  margin-bottom: 1.25rem;
  text-align: left;
}
.ad-rc-custom__title {
  font-family: var(--ad-font-serif, 'Cormorant Garamond', serif);
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--ad-color-ink, #1A1A1A);
  margin: 0 0 0.375rem;
}
.ad-rc-custom__sub {
  font-family: var(--ad-font-sans, 'Jost', sans-serif);
  font-size: 0.92rem;
  line-height: 1.55;
  color: rgba(26,26,26,0.7);
  margin: 0;
}

/* Drop zone */
.ad-rc-custom__drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem;
  border: 2px dashed rgba(201,169,110,0.4);
  background: #fff;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.2s, background 0.2s;
  position: relative;
}
.ad-rc-custom__drop:hover {
  border-color: var(--ad-color-gold, #C9A96E);
  background: rgba(201,169,110,0.04);
}
.ad-rc-custom__file-input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}
.ad-rc-custom__drop-icon {
  width: 36px;
  height: 36px;
  color: var(--ad-color-gold, #C9A96E);
  margin-bottom: 0.75rem;
}
.ad-rc-custom__drop-title {
  font-family: var(--ad-font-serif, serif);
  font-size: 1.15rem;
  color: var(--ad-color-ink, #1A1A1A);
  margin-bottom: 0.375rem;
}
.ad-rc-custom__drop-hint {
  font-family: var(--ad-font-sans, sans-serif);
  font-size: 0.78rem;
  color: rgba(26,26,26,0.55);
  letter-spacing: 0.03em;
}

.ad-rc-custom__error {
  font-family: var(--ad-font-sans, sans-serif);
  font-size: 0.85rem;
  color: #c43d3d;
  margin: 0.75rem 0 0;
  padding: 0.625rem 0.875rem;
  background: rgba(196,61,61,0.08);
  border-left: 3px solid #c43d3d;
}

/* Previews */
.ad-rc-custom__previews {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}
.ad-rc-custom__preview {
  position: relative;
  background: #fff;
  border: 1px solid rgba(26,26,26,0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.ad-rc-custom__preview-img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  display: block;
}
.ad-rc-custom__preview-meta {
  padding: 0.5rem 0.625rem;
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}
.ad-rc-custom__preview-name {
  font-family: var(--ad-font-sans, sans-serif);
  font-size: 0.75rem;
  color: var(--ad-color-ink, #1A1A1A);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ad-rc-custom__preview-size {
  font-family: var(--ad-font-sans, sans-serif);
  font-size: 0.7rem;
  color: rgba(26,26,26,0.5);
  letter-spacing: 0.04em;
}
.ad-rc-custom__preview-remove {
  position: absolute;
  top: 0.375rem;
  right: 0.375rem;
  width: 24px;
  height: 24px;
  background: rgba(26,26,26,0.7);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  transition: background 0.2s;
}
.ad-rc-custom__preview-remove:hover {
  background: var(--ad-color-ink, #1A1A1A);
}
.ad-rc-custom__preview-remove svg {
  width: 11px;
  height: 11px;
}

/* Notes textarea */
.ad-rc-custom__notes-wrap {
  margin-top: 1.5rem;
}
.ad-rc-custom__notes-label {
  display: block;
  font-family: var(--ad-font-sans, sans-serif);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ad-color-ink, #1A1A1A);
  margin-bottom: 0.5rem;
}
.ad-rc-custom__notes {
  width: 100%;
  resize: vertical;
  min-height: 130px;
  line-height: 1.6;
  font-family: var(--ad-font-sans, sans-serif);
  background: #fff;
  border: 1px solid rgba(26,26,26,0.18);
  padding: 0.875rem 1rem;
  font-size: 0.95rem;
}
.ad-rc-custom__notes:focus {
  outline: none;
  border-color: var(--ad-color-gold, #C9A96E);
  box-shadow: 0 0 0 3px rgba(201,169,110,0.12);
}
.ad-rc-custom__notes-hint {
  font-family: var(--ad-font-sans, sans-serif);
  font-size: 0.72rem;
  color: rgba(26,26,26,0.5);
  margin: 0.5rem 0 0;
  letter-spacing: 0.02em;
}

/* ==========================================================================
   INSPIRATION SECTION (Step 5)
   ========================================================================== */

.ad-rc-inspiration {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.ad-rc-inspiration__url-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.ad-rc-inspiration__label {
  font-family: var(--ad-font-sans, sans-serif);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ad-color-ink, #1A1A1A);
}

.ad-rc-inspiration__drop {
  margin-top: 0;
}

.ad-rc-inspiration__error {
  font-family: var(--ad-font-sans, sans-serif);
  font-size: 0.85rem;
  color: #c0392b;
  margin: 0;
}

/* ==========================================================================
   INTRICACY / CRAFTSMANSHIP CARDS (Step 5)
   ========================================================================== */

.ad-rc-step__desc-sm {
  font-family: var(--ad-font-sans, sans-serif);
  font-size: 0.9rem;
  color: rgba(26,26,26,0.6);
  margin: -0.75rem 0 1.25rem;
  line-height: 1.5;
}

.ad-rc-intricacy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2.5rem;
}

@media (max-width: 600px) {
  .ad-rc-intricacy-grid {
    grid-template-columns: 1fr;
  }
}

.ad-rc-intricacy-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.25rem 1rem;
  border: 1.5px solid var(--ad-color-border, #E8E4DF);
  border-radius: var(--ad-radius, 8px);
  background: #fff;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.18s, box-shadow 0.18s;
}

.ad-rc-intricacy-card:hover {
  border-color: var(--ad-color-gold, #C9A96E);
  box-shadow: 0 2px 8px rgba(201,169,110,0.12);
}

.ad-rc-intricacy-card.is-selected {
  border-color: var(--ad-color-gold, #C9A96E);
  box-shadow: 0 0 0 3px rgba(201,169,110,0.18);
  background: #FFFDF9;
}

.ad-rc-intricacy-card__label {
  font-family: var(--ad-font-serif, serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ad-color-ink, #1A1A1A);
}

.ad-rc-intricacy-card__badge {
  font-family: var(--ad-font-sans, sans-serif);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ad-color-gold, #C9A96E);
  letter-spacing: 0.04em;
}

.ad-rc-intricacy-card__desc {
  font-family: var(--ad-font-sans, sans-serif);
  font-size: 0.82rem;
  color: rgba(26,26,26,0.55);
  line-height: 1.45;
  margin-top: 0.15rem;
}

[x-cloak] { display: none !important; }

/* ════════════════════════════════════════════════════════════════════════════
   AI "Begin Your Design" — custom-design tile, panel, pricing, tweaks, note
   (translated to live ad-rc- schema + --ad-accent / --ad-font-serif tokens)
   ════════════════════════════════════════════════════════════════════════════ */

/* ── Setting Style: "nothing is final" note ── */
.ad-rc-cd-note {
  display: flex; align-items: flex-start; gap: 0.6rem;
  margin: 0 0 1.25rem; padding: 0.85rem 1.1rem;
  border-radius: var(--ad-radius, 8px);
  background: color-mix(in srgb, var(--ad-accent) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--ad-accent) 25%, transparent);
}
.ad-rc-cd-note__mark { color: var(--ad-accent); font-size: 1rem; line-height: 1.5; flex-shrink: 0; }
.ad-rc-cd-note__text { margin: 0; font-size: 0.875rem; line-height: 1.5; color: var(--ad-muted, rgba(26,22,20,0.72)); }

/* ── The 7th tile (extends live .ad-rc-setting-card) ── */
.ad-rc-setting-card--custom {
  border-style: dashed;
  border-color: var(--ad-accent);
  background: linear-gradient(0deg, color-mix(in srgb, var(--ad-accent) 5%, transparent), color-mix(in srgb, var(--ad-accent) 5%, transparent)), var(--ad-surface);
  position: relative;
}
.ad-rc-setting-card--custom:hover { border-color: var(--ad-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ad-accent) 18%, transparent); }
.ad-rc-setting-card--custom.is-selected { border-style: solid; box-shadow: 0 0 0 3px color-mix(in srgb, var(--ad-accent) 28%, transparent); }
.ad-rc-cd-badge {
  position: absolute; top: 8px; right: 8px;
  font-size: 0.625rem; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.2rem 0.5rem; border-radius: 999px;
  background: var(--ad-accent); color: var(--ad-color-ink, #1a1614); font-weight: 600;
}
.ad-rc-cd-icon { color: var(--ad-accent); display: inline-flex; }
.ad-rc-cd-subcopy { font-size: 0.8125rem; line-height: 1.4; color: var(--ad-muted, rgba(26,22,20,0.62)); max-width: 22ch; }
.ad-rc-cd-price { font-style: italic; color: var(--ad-accent); }

/* ── Inline panel ── */
.ad-rc-cd-panel {
  margin-top: 1.5rem; padding: clamp(1.25rem, 4vw, 2rem);
  border: 1px solid var(--ad-color-border, rgba(26,22,20,0.12));
  border-radius: var(--ad-radius-lg, 10px);
  background: var(--ad-surface, #fff);
  box-shadow: var(--ad-shadow-md, 0 10px 30px rgba(26,22,20,0.06));
}
.ad-rc-cd-head { margin-bottom: 1.5rem; }
.ad-rc-cd-title { font-family: var(--ad-font-serif, 'Cormorant Garamond', Georgia, serif); font-weight: 400; font-size: clamp(1.5rem, 4vw, 2rem); margin: 0 0 0.5rem; color: var(--ad-color-ink, #1a1614); }
.ad-rc-cd-intro { color: var(--ad-muted, rgba(26,22,20,0.7)); margin: 0; max-width: 56ch; }

.ad-rc-cd-chosen {
  display: flex; flex-direction: column; gap: 0.25rem;
  padding: 0.9rem 1.1rem; margin-bottom: 1.5rem; border-radius: var(--ad-radius, 8px);
  background: color-mix(in srgb, var(--ad-accent) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--ad-accent) 30%, transparent);
}
.ad-rc-cd-chosen__label { font-size: 0.6875rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ad-muted, rgba(26,22,20,0.55)); }
.ad-rc-cd-chosen__specs { display: flex; flex-wrap: wrap; gap: 0.4rem; font-family: var(--ad-font-serif, 'Cormorant Garamond', Georgia, serif); font-size: 1.25rem; color: var(--ad-color-ink, #1a1614); }

.ad-rc-cd-field { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1.25rem; }
.ad-rc-cd-field label { font-size: 0.875rem; font-weight: 500; color: var(--ad-color-ink, #1a1614); }
.ad-rc-cd-req { color: #c0392b; }
.ad-rc-cd-opt { color: var(--ad-muted, rgba(26,22,20,0.45)); font-weight: 400; }
.ad-rc-cd-hint { font-size: 0.8125rem; color: var(--ad-muted, rgba(26,22,20,0.5)); margin: 0; }

.ad-rc-cd-field input[type="text"],
.ad-rc-cd-field input[type="email"],
.ad-rc-cd-field input[type="tel"],
.ad-rc-cd-field input[type="date"],
.ad-rc-cd-field select,
.ad-rc-cd-field textarea {
  width: 100%; padding: 0.8rem 1rem;
  border: 1px solid var(--ad-color-border, rgba(26,22,20,0.18));
  border-radius: 4px; background: var(--ad-color-cream, #faf7f2);
  font: inherit; font-size: 1rem; color: var(--ad-color-ink, #1a1614);
  transition: border-color 200ms ease, box-shadow 200ms ease;
}
.ad-rc-cd-field textarea { resize: vertical; min-height: 120px; line-height: 1.5; }
.ad-rc-cd-field input:focus, .ad-rc-cd-field select:focus, .ad-rc-cd-field textarea:focus {
  outline: none; border-color: var(--ad-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ad-accent) 18%, transparent);
}
.ad-rc-cd-row { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 750px) { .ad-rc-cd-row { grid-template-columns: repeat(3, 1fr); } }
.ad-rc-cd-meta { font-size: 0.75rem; color: var(--ad-muted, rgba(26,22,20,0.45)); margin: 0; text-align: right; }
.ad-rc-cd-error { font-size: 0.8125rem; color: #c0392b; margin: 0.25rem 0 0; }

.ad-rc-cd-upload {
  position: relative; border: 1px dashed var(--ad-color-border, rgba(26,22,20,0.25));
  border-radius: var(--ad-radius, 8px); background: var(--ad-color-cream, #faf7f2);
  padding: 1.25rem; text-align: center; transition: border-color 200ms ease, background-color 200ms ease;
}
.ad-rc-cd-upload[data-drag-over="true"] { border-color: var(--ad-accent); background: color-mix(in srgb, var(--ad-accent) 6%, transparent); }
.ad-rc-cd-upload input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.ad-rc-cd-upload__cta { font-size: 0.9375rem; color: var(--ad-muted, rgba(26,22,20,0.62)); pointer-events: none; }

.ad-rc-cd-previews { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); gap: 0.6rem; }
.ad-rc-cd-preview { position: relative; aspect-ratio: 1; border-radius: 4px; overflow: hidden; background: rgba(26,22,20,0.08); }
.ad-rc-cd-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ad-rc-cd-preview__remove { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 999px; border: none; background: rgba(26,22,20,0.78); color: #fff; font-size: 13px; line-height: 1; cursor: pointer; }
.ad-rc-cd-preview__remove:hover, .ad-rc-cd-preview__remove:focus-visible { background: var(--ad-color-ink, #1a1614); }

.ad-rc-cd-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.ad-rc-cd-submit { display: flex; flex-direction: column; align-items: center; gap: 0.6rem; text-align: center; margin-top: 0.5rem; }
.ad-rc-cd-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.95rem 2rem; border: 1px solid var(--ad-color-ink, #1a1614); border-radius: 999px;
  background: var(--ad-color-ink, #1a1614); color: var(--ad-color-cream, #faf7f2);
  font: inherit; font-size: 0.95rem; font-weight: 500; letter-spacing: 0.02em; cursor: pointer;
  transition: background-color 200ms ease, border-color 200ms ease, transform 200ms ease;
}
.ad-rc-cd-btn:hover:not(:disabled), .ad-rc-cd-btn:focus-visible:not(:disabled) { background: var(--ad-accent); border-color: var(--ad-accent); color: var(--ad-color-ink, #1a1614); transform: translateY(-1px); }
.ad-rc-cd-btn:disabled { opacity: 0.6; cursor: progress; }
.ad-rc-cd-reassure { font-size: 0.8125rem; color: var(--ad-muted, rgba(26,22,20,0.5)); margin: 0; }

.ad-rc-cd-price-cta { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; text-align: center; margin: 0.5rem 0 1rem; }
.ad-rc-cd-btn--price { background: transparent; color: var(--ad-color-ink, #1a1614); border-color: var(--ad-accent); }
.ad-rc-cd-btn--price:hover, .ad-rc-cd-btn--price:focus-visible { background: var(--ad-accent); color: var(--ad-color-ink, #1a1614); }

.ad-rc-cd-estimate {
  text-align: center; padding: 1.5rem 1.25rem; margin: 0.5rem 0 1.25rem;
  border: 1px solid color-mix(in srgb, var(--ad-accent) 40%, transparent);
  border-radius: var(--ad-radius-lg, 10px); background: color-mix(in srgb, var(--ad-accent) 7%, transparent);
}
.ad-rc-cd-estimate__label { display: block; font-size: 0.6875rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ad-muted, rgba(26,22,20,0.55)); margin-bottom: 0.4rem; }
.ad-rc-cd-estimate__range { font-family: var(--ad-font-serif, 'Cormorant Garamond', Georgia, serif); font-size: clamp(2rem, 6vw, 2.75rem); line-height: 1.1; color: var(--ad-color-ink, #1a1614); margin: 0 0 0.5rem; }
.ad-rc-cd-estimate__total { font-size: 0.9375rem; color: var(--ad-muted, rgba(26,22,20,0.7)); margin: 0 0 0.75rem; }
.ad-rc-cd-estimate__caveat { font-size: 0.8125rem; font-style: italic; color: var(--ad-muted, rgba(26,22,20,0.55)); margin: 0 auto 0.75rem; max-width: 42ch; }
.ad-rc-cd-estimate__recalc { background: none; border: none; font: inherit; font-size: 0.8125rem; color: var(--ad-accent); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 0.25rem; }
.ad-rc-cd-estimate__recalc:hover, .ad-rc-cd-estimate__recalc:focus-visible { color: var(--ad-color-ink, #1a1614); }

.ad-rc-cd-confirm { text-align: center; padding: clamp(1.5rem, 5vw, 3rem) 1rem; }
.ad-rc-cd-confirm__mark { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 999px; background: color-mix(in srgb, var(--ad-accent) 22%, transparent); color: var(--ad-color-ink, #1a1614); font-size: 1.25rem; margin-bottom: 1rem; }
.ad-rc-cd-confirm__title { font-family: var(--ad-font-serif, 'Cormorant Garamond', Georgia, serif); font-weight: 400; font-size: clamp(1.5rem, 4vw, 2rem); margin: 0 0 0.75rem; color: var(--ad-color-ink, #1a1614); }
.ad-rc-cd-confirm p { color: var(--ad-muted, rgba(26,22,20,0.72)); margin: 0 auto 0.75rem; max-width: 48ch; }
.ad-rc-cd-confirm__soft { font-size: 0.875rem; color: var(--ad-muted, rgba(26,22,20,0.5)); }

/* ── Review step: final adjustments tweaks field (ALL paths) ── */
.ad-rc-cd-tweaks { margin: 1.5rem 0; padding: 1.25rem; border: 1px solid var(--ad-color-border, rgba(26,22,20,0.12)); border-radius: var(--ad-radius, 8px); background: var(--ad-surface, #fff); }
.ad-rc-cd-tweaks__label { display: block; font-size: 0.9375rem; font-weight: 500; color: var(--ad-color-ink, #1a1614); margin-bottom: 0.35rem; }
.ad-rc-cd-tweaks__hint { font-size: 0.8125rem; color: var(--ad-muted, rgba(26,22,20,0.55)); margin: 0 0 0.6rem; }
.ad-rc-cd-tweaks__input { width: 100%; padding: 0.8rem 1rem; border: 1px solid var(--ad-color-border, rgba(26,22,20,0.18)); border-radius: 4px; background: var(--ad-color-cream, #faf7f2); font: inherit; font-size: 1rem; line-height: 1.5; color: var(--ad-color-ink, #1a1614); resize: vertical; min-height: 96px; transition: border-color 200ms ease, box-shadow 200ms ease; }
.ad-rc-cd-tweaks__input:focus { outline: none; border-color: var(--ad-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ad-accent) 18%, transparent); }
.ad-rc-cd-tweaks__meta { font-size: 0.75rem; color: var(--ad-muted, rgba(26,22,20,0.45)); text-align: right; margin: 0.25rem 0 0; }

@media (prefers-reduced-motion: reduce) { .ad-rc-cd-btn { transition-duration: 0.01ms; } }


/* ── 360° Tier-1 perceived-perf: instant poster over the pkonline iframe ── */
.ad-rc-360-viewer__poster {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 2; user-select: none;
}
.ad-rc-360-viewer__loading {
  position: absolute; z-index: 3; left: 10px; bottom: 10px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px; border-radius: 999px;
  background: rgba(20,16,14,.6); color: #fff;
  font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase;
}
.ad-rc-360-viewer__loading::before {
  content: ''; width: 10px; height: 10px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.35); border-top-color: #fff;
  animation: adrc360spin .8s linear infinite;
}
@keyframes adrc360spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .ad-rc-360-viewer__loading::before { animation: none; } }
