/* ====================================================================
   SKS Party Outfit Builder — scoped under .sks-party
   ==================================================================== */

.sks-party {
  --sks-paper: #F5F0E8;
  --sks-paper-warm: #E8DFD0;
  --sks-paper-deeper: #DDD0BB;
  --sks-white: #FFFFFF;
  --sks-ink: #2C3E50;
  --sks-ink-soft: #4A4440;
  --sks-ink-mid: #7A726B;
  --sks-ink-faint: #9A9088;
  --sks-brand: #B8520A;
  --sks-brand-deep: #9A4308;
  --sks-navy: #1E2D3B;
  --sks-gold: #C9A84C;
  --sks-cream: #E8C9A8;
  --sks-line: #D5CABA;
  --sks-line-soft: #E2DACB;
  --sks-success: #1A5C2A;
  --sks-crimson: #8B1F1F;
  --sh-sm: 0 1px 3px rgba(35, 40, 49, 0.08);
  --sh-md: 0 8px 24px rgba(35, 40, 49, 0.10);
  --sh-lg: 0 24px 60px rgba(35, 40, 49, 0.16);

  font-family: 'Jost', system-ui, sans-serif;
  background: var(--sks-paper);
  color: var(--sks-ink-soft);
  line-height: 1.6;
}

.sks-party *,
.sks-party *::before,
.sks-party *::after {
  box-sizing: border-box;
}

.sks-party h1,
.sks-party h2,
.sks-party h3,
.sks-party h4 {
  font-family: 'Playfair Display', Georgia, serif;
  margin-top: 0px !important;
  color: var(--sks-ink);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -.01em;
}

.sks-party img,
.sks-party svg {
  display: block;
  max-width: 100%;
}

.sks-party button {
  font-family: inherit;
  cursor: pointer;
}

.sks-party input,
.sks-party select {
  font-family: inherit;
}

.sks-party :focus-visible {
  outline: 2px solid var(--sks-brand);
  outline-offset: 2px;
}

/* Form fields don't get the focus ring/glow — the border-colour change is the
   only focus cue on inputs, dropdowns and textareas. */
.sks-party input:focus,
.sks-party input:focus-visible,
.sks-party select:focus,
.sks-party select:focus-visible,
.sks-party textarea:focus,
.sks-party textarea:focus-visible {
  outline: none;
  box-shadow: none;
}

.sks-party-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

@media (max-width: 720px) {
  .sks-party-container {
    padding: 0 18px;
  }
}

.sks-party-eyebrow {
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--sks-brand);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.sks-party-eyebrow::after {
  content: '';
  width: 34px;
  height: 1px;
  background: var(--sks-brand);
}

.sks-party a {
  color: var(--sks-brand);
}

.sks-party-h2 {
  font-size: clamp(32px, 4.6vw, 56px);
  font-weight: 400;
  margin-bottom: 18px;
}

.sks-party-h2 em {
  font-style: italic;
  color: var(--sks-brand);
}

.sks-party-shead {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 50px;
}

.sks-party-shead p {
  color: var(--sks-ink-soft);
  font-size: 17px;
}

/* BUTTONS */
.sks-party-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 28px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .05em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  transition: all .18s;
  cursor: pointer;
}

.sks-party-btn-primary {
  background: var(--sks-brand) !important;
  color: #fff !important;
  border: none !important;
}

.sks-party-btn-primary:hover {
  background: var(--sks-brand-deep) !important;
  color: #fff !important;
  transform: translateY(-1px);
}

.sks-party-btn-ghost {
  background: transparent !important;
  color: var(--sks-ink) !important;
  border: 1px solid var(--sks-ink) !important;
}

.sks-party-btn-ghost:hover {
  background: var(--sks-ink) !important;
  color: var(--sks-paper) !important;
}

/* HERO */
.sks-party-hero {
  padding: 60px 0 52px;
  background: var(--sks-paper);
}

.sks-party-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}

@media (max-width: 940px) {
  .sks-party-hero {
    padding: 36px 0;
  }

  .sks-party-hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.sks-party-hero-h1 {
  font-size: clamp(38px, 5.4vw, 70px);
  font-weight: 400;
  margin-bottom: 20px;
}

.sks-party-hero-h1 em {
  font-style: italic;
  color: var(--sks-brand);
}

.sks-party-hero-sub {
  font-size: 18px;
  color: var(--sks-ink-soft);
  max-width: 490px;
  margin-bottom: 26px;
}

.sks-party-hero-offer {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  padding: 13px 18px;
  background: var(--sks-paper-warm);
  border: 1px solid var(--sks-line);
  margin-bottom: 24px;
}

.sks-party-hero-offer-from {
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--sks-ink-mid);
}

.sks-party-hero-offer-price {
  font-family: 'Playfair Display', serif;
  font-size: 34px;
  font-weight: 600;
  color: var(--sks-ink);
}

.sks-party-hero-offer-save {
  font-size: 11px;
  letter-spacing: .04em;
  text-transform: uppercase;
  background: var(--sks-crimson);
  color: var(--sks-paper);
  padding: 4px 9px;
}

.sks-party-hero-ctas {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.sks-party-hero-proof {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--sks-ink-soft);
  flex-wrap: wrap;
}

.sks-party-hero-proof strong {
  color: var(--sks-gold);
  font-weight: 700;
}

/* Clickable rating that opens the all-reviews popup. Reset button chrome so
   it reads as inline copy sitting next to the trailing text. */
.sks-party-proof-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: none;
  border: 0;
  padding: 0;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.sks-party-proof-btn:hover span:last-child {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.sks-party-proof-btn:focus-visible {
  outline: 2px solid var(--sks-gold);
  outline-offset: 3px;
  border-radius: 3px;
}

/* Live store rating: two stacked ★★★★★ layers, the filled one clipped to
   rating/5 by sks-jm-store-numbers.js. Starts at 0 width until the fetch fills it. */
.sks-party-stars {
  position: relative;
  display: inline-block;
  white-space: nowrap;
  line-height: 1;
  letter-spacing: 1px;
  font-weight: 700;
}

.sks-party-stars-bg {
  color: rgba(122, 114, 107, 0.3);
}

.sks-party-stars-fg {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  overflow: hidden;
  color: var(--sks-gold);
}

.sks-party-hero-stats {
  display: flex;
  gap: 30px;
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid var(--sks-line);
  flex-wrap: wrap;
}

.sks-party-hero-stat b {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  font-weight: 600;
  color: var(--sks-ink);
  display: block;
}

.sks-party-hero-stat span {
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--sks-ink-mid);
}

