/* =========================================================
   LA CORTIGIANA · CUSTOM RITUAL BOX BUILDER
   Luxury Editorial Architecture & Component Scoped Styling
========================================================= */

/* Global Page Scoping under Astra */
body.lc-ritual-builder-page .site-content > .ast-container,
body.lc-ritual-builder-page .ast-article-single,
body.lc-ritual-builder-page .entry-content,
body.lc-ritual-builder-page #primary,
body.lc-ritual-builder-page .site-main {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.lc-ritual-builder-page .entry-header {
  display: none !important;
}

/* Base Root & Custom Properties */
.lc-builder-root {
  --rb-ink: #191513;
  --rb-wine: #6f1f30;
  --rb-wine-dark: #4d1421;
  --rb-wine-soft: rgba(111, 31, 48, 0.04);
  --rb-bone: #f7f2ea;
  --rb-paper: #fbf8f4;
  --rb-white: #ffffff;
  --rb-line: rgba(25, 21, 19, 0.12);
  --rb-line-focus: #6f1f30;
  --rb-gold: #a28156;
  --rb-gold-soft: rgba(162, 129, 86, 0.15);
  --rb-muted: #6e645e;
  --rb-radius: 12px;
  --rb-radius-sm: 6px;
  --rb-radius-pill: 999px;
  --rb-shadow-sm: 0 4px 16px rgba(25, 21, 19, 0.05);
  --rb-shadow-md: 0 10px 30px rgba(25, 21, 19, 0.08);

  background-color: var(--rb-paper);
  color: var(--rb-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 90px;
}

.lc-builder-root *,
.lc-builder-root *::before,
.lc-builder-root *::after {
  box-sizing: border-box;
}

.lc-b-container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (max-width: 480px) {
  .lc-b-container {
    padding: 0 16px;
  }
}

/* =========================================================
   HERO SECTION
========================================================= */
.lc-b-hero {
  background: linear-gradient(180deg, #f0e9df 0%, var(--rb-paper) 100%);
  border-bottom: 1px solid var(--rb-line);
  padding: 56px 0 40px;
  text-align: center;
}

.lc-b-hero__kicker {
  display: inline-block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
  color: var(--rb-wine);
  margin-bottom: 12px;
}

.lc-b-hero__title {
  font-family: "Playfair Display", Georgia, serif !important;
  font-size: 44px !important;
  line-height: 1.15 !important;
  font-weight: 500 !important;
  color: var(--rb-ink) !important;
  margin: 0 0 16px !important;
}

.lc-b-hero__lead {
  max-width: 680px;
  margin: 0 auto 24px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--rb-muted);
}

.lc-b-hero__badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.lc-b-pill {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 6px 16px;
  border-radius: var(--rb-radius-pill);
  background: var(--rb-white);
  border: 1px solid var(--rb-line);
  color: var(--rb-ink);
}

@media (max-width: 768px) {
  .lc-b-hero {
    padding: 36px 0 28px;
  }
  .lc-b-hero__title {
    font-size: 32px !important;
  }
  .lc-b-hero__lead {
    font-size: 15px;
  }
}

/* =========================================================
   TWO COLUMN LAYOUT
========================================================= */
.lc-b-layout {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 48px;
  margin-top: 48px;
}

.lc-b-sidebar {
  height: 100%;
}

@media (max-width: 1100px) {
  .lc-b-layout {
    grid-template-columns: 1fr 360px;
    gap: 32px;
  }
}

@media (max-width: 991px) {
  .lc-b-layout {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-top: 32px;
  }
  .lc-b-sidebar {
    display: none; /* Summary will be handled by mobile drawer */
  }
}

/* =========================================================
   STEPS ARCHITECTURE
========================================================= */
.lc-b-step {
  background: var(--rb-white);
  border: 1px solid var(--rb-line);
  border-radius: var(--rb-radius);
  padding: 36px;
  margin-bottom: 36px;
  box-shadow: var(--rb-shadow-sm);
  transition: border-color 0.2s ease;
}

.lc-b-step:focus-within {
  border-color: rgba(111, 31, 48, 0.35);
}

.lc-b-step__header {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--rb-line);
}

.lc-b-step__num {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 26px;
  line-height: 1;
  color: var(--rb-wine);
  opacity: 0.85;
}

.lc-b-step__heading-wrap {
  flex: 1;
}

.lc-b-step__title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 6px;
}

