.checkout-topbar {
  padding: 18px 0 0;
}

.checkout-topbar-inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
}

.back-link {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: rgba(36, 23, 17, 0.54);
  transition: background 160ms ease, color 160ms ease;
}

.back-link:hover {
  background: rgba(36, 23, 17, 0.06);
  color: var(--color-dark-brown);
}

.mini-brand {
  gap: 8px;
}

.mini-brand .brand-mark {
  width: 32px;
  height: 32px;
  font-size: 0.72rem;
}

.sandbox-pill {
  margin-left: 4px;
  padding: 5px 9px;
  border-radius: 7px;
  background: #17385f;
  color: white;
  font-size: 0.78rem;
  font-weight: 800;
}

.checkout-page {
  padding: 24px 0 90px;
}

.checkout-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 40px;
  align-items: start;
}

.builder-panel,
.summary-card {
  border: 1px solid rgba(36, 23, 17, 0.1);
  border-radius: 24px;
  background: rgba(255, 252, 247, 0.92);
  box-shadow: 0 20px 60px rgba(36, 23, 17, 0.08);
}

.builder-panel {
  padding: 30px;
}

.step-kicker {
  margin: 0 0 8px;
  color: #8f7f75;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.step-block h1,
.step-block h2 {
  margin: 0 0 22px;
  color: #090914;
  font-family: Inter, system-ui, sans-serif;
  font-size: 1.35rem;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.step-block h1 {
  font-size: 1.35rem;
}

.guest-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.guest-option {
  min-height: 100px;
  padding: 16px 14px;
  border: 1px solid rgba(36, 23, 17, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  text-align: left;
  cursor: pointer;
  transition: border 160ms ease, box-shadow 160ms ease, transform 160ms ease, background 160ms ease;
}

.guest-option:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(36, 23, 17, 0.08);
}

.guest-option.active {
  border-color: #9b37ff;
  background: rgba(155, 55, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(155, 55, 255, 0.14), 0 16px 32px rgba(155, 55, 255, 0.12);
}

.guest-option strong {
  display: block;
  color: #080814;
  font-size: 1.45rem;
  line-height: 1;
}

.guest-option span {
  display: block;
  margin-top: 8px;
  color: #787385;
  font-size: 0.85rem;
}

.guest-option small {
  display: block;
  margin-top: 10px;
  color: #2d2440;
  font-weight: 700;
}

.helper-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0 0;
  color: #4d4860;
  font-size: 0.92rem;
  line-height: 1.6;
}

.divider {
  height: 1px;
  margin: 26px 0 24px;
  background: rgba(36, 23, 17, 0.1);
}

.extra-card {
  padding: 20px 18px;
  border: 1px solid rgba(36, 23, 17, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.74);
  transition: border 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.extra-card + .extra-card {
  margin-top: 14px;
}

.extra-card.active {
  border-color: rgba(155, 55, 255, 0.36);
  background: rgba(155, 55, 255, 0.035);
  box-shadow: 0 16px 42px rgba(36, 23, 17, 0.08);
}

.extra-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.extra-title-row.has-feature-switch {
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.extra-title-copy {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.feature-switch {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}

.feature-switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.feature-switch-price {
  display: grid;
  gap: 2px;
  text-align: right;
}

.feature-switch-price small {
  color: #8f7f75;
  font-size: 0.7rem;
}

.feature-switch-price strong {
  color: #090914;
  font-size: 0.94rem;
}

.feature-switch-track {
  position: relative;
  width: 50px;
  height: 28px;
  flex: 0 0 50px;
  border: 1px solid rgba(36, 23, 17, 0.14);
  border-radius: 999px;
  background: #d8d0d4;
  transition: background 160ms ease, border 160ms ease, box-shadow 160ms ease;
}

.feature-switch-track > span {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.24);
  transition: transform 160ms ease;
}

.feature-switch input:checked + .feature-switch-track {
  border-color: #ff2f4b;
  background: #ff2f4b;
  box-shadow: 0 0 0 4px rgba(255, 47, 75, 0.12);
}

.feature-switch input:checked + .feature-switch-track > span {
  transform: translateX(22px);
}

.feature-switch input:focus-visible + .feature-switch-track {
  outline: 3px solid rgba(255, 47, 75, 0.32);
  outline-offset: 3px;
}

.extra-card h3 {
  margin: 0;
  color: #070711;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.popular-badge {
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(155, 55, 255, 0.1);
  color: #9b37ff;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.extra-card p {
  margin: 10px 0 0;
  color: #4d4860;
  line-height: 1.55;
}

.option-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.option-pill {
  display: grid;
  min-width: 128px;
  gap: 5px;
  padding: 11px 14px;
  border: 1px solid rgba(36, 23, 17, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.8);
  color: #222033;
  text-align: left;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
}

.option-pill small {
  color: #8a2df5;
  font-size: 0.76rem;
  font-weight: 900;
}

.option-pill.active {
  border-color: #9b37ff;
  background: rgba(155, 55, 255, 0.1);
  color: #721fd3;
}

.summary-panel {
  position: sticky;
  top: 22px;
}

.summary-card {
  padding: 26px;
}

.summary-card h2 {
  margin: 0 0 8px;
  color: #161421;
  font-family: Inter, system-ui, sans-serif;
  font-size: 1.12rem;
}

.summary-subtitle {
  margin: 0;
  color: #8a8494;
  font-size: 0.9rem;
}

.summary-line,
.summary-total,
.summary-item {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.product-line {
  margin-top: 22px;
  padding: 18px 0;
  border-top: 1px solid rgba(36, 23, 17, 0.09);
  border-bottom: 1px solid rgba(36, 23, 17, 0.09);
}

.product-line strong,
.summary-item strong {
  color: #161421;
}

.product-line span {
  display: block;
  margin-top: 7px;
  color: #8a8494;
  font-size: 0.88rem;
}

.summary-items {
  display: grid;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(36, 23, 17, 0.09);
}

.summary-item span {
  color: #4d4860;
  font-size: 0.93rem;
}

.summary-total {
  align-items: center;
  padding: 22px 0;
}

.summary-total span {
  color: #1b1827;
  font-weight: 800;
}

.summary-total strong {
  color: #171421;
  font-size: 2rem;
  letter-spacing: -0.05em;
}

.pay-button {
  width: 100%;
  min-height: 54px;
  border: 0;
  border-radius: 13px;
  background: linear-gradient(135deg, #8a2df5, #a231ec);
  color: white;
  box-shadow: 0 16px 30px rgba(155, 55, 255, 0.28);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 900;
}

.secure-note {
  margin: 14px 0 14px;
  color: #858090;
  text-align: center;
  font-size: 0.9rem;
}

.payment-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(36, 23, 17, 0.09);
}

.payment-icons span {
  min-width: 46px;
  min-height: 32px;
  display: inline-grid;
  place-items: center;
  padding: 0 8px;
  border: 1px solid rgba(36, 23, 17, 0.1);
  border-radius: 6px;
  background: white;
  color: #17406d;
  font-size: 0.75rem;
  font-weight: 900;
}

.trust-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  color: #494456;
  font-size: 0.92rem;
}

.trust-list p {
  margin: 0;
}

@media (max-width: 1100px) {
  .checkout-shell {
    grid-template-columns: 1fr;
  }

  .summary-panel {
    position: static;
  }
}

@media (max-width: 820px) {
  .checkout-shell,
  .checkout-topbar-inner {
    width: min(100% - 28px, 1180px);
  }

  .builder-panel,
  .summary-card {
    padding: 20px;
    border-radius: 20px;
  }

  .guest-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .extra-card {
    padding: 18px;
  }
}

@media (max-width: 520px) {
  .extra-title-row.has-feature-switch,
  .feature-switch {
    width: 100%;
  }

  .feature-switch {
    justify-content: space-between;
    padding-top: 8px;
  }

  .option-pill {
    min-width: calc(50% - 5px);
    flex: 1 1 calc(50% - 5px);
  }
}

.event-summary-box {
  display: grid;
  gap: 6px;
  margin-bottom: 24px;
  padding: 16px 18px;
  border: 1px solid rgba(185, 132, 111, 0.18);
  border-radius: 18px;
  background: rgba(185, 132, 111, 0.08);
}

.event-summary-box strong {
  color: #171421;
}

.event-summary-box span {
  color: #665c55;
  line-height: 1.55;
}

.extra-warning {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(185, 132, 111, 0.1);
  color: #6f4636 !important;
  font-size: 0.9rem;
  font-weight: 700;
}