@media (max-width: 620px) {
  .sks-party-hero-stats {
    flex-wrap: nowrap;
    gap: 12px;
  }

  .sks-party-hero-stat {
    flex: 1 1 0;
    min-width: 0;
  }
}

.sks-party-hero-frame {
  background: var(--sks-paper-warm);
  border-radius: 8px;
  padding: 22px;
  box-shadow: var(--sh-md);
}

.sks-party-hero-frame img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.sks-party-hero-render {
  aspect-ratio: 4/5;
  background: var(--sks-paper-deeper);
  border-radius: 4px;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  display: block !important;
}

.sks-party-hero-cap {
  margin-top: 14px;
  font-size: 13px;
  color: var(--sks-ink-mid);
  text-align: center;
}

.sks-party-hero-cap b {
  color: var(--sks-ink);
  font-weight: 600;
}

/* TRUST */
.sks-party-trust {
  background: var(--sks-navy);
  color: var(--sks-paper);
  padding: 18px 0;
}

.sks-party-trust-row {
  display: flex;
  justify-content: center;
  gap: 36px;
  flex-wrap: wrap;
  font-size: 13px;
}

.sks-party-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.sks-party-trust-item b {
  font-weight: 500;
}

.sks-party-trust-item svg {
  width: 16px;
  height: 16px;
  color: var(--sks-cream);
}

/* Mobile only: the four points rotate one at a time with a fade, like the
   announcement bar. JS adds .is-rotating (skipped for reduced-motion or a
   single point), so without it the strip stays as the normal wrapped stack. */
@media (max-width: 749px) {
  .sks-party-trust-row.is-rotating {
    position: relative;
    display: block;
    height: 22px;
  }
  .sks-party-trust-row.is-rotating .sks-party-trust-item {
    position: absolute;
    inset: 0;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity .55s ease;
    pointer-events: none;
  }
  .sks-party-trust-row.is-rotating .sks-party-trust-item[data-active] {
    opacity: 1;
    pointer-events: auto;
  }
}

/* CONFIG (builder) */
.sks-party-cfg-wrap {
  padding: 80px 0;
}

.sks-party-section {
  padding: 80px 0;
}

.sks-party-section-alt {
  background: var(--sks-paper-warm);
}

.sks-party-section-dark {
  background: var(--sks-navy);
  color: var(--sks-paper);
}

.sks-party-section-dark h2,
.sks-party-section-dark h3,
.sks-party-section-dark h4 {
  color: var(--sks-paper);
}

.sks-party-section-dark .sks-party-shead p {
  color: rgba(245, 240, 232, 0.75);
}

.sks-party-config {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 34px;
  align-items: start;
}

@media (max-width: 980px) {
  .sks-party-config {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* LEFT RAIL — framed tartan swatch + summary (matches the mockup rail) */
.sks-party-cfg-preview {
  position: sticky;
  top: 78px;
}

@media (max-width: 980px) {
  .sks-party-cfg-preview {
    position: static;
  }
  /* On mobile the summary/billing box is moved (by JS) to the very end of the
     config, so it sits after the tartan + product selections. */
  .sks-party-config > .sks-party-sum {
    order: 3;
    margin-top: 8px;
  }
}

.sks-party-cfg-render {
  background: var(--sks-paper-warm);
  border: 1px solid var(--sks-line);
  border-radius: 2px;
  padding: 14px;
}

/* IMPORTANT: Dawn theme has `div:empty { display: none }` which would hide this
   before JS populates the background-image. Force display + add a child span
   in the Liquid markup so the div is never `:empty`. */
.sks-party-kilt-render {
  aspect-ratio: 1/1;
  background: var(--sks-paper-deeper);
  border-radius: 2px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  position: relative;
  overflow: hidden;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  display: block !important;
}

.sks-party-render-inner {
  display: block;
  width: 100%;
  height: 100%;
}

.sks-party-cfg-render-cap {
  margin-top: 12px;
  font-size: 13px;
  color: var(--sks-ink-mid);
  text-align: center;
}

.sks-party-cfg-render-cap b {
  color: var(--sks-ink);
}

.sks-party-sum {
  background: var(--sks-white);
  border: 1px solid var(--sks-line);
  border-radius: 2px;
  padding: 24px;
  margin-top: 18px;
}

.sks-party-sum-h {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--sks-line-soft);
  margin-bottom: 14px;
}

.sks-party-sum-h b {
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  color: var(--sks-ink);
  font-weight: 600;
}

.sks-party-sum-h span {
  font-size: 12px;
  color: var(--sks-ink-mid);
}

.sks-party-sum-lines {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
  min-height: 24px;
}

.sks-party-sum-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 13px;
  gap: 12px;
}

.sks-party-sum-line span:first-child {
  color: var(--sks-ink-soft);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sks-party-sum-line small {
  font-size: 11px;
  color: var(--sks-ink-faint);
}

.sks-party-sum-line span:last-child {
  font-family: 'Playfair Display', serif;
  color: var(--sks-ink);
  font-weight: 600;
}

.sks-party-sum-tot {
  border-top: 1px dashed var(--sks-line);
  padding-top: 14px;
  display: grid;
  gap: 7px;
}

.sks-party-sum-trow {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 13px;
  color: var(--sks-ink-soft);
}

.sks-party-sum-trow.disc {
  color: var(--sks-ink-mid);
}

.sks-party-sum-trow.total {
  padding-top: 11px;
  border-top: 1px solid var(--sks-line);
  font-size: 14px;
  color: var(--sks-ink);
  margin-top: 4px;
}

.sks-party-sum-trow.total strong {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  color: var(--sks-brand);
  font-weight: 600;
}

.sks-party-sum-save {
  font-size: 12px;
  color: var(--sks-success);
  text-align: center;
  margin: 12px 0 0;
  min-height: 18px;
}

.sks-party-sum-cta {
  width: 100%;
  margin-top: 14px;
}

.sks-party-sum-mini {
  list-style: none;
  padding: 14px 0 0;
  margin: 14px 0 0;
  border-top: 1px solid var(--sks-line-soft);
  display: grid;
  gap: 7px;
  font-size: 12px;
  color: var(--sks-ink-mid);
}

.sks-party-sum-mini li {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  line-height: 1.5;
}

.sks-party-sum-mini li.gift {
  color: var(--sks-brand);
  font-weight: 500;
}

/* RIGHT PANEL + TAB BAR (matches the mockup) */
.sks-party-cfg-steps {
  border: 1px solid var(--sks-line);
  border-radius: 2px;
  background: var(--sks-white);
}

.sks-party-stepper {
  display: flex;
  border-bottom: 1px solid var(--sks-line);
}

.sks-party-step-pip {
  flex: 1;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 15px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  cursor: pointer;
  transition: border-color .2s, color .2s;
}

.sks-party-step-pip-bar {
  display: none;
}

.sks-party-step-pip.active {
  border-bottom-color: var(--sks-brand);
}

.sks-party-step-pip-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--sks-ink-mid);
}