.lc-b-step__title {
  font-family: "Playfair Display", Georgia, serif !important;
  font-size: 24px !important;
  font-weight: 500 !important;
  margin: 0 !important;
  color: var(--rb-ink) !important;
}

.lc-b-step__desc {
  font-size: 14px;
  color: var(--rb-muted);
  margin: 0;
  line-height: 1.5;
}

.lc-b-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: var(--rb-radius-pill);
}

.lc-b-tag--required {
  background: var(--rb-wine);
  color: #fff;
}

.lc-b-tag--optional {
  background: var(--rb-bone);
  color: var(--rb-muted);
  border: 1px solid var(--rb-line);
}

.lc-b-tag--included {
  background: #e9f3ec;
  color: #1f6b3b;
}

.lc-b-tag--addon {
  background: #fdf3e7;
  color: #9c5c16;
}

@media (max-width: 600px) {
  .lc-b-step {
    padding: 24px 18px;
    margin-bottom: 24px;
  }
  .lc-b-step__title {
    font-size: 20px !important;
  }
}

/* =========================================================
   PRODUCT CARDS GRID
========================================================= */
.lc-b-grid {
  display: grid;
  gap: 20px;
}

.lc-b-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.lc-b-grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 860px) {
  .lc-b-grid--3 {
    grid-template-columns: 1fr;
  }
  .lc-b-grid--2 {
    grid-template-columns: 1fr;
  }
}

.lc-card {
  border: 1px solid var(--rb-line);
  border-radius: var(--rb-radius);
  background: var(--rb-white);
  padding: 16px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  display: flex;
  flex-direction: column;
}

.lc-card:hover {
  border-color: rgba(111, 31, 48, 0.4);
  transform: translateY(-2px);
  box-shadow: var(--rb-shadow-sm);
}

.lc-card.selected {
  border-color: var(--rb-wine);
  background: var(--rb-wine-soft);
  box-shadow: 0 0 0 1px var(--rb-wine);
}

.lc-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: calc(var(--rb-radius) - 4px);
  overflow: hidden;
  background: var(--rb-bone);
  margin-bottom: 14px;
}

.lc-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.lc-card:hover .lc-card__media img {
  transform: scale(1.03);
}

/* Selection Indicators */
.lc-card__select-indicator,
.lc-card__check-indicator {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: 1.5px solid rgba(25, 21, 19, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  backdrop-filter: blur(4px);
}

.lc-card.selected .lc-card__select-indicator {
  background: var(--rb-wine);
  border-color: var(--rb-wine);
}

.lc-card.selected .lc-card__select-indicator::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
}

.lc-card__check-indicator {
  border-radius: 4px;
}

.lc-card.selected .lc-card__check-indicator {
  background: var(--rb-wine);
  border-color: var(--rb-wine);
}

.lc-card.selected .lc-card__check-indicator::after {
  content: "";
  display: block;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translate(-1px, -1px);
}

.lc-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.lc-card__title {
  font-family: "Playfair Display", Georgia, serif !important;
  font-size: 17px !important;
  line-height: 1.3 !important;
  font-weight: 500 !important;
  color: var(--rb-ink) !important;
  margin: 0 0 6px !important;
}

.lc-card__sub {
  font-size: 13px;
  line-height: 1.45;
  color: var(--rb-muted);
  margin: 0 0 12px;
  flex: 1;
}

.lc-card__price {
  font-size: 16px;
  font-weight: 600;
  color: var(--rb-wine);
}

/* =========================================================
   INLINE CONFIGURATION DRAWER (Appears within Card)
========================================================= */
.lc-inline-config {
  display: none;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(111, 31, 48, 0.15);
  animation: lcFadeIn 0.25s ease;
}

