/* Sample kit builder — Create-width shell + locked viewport */

.skb-page {
  --skb-ink: #1F2428;
  --skb-muted: #5c564e;
  --skb-sage: #5F92A8;
  --skb-line: rgba(31, 36, 40, 0.12);
  color: var(--skb-ink);
  width: 100%;
  max-width: min(110rem, 100%);
  margin: 0 auto;
  padding: 0.55rem 1rem 0.65rem;
  box-sizing: border-box;
}

.skb-page *,
.skb-page *::before,
.skb-page *::after {
  box-sizing: border-box;
}

.skb-back {
  display: inline-block;
  margin: 0 0 0.3rem;
  color: var(--skb-sage);
  font-size: 0.75rem;
  font-weight: 500;
  text-decoration: none;
  line-height: 1.2;
}
.skb-back:hover { text-decoration: underline; }

/* Kit title — same Outfit as “Sample 1 of 3”; digit same size/weight as the words */
.skb-title {
  font-family: Outfit, "Segoe UI", "Helvetica Neue", Arial, sans-serif !important;
  font-weight: 450;
  font-size: clamp(0.92rem, 1.1vw, 1.02rem);
  margin: 0 0 0.12rem;
  line-height: 1.35;
  display: block;
  letter-spacing: 0.01em;
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
  font-synthesis: none;
}
.skb-title-num {
  font-family: inherit !important;
  font-weight: inherit !important;
  font-size: 1em !important;
  font-style: normal !important;
  font-variant-numeric: lining-nums tabular-nums !important;
  font-feature-settings: "lnum" 1, "tnum" 1 !important;
}
.skb-amt-num,
.sdk__kit-num,
.sdk__kit-amt {
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif !important;
  font-variant-numeric: lining-nums tabular-nums !important;
  font-feature-settings: "lnum" 1, "tnum" 1 !important;
}

/* Kit total stays on invoice / checkout — header is size + shipping only */
.skb-sub {
  font-family: Outfit, "Segoe UI", "Helvetica Neue", Arial, sans-serif !important;
  font-weight: 400;
  font-size: 0.88rem;
  margin: 0 0 0.55rem;
  line-height: 1.35;
  color: var(--skb-muted);
}

.skb-flow {
  width: 100%;
  max-width: none;
  margin: 0;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.skb-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  color: var(--skb-muted);
  flex: 0 0 auto;
  max-width: 40rem;
}

.skb-progress__bar {
  flex: 1;
  height: 3px;
  border-radius: 99px;
  background: rgba(30, 90, 140, 0.15);
  overflow: hidden;
}
.skb-progress__fill {
  height: 100%;
  width: 0;
  background: var(--skb-sage);
  border-radius: inherit;
  transition: width 0.25s ease;
}