.sks-party-step-pip.active .sks-party-step-pip-label {
  color: var(--sks-ink);
}

.sks-party-step-pip-label b {
  font-family: 'Playfair Display', serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--sks-brand);
  letter-spacing: 0;
}

/* STEP */
.sks-party-cstep {
  padding: 26px 26px 30px;
}

.sks-party-cstep[hidden] {
  display: none;
}

.sks-party-cstep-next {
  margin-top: 20px;
}

.sks-party-cstep-h {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 10px;
}

.sks-party-cstep-h .num {
  font-family: 'Playfair Display', serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--sks-brand);
}

.sks-party-cstep-h h3 {
  font-size: 24px;
  font-weight: 500;
}

.sks-party-cstep-sub {
  font-size: 14px;
  color: var(--sks-ink-soft);
  margin-bottom: 20px;
}

.sks-party-acc-count {
  font-size: 12px;
  color: var(--sks-ink-mid);
  font-family: 'Jost', sans-serif;
  font-weight: 400;
}

/* TARTAN GRID */
.sks-party-tartan-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 14px;
}
@media (max-width: 520px) {
  .sks-party-tartan-grid { grid-template-columns: repeat(2, 1fr); }
}

.sks-party-tartan-loading {
  grid-column: 1/-1;
  padding: 30px;
  text-align: center;
  color: var(--sks-ink-mid);
  font-size: 13px;
}

.sks-party-tartan-card {
  background: var(--sks-white);
  border: 1px solid var(--sks-line);
  padding: 7px;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
  text-align: left;
  font-family: inherit;
}

.sks-party-tartan-card:hover {
  border-color: var(--sks-brand);
}

.sks-party-tartan-card.sel {
  border-color: var(--sks-brand);
  box-shadow: 0 0 0 1px var(--sks-brand);
}

.sks-party-tartan-sw {
  aspect-ratio: 1;
  overflow: hidden;
  margin-bottom: 6px;
  background: var(--sks-paper-deeper);
}

.sks-party-tartan-sw img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sks-party-tartan-nm {
  font-family: 'Playfair Display', serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--sks-ink);
  line-height: 1.25;
}

.sks-party-tartan-mt {
  font-size: 9px;
  color: var(--sks-ink-mid);
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-top: 1px;
}

.sks-party-tartan-more {
  font-size: 13px;
  color: var(--sks-ink-mid);
  margin-top: 10px;
}

.sks-party-tartan-more a {
  color: var(--sks-brand);
  text-decoration: underline;
}