.lc-card.selected .lc-inline-config {
  display: block;
}

@keyframes lcFadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.lc-field-group {
  margin-bottom: 14px;
}

.lc-field-group:last-child {
  margin-bottom: 0;
}

.lc-field-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--rb-ink);
  margin-bottom: 6px;
}

.lc-req {
  color: var(--rb-wine);
}

.lc-opt {
  font-weight: 400;
  text-transform: none;
  color: var(--rb-muted);
  font-size: 11px;
}

/* Pill Buttons */
.lc-pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.lc-pill-btn {
  background: var(--rb-white);
  border: 1px solid rgba(25, 21, 19, 0.18);
  color: var(--rb-ink);
  font-size: 12px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--rb-radius-pill);
  cursor: pointer;
  transition: all 0.15s ease;
  line-height: 1.2;
  text-align: center;
}

.lc-pill-btn:hover {
  border-color: var(--rb-wine);
  background: rgba(111, 31, 48, 0.04);
}

.lc-pill-btn.active {
  background: var(--rb-wine);
  border-color: var(--rb-wine);
  color: #fff;
}

.lc-pill-sub {
  display: block;
  font-size: 10px;
  opacity: 0.8;
  font-weight: 400;
  margin-top: 2px;
}

/* Inputs */
.lc-input {
  width: 100%;
  padding: 9px 12px;
  font-size: 13px;
  border: 1px solid rgba(25, 21, 19, 0.18);
  border-radius: var(--rb-radius-sm);
  background: #fff;
  color: var(--rb-ink);
  transition: border-color 0.2s ease;
}

.lc-input:focus {
  outline: none;
  border-color: var(--rb-wine);
  box-shadow: 0 0 0 1px var(--rb-wine);
}

/* =========================================================
   STEP 4: PRIVATE NOTE
========================================================= */
.lc-note-box {
  background: #fffdfa;
  border: 1px solid rgba(162, 129, 86, 0.35);
  border-radius: var(--rb-radius);
  padding: 24px;
}

.lc-note-box__instructions {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--rb-gold);
  margin-bottom: 16px;
  font-weight: 500;
}

.lc-textarea {
  width: 100%;
  padding: 14px 16px;
  font-size: 15px;
  font-family: inherit;
  line-height: 1.6;
  border: 1px solid var(--rb-line);
  border-radius: var(--rb-radius-sm);
  background: #fff;
  color: var(--rb-ink);
  resize: vertical;
  min-height: 100px;
}

.lc-textarea:focus {
  outline: none;
  border-color: var(--rb-wine);
  box-shadow: 0 0 0 1px var(--rb-wine);
}

.lc-note-box__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}

.lc-checkbox-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

.lc-checkbox-wrap input {
  display: none;
}

.lc-checkbox-mark {
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--rb-line);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  background: #fff;
}

.lc-checkbox-wrap input:checked + .lc-checkbox-mark {
  background: var(--rb-wine);
  border-color: var(--rb-wine);
}

.lc-checkbox-wrap input:checked + .lc-checkbox-mark::after {
  content: "";
  width: 4px;
  height: 8px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translate(-1px, -1px);
}

.lc-checkbox-label {
  font-size: 13px;
  color: var(--rb-ink);
}

.lc-char-counter {
  font-size: 12px;
  color: var(--rb-muted);
}

/* =========================================================
   STEP 5: AFTERCARE
========================================================= */
.lc-aftercare-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  background: var(--rb-white);
  border: 1px solid var(--rb-line);
  border-radius: var(--rb-radius);
  overflow: hidden;
  padding: 20px;
  align-items: center;
  transition: all 0.2s ease;
}

.lc-aftercare-card.active {
  border-color: var(--rb-wine);
  background: var(--rb-wine-soft);
}

.lc-aftercare-card__media {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--rb-radius-sm);
  overflow: hidden;
  background: var(--rb-bone);
}

.lc-aftercare-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lc-aftercare-card__info {
  display: flex;
  flex-direction: column;
}