.skb-host.pl-qty-flip {
  width: 100%;
  min-height: 0;
  flex: 1 1 auto;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.skb-page .pl-qty-flip > .pl-scent-panel,
.skb-page .pl-scent-panel {
  border: 1px solid var(--skb-line);
  border-radius: 0.65rem;
  background: #fbfaf7;
  padding: 0.85rem 1rem 0.95rem;
  max-width: none;
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.skb-page .pl-scent-panel > .pl-unify__title,
.skb-page .pl-scent-panel > .pl-mini-label {
  flex: 0 0 auto;
}
/* Sample N of K — Outfit (not Cormorant) to match the kit chrome */
.skb-page .pl-scent-panel > .pl-unify__title {
  font-family: Outfit, "Segoe UI", "Helvetica Neue", Arial, sans-serif !important;
  font-weight: 550;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  color: var(--skb-ink);
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
}
.skb-progress {
  font-family: Outfit, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-weight: 450;
}

.skb-page .pl-scent-panel__pick,
.skb-page .pl-scent-panel [data-scent-pick] {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
/* Path step: pick holder must not steal height while hidden (pl-wizard overrides [hidden]) */
.skb-page .pl-scent-panel > .pl-scent-panel__pick[hidden],
.skb-page .pl-scent-panel > [data-scent-pick][hidden] {
  display: none !important;
  flex: 0 0 0 !important;
  min-height: 0 !important;
  height: 0 !important;
  max-height: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

.skb-page [data-frag-root]:not([hidden]),
.skb-page .pl-frag-studio:not([hidden]) {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.skb-page [data-frag-root][hidden],
.skb-page .pl-frag-studio[hidden] {
  display: none !important;
  flex: 0 0 0 !important;
  min-height: 0 !important;
  height: 0 !important;
  max-height: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

.skb-page .pl-frag-grid {
  grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr)) !important;
  grid-template-rows: none !important;
  grid-auto-rows: max-content !important;
  align-content: start !important;
  max-height: none !important;
  flex: 1 1 auto;
  min-height: 12rem;
  height: auto !important;
  overflow: auto !important;
  -webkit-overflow-scrolling: touch;
  gap: 0.55rem !important;
}

/* Desktop discovery kit: 6 across (brands, fragrances, notes) */
@media (min-width: 769px) {
  body.pl-create-lock.skb-lock .skb-page .pl-frag-grid,
  body.pl-create-lock.skb-lock .skb-page .pl-frag-grid.pl-note-grid--scroll,
  body.pl-create-lock.skb-lock .skb-page .pl-frag-grid.is-compact,
  body.pl-create-lock.skb-lock .skb-page .pl-note-grid,
  body.pl-create-lock.skb-lock .skb-page .pl-note-grid.pl-note-grid--scroll,
  body.pl-create-lock.skb-lock .skb-page .pl-scent-var-card .pl-frag-grid,
  body.pl-create-lock.skb-lock .skb-page .pl-scent-var-card .pl-frag-grid.is-compact {
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    gap: 0.45rem !important;
    row-gap: 0.5rem !important;
    column-gap: 0.45rem !important;
  }
  body.pl-create-lock.skb-lock .skb-page .pl-frag-card__label,
  body.pl-create-lock.skb-lock .skb-page .pl-frag-card .pl-frag-card__label {
    font-size: 0.62rem !important;
    line-height: 1.2 !important;
  }
  body.pl-create-lock.skb-lock .skb-page .pl-frag-card__sub,
  body.pl-create-lock.skb-lock .skb-page .pl-frag-card .pl-frag-card__sub {
    font-size: 0.55rem !important;
  }
  body.pl-create-lock.skb-lock .skb-page .pl-note-card__label {
    font-size: 0.62rem !important;
  }
  body.pl-create-lock.skb-lock .skb-page .pl-frag-grid,
  body.pl-create-lock.skb-lock .skb-page .pl-note-grid {
    align-items: stretch !important;
    grid-auto-rows: 1fr !important;
  }
  body.pl-create-lock.skb-lock .skb-page .pl-frag-card,
  body.pl-create-lock.skb-lock .skb-page .pl-frag-card--brand,
  body.pl-create-lock.skb-lock .skb-page .pl-note-card {
    height: 100% !important;
    min-height: 0 !important;
    aspect-ratio: 3 / 4 !important;
    overflow: hidden !important;
  }
}

.skb-img-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 4rem;
  color: #b0aaa2;
  font-size: 1.5rem;
  background: rgba(31, 36, 40, 0.04);
}

.skb-page .pl-scent-panel__nav {
  display: flex;
  gap: 0.55rem;
  margin-top: 0.65rem;
  position: sticky;
  bottom: 0;
  z-index: 3;
  padding: 0.55rem 0.15rem 0.15rem;
  background: linear-gradient(180deg, rgba(251, 250, 247, 0) 0%, #fbfaf7 22%, #fbfaf7 100%);
  flex: 0 0 auto;
  align-items: stretch;
}
.skb-page .pl-nav-btn {
  font-size: 0.82rem !important;
  padding: 0.55rem 1rem !important;
  min-height: 2.55rem !important;
  line-height: 1.2 !important;
  letter-spacing: 0.06em !important;
  border-radius: 0.4rem !important;
  font-weight: 600 !important;
}
.skb-page .pl-nav-btn--ghost {
  font-weight: 500 !important;
  border: 1.5px solid rgba(95, 146, 168, 0.4) !important;
  color: #3D6A7C !important;
  background: rgba(244, 239, 230, 0.55) !important;
  border-radius: 0.45rem !important;
}
.skb-page .pl-nav-btn--ghost:hover {
  border-color: #C4A574 !important;
  background: rgba(196, 165, 116, 0.35) !important;
  color: #1A1814 !important;
}
.skb-page .pl-nav-btn--primary {
  background: #C4A574 !important;
  color: #1A1814 !important;
  border: 1.5px solid #C4A574 !important;
  border-radius: 0.45rem !important;
  box-shadow: none;
  margin-left: auto;
}
.skb-page .pl-nav-btn--primary:hover {
  background: rgba(196, 165, 116, 0.85) !important;
  border-color: #C4A574 !important;
  color: #1A1814 !important;
  filter: none;
}

/* Match Create: solid border only — no outline/glow ring (those overlap neighbors) */
body.pl-create-lock.skb-lock .skb-page .pl-frag-card,
body.pl-create-lock.skb-lock .skb-page .pl-note-card {
  border: 1.5px solid rgba(31, 36, 40, 0.12) !important;
  outline: none !important;
}
body.pl-create-lock.skb-lock .skb-page .pl-frag-card.is-selected,
body.pl-create-lock.skb-lock .skb-page .pl-note-card.is-selected {
  border: 1.5px solid var(--skb-sage) !important;
  outline: none !important;
  background: rgba(30, 90, 140, 0.06) !important;
  box-shadow: none !important;
}
/* Beat create-lock 10-up gap: 0.4rem (overlaps selected borders on desktop) */
body.pl-create-lock.skb-lock .skb-page .pl-note-grid,
body.pl-create-lock.skb-lock .skb-page .pl-note-grid.pl-note-grid--scroll,
body.pl-create-lock.skb-lock .skb-page .pl-notes-layer .pl-note-grid,
body.pl-create-lock.skb-lock .skb-page .pl-notes-layer .pl-note-grid.pl-note-grid--scroll {
  gap: 0.85rem !important;
  row-gap: 0.9rem !important;
  column-gap: 0.85rem !important;
}
/* Path step (all sizes): full-bleed cover + cream wash; desktop becomes 3-up below */
.skb-page .pl-scent-panel > .pl-choices--path:not([hidden]) {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  max-width: none;
  padding: 0;
  overflow: hidden;
  -webkit-overflow-scrolling: touch;
}
.skb-page .pl-scent-panel > .pl-choices--path:not([hidden]) .pl-choice {
  position: relative !important;
  display: block !important;
  grid-template-columns: none !important;
  grid-template-rows: none !important;
  flex: 1 1 0;
  min-height: 0;
  height: auto;
  padding: 0 !important;
  gap: 0 !important;
  overflow: hidden !important;
  border-radius: 0.55rem;
  border: 1.5px solid rgba(31, 36, 40, 0.12);
  background: #efebe4;
  text-align: left;
  justify-items: stretch;
  align-content: stretch;
}
.skb-page .pl-scent-panel > .pl-choices--path:not([hidden]) .pl-choice:hover {
  border-color: rgba(30, 90, 140, 0.55);
}
.skb-page .pl-scent-panel > .pl-choices--path:not([hidden]) .pl-choice.is-selected {
  border-color: var(--skb-sage);
  border-width: 2px;
  background: #efebe4 !important;
  box-shadow: 0 0 0 1px rgba(30, 90, 140, 0.35);
}
.skb-page .pl-scent-panel > .pl-choices--path:not([hidden]) .pl-choice__media {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  aspect-ratio: auto !important;
  margin: 0 !important;
  border-radius: 0 !important;
  overflow: hidden !important;
  background: #efebe4;
  flex-shrink: 0;
}
.skb-page .pl-scent-panel > .pl-choices--path:not([hidden]) .pl-choice__media img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
}
/* Mobile default: bottom cream wash (readable, user-approved) */
.skb-page .pl-scent-panel > .pl-choices--path:not([hidden]) .pl-choice__text {
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  inset: auto 0 0 0 !important;
  z-index: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 0.25rem;
  width: 100%;
  box-sizing: border-box;
  padding: 2.35rem 0.9rem 0.9rem;
  text-align: left;
  background: linear-gradient(
    180deg,
    rgba(245, 242, 237, 0) 0%,
    rgba(245, 242, 237, 0.35) 28%,
    rgba(245, 242, 237, 0.82) 68%,
    rgba(245, 242, 237, 0.94) 100%
  );
}
.skb-page .pl-scent-panel > .pl-choices--path:not([hidden]) .pl-choice__label,
.skb-page .pl-scent-panel > .pl-choices--path:not([hidden]) .pl-choice__hint {
  position: static !important;
  inset: auto !important;
  z-index: auto !important;
}
.skb-page .pl-scent-panel > .pl-choices--path:not([hidden]) .pl-choice__label {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.12rem;
  font-weight: 550;
  line-height: 1.2;
  color: #1F2428;
  text-shadow:
    0 1px 0 rgba(244, 240, 235, 0.75),
    0 0 1.25rem rgba(244, 240, 235, 0.55);
}
.skb-page .pl-scent-panel > .pl-choices--path:not([hidden]) .pl-choice__hint {
  font-family: Outfit, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.76rem;
  line-height: 1.35;
  max-width: none;
  color: #3d3a35;
  text-shadow:
    0 1px 0 rgba(244, 240, 235, 0.85),
    0 0 1rem rgba(244, 240, 235, 0.65);
}

@media (min-width: 769px) {
  body.pl-create-lock.skb-lock .skb-page .pl-note-grid,
  body.pl-create-lock.skb-lock .skb-page .pl-note-grid.pl-note-grid--scroll,
  body.pl-create-lock.skb-lock .skb-page .pl-notes-layer .pl-note-grid,
  body.pl-create-lock.skb-lock .skb-page .pl-notes-layer .pl-note-grid.pl-note-grid--scroll {
    gap: 0.85rem !important;
    row-gap: 0.9rem !important;
    column-gap: 0.85rem !important;
  }

  /* Path step desktop: three equal photo panels filling the flip card to the bottom */
  .skb-page .pl-scent-panel > .pl-choices--path:not([hidden]) {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: minmax(0, 1fr);
    align-items: stretch;
    overflow: hidden;
    flex: 1 1 auto;
    min-height: 0;
  }
  .skb-page .pl-scent-panel > .pl-choices--path:not([hidden]) .pl-choice {
    flex: none;
    height: 100%;
    min-height: 0;
    align-self: stretch;
  }
  /* Centered title + hint over soft radial cream wash — photo still frames the edges */
  .skb-page .pl-scent-panel > .pl-choices--path:not([hidden]) .pl-choice__text {
    inset: 0 !important;
    left: 0 !important;
    right: 0 !important;
    top: 0 !important;
    bottom: 0 !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center;
    gap: 0.45rem;
    padding: 1.5rem 1.35rem;
    background:
      radial-gradient(
        ellipse 82% 52% at 50% 50%,
        rgba(245, 242, 237, 0.98) 0%,
        rgba(245, 242, 237, 0.92) 34%,
        rgba(245, 242, 237, 0.55) 58%,
        rgba(245, 242, 237, 0.12) 78%,
        rgba(245, 242, 237, 0) 100%
      );
  }
  .skb-page .pl-scent-panel > .pl-choices--path:not([hidden]) .pl-choice__label {
    font-size: clamp(1.15rem, 1.35vw, 1.45rem);
    font-weight: 600;
    max-width: 18ch;
  }
  .skb-page .pl-scent-panel > .pl-choices--path:not([hidden]) .pl-choice__hint {
    font-size: 0.8rem;
    line-height: 1.4;
    max-width: 30ch;
    margin-inline: auto;
  }
}

/* Stacked path cards (phone + narrow tablet): keep library bottle in frame */
@media (max-width: 768px) {
  /*
   * Library still-life is square; stacked cards are wide. Center-cover chops the vial.
   * Bias crop to the corked bottle (right-center, slightly high) so it sits above the wash.
   */
  .skb-page .pl-scent-panel > .pl-choices--path:not([hidden]) .pl-choice--library .pl-choice__media img {
    object-fit: cover !important;
    object-position: 58% 58% !important;
    transform: scale(1.08);
    transform-origin: 58% 55%;
  }
  /* Centered title + hint, darker type — same feel as desktop path panels */
  .skb-page .pl-scent-panel > .pl-choices--path:not([hidden]) .pl-choice__text {
    inset: 0 !important;
    left: 0 !important;
    right: 0 !important;
    top: 0 !important;
    bottom: 0 !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    gap: 0.3rem;
    padding: 1.15rem 0.85rem !important;
    background:
      radial-gradient(
        ellipse 88% 58% at 50% 50%,
        rgba(245, 242, 237, 0.97) 0%,
        rgba(245, 242, 237, 0.9) 36%,
        rgba(245, 242, 237, 0.5) 60%,
        rgba(245, 242, 237, 0.1) 80%,
        rgba(245, 242, 237, 0) 100%
      ) !important;
  }
  .skb-page .pl-scent-panel > .pl-choices--path:not([hidden]) .pl-choice__label {
    color: #1F2428 !important;
    font-weight: 600;
    text-align: center;
    max-width: 18ch;
  }
  .skb-page .pl-scent-panel > .pl-choices--path:not([hidden]) .pl-choice__hint {
    color: #1F2428 !important;
    text-align: center;
    margin-inline: auto;
    max-width: 28ch;
    font-weight: 450;
  }
  .skb-page .pl-scent-panel > .pl-choices--path:not([hidden]) .pl-choice--notes .pl-choice__media img {
    object-position: center 42% !important;
  }
  .skb-page .pl-scent-panel > .pl-choices--path:not([hidden]) .pl-choice--hybrid .pl-choice__media img {
    object-position: center 40% !important;
  }
}

.skb-err-inline {
  color: #9b2c2c;
  font-size: 0.85rem;
  margin: 0.35rem 0 0;
  display: none;
}
.skb-err-inline.is-on { display: block; }

.skb-page--checkout .skb-host {
  display: none !important;
}
.skb-page--checkout .skb-flow {
  flex: 0 0 auto;
}
.skb-page--checkout .skb-progress {
  max-width: none;
}

.skb-checkout {
  display: none;
  border: 1px solid var(--skb-line);
  border-radius: 0.65rem;
  background: #fbfaf7;
  padding: 1rem 1.15rem 1.15rem;
  margin-top: 0.35rem;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1 1 auto;
  min-height: 0;
  max-width: none;
  width: 100%;
}
.skb-checkout.is-on { display: flex; flex-direction: column; }

.skb-checkout__nav {
  display: flex;
  gap: 0.55rem;
  margin: 0 0 0.75rem;
  flex-wrap: wrap;
  flex: 0 0 auto;
}
.skb-checkout__nav:empty { display: none; }

.skb-checkout h2,
.skb-co-step__title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
  font-size: clamp(1.45rem, 2vw, 1.75rem);
  margin: 0 0 0.35rem;
}

.skb-ship {
  font-size: 0.88rem;
  color: #3A4A56;
  margin: 0 0 0.85rem;
}

.skb-local-note {
  margin: 0;
  font-size: 0.9rem;
  color: #5c564e;
}

.skb-checkout__flip {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.skb-co-step {
  display: none;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 0;
  flex: 1 1 auto;
}
.skb-co-step.is-on {
  display: flex;
}
.skb-co-step.is-flip-next {
  animation: pl-qty-flip-next 0.42s ease;
}
.skb-co-step.is-flip-prev {
  animation: pl-qty-flip-prev 0.42s ease;
}

.skb-checkout__col-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
  font-size: 1.25rem;
  margin: 0 0 0.75rem;
  color: var(--skb-ink);
}

.skb-checkout__ship,
.skb-checkout__invoice,
.skb-checkout__sign,
.skb-checkout__pay {
  display: grid;
  gap: 0.85rem;
  min-width: 0;
}

.skb-field {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
}

.skb-form .ecn-phone {
  width: 100%;
  max-width: 100%;
}
.skb-form .ecn-phone__hint {
  font-size: 0.72rem;
  line-height: 1.4;
  color: var(--skb-muted);
  margin: 0.35rem 0 0;
}
.skb-form .ecn-phone__error {
  font-size: 0.75rem;
  color: #9b2c2c;
  margin: 0.3rem 0 0;
}
.skb-form .ecn-phone__shell {
  width: 100%;
}
.skb-form .ecn-phone--country-synced .ecn-phone__country {
  display: none;
}
.skb-invoice-card {
  border: 1px solid rgba(31, 36, 40, 0.14);
  border-radius: 0.55rem;
  background: #fff;
  padding: 0.35rem;
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--skb-ink);
  max-height: min(32rem, 58vh);
  overflow: auto;
  flex: 1 1 auto;
  min-height: 8rem;
}
.skb-invoice-card .sdk-inv {
  max-width: none !important;
  padding: 0.75rem 0.85rem !important;
  border: 0 !important;
}
.skb-invoice-card:empty {
  min-height: 6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--skb-muted);
}
.skb-invoice-card:empty::before {
  content: "Invoice preview will appear here…";
  font-size: 0.85rem;
}