/* GIFT BANNER */
.sks-party-gift {
  background: linear-gradient(110deg, var(--sks-paper-warm), var(--sks-paper));
  border: 1px solid var(--sks-line);
  border-radius: 8px;
  padding: 18px 22px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.sks-party-gift-mk {
  flex: none;
  width: 38px;
  height: 38px;
  background: var(--sks-ink);
  color: var(--sks-cream);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sks-party-gift-mk svg {
  width: 18px;
  height: 18px;
}

.sks-party-gift-eb {
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--sks-brand);
  font-weight: 600;
  margin-bottom: 4px;
}

.sks-party-gift h4 {
  font-size: 17px;
  font-weight: 500;
  margin-bottom: 4px;
}

.sks-party-gift h4 em {
  font-style: italic;
  color: var(--sks-brand);
}

.sks-party-gift p {
  font-size: 13px;
  color: var(--sks-ink-soft);
  margin: 0;
}

/* MAN CARDS (roster) — jacket · bottom · accessories · measurements */
.sks-party-man {
  position: relative;
  background: var(--sks-white);
  border: 1px solid var(--sks-line);
  border-radius: 8px;
  margin-bottom: 12px;
  transition: border-color .18s, box-shadow .18s;
}

.sks-party-man.open {
  border-color: var(--sks-ink);
  box-shadow: var(--sh-sm);
}

.sks-party-man.ready {
  border-left: 3px solid var(--sks-success);
}

.sks-party-man.pending {
  border-left: 3px solid var(--sks-brand);
}

.sks-party-man-hd {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  background: none;
  border: none;
  padding: 14px 16px;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}

.sks-party-man-role {
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  background: var(--sks-navy);
  color: #fff;
  padding: 4px 9px;
  border-radius: 3px;
  white-space: nowrap;
}

.sks-party-man-role.groom {
  background: var(--sks-brand);
}

.sks-party-man-who {
  flex: 1;
  min-width: 0;
}

.sks-party-man-who b {
  display: block;
  font-weight: 500;
  font-size: 15px;
  color: var(--sks-ink);
}

.sks-party-man-who span {
  display: block;
  font-size: 12px;
  color: var(--sks-ink-mid);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sks-party-man-pill {
  font-size: 11px;
  letter-spacing: .03em;
  padding: 4px 10px;
  border-radius: 100px;
  white-space: nowrap;
}

.sks-party-man-pill.ok {
  background: rgba(26, 92, 42, 0.12);
  color: var(--sks-success);
}

.sks-party-man-pill.need {
  background: rgba(184, 82, 10, 0.10);
  color: var(--sks-brand);
}

.sks-party-man-cost {
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  font-weight: 600;
  color: var(--sks-brand);
  min-width: 66px;
  text-align: right;
}

.sks-party-man-cost.none {
  font-family: inherit;
  font-size: 12px;
  font-weight: 400;
  color: var(--sks-ink-faint);
}

.sks-party-man-chev {
  color: var(--sks-ink-faint);
  font-size: 11px;
}

.sks-party-man-bd {
  padding: 4px 16px 18px;
  border-top: 1px solid var(--sks-line-soft);
}

.sks-party-man-bd[hidden] {
  display: none;
}

/* option block wrapper */
.sks-party-ob {
  margin-top: 20px;
}

.sks-party-ob:first-child {
  margin-top: 14px;
}

.sks-party-ob-h {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
}

.sks-party-ob-t {
  font-size: 11px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--sks-ink-mid);
  font-weight: 500;
}

.sks-party-ob-n {
  color: var(--sks-brand);
  margin-right: 7px;
  font-family: 'Playfair Display', serif;
  letter-spacing: 0;
  font-size: 13px;
}

.sks-party-ob-req,
.sks-party-ob-ok,
.sks-party-ob-opt {
  font-size: 10.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.sks-party-ob-req {
  color: var(--sks-brand);
}

.sks-party-ob-ok {
  color: var(--sks-success);
}

.sks-party-ob-opt {
  color: var(--sks-ink-faint);
}

.sks-party-hint {
  font-size: 12.5px;
  color: var(--sks-ink-mid);
  line-height: 1.5;
  margin: 0;
}

/* name + role */
.sks-party-namerow {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.sks-party-name-in {
  flex: 1;
  min-width: 160px;
  padding: 10px 12px;
  border: 1px solid var(--sks-line);
  border-radius: 4px;
  font-size: 14px;
  font-family: inherit;
  background: var(--sks-paper);
  color: var(--sks-ink);
}

.sks-party-name-in:focus {
  background: var(--sks-white);
  outline: none;
  border-color: var(--sks-brand);
}

.sks-party-role-sel {
  font-family: inherit;
  font-size: 13px;
  padding: 9px 12px;
  border: 1px solid var(--sks-line);
  border-radius: 4px;
  background: var(--sks-paper);
  color: var(--sks-ink);
}

.sks-party-role-sel:focus {
  outline: none;
  border-color: var(--sks-brand);
}

/* 01 jacket cards */
/* 01 jacket + 02 bottom — text selection cards (reference "level" style):
   bordered box, serif title, short subtitle, brand price, tinted when selected. */
.sks-party-jkts,
.sks-party-bots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

/* Measurement block lives inside the picker grid, spanning the full width.
   Mobile (1-col): it keeps its DOM position, directly under the selected card.
   Desktop (multi-col): a high order pushes it below the whole grid instead. */
.sks-party-jkts .sks-party-meas-slot,
.sks-party-bots .sks-party-meas-slot {
  grid-column: 1 / -1;
  min-width: 0;   /* let the block shrink to the column, never force overflow */
}
@media (min-width: 581px) {
  .sks-party-jkts .sks-party-meas-slot,
  .sks-party-bots .sks-party-meas-slot {
    order: 99;
  }
}

.sks-party-jkt,
.sks-party-bot {
  border: 1px solid var(--sks-line);
  background: var(--sks-white);
  padding: 11px 12px;
  cursor: pointer;
  text-align: left;
  border-radius: 2px;
  transition: border-color .15s, background .15s, box-shadow .15s;
  font-family: inherit;
}

.sks-party-jkt:hover,
.sks-party-bot:hover { border-color: var(--sks-brand); }

.sks-party-jkt.sel,
.sks-party-bot.sel {
  border-color: var(--sks-brand);
  background: rgba(184, 82, 10, 0.04);
  box-shadow: inset 0 0 0 1px var(--sks-brand);
}

.sks-party-jkt-nm,
.sks-party-bot-nm {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 15px;
  font-weight: 500;
  color: var(--sks-ink);
  line-height: 1.25;
}

.sks-party-jkt-ds,
.sks-party-bot-ds {
  display: block;
  font-size: 11.5px;
  color: var(--sks-ink-mid);
  margin: 2px 0 6px;
}

.sks-party-jkt-pr,
.sks-party-bot-pr {
  display: block;
  font-size: 13px;
  color: var(--sks-brand);
  font-weight: 500;
}

/* 03 accessories */
.sks-party-accbar {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  justify-content: space-between;
  background: var(--sks-paper);
  border: 1px solid var(--sks-line-soft);
  border-radius: 5px;
  padding: 9px 13px;
  margin-bottom: 12px;
}

.sks-party-accbar-sum {
  font-size: 12.5px;
  color: var(--sks-ink-soft);
}

.sks-party-accbar-sum b {
  font-weight: 600;
}

.sks-party-accbar-acts button {
  background: var(--sks-white);
  border: 1px solid var(--sks-line);
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 7px 12px;
  cursor: pointer;
  border-radius: 3px;
  color: var(--sks-ink-soft);
  font-family: inherit;
  transition: border-color .15s, color .15s;
}

.sks-party-accbar-acts button:hover {
  border-color: var(--sks-brand);
  color: var(--sks-brand);
}

.sks-party-accgrid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 12px 8px;
  align-items: start;
}
@media (max-width: 980px) and (min-width: 641px) {
  .sks-party-accgrid { grid-template-columns: repeat(6, 1fr); }
}
@media (max-width: 640px) {
  .sks-party-accgrid { grid-template-columns: repeat(3, 1fr); gap: 10px 7px; }
}

/* Accessory swatches — matched to the kilt-outfits template (.sko-swatch):
   square image tile + price below, product name as a hover tooltip. */
.sks-party-swatch {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 0;
  min-width: 0;
  font-family: inherit;
}
.sks-party-swatch-img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 1.5px solid var(--sks-line);
  border-radius: 6px;
  background: #fff;
  overflow: hidden;
  transition: border-color .15s ease, box-shadow .15s ease, transform .12s ease;
}
.sks-party-swatch:hover .sks-party-swatch-img {
  border-color: var(--sks-ink-mid);
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}
.sks-party-swatch.sel .sks-party-swatch-img {
  border-color: var(--sks-brand);
  border-width: 2px;
  box-shadow: 0 0 0 1px var(--sks-brand);
}
.sks-party-swatch img { display: block; width: 100%; height: 100%; object-fit: contain; }
.sks-party-swatch-ph {
  display: block; width: 100%; height: 100%;
  background: linear-gradient(135deg, #f2ede4 25%, #ece5d8 25%, #ece5d8 50%, #f2ede4 50%, #f2ede4 75%, #ece5d8 75%);
  background-size: 8px 8px;
}
.sks-party-swatch-price {
  display: block;
  text-align: center;
  font-size: 12px;
  font-weight: 500;
  color: var(--sks-ink);
  padding: 6px 2px 0;
  letter-spacing: 0.01em;
}
.sks-party-swatch.sel .sks-party-swatch-price { color: var(--sks-brand); font-weight: 600; }
.sks-party-swatch-was {
  display: block;
  text-align: center;
  color: var(--sks-ink-mid);
  font-size: 11px;
  font-weight: 400;
  text-decoration: line-through;
  margin-top: 1px;
}
.sks-party-swatch::after {
  content: attr(data-tip);
  position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  padding: 6px 10px; background: #1c1a17; color: #fff; font-size: 12px; line-height: 1.3;
  white-space: normal; width: max-content; max-width: 150px; text-align: center;
  border-radius: 4px; pointer-events: none; opacity: 0; transition: opacity .15s ease; z-index: 5;
}
.sks-party-swatch::before {
  content: ""; position: absolute; bottom: calc(100% + 3px); left: 50%; transform: translateX(-50%);
  width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 5px solid #1c1a17;
  pointer-events: none; opacity: 0; transition: opacity .15s ease; z-index: 6;
}
.sks-party-swatch:hover::after, .sks-party-swatch:focus-visible::after,
.sks-party-swatch:hover::before, .sks-party-swatch:focus-visible::before { opacity: 1; }

/* Accessory group heading — matched to .sko-acc-group-title */
.sks-party-accgrp {
  margin-top: 22px;
}
.sks-party-accgrp:first-of-type {
  margin-top: 0;
}
.sks-party-accmore .sks-party-accgrp:first-of-type {
  margin-top: 22px;
}
.sks-party-accgrp-title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sks-ink-mid);
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--sks-line);
}