.lc-aftercare-card__title {
  font-family: "Playfair Display", Georgia, serif !important;
  font-size: 20px !important;
  font-weight: 500 !important;
  color: var(--rb-ink) !important;
  margin: 0 0 8px !important;
}

.lc-aftercare-card__desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--rb-muted);
  margin: 0 0 16px;
}

.lc-aftercare-card__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lc-aftercare-card__price {
  font-size: 18px;
  font-weight: 600;
  color: var(--rb-wine);
}

.lc-aftercare-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1.5px solid var(--rb-wine);
  color: var(--rb-wine);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 8px 18px;
  border-radius: var(--rb-radius-pill);
  cursor: pointer;
  transition: all 0.2s ease;
}

.lc-aftercare-card.active .lc-aftercare-toggle {
  background: var(--rb-wine);
  color: #fff;
}

.lc-aftercare-toggle:hover {
  background: var(--rb-wine);
  color: #fff;
}

@media (max-width: 600px) {
  .lc-aftercare-card {
    grid-template-columns: 1fr;
  }
  .lc-aftercare-card__media {
    max-width: 220px;
    margin: 0 auto;
  }
}

/* =========================================================
   STICKY SIDEBAR SUMMARY (DESKTOP)
========================================================= */
.lc-summary {
  position: sticky;
  top: 24px;
  background: var(--rb-white);
  border: 1px solid var(--rb-line);
  border-radius: var(--rb-radius);
  padding: 28px;
  box-shadow: var(--rb-shadow-md);
}

.lc-summary__kicker {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  color: var(--rb-wine);
  margin-bottom: 4px;
}

.lc-summary__title {
  font-family: "Playfair Display", Georgia, serif !important;
  font-size: 26px !important;
  font-weight: 500 !important;
  color: var(--rb-ink) !important;
  margin: 0 0 20px !important;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rb-line);
}

.lc-summary__body {
  margin-bottom: 20px;
}

.lc-summary-empty {
  font-size: 13px;
  color: var(--rb-muted);
  font-style: italic;
  padding: 16px 0;
  text-align: center;
}

.lc-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(25, 21, 19, 0.08);
  font-size: 13px;
}

.lc-summary-row__name {
  font-weight: 600;
  color: var(--rb-ink);
  line-height: 1.35;
}

.lc-summary-row__detail {
  font-size: 12px;
  color: var(--rb-muted);
  margin-top: 3px;
}

.lc-summary-row__price {
  font-weight: 600;
  color: var(--rb-wine);
  white-space: nowrap;
}

/* Packaging Included Line */
.lc-summary__included {
  background: var(--rb-bone);
  border-radius: var(--rb-radius-sm);
  padding: 12px 14px;
  margin-bottom: 20px;
}

.lc-included-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--rb-ink);
}

.lc-included-name {
  display: flex;
  align-items: center;
  gap: 6px;
}

.lc-included-name svg {
  color: #1f6b3b;
}

.lc-included-val {
  color: #1f6b3b;
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.06em;
}

.lc-included-sub {
  font-size: 11px;
  color: var(--rb-muted);
  margin-top: 4px;
  line-height: 1.4;
}

/* Total Row */
.lc-summary__total-wrap {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 16px 0;
  border-top: 2px solid var(--rb-ink);
  border-bottom: 1px solid var(--rb-line);
  margin-bottom: 20px;
}

.lc-summary__total-label {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--rb-ink);
}

.lc-summary__total-amount {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 28px;
  font-weight: 600;
  color: var(--rb-wine);
}

/* Alert Notification */
.lc-summary__alert {
  background: #fdf2f2;
  border-left: 3px solid var(--rb-wine);
  color: #9b1c1c;
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.4;
  border-radius: 4px;
  margin-bottom: 16px;
  animation: lcShake 0.3s ease;
}

@keyframes lcShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

/* Primary CTA Button */
.lc-btn-add-box {
  width: 100%;
  background: var(--rb-wine);
  color: #fff;
  border: none;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 16px 20px;
  border-radius: var(--rb-radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(111, 31, 48, 0.3);
}

.lc-btn-add-box:hover:not(:disabled) {
  background: var(--rb-wine-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(111, 31, 48, 0.4);
}

.lc-btn-add-box:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.lc-btn-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: lcSpin 0.7s infinite linear;
}

@keyframes lcSpin {
  to { transform: rotate(360deg); }
}

/* Trust Lines */
.lc-summary__footer {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--rb-line);
}