.skb-sig-label {
  font-size: 0.8rem;
  color: #5c564e;
  display: block;
  margin: 0;
}
.skb-clear-sig {
  margin-top: 0.15rem;
  width: fit-content;
}
.skb-sig-legal {
  font-size: 0.82rem;
  color: #5c564e;
  margin: 0.15rem 0 0;
  line-height: 1.45;
}

.skb-form {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}

.skb-form label {
  font-size: 0.78rem;
  color: var(--skb-muted);
  display: block;
  margin: 0;
  line-height: 1.25;
}

.skb-form input,
.skb-form select,
.skb-form textarea {
  width: 100%;
  border: 1px solid rgba(31, 36, 40, 0.15);
  border-radius: 0.45rem;
  padding: 0.55rem 0.65rem;
  font: inherit;
  background: #fff;
  margin: 0;
  line-height: 1.35;
}

.skb-err {
  color: #9b2c2c;
  font-size: 0.88rem;
  margin: 0.4rem 0;
  display: none;
}
.skb-err.is-on { display: block; }

.skb-sig-wrap {
  border: 1px solid rgba(31, 36, 40, 0.15);
  border-radius: 0.45rem;
  background: #fff;
  overflow: hidden;
}

.skb-sig-wrap canvas {
  width: 100%;
  height: auto;
  display: block;
  touch-action: none;
  min-height: 10rem;
}