.sks-party-accopts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 14px;
  margin-top: 12px;
  padding: 13px;
  background: var(--sks-paper);
  border: 1px solid var(--sks-line-soft);
  border-radius: 5px;
}

@media (max-width: 580px) {
  .sks-party-accopts {
    grid-template-columns: 1fr;
  }
}

.sks-party-accmore {
  margin-top: 12px;
}

.sks-party-moretog {
  background: none;
  border: 1px dashed var(--sks-line);
  width: 100%;
  padding: 10px;
  margin-top: 12px;
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--sks-ink-soft);
  cursor: pointer;
  border-radius: 4px;
  font-family: inherit;
  transition: border-color .15s, color .15s;
}

.sks-party-moretog:hover {
  border-color: var(--sks-brand);
  color: var(--sks-brand);
}

/* 04 measurements */
.sks-party-meas-seg {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 12px;
}

.sks-party-seg {
  border: 1px solid var(--sks-line);
  background: var(--sks-white);
  padding: 9px 15px;
  font-size: 12.5px;
  cursor: pointer;
  border-radius: 4px;
  font-family: inherit;
  color: var(--sks-ink);
  transition: all .15s;
}

.sks-party-seg:hover {
  border-color: var(--sks-ink-mid);
}

.sks-party-seg.on {
  background: var(--sks-navy);
  color: #fff;
  border-color: var(--sks-navy);
}

.sks-party-seg-note {
  font-size: 12px;
  color: var(--sks-ink-mid);
}

.sks-party-mprompt {
  border: 1px dashed var(--sks-line);
  background: var(--sks-paper);
  padding: 15px;
  font-size: 13px;
  color: var(--sks-ink-mid);
  text-align: center;
  border-radius: 4px;
}

.sks-party-mpanel {
  border: 1px solid var(--sks-line);
  border-radius: 6px;
  overflow: hidden;
}

/* Inline measurement block — sits directly under its product (jacket / bottom /
   accessory) instead of in one pooled section at the bottom of the card. */
.sks-party-meas-inline {
  margin-top: 12px;
  min-width: 0;
  border: 1px solid var(--sks-line);
  border-radius: 6px;
  overflow: hidden;
}

.sks-party-meas-inline-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--sks-paper);
  border-bottom: 1px solid var(--sks-line-soft);
  padding: 10px 14px;
}

.sks-party-meas-inline-hd b {
  /* min-width:0 lets the label wrap/shrink inside the grid instead of forcing
     the whole block wider than the card. */
  min-width: 0;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--sks-brand);
  font-weight: 600;
}

/* Right-side cluster in the header: the count pill + the collapse toggle. */
.sks-party-meas-hd-r {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;           /* never shrink — keeps the count + close toggle visible */
}

/* Collapse / expand toggle (close button) for a measurement block. */
.sks-party-meas-tog {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 1px solid var(--sks-line);
  border-radius: 6px;
  background: var(--sks-white, #fff);
  color: var(--sks-ink-mid, #7a726b);
  cursor: pointer;
}
.sks-party-meas-tog:hover { border-color: var(--sks-brand); color: var(--sks-brand); }
.sks-party-meas-tog svg { width: 15px; height: 15px; transition: transform .18s; }
/* Chevron points up when open (click to collapse); flips down when collapsed. */
.sks-party-meas-inline.is-collapsed .sks-party-meas-tog svg { transform: rotate(180deg); }

/* Collapsed: hide the fields, keep the header (label + count + toggle). */
.sks-party-meas-inline.is-collapsed .sks-party-mgrid { display: none; }
.sks-party-meas-inline.is-collapsed .sks-party-meas-inline-hd { border-bottom: 0; }

.sks-party-mpanel-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--sks-paper);
  border-bottom: 1px solid var(--sks-line-soft);
  padding: 11px 14px;
}

.sks-party-mpanel-hd b {
  font-family: 'Playfair Display', serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--sks-ink);
}

.sks-party-mcount {
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  background: var(--sks-white);
  border: 1px solid var(--sks-line);
  border-radius: 100px;
  padding: 4px 11px;
  color: var(--sks-ink-mid);
  white-space: nowrap;
}

.sks-party-mcount.ok {
  background: rgba(26, 92, 42, 0.12);
  border-color: rgba(26, 92, 42, 0.25);
  color: var(--sks-success);
}

.sks-party-mgroup {
  padding: 14px;
}

.sks-party-mgroup+.sks-party-mgroup {
  border-top: 1px solid var(--sks-line-soft);
}

.sks-party-mgroup-h {
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--sks-brand);
  font-weight: 600;
  margin-bottom: 12px;
}

.sks-party-mgrid {
  padding: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
}

.sks-party-mgroup .sks-party-mgrid {
  padding: 0;
}