.lc-trust-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--rb-muted);
  margin-bottom: 8px;
}

.lc-trust-line:last-child {
  margin-bottom: 0;
}

.lc-trust-line svg {
  flex-shrink: 0;
  color: var(--rb-gold);
}

/* =========================================================
   MOBILE BOTTOM BAR (< 992px)
========================================================= */
.lc-b-mobile-bar {
  display: none;
}

@media (max-width: 991px) {
  .lc-b-mobile-bar {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--rb-line);
    padding: 12px 16px;
    z-index: 999;
    box-shadow: 0 -4px 20px rgba(25, 21, 19, 0.08);
  }

  .lc-b-mobile-bar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 600px;
    margin: 0 auto;
    gap: 16px;
  }

  .lc-b-mobile-bar__info {
    display: flex;
    flex-direction: column;
  }

  .lc-b-mobile-bar__count {
    font-size: 11px;
    color: var(--rb-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }

  .lc-b-mobile-bar__price {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 20px;
    font-weight: 600;
    color: var(--rb-wine);
  }

  .lc-b-mobile-bar__btn {
    background: var(--rb-wine);
    color: #fff;
    border: none;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 12px 20px;
    border-radius: var(--rb-radius-sm);
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 3px 10px rgba(111, 31, 48, 0.25);
  }
}

/* =========================================================
   MOBILE REVIEW DRAWER (Slide up)
========================================================= */
.lc-b-drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(25, 21, 19, 0.6);
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lc-b-drawer {
  display: block;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-height: 85vh;
  background: #fff;
  border-radius: 20px 20px 0 0;
  z-index: 10001;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.2);
}

.lc-b-drawer.open {
  transform: translateY(0);
}

.lc-b-drawer-overlay.open {
  display: block;
  opacity: 1;
}

.lc-b-drawer__header {
  padding: 16px 20px 12px;
  border-bottom: 1px solid var(--rb-line);
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 2;
}

.lc-b-drawer__handle {
  width: 40px;
  height: 4px;
  background: var(--rb-line);
  border-radius: 2px;
  margin: 0 auto 12px;
}

.lc-b-drawer__title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.lc-b-drawer__title {
  font-family: "Playfair Display", Georgia, serif !important;
  font-size: 20px !important;
  margin: 0 !important;
  color: var(--rb-ink) !important;
}

.lc-b-drawer__close {
  background: none;
  border: none;
  font-size: 28px;
  line-height: 1;
  color: var(--rb-muted);
  cursor: pointer;
  padding: 0 4px;
}

.lc-b-drawer__body {
  padding: 20px;
}

.lc-b-drawer__footer {
  padding: 16px 20px 24px;
  border-top: 1px solid var(--rb-line);
  background: var(--rb-paper);
}

body.lc-ritual-builder-page .trp-floating-switcher {
  z-index: 900 !important;
}

.lc-b-drawer__footer {
  padding: 16px 20px 36px !important;
}