.skb-pay {
  margin-top: 0.35rem;
}

.skb-pay button {
  background: var(--skb-sage);
  color: #fff;
  border: 0;
  border-radius: 0.4rem;
  padding: 0.7rem 1.25rem;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  min-height: 2.7rem;
  width: auto;
  max-width: 22rem;
}

.skb-pay-summary {
  margin: 0;
  font-size: 0.92rem;
  color: #3A4A56;
  line-height: 1.45;
}

/* Create-like lock: no page scroll, no footer */
html.pl-create-lock.skb-lock,
body.pl-create-lock.skb-lock {
  height: 100%;
  max-height: 100dvh;
  overflow: hidden !important;
  overscroll-behavior: none;
}
body.pl-create-lock.skb-lock .site-footer {
  display: none !important;
}
body.pl-create-lock.skb-lock main.skb-shell {
  position: fixed;
  left: 0;
  right: 0;
  top: var(--pl-header-h, 4.75rem);
  bottom: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}
body.pl-create-lock.skb-lock .skb-page {
  flex: 1 1 auto;
  min-height: 0;
  max-width: min(110rem, 100%);
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

@media (max-width: 768px) {
  /* Invoice: full document scaled into the flip — no inner scrollbar */
  .skb-co-step[data-co-step="invoice"].is-on {
    overflow: hidden;
  }
  .skb-co-step[data-co-step="invoice"].is-on .skb-checkout__invoice {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }
  .skb-invoice-card {
    max-height: none;
    overflow: hidden;
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
  }
  .skb-invoice-card .sdk-inv {
    width: 100%;
    transform-origin: top center;
    will-change: transform;
  }
}

@media (max-width: 480px) {
  .skb-page {
    padding: 0.55rem 0.75rem 0.65rem;
    max-width: 100%;
  }

  .skb-back {
    font-size: 0.7rem;
  }

  .skb-title {
    font-size: 0.95rem !important;
    font-weight: 500;
  }

  .skb-page .pl-scent-panel {
    padding: 0.7rem 0.6rem 0.8rem;
    display: flex;
    flex-direction: column;
  }

  /* Path step mobile: equal flex cards fill remaining shell height */
  .skb-page .pl-scent-panel > .pl-choices--path:not([hidden]) {
    overflow: hidden;
  }
  .skb-page .pl-scent-panel > .pl-choices--path:not([hidden]) .pl-choice {
    flex: 1 1 0;
    min-height: 0;
  }
  .skb-page .pl-scent-panel > .pl-choices--path:not([hidden]) .pl-choice__text {
    padding: 1.15rem 0.85rem !important;
  }
  .skb-page .pl-scent-panel > .pl-choices--path:not([hidden]) .pl-choice__label {
    font-size: 1.05rem;
  }
  .skb-page .pl-scent-panel > .pl-choices--path:not([hidden]) .pl-choice__hint {
    font-size: 0.72rem;
    line-height: 1.3;
  }

  /* Fill space above nav — scroll inside grid; no dead band under brands */
  body.pl-create-lock.skb-lock .skb-page .pl-frag-grid,
  body.pl-create-lock.skb-lock .skb-page .pl-frag-grid.pl-note-grid--scroll,
  body.pl-create-lock.skb-lock .skb-page .pl-frag-grid.is-compact,
  body.pl-create-lock.skb-lock .skb-page .pl-note-grid,
  body.pl-create-lock.skb-lock .skb-page .pl-note-grid.pl-note-grid--scroll,
  body.pl-create-lock.skb-lock .skb-page .pl-scent-var-card .pl-frag-grid,
  body.pl-create-lock.skb-lock .skb-page .pl-scent-var-card .pl-frag-grid.is-compact {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    grid-template-rows: none !important;
    grid-auto-rows: max-content !important;
    align-content: start !important;
    align-items: start !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    height: auto !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    max-height: none !important;
    gap: 0.5rem !important;
    row-gap: 0.65rem !important;
    column-gap: 0.5rem !important;
    padding: 0.15rem 0.1rem 2.75rem !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  body.pl-create-lock.skb-lock .skb-page .pl-scent-panel__pick:not([hidden]),
  body.pl-create-lock.skb-lock .skb-page [data-scent-pick]:not([hidden]),
  body.pl-create-lock.skb-lock .skb-page [data-frag-root]:not([hidden]),
  body.pl-create-lock.skb-lock .skb-page .pl-frag-studio:not([hidden]) {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
  }
  body.pl-create-lock.skb-lock .skb-page [data-frag-root][hidden],
  body.pl-create-lock.skb-lock .skb-page .pl-frag-studio[hidden],
  body.pl-create-lock.skb-lock .skb-page .pl-scent-panel__pick[hidden],
  body.pl-create-lock.skb-lock .skb-page [data-scent-pick][hidden] {
    display: none !important;
    flex: 0 0 0 !important;
    min-height: 0 !important;
    height: 0 !important;
    max-height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
  }

  body.pl-create-lock.skb-lock .skb-page .pl-frag-card,
  body.pl-create-lock.skb-lock .skb-page .pl-frag-card--brand,
  body.pl-create-lock.skb-lock .skb-page .pl-note-card {
    min-width: 0 !important;
    min-height: max-content !important;
    height: auto !important;
    align-self: start !important;
    overflow: visible !important;
    box-sizing: border-box !important;
  }

  body.pl-create-lock.skb-lock .skb-page .pl-frag-card__inner,
  body.pl-create-lock.skb-lock .skb-page .pl-note-card__inner {
    display: grid !important;
    grid-template-rows: auto auto !important;
    height: auto !important;
  }

  body.pl-create-lock.skb-lock .skb-page .pl-frag-card__media,
  body.pl-create-lock.skb-lock .skb-page .pl-note-card__media {
    height: 96px !important;
    min-height: 96px !important;
    max-height: 96px !important;
    overflow: hidden !important;
  }

  body.pl-create-lock.skb-lock .skb-page .pl-frag-card__label,
  body.pl-create-lock.skb-lock .skb-page .pl-note-card__label {
    font-size: 0.65rem !important;
    line-height: 1.2 !important;
    max-height: none !important;
    overflow: visible !important;
    white-space: normal !important;
    padding: 0.25rem 0.15rem 0.35rem !important;
  }

  .skb-page .pl-scent-panel__nav {
    margin: 0.45rem -0.1rem 0;
    padding: 0.4rem 0.1rem 0.05rem;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }

  .skb-page .pl-nav-btn {
    flex: 1 1 auto;
    min-width: 0;
    justify-content: center;
    text-align: center;
  }

  .skb-pay button {
    max-width: none;
    width: 100%;
  }

  .skb-sub {
    font-size: 0.82rem;
  }

  .skb-checkout {
    max-width: none;
    padding: 0.85rem 0.75rem 1rem;
  }
}

/* ==========================================================================
   20260913mfix18  Discovery kit fragrance library: match Create tight cards
   ========================================================================== */
body.pl-create-lock.skb-lock .skb-page .pl-frag-grid,
body.pl-create-lock.skb-lock .skb-page .pl-frag-grid.pl-note-grid--scroll,
body.pl-create-lock.skb-lock .skb-page .pl-frag-grid.is-compact,
body.pl-create-lock.skb-lock .skb-page .pl-scent-var-card .pl-frag-grid,
body.pl-create-lock.skb-lock .skb-page .pl-scent-var-card .pl-frag-grid.is-compact {
  align-items: start !important;
  justify-items: stretch !important;
  grid-auto-rows: max-content !important;
}

body.pl-create-lock.skb-lock .skb-page .pl-frag-card,
body.pl-create-lock.skb-lock .skb-page .pl-frag-card--brand,
body.pl-create-lock.skb-lock .skb-page .pl-frag-card--compact {
  aspect-ratio: auto !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  align-self: start !important;
  overflow: hidden !important;
  padding: 0.2rem 0.15rem 0.25rem !important;
  text-align: center !important;
}

body.pl-create-lock.skb-lock .skb-page .pl-frag-card__inner {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 0 !important;
  height: auto !important;
  grid-template-rows: none !important;
}

body.pl-create-lock.skb-lock .skb-page .pl-frag-card__media {
  flex: 0 0 auto !important;
  width: 100% !important;
  aspect-ratio: 1 / 1 !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
}

body.pl-create-lock.skb-lock .skb-page .pl-frag-card__text {
  flex: 0 0 auto !important;
  width: 100% !important;
  min-height: 0 !important;
  height: auto !important;
  padding: 0.2rem 0.1rem 0 !important;
  text-align: center !important;
  background: #fff !important;
}

body.pl-create-lock.skb-lock .skb-page .pl-frag-card__label,
body.pl-create-lock.skb-lock .skb-page .pl-frag-card__sub {
  min-height: 0 !important;
  max-height: none !important;
  height: auto !important;
  text-align: center !important;
  margin: 0 !important;
  padding: 0 !important;
}

@media (max-width: 768px) {
  body.pl-create-lock.skb-lock .skb-page .pl-frag-card__media {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: 1 / 1 !important;
  }
}

/* Inactive note layers (middle/base when Top is selected) must stay hidden */
body.pl-create-lock.skb-lock .skb-page .pl-notes-layer[hidden],
.skb-page .pl-notes-layer[hidden] {
  display: none !important;
  flex: 0 0 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
body.pl-create-lock.skb-lock .skb-page .pl-notes-layer:not([hidden]) {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

/* Unified fragrance/brand heights  match Perfume Oils catalogue (override prior max-content) */
body.pl-create-lock.skb-lock .skb-page .pl-frag-grid,
body.pl-create-lock.skb-lock .skb-page .pl-frag-grid.is-compact {
  align-items: stretch !important;
  justify-items: stretch !important;
  grid-auto-rows: auto !important;
}
body.pl-create-lock.skb-lock .skb-page .pl-frag-card,
body.pl-create-lock.skb-lock .skb-page .pl-frag-card--brand,
body.pl-create-lock.skb-lock .skb-page .pl-frag-card--compact {
  aspect-ratio: 1 / 1.12 !important;
  height: auto !important;
  width: 100% !important;
  align-self: stretch !important;
  overflow: hidden !important;
  background: #fff !important;
  padding: 0.2rem 0.2rem 0.22rem !important;
}
@media (min-width: 1024px) {
  body.pl-create-lock.skb-lock .skb-page .pl-frag-card,
  body.pl-create-lock.skb-lock .skb-page .pl-frag-card--brand,
  body.pl-create-lock.skb-lock .skb-page .pl-frag-card--compact {
    aspect-ratio: 1 / 1.1 !important;
  }
}
body.pl-create-lock.skb-lock .skb-page .pl-frag-card__inner {
  height: 100% !important;
  flex: 1 1 auto !important;
  align-items: stretch !important;
}
body.pl-create-lock.skb-lock .skb-page .pl-frag-card__media {
  flex: 1 1 auto !important;
  aspect-ratio: auto !important;
  min-height: 0 !important;
  height: auto !important;
  max-height: none !important;
}
body.pl-create-lock.skb-lock .skb-page .pl-frag-card__text {
  flex: 0 0 auto !important;
  min-height: calc(1.15em * 2 + 0.9em) !important;
  max-height: calc(1.15em * 2 + 0.95em) !important;
  height: auto !important;
  overflow: hidden !important;
  padding: 0.05rem 0.06rem 0 !important;
}
body.pl-create-lock.skb-lock .skb-page .pl-frag-card__label,
body.pl-create-lock.skb-lock .skb-page .pl-frag-card .pl-frag-card__label {
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
  line-clamp: 2 !important;
  max-height: calc(1.15em * 2) !important;
  overflow: hidden !important;
  font-size: 0.58rem !important;
  line-height: 1.15 !important;
}
body.pl-create-lock.skb-lock .skb-page .pl-frag-card__sub,
body.pl-create-lock.skb-lock .skb-page .pl-frag-card .pl-frag-card__sub {
  white-space: nowrap !important;
  text-overflow: ellipsis !important;
  overflow: hidden !important;
  max-height: 1.15em !important;
  font-size: 0.48rem !important;
}

/* Fragrance names: 4-line clamp, taller equal cards (match Create mfix23) */
body.pl-create-lock.skb-lock .skb-page .pl-frag-card,
body.pl-create-lock.skb-lock .skb-page .pl-frag-card--brand,
body.pl-create-lock.skb-lock .skb-page .pl-frag-card--compact {
  aspect-ratio: 1 / 1.28 !important;
}
@media (min-width: 1024px) {
  body.pl-create-lock.skb-lock .skb-page .pl-frag-card,
  body.pl-create-lock.skb-lock .skb-page .pl-frag-card--brand,
  body.pl-create-lock.skb-lock .skb-page .pl-frag-card--compact {
    aspect-ratio: 1 / 1.22 !important;
  }
}
body.pl-create-lock.skb-lock .skb-page .pl-frag-card__text {
  min-height: calc(1.12em * 4 + 0.85em) !important;
  max-height: calc(1.12em * 4 + 0.95em) !important;
}
body.pl-create-lock.skb-lock .skb-page .pl-frag-card__label,
body.pl-create-lock.skb-lock .skb-page .pl-frag-card .pl-frag-card__label {
  -webkit-line-clamp: 4 !important;
  line-clamp: 4 !important;
  max-height: calc(1.12em * 4) !important;
  font-size: 0.52rem !important;
  line-height: 1.12 !important;
}

/* mfix24  tighten brand/frag cards (undo tall empty slabs) */
body.pl-create-lock.skb-lock .skb-page .pl-frag-card,
body.pl-create-lock.skb-lock .skb-page .pl-frag-card--brand,
body.pl-create-lock.skb-lock .skb-page .pl-frag-card--compact {
  aspect-ratio: 1 / 1.12 !important;
  padding: 0.18rem 0.18rem 0.2rem !important;
}
@media (min-width: 1024px) {
  body.pl-create-lock.skb-lock .skb-page .pl-frag-card,
  body.pl-create-lock.skb-lock .skb-page .pl-frag-card--brand,
  body.pl-create-lock.skb-lock .skb-page .pl-frag-card--compact {
    aspect-ratio: 1 / 1.1 !important;
  }
}
body.pl-create-lock.skb-lock .skb-page .pl-frag-card__media {
  flex: 1 1 auto !important;
  aspect-ratio: auto !important;
  min-height: 0 !important;
}
body.pl-create-lock.skb-lock .skb-page .pl-frag-card__text {
  min-height: 0 !important;
  max-height: none !important;
  height: auto !important;
  padding: 0.12rem 0.08rem 0.02rem !important;
}
body.pl-create-lock.skb-lock .skb-page .pl-frag-card__label,
body.pl-create-lock.skb-lock .skb-page .pl-frag-card .pl-frag-card__label {
  -webkit-line-clamp: 3 !important;
  line-clamp: 3 !important;
  max-height: calc(1.15em * 3) !important;
  font-size: 0.58rem !important;
  line-height: 1.15 !important;
}

/* mfix25  Desktop notes: never use 1fr auto-rows (collapses to empty squares) */
@media (min-width: 769px) {
  body.pl-create-lock.skb-lock .skb-page .pl-note-grid,
  body.pl-create-lock.skb-lock .skb-page .pl-note-grid.pl-note-grid--scroll,
  body.pl-create-lock.skb-lock .skb-page .pl-notes-layer .pl-note-grid,
  body.pl-create-lock.skb-lock .skb-page .pl-notes-layer .pl-note-grid.pl-note-grid--scroll {
    align-items: start !important;
    grid-auto-rows: max-content !important;
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  }
  body.pl-create-lock.skb-lock .skb-page .pl-note-card {
    aspect-ratio: 1 / 1.12 !important;
    height: auto !important;
    min-height: 0 !important;
    align-self: start !important;
    overflow: hidden !important;
  }
  body.pl-create-lock.skb-lock .skb-page .pl-note-card__media {
    flex: 1 1 auto !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
  }
  body.pl-create-lock.skb-lock .skb-page .pl-note-card__label {
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    font-size: 0.62rem !important;
    line-height: 1.15 !important;
    max-height: calc(1.15em * 2) !important;
    overflow: hidden !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: #1F2428 !important;
  }
}