/* Fabric swatch grid: full-width row, 6 swatches per row.
   Uses dedicated -fabsw classes to avoid the theme's .sks-party-swatch accessory styles. */
.sks-party-mf--fabric { grid-column: 1 / -1; }
.sks-party-fabric-select, .sks-party-fabric-input { display: none !important; }
.sks-party-fabgrid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin-top: 4px;
}
.sks-party-fabsw {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  text-align: center;
  min-width: 0;
}
.sks-party-fabsw::before, .sks-party-fabsw::after { content: none !important; }
.sks-party-fabsw-img {
  display: block;
  aspect-ratio: 1;
  border: 1px solid rgba(30, 45, 59, 0.2);
  background: #E5DED0 center/cover no-repeat;
  transition: box-shadow .15s, border-color .15s;
}
.sks-party-fabsw:hover .sks-party-fabsw-img { border-color: var(--sks-brand, #B8520A); }
.sks-party-fabsw.is-on .sks-party-fabsw-img {
  border-color: var(--sks-brand, #B8520A);
  box-shadow: 0 0 0 2px rgba(184, 82, 10, .35);
}
.sks-party-fabsw-name {
  font-size: 11px;
  line-height: 1.25;
  color: #1E2D3B;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sks-party-fabsw.is-on .sks-party-fabsw-name { font-weight: 600; }
.sks-party-fabsw-price { font-size: 10.5px; color: var(--sks-brand, #B8520A); }
@media (max-width: 640px) { .sks-party-fabgrid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 420px) { .sks-party-fabgrid { grid-template-columns: repeat(3, 1fr); } }

@media (max-width: 580px) {
  .sks-party-mgrid {
    grid-template-columns: 1fr;
  }

  .sks-party-jkts,
  .sks-party-bots {
    grid-template-columns: 1fr;
  }
}

.sks-party-mf label {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--sks-ink);
  margin-bottom: 6px;
}

.sks-party-mf-o {
  font-family: inherit;
  font-size: 11px;
  font-weight: 400;
  color: var(--sks-ink-faint);
  margin-left: 4px;
}

.sks-party-mf input {
  width: 100%;
  font-family: inherit;
  font-size: 14px;
  color: var(--sks-ink);
  background: var(--sks-paper);
  border: 1px solid var(--sks-line);
  border-radius: 4px;
  padding: 10px 12px;
}

.sks-party-mf input:focus {
  outline: none;
  border-color: var(--sks-brand);
  background: var(--sks-white);
}

.sks-party-mf select,
.sks-party-msel {
  width: 100%;
  font-family: inherit;
  font-size: 14px;
  color: var(--sks-ink);
  background: var(--sks-paper);
  border: 1px solid var(--sks-line);
  border-radius: 4px;
  padding: 10px 12px;
  cursor: pointer;
}

.sks-party-mf select:focus,
.sks-party-msel:focus {
  outline: none;
  border-color: var(--sks-brand);
  background: var(--sks-white);
}

.sks-party-mwrap {
  position: relative;
}

.sks-party-mwrap input {
  padding-right: 44px;
}

.sks-party-unit {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 11.5px;
  color: var(--sks-ink-faint);
  pointer-events: none;
}

.sks-party-mf.done input,
.sks-party-mf.done select {
  border-color: rgba(26, 92, 42, 0.4);
  background: rgba(26, 92, 42, 0.04);
}

.sks-party-mf.bad input,
.sks-party-mf.bad select {
  border-color: var(--sks-crimson);
  background: rgba(139, 31, 31, 0.04);
}

.sks-party-mf-err {
  font-size: 11px;
  color: var(--sks-crimson);
  margin-top: 5px;
}

/* man actions */
.sks-party-man-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px dashed var(--sks-line-soft);
}

.sks-party-linkbtn {
  background: none;
  border: none;
  color: var(--sks-ink-soft);
  font-size: 12.5px;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: var(--sks-line);
  padding: 4px 0;
  font-family: inherit;
}

.sks-party-linkbtn:hover {
  color: var(--sks-brand);
}

.sks-party-linkbtn.danger:hover {
  color: var(--sks-crimson);
}

.sks-party-man-note {
  font-size: 12.5px;
  color: var(--sks-ink-faint);
}

/* ADD ROW */
.sks-party-add-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.sks-party-add-btn {
  background: transparent;
  border: 1px dashed var(--sks-line);
  color: var(--sks-brand);
  padding: 12px 16px;
  font-size: 13px;
  font-family: inherit;
  transition: background .15s, border-color .15s;
}

.sks-party-add-btn:hover {
  background: rgba(184, 82, 10, 0.05);
  border-color: var(--sks-brand);
}

/* TIMING CALC */
.sks-party-calc {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  max-width: 880px;
  margin: 0 auto;
}

@media (max-width: 720px) {
  .sks-party-calc {
    grid-template-columns: 1fr;
  }
}

.sks-party-calc-in,
.sks-party-calc-out {
  background: var(--sks-white);
  border: 1px solid var(--sks-line);
  border-radius: 8px;
  padding: 26px;
}

.sks-party-calc-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--sks-ink);
  margin-bottom: 10px;
}

.sks-party-calc-date-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--sks-line);
  border-radius: 4px;
  font-size: 14px;
  font-family: inherit;
  background: var(--sks-paper);
}

.sks-party-calc-tog {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}

.sks-party-calc-tog-btn {
  flex: 1;
  background: var(--sks-paper);
  border: 1px solid var(--sks-line);
  padding: 11px 14px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .03em;
  border-radius: 4px;
  transition: all .15s;
}

.sks-party-calc-tog-btn.on {
  background: var(--sks-ink);
  color: var(--sks-paper);
  border-color: var(--sks-ink);
}

.sks-party-calc-out-eb {
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--sks-brand);
  font-weight: 600;
  margin-bottom: 6px;
}

.sks-party-calc-date-out {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  font-weight: 600;
  color: var(--sks-ink);
  margin-bottom: 14px;
}

.sks-party-calc-note {
  font-size: 13px;
  color: var(--sks-ink-soft);
  line-height: 1.55;
}

.sks-party-calc-note strong {
  color: var(--sks-ink);
}

/* HOW IT WORKS */
.sks-party-how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

@media (max-width: 760px) {
  .sks-party-how-grid {
    grid-template-columns: 1fr;
  }
}

.sks-party-how-step {
  padding: 24px;
  background: rgba(245, 240, 232, 0.06);
  border-radius: 8px;
}