/* 2026-09-25 visual alignment with La Cortigiana */
.lc-builder-root{
  --rb-ink:#151514;
  --rb-wine:#171716;
  --rb-wine-dark:#34322f;
  --rb-wine-soft:rgba(21,21,20,.045);
  --rb-bone:#f7f6f3;
  --rb-paper:#f7f6f3;
  --rb-white:#fff;
  --rb-line:rgba(21,21,20,.13);
  --rb-line-focus:#171716;
  --rb-gold:#817a73;
  --rb-gold-soft:rgba(129,122,115,.12);
  --rb-muted:#6b665f;
  --rb-radius:0;
  --rb-radius-sm:0;
  --rb-shadow-sm:none;
  --rb-shadow-md:none;
}
.lc-b-hero{
  background:#efede8;
  text-align:left;
  padding-top:38px;
}
.lc-b-hero__kicker{color:#817a73;font-size:10px;font-weight:700}
.lc-b-hero__title{
  font-family:Georgia,"Times New Roman",serif!important;
  max-width:760px;
  font-size:clamp(48px,6vw,78px)!important;
  font-weight:400!important;
  letter-spacing:-.045em!important;
  line-height:.98!important;
}
.lc-b-hero__lead{max-width:720px;margin-left:0;font-size:16px}
.lc-b-hero__badges{justify-content:flex-start}
.lc-b-pill{border-radius:0;font-size:9px;font-weight:700;letter-spacing:.08em;text-transform:uppercase}
.lc-b-back{
  display:inline-block;
  margin-bottom:28px;
  color:#6b665f;
  font-size:9px;
  font-weight:700;
  letter-spacing:.1em;
  text-transform:uppercase;
}
.lc-b-back:hover{color:#151514}
.lc-ask-olga-link{color:#151514!important;font-size:11px!important;font-weight:700!important;text-decoration:none!important;border-bottom:1px solid currentColor}
.lc-b-step{box-shadow:none}
.lc-b-step:focus-within{border-color:rgba(21,21,20,.35)}
.lc-b-step__num{color:#817a73}
.lc-b-step__title,
.lc-card__title,
.lc-sidebar-title,
.lc-drawer-title{
  font-family:Georgia,"Times New Roman",serif!important;
}
.lc-card,.lc-inline-config,.lc-sidebar-card,.lc-aftercare-card,.lc-summary-card,.lc-drawer{
  border-radius:0!important;
  box-shadow:none!important;
}
.lc-card.selected,.lc-card.active{border-color:#171716!important}
.lc-pill-btn{border-radius:0!important}
.lc-pill-btn.active{
  background:#171716!important;
  border-color:#171716!important;
  color:#fff!important;
}
.lc-b-tag{border-radius:0!important}
.lc-b-mobile-bar__btn,
.lc-primary-btn,
.lc-add-box-btn,
.lc-drawer-add-btn{
  border-radius:0!important;
  background:#171716!important;
  border-color:#171716!important;
  color:#fff!important;
}

/* Variant-aware style chooser inside Ritual Box builder */
.lc-ritual-style-choices{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:7px!important;
}
.lc-ritual-style-choice{
  display:flex!important;
  flex-direction:column;
  align-items:stretch!important;
  min-width:0;
  padding:0!important;
  overflow:hidden;
  white-space:normal!important;
  text-align:left!important;
  background:#fff!important;
  border:1px solid var(--rb-line)!important;
  color:var(--rb-ink)!important;
}
.lc-ritual-style-choice.active{
  border-color:#171716!important;
  box-shadow:inset 0 0 0 1px #171716!important;
  background:#fff!important;
  color:var(--rb-ink)!important;
}
.lc-ritual-style-choice__media{
  display:block;
  width:100%;
  aspect-ratio:4/5;
  overflow:hidden;
  background:#ece8e2;
}
.lc-ritual-style-choice__media img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
}
.lc-ritual-style-choice__name{
  display:block;
  padding:8px 7px 0;
  font-family:Georgia,"Times New Roman",serif;
  font-size:13px;
  line-height:1.08;
}
.lc-ritual-style-choice__price{
  display:block;
  padding:5px 7px 8px;
  color:#817a73;
  font-size:8px;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.lc-ritual-style-note{
  margin:7px 0 0;
  color:#817a73;
  font-size:9px;
  line-height:1.45;
}
.lc-builder-root .lc-style-image-changing{
  opacity:.2;
  transition:opacity .12s ease;
}
.lc-card__media img{
  transition:opacity .16s ease,transform .4s ease;
}
@media(max-width:600px){
  .lc-ritual-style-choices{gap:5px!important}
  .lc-ritual-style-choice__name{font-size:10px;padding:6px 5px 0}
  .lc-ritual-style-choice__price{font-size:7px;padding:4px 5px 6px}
  .lc-ritual-style-choice__media{aspect-ratio:3/4}
}
