/* Checkout presentation only. Package cards share package-cards.css; the payment modal keeps its styling. */
#checkout .co-sum { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 13px; }
/* Use some of the summary's vertical space while preserving 44px tap targets. */
.co-promo { grid-column: 1 / -1; min-width: 0; margin: -6px 0; font-size: 13px; text-align: left; }
#checkout .co-promo-link { display: inline-block; width: auto; min-height: 44px; padding: 8px 0; border: 0; background: none; color: var(--brand-primary); box-shadow: none; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.co-promo label { display: block; margin: 2px 0 6px; font-size: 13px; }
.co-promo-entry { display: flex; align-items: stretch; gap: 8px; }
#co-promo-input { flex: 1; width: 0; min-width: 0; height: 44px; min-height: 44px; padding: 8px 10px; margin: 0; border: 2px solid var(--line); border-radius: 8px; font-size: 16px; line-height: 1.4; text-transform: uppercase; }
#co-promo-input:focus { border-color: var(--brand-primary); outline: none; box-shadow: none; }
#co-promo-apply { flex: none; width: auto; height: 44px; min-height: 44px; padding: 8px 14px; margin: 0; border-radius: 8px; box-shadow: none; font-size: 14px; }
#co-promo-message { margin: 8px 0 0; line-height: 1.5; color: var(--muted); }
#co-promo-message:empty { display: none; }
#co-promo-message[data-error="true"] { color: #a22538; }
.co-promo-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.co-promo-row > span:first-child { min-width: 0; overflow-wrap: anywhere; }
#checkout #co-promo-remove { margin-left: 6px; }
#co-promo-saving { white-space: nowrap; }
.co-promo-total { padding-top: 10px; border-top: 1px solid var(--line); font-size: 16px; }
#checkout .co-promo button:focus-visible { outline: 2px solid var(--brand-primary); outline-offset: 3px; }
#checkout .co-promo button:disabled { opacity: .55; cursor: wait; }
#createview .store-band { display: block; min-height: 0; margin: 0; padding: 30px 4px 28px; }
#createview .store-band::before { content: none; }
#createview .store-hero { display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: 36px; width: auto; max-width: none; margin: 0; text-align: left; }
#createview .store-h1 { display: block; max-width: none; margin: 0; font-family: var(--font-sans); font-size: clamp(32px, 4vw, 44px); font-weight: var(--fw-display); line-height: 1.17; letter-spacing: -1.1px; }
#createview .store-grad { background: none; color: var(--brand-primary); -webkit-text-fill-color: currentColor; font-style: normal; }
#createview .store-lead { display: block; max-width: 390px; margin: 0; font-size: 15px; line-height: var(--lh-copy); color: var(--text-copy); }
#createview .createcard { margin-top: 0; padding: 28px; border: 1px solid #e5e1dd; border-radius: 18px; background: #fff; box-shadow: none; }
#createview .cardhead { align-items: flex-start; gap: 16px; margin-bottom: 22px; }
#createview .cardhead h2 { font-size: 17px; font-weight: var(--fw-heading); line-height: var(--lh-heading); }
#createview .cardhead > .freepill { align-self: center; flex-basis: auto; margin: 0 0 0 auto; padding: 10px 12px; gap: 5px; border-radius: 24px; background: var(--brand-soft); font-size: 12px; }
#createview .freepill .fp-lead { color: var(--brand-primary); }
#createview .evtype-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
#createview button.evtype { width: auto; padding: 8px 14px; border: 1px solid #dcd7d2; color: #4f5664; font-weight: 500; line-height: 1.4; }
#createview button.evtype.on { background: #232127; border-color: #232127; color: #fff; font-weight: 600; }
#createview .create-2col label, #createview > .createcard > label { font-size: 13px; font-weight: 600; }
#createview .create-2col input { min-height: 44px; padding: 10px 13px; border: 1px solid #dcd7d2; border-radius: 10px; background: #fff; font-size: 14px; }
#createview .create-2col input:focus { border-color: var(--brand-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-primary) 13%, transparent); }
#createview .pick-head { margin-top: 24px; font-size: 21px; line-height: var(--lh-heading); font-weight: var(--fw-heading); }
#createview .pick-sub { margin-bottom: 20px; }
#createview .checkout-guarantee, #createview .package-compare { max-width: none; margin: 18px 0 0; padding: 0; border: 1px solid #e1dcd7; border-radius: 12px; background: #fff; text-align: left; overflow: clip; }
#createview .checkout-guarantee > summary, #createview .package-compare > summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; width: auto; margin: 0; min-height: 56px; padding: 16px 18px; background: #fff; color: var(--ink); font-size: 13px; font-weight: 600; line-height: 1.5; cursor: pointer; list-style: none; }
#createview .checkout-guarantee > summary::-webkit-details-marker, #createview .package-compare > summary::-webkit-details-marker { display: none; }
#createview .checkout-guarantee > summary::after, #createview .package-compare > summary::after { content: '+'; width: auto; height: auto; border: 0; margin: 0; background: none; transform: none; color: #858d9b; font-size: 18px; font-weight: 400; }
#createview .checkout-guarantee[open] > summary::after, #createview .package-compare[open] > summary::after { content: '−'; transform: none; }
#createview .checkout-guarantee p { margin: 0; padding: 0 18px 18px; font-size: 13px; line-height: 1.7; }
#createview .checkout-agreement { max-width: none; margin: 18px 0 14px; padding: 0; border: 0; border-radius: 0; background: transparent; }
#createview .checkout-agreement-row { gap: 10px; font-size: 14px; line-height: 1.6; }
#createview .checkout-agreement a { font-weight: 400; text-decoration: none; color: var(--brand-primary); }
#createview .checkout-agreement a:hover { text-decoration: underline; }
#createview button.plancta { display: grid; grid-template-columns: 16px minmax(0, 1fr) 15px; gap: 8px; width: 100%; max-width: none; min-height: 50px; margin: 0; padding: 12px 18px; border-radius: 10px; background: var(--brand-primary); box-shadow: 0 2px 3px #39217115; font-size: 14px; font-weight: 700; line-height: 1.4; }
#createview button.plancta > svg:last-of-type { position: static; transform: none; }
#createview button.plancta:hover { background: var(--brand-hover); transform: none; }
#createview .paytrust { display: flex; align-items: flex-start; justify-content: center; gap: 9px; margin: 17px auto 0; color: var(--muted); text-align: center; font-size: 12px; line-height: var(--lh-help); }
#createview .paytrust svg { flex: none; margin: 3px 0 0; }
#createview button:focus-visible, #createview summary:focus-visible { outline: 2px solid var(--brand-primary); outline-offset: 3px; }
#createview summary:focus-visible { outline-offset: -3px; }
@media (max-width: 640px) {
  #createview .store-band { padding: 24px 8px; }
  #createview .store-hero { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  #createview .store-h1 { font-size: 32px; letter-spacing: -.8px; font-weight: var(--fw-display); }
  #createview .store-lead { font-size: 13.5px; line-height: var(--lh-copy); color: var(--text-copy); }
  #createview .createcard { padding: 22px 18px; }
  #createview .cardhead { gap: 12px; margin-bottom: 20px; }
  #createview .cardhead > .freepill { flex-basis: auto; margin: 0; white-space: nowrap; padding: 9px 11px; }
  #createview .freepill .fp-lead, #createview .freepill .fp-spark { display: none; }
  #createview button.evtype { padding: 7px 12px; font-size: 12.5px; }
  #createview .paytrust { flex-wrap: nowrap; color: var(--muted); line-height: var(--lh-help); }
}
@media (max-width: 380px) {
  #createview .createcard { padding: 20px 14px; }
  #createview button.plancta { padding-inline: 10px; gap: 6px; font-size: 12.5px; }
}
/* Legal choices stay readable at narrow widths and never collapse with features. */
.host-agreement-dialog { box-sizing: border-box; width: min(540px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow: auto; padding: 26px; border: 1px solid var(--line, #e1dcd7); border-radius: 18px; color: var(--ink, #272334); background: #fff; box-shadow: 0 20px 70px #21133538; }
.host-agreement-dialog::backdrop { background: #21133570; }
.host-agreement-dialog h2 { margin: 0 0 12px; font-size: 25px; }
.host-agreement-dialog p { font-size: 14px; line-height: 1.65; }
.host-agreement-dialog .checkout-agreement-row, #upgrade-modal .checkout-agreement-row, #signup-agreement .checkout-agreement-row { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.65; }
.host-agreement-dialog .checkout-agreement-row label, #upgrade-terms-label label, #signup-agreement-label label { display: inline; margin: 0; font: inherit; }
.host-agreement-dialog .checkout-agreement-row a, #upgrade-terms-label a, #signup-agreement a { color: var(--brand-primary, #764ce2); }
.host-agreement-dialog input[type="checkbox"], #signup-agreement input[type="checkbox"] { flex: none; width: 20px; height: 20px; margin: 3px 0 0; padding: 0; }
#signup-agreement { margin: 14px 0 12px; }
#signup-agreement .err:empty { display: none; }
#signup-agreement a { text-decoration: underline; text-underline-offset: 2px; }
.host-agreement-dialog .btn, .host-agreement-dialog .btn-ghost { width: 100%; margin-top: 10px; }
.host-agreement-dialog a, .merchant-disclosure a, .purchase-refund-summary a { text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }
#createview .checkout-guarantee > h3 { margin: 0; padding: 16px 18px 8px; font-size: 14px; line-height: 1.5; }
.purchase-refund-summary { padding: 14px; border: 1px solid var(--line, #e1dcd7); border-radius: 10px; font-size: 13px; line-height: 1.65; }
.merchant-disclosure { margin: 16px 0 0; padding-top: 12px; border-top: 1px solid var(--line, #e1dcd7); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.merchant-disclosure p { margin: 0; }
.merchant-disclosure [data-review] { color: #695128; }

/* Keep the upgrade dialog compact without shrinking its touch targets. */
#upgrade-modal { padding: 24px 16px; }
#upgrade-modal .modal-card { margin-block: auto; }
#upgrade-event-title { margin: 0 0 12px; font-size: 14px; overflow-wrap: anywhere; }
#upgrade-options > label { margin: 0; }
#upgrade-modal .purchase-refund-summary p { margin: 0; }
#upgrade-modal .checkout-agreement-row { margin-top: 16px; gap: 10px; font-size: 13px; line-height: 1.6; }
#upgrade-terms { flex: 0 0 18px; width: 18px; height: 18px; margin: 2px 0 0; padding: 0; accent-color: var(--brand-primary); cursor: pointer; }
#upgrade-terms-label { min-width: 0; }
#upgrade-modal .upgrade-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
#upgrade-modal .upgrade-actions button { width: auto; min-height: 44px; margin: 0; padding: 10px 16px; border-radius: 10px; font-size: 13px; line-height: 1.5; box-shadow: none; }
@media (max-width: 480px) {
  #upgrade-modal .modal-card { padding: 20px; }
  #upgrade-modal .upgrade-actions { flex-direction: column; gap: 8px; }
  #upgrade-modal .upgrade-actions button { width: 100%; }
}