.sks-party-how-step-num {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  color: var(--sks-brand);
  font-weight: 600;
  margin-bottom: 16px;
}

.sks-party-how-step-h {
  font-size: 19px;
  margin-bottom: 10px;
  font-weight: 500;
}

.sks-party-how-step-p {
  font-size: 14px;
  color: rgba(245, 240, 232, 0.78);
  line-height: 1.6;
}

/* FAQ */
.sks-party-faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.sks-party-faq-i {
  border-bottom: 1px solid var(--sks-line);
}

.sks-party-faq-q {
  width: 100%;
  background: none;
  border: none;
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  color: var(--sks-ink);
  text-align: left;
  font-weight: 500;
}

.sks-party-faq-tog {
  font-size: 22px;
  color: var(--sks-brand);
  transition: transform .2s;
}

.sks-party-faq-i.open .sks-party-faq-tog {
  transform: rotate(45deg);
}

.sks-party-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s;
}

.sks-party-faq-i.open .sks-party-faq-a {
  max-height: 500px;
}

.sks-party-faq-a-inner {
  padding: 0 0 22px;
  font-size: 14px;
  color: var(--sks-ink-soft);
  line-height: 1.7;
}

/* FINAL CTA */
.sks-party-final {
  padding: 90px 0;
  background: var(--sks-ink);
  color: var(--sks-paper);
  text-align: center;
}

.sks-party-final h2 {
  font-size: clamp(28px, 4vw, 48px);
  color: var(--sks-paper);
  font-weight: 400;
  margin-bottom: 18px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.sks-party-final h2 em {
  font-style: italic;
  color: var(--sks-cream);
}

.sks-party-final p {
  font-size: 16px;
  color: rgba(245, 240, 232, 0.78);
  max-width: 600px;
  margin: 0 auto 28px;
}

/* MODAL (browse all tartans) */
.sks-party-tartan-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 22, 35, 0.72);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 999;
  cursor: pointer;
}

.sks-party-tartan-modal[hidden] {
  display: none;
}

.sks-party-tartan-modal-inner {
  background: #fff;
  width: 100%;
  max-width: 1100px;
  height: 90vh;
  max-height: 90vh;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  border-radius: 4px;
  overflow: hidden;
  cursor: default;
  display: flex;
  flex-direction: column;
}

@media (max-width: 720px) {
  .sks-party-tartan-modal {
    padding: 0;
  }

  .sks-party-tartan-modal-inner {
    height: 100vh;
    max-height: 100vh;
    max-width: none;
    border-radius: 0;
  }
}

.sks-party-tartan-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 28px;
  border-bottom: 1px solid var(--sks-line);
}

.sks-party-tartan-modal-title {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--sks-ink);
}

.sks-party-tartan-modal-title em {
  font-style: normal;
  color: var(--sks-brand);
  font-weight: 400;
}

.sks-party-tartan-modal-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--sks-paper);
  color: var(--sks-ink);
  border: 1px solid var(--sks-line);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.sks-party-tartan-modal-close:hover {
  background: var(--sks-brand);
  color: #fff;
  border-color: var(--sks-brand);
}

.sks-party-tartan-modal-search {
  padding: 16px 28px 12px;
  position: relative;
}

.sks-party-tartan-modal-search input {
  width: 100%;
  background: var(--sks-paper);
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 13px 14px 13px 42px;
  font-size: 14px;
  color: var(--sks-ink);
}

.sks-party-tartan-modal-search input:focus {
  outline: none;
  background: #fff;
  border-color: var(--sks-brand);
  box-shadow: 0 0 0 3px rgba(184, 82, 10, 0.1);
}

.sks-party-tartan-modal-search-icon {
  position: absolute;
  left: 42px;
  top: 50%;
  transform: translateY(calc(-50% + 8px));
  color: var(--sks-ink-mid);
  pointer-events: none;
}

.sks-party-tartan-modal-alphabet {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 10px 28px;
  border-bottom: 1px solid var(--sks-line);
  background: var(--sks-paper);
}

.sks-party-tartan-modal-letter {
  width: 26px;
  height: 26px;
  border-radius: 4px;
  border: none;
  background: transparent;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--sks-ink);
  cursor: pointer;
}

.sks-party-tartan-modal-letter:hover:not(:disabled) {
  color: var(--sks-brand);
}

.sks-party-tartan-modal-letter:disabled {
  opacity: 0.25;
  cursor: default;
}

.sks-party-tartan-modal-grid {
  flex: 1;
  overflow-y: auto;
  position: relative;
}

.sks-party-tartan-modal-grid.is-list {
  display: block;
  padding: 0;
}

.sks-party-modal-letter-head {
  padding: 10px 28px;
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-style: italic;
  color: var(--sks-brand);
  background: var(--sks-paper);
  position: sticky;
  top: 0;
  z-index: 2;
  border-bottom: 1px solid var(--sks-line-soft);
}

.sks-party-modal-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 28px;
  border-bottom: 1px solid var(--sks-line-soft);
  cursor: pointer;
  background: #fff;
  transition: background .15s;
}

.sks-party-modal-row:hover {
  background: rgba(184, 82, 10, 0.05);
}

.sks-party-modal-row.sel {
  background: rgba(184, 82, 10, 0.08);
  box-shadow: inset 3px 0 0 var(--sks-brand);
}

.sks-party-modal-row-sw {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border: 1px solid var(--sks-line);
  border-radius: 4px;
  overflow: hidden;
  background: var(--sks-paper-deeper);
}

.sks-party-modal-row-sw img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sks-party-modal-row-info {
  flex: 1;
  min-width: 0;
}

.sks-party-modal-row-nm {
  font-family: 'Playfair Display', serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--sks-ink);
}

.sks-party-modal-row-mt {
  font-size: 12px;
  color: var(--sks-ink-mid);
  margin-top: 2px;
}

.sks-party-tartan-modal-foot {
  padding: 12px 28px;
  border-top: 1px solid var(--sks-line);
  background: var(--sks-paper);
  font-size: 12px;
  color: var(--sks-ink-mid);
}

.sks-party-tartan-modal-foot strong {
  color: var(--sks-ink);
}

/* TOAST */
.sks-party-toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--sks-ink);
  color: var(--sks-paper);
  padding: 12px 22px;
  border-radius: 4px;
  font-size: 13px;
  box-shadow: var(--sh-md);
  opacity: 0;
  transition: all .25s;
  z-index: 1000;
  pointer-events: none;
}

.sks-party-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (prefers-reduced-motion: reduce) {

  .sks-party *,
  .sks-party *::before,
  .sks-party *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
/* ===== Mobile bottom bar — running total · expandable outfits · add to cart ===== */
.sks-party-mobar { display: none; }
@media (max-width: 980px) {
  .sks-party-mobar {
    display: block;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: var(--sks-white, #fff);
    border-top: 1px solid var(--sks-line);
    box-shadow: 0 -6px 22px rgba(0, 0, 0, 0.12);
  }
  /* Owner (2026-09-20): no gap under the section — the page continues below it. The room for the fixed bar goes
     at the very end of the page instead, so the footer's last lines stay reachable. */
  .sks-party { padding-bottom: 0; }
  body:has(.sks-party-mobar) { padding-bottom: 78px; }
}
.sks-party-mobar-row {
  display: flex; align-items: center; justify-content: center;
  padding: 12px 20px calc(12px + env(safe-area-inset-bottom, 0px));
}
/* Old arrow toggle + separate price block are gone from the markup. Hide them
   via CSS too, so the bar stays a single centred button even if the section
   liquid is uploaded a moment later than this stylesheet. */
.sks-party-mobar-toggle,
.sks-party-mobar-price { display: none !important; }
/* Centred CTA carries the running total inside it; the padding on either side
   is the tap area that opens the selected-outfits sheet. */
.sks-party-mobar-cta {
  flex: 0 1 auto; min-width: 60%; max-width: 440px;
  padding: 13px 22px; text-align: center; justify-content: center;
}
.sks-party-mobar-sheet {
  max-height: 46vh; overflow-y: auto; padding: 12px 14px;
  border-bottom: 1px solid var(--sks-line); background: var(--sks-paper-warm);
}
.sks-party-mobar-sheet[hidden] { display: none; }
.sks-party-mobar-sheet-h {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 12px; color: var(--sks-ink-mid, #7a726b); margin-bottom: 8px;
}
.sks-party-mobar-sheet-h b { font-family: var(--sks-serif, Georgia, serif); color: var(--sks-ink, #1a1a1a); font-size: 14px; }
.sks-party-mobar-lines .sks-party-sum-line { padding: 7px 0; }

/* ===== Mobile responsiveness guards for the product-choosing step ===== */
@media (max-width: 980px) {
  /* Hover tooltips aren't useful on touch and can push horizontal overflow. */
  .sks-party-swatch::after, .sks-party-swatch::before { display: none !important; }
  /* Never let the builder scroll the page sideways on mobile. */
  .sks-party-cfg-wrap { overflow-x: hidden; }
  .sks-party-config, .sks-party-cfg-steps, .sks-party-cfg-preview { min-width: 0; max-width: 100%; }
}

/* The whole bottom-bar row is a tap target for opening the outfits sheet. */
.sks-party-mobar-row { cursor: pointer; }
.sks-party-mobar-cta { cursor: pointer; }

/* "Remove this man" — desktop keeps the text button in the bottom actions row.
   On mobile that button is hidden and a cross icon sits at the card's top-right. */
.sks-party-man-x { display: none; }
@media (max-width: 980px) {
  .sks-party-man-x {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 8px;
    right: 8px;
    width: 26px;
    height: 26px;
    padding: 0;
    border: 1px solid var(--sks-line);
    border-radius: 50%;
    background: var(--sks-paper-warm);
    color: var(--sks-ink, #1a1a1a);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    z-index: 5;
  }
  .sks-party-man-x:hover { border-color: var(--sks-brand); color: var(--sks-brand); }
  /* Reserve the top-right corner so the cross never overlaps the chevron/price. */
  .sks-party-man-hd { padding-right: 34px; }
  .sks-party-man-actions [data-rm] { display: none; }
}

/* Member-card header — stop the role badge / name / "needs" pill / price from
   cramping and overlapping on small screens: the pill drops to its own line. */
@media (max-width: 620px) {
  .sks-party-man-hd { flex-wrap: wrap; row-gap: 8px; column-gap: 10px; }
  .sks-party-man-role { order: 1; flex: none; }
  .sks-party-man-who  { order: 2; flex: 1 1 55%; min-width: 0; }
  .sks-party-man-cost { order: 3; min-width: 0; margin-left: auto; }
  .sks-party-man-chev { order: 4; flex: none; }
  .sks-party-man-pill { order: 5; flex: 1 1 100%; text-align: left; }
}

/* "Select your tartan" placeholder — matched to the other outfit builders
   (serif, 17px, centered on warm paper). */
.sks-party-kilt-render.is-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sks-paper-warm) !important;
}
.sks-party-kilt-render.is-empty .sks-party-render-inner {
  width: 100%;
  height: 100%;
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  color: var(--sks-ink-mid, #7a726b);
  text-align: center;
}

/* "Select Your Tartan" placeholder card (shared markup across builders). */
.sks-tph {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  padding: 8px 4px;
}
.sks-tph-ico { width: 44px; height: auto; color: #68758b; margin-bottom: 12px; }
.sks-tph-eyebrow {
  font-size: 9px; letter-spacing: 0.28em; text-transform: uppercase; color: #8d949d;
}
.sks-tph-h {
  margin-top: 12px;
  font-family: var(--sks-serif, 'Playfair Display', Georgia, serif);
  font-weight: 500; font-size: clamp(24px, 4.2vw, 38px); line-height: 1.03;
  letter-spacing: -0.5px; color: #1e2b3a;
}
.sks-tph-rule { display: block; width: 46px; height: 1px; margin: 16px 0; background: rgba(30, 43, 58, 0.3); }
.sks-tph-sub {
  max-width: 230px; font-size: 9.5px; line-height: 1.7; letter-spacing: 0.13em;
  text-transform: uppercase; color: #5c6875;
}

/* WEDDING KILT OUTFIT PAGE
 * The outfit page reuses .sks-party-section, whose 80px top/bottom padding is
 * meant for the party BUILDER, where sections sit directly against each other.
 * On this page each section already carries its own generous inner padding, so
 * the outer 80px only showed as a white gap between the header and the first
 * cream band. Scoped to .sks-outfit-page so the builder keeps its spacing.
 */
.sks-party-section.sks-outfit-page {
  padding-bottom: 0;
  padding-top: 0;
}
