/* Customise your gifts: builder, live summary and quote. Mobile-first; uses the theme palette. */
.cz-layout { display: grid; gap: 1.5rem; grid-template-columns: 1fr; align-items: start; }
.cz-main { min-width: 0; }
.cz-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.cz-note { margin: 0 0 1rem; font-size: .9rem; color: var(--ink-soft); }
.cz-note .status, .cz-sum .status { white-space: normal; }
.cz-step { border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--paper); padding: 1rem 1rem 1.1rem; margin: 0 0 1rem; min-width: 0; }
.cz-step > legend { display: flex; align-items: center; gap: .6rem; padding: 0 .4rem; font-weight: 800; font-size: 1.12rem; color: var(--ink); }
.cz-step__n { display: inline-grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--gold); color: var(--navy); font-size: .95rem; }
.cz-step__intro { margin: .1rem 0 .8rem; color: var(--ink-soft); font-size: .93rem; }
.cz-sub { border: 0; padding: 0; margin: 1rem 0 0; min-width: 0; }
.cz-sub > legend { font-weight: 700; font-size: .95rem; padding: 0; margin: 0 0 .5rem; color: var(--ink); }
.cz-grid { display: grid; gap: .6rem; grid-template-columns: 1fr; }
.cz-opt { position: relative; display: flex; gap: .65rem; align-items: flex-start; padding: .7rem .8rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--bg); cursor: pointer; min-width: 0; transition: border-color .15s, background .15s; }
.cz-opt:hover { border-color: var(--gold); }
.cz-opt input { accent-color: var(--teal); width: 1.1rem; height: 1.1rem; margin: .15rem 0 0; flex: none; }
.cz-opt input:focus-visible { outline: 3px solid rgba(127,219,212,.8); outline-offset: 2px; }
.cz-opt:has(input:checked) { border-color: var(--teal); background: var(--gold-soft); box-shadow: inset 0 0 0 1px var(--teal); }
.cz-opt.is-unavail { opacity: .62; cursor: not-allowed; }
.cz-opt.is-unavail:has(input:checked) { opacity: 1; border-color: #92400E; }
.cz-opt__body { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.cz-opt__name { font-weight: 700; color: var(--ink); line-height: 1.3; }
.cz-opt__desc { font-size: .84rem; color: var(--ink-soft); }
.cz-opt__meta { display: flex; flex-wrap: wrap; gap: .25rem .7rem; font-size: .84rem; margin-top: .15rem; }
.cz-price { color: var(--ink); font-weight: 700; }
.cz-lead { color: var(--teal-text); font-weight: 700; display: inline-flex; align-items: center; gap: .3rem; }
.cz-search { display: flex; flex-direction: column; gap: .3rem; margin: 0 0 .8rem; }
.cz-search label, .cz-label { font-weight: 700; font-size: .95rem; }
.cz-main input[type=search], .cz-main input[type=number], .cz-main input[type=date], .cz-main textarea {
  font: inherit; color: var(--ink); background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: .6rem .75rem; width: 100%; box-sizing: border-box; min-height: 44px; }
.cz-main input:focus, .cz-main textarea:focus { border-color: var(--teal); outline: 3px solid rgba(127,219,212,.5); outline-offset: 0; }
.cz-more { margin: .8rem 0 0; }
.cz-more[hidden] { display: none; }
.cz-empty { color: var(--ink-soft); }
.cz-swatches { display: flex; flex-wrap: wrap; gap: .5rem; }
.cz-swatch { position: relative; display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .65rem .35rem .4rem; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; cursor: pointer; font-size: .86rem; min-height: 40px; box-sizing: border-box; }
.cz-swatch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cz-swatch__dot { width: 1.4rem; height: 1.4rem; border-radius: 50%; border: 1px solid rgba(0,0,0,.18); flex: none; }
.cz-swatch:has(input:checked) { border-color: var(--teal); box-shadow: inset 0 0 0 1px var(--teal); background: var(--gold-soft); font-weight: 700; }
.cz-swatch:has(input:focus-visible) { outline: 3px solid rgba(127,219,212,.8); outline-offset: 2px; }
.cz-dep[hidden] { display: none; }
.cz-upload { margin-top: 1rem; padding: .9rem; border: 1.5px dashed var(--sand-deep); border-radius: var(--radius-sm); background: var(--bg); }
.cz-upload.is-needed { border-color: var(--gold); background: var(--gold-soft); }
.cz-upload__label { font-weight: 700; display: block; }
.cz-upload input[type=file] { margin: .4rem 0; max-width: 100%; font: inherit; }
.cz-hint { font-size: .84rem; color: var(--ink-soft); margin: .25rem 0 0; }
.cz-file-status { margin: .3rem 0; font-size: .9rem; min-height: 1.2em; }
.cz-file-status.is-ok { color: var(--teal-text); }
.cz-file-status.is-bad, .cz-qstatus--bad { color: #6B4A12; font-weight: 700; }
.cz-check { display: inline-flex; gap: .45rem; align-items: center; font-size: .92rem; cursor: pointer; margin-top: .3rem; }
.cz-check input { accent-color: var(--teal); width: 1.05rem; height: 1.05rem; }
.cz-link { background: none; border: 0; padding: 0; font: inherit; color: var(--teal-text); text-decoration: underline; cursor: pointer; font-weight: 700; }
.cz-row { display: grid; gap: .8rem; grid-template-columns: 1fr; }
.cz-field { display: flex; flex-direction: column; gap: .3rem; }
/* summary */
.cz-summary { position: relative; outline: none; }
.cz-sum { border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--paper); padding: 1rem; box-shadow: var(--shadow); }
.cz-sum__h { font-size: 1.2rem; margin: 0 0 .6rem; }
.cz-sum__h3 { font-size: 1rem; margin: 1rem 0 .4rem; }
.cz-sum__empty { color: var(--ink-soft); font-size: .92rem; }
.cz-lines { width: 100%; border-collapse: collapse; font-size: .88rem; }
.cz-lines th { text-align: left; font-weight: 700; padding: .4rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.cz-lines td { text-align: right; padding: .4rem 0 .4rem .6rem; border-bottom: 1px solid var(--line); vertical-align: top; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cz-lines__d { display: block; font-weight: 400; color: var(--ink-soft); font-size: .82rem; }
.cz-totals, .cz-dates { margin: .6rem 0 0; }
.cz-totals > div, .cz-dates > div { display: flex; justify-content: space-between; gap: .8rem; padding: .2rem 0; font-size: .9rem; }
.cz-totals dt, .cz-dates dt { color: var(--ink-soft); }
.cz-totals dd, .cz-dates dd { margin: 0; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.cz-totals__grand { border-top: 2px solid var(--gold); margin-top: .3rem; padding-top: .45rem !important; font-size: 1.08rem !important; }
.cz-totals__grand dt { color: var(--ink) !important; font-weight: 800; }
.cz-totals__per { font-size: .82rem !important; }
.cz-lt, .cz-all ul { list-style: none; margin: 0; padding: 0; font-size: .86rem; }
.cz-lt li, .cz-all li { display: flex; justify-content: space-between; gap: .8rem; padding: .22rem 0; border-bottom: 1px dashed var(--line); }
.cz-lt li span:last-child, .cz-all li span:last-child { white-space: nowrap; font-weight: 700; color: var(--teal-text); }
.cz-lt__total { font-weight: 800; border-bottom: 0 !important; }
.cz-dates { background: var(--bg); border-radius: var(--radius-sm); padding: .5rem .7rem; }
.cz-dates__late dt, .cz-dates__late dd { font-size: .84rem; }
.cz-all { margin-top: .5rem; font-size: .86rem; }
.cz-all summary { cursor: pointer; color: var(--teal-text); font-weight: 700; }
.cz-check-box { margin-top: .8rem; padding: .7rem .8rem; border-radius: var(--radius-sm); font-size: .88rem; border: 1.5px solid; }
.cz-check-box p { margin: 0 0 .3rem; }
.cz-check-box--ok { border-color: var(--teal); background: #EEF7F6; }
.cz-check-box--tight { border-color: var(--gold); background: var(--gold-soft); }
.cz-check-box--late { border-color: #92400E; background: #FBEFE3; color: #5C2D0A; }
.cz-alts__h { font-weight: 800; margin-top: .4rem !important; }
.cz-alts { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.cz-alts li { display: grid; gap: .2rem; padding: .5rem .6rem; background: rgba(255,255,255,.8); border-radius: 8px; }
.cz-alts__t { font-weight: 700; }
.cz-alts__m { font-size: .82rem; }
.cz-alts .btn { justify-self: start; margin-top: .2rem; }
.cz-todo { margin: .8rem 0 0; padding-left: 1.1rem; font-size: .86rem; color: #6B4A12; }
.cz-sum__note { font-size: .8rem; color: var(--ink-soft); margin: .8rem 0 0; }
.cz-sum__cta { margin-top: .8rem; }
.cz-sum__cta .btn { width: 100%; justify-content: center; box-sizing: border-box; text-align: center; }
/* mobile bottom bar */
.cz-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: .6rem 1rem calc(.6rem + env(safe-area-inset-bottom)); background: var(--paper); border-top: 2px solid var(--gold); box-shadow: 0 -6px 18px -10px rgba(63,70,80,.4); }
.cz-bar__txt { display: flex; flex-direction: column; font-size: .82rem; line-height: 1.25; min-width: 0; }
.cz-bar__txt strong { font-size: 1.05rem; }
.cz-bar.is-late .cz-bar__txt span { color: #92400E; font-weight: 700; }
body:has(.cz-bar) { padding-bottom: 4.4rem; }
/* quote section */
.cz-quote .waitlist { align-items: start; }
#cz-actions { margin: .4rem 0 1.2rem; padding: .9rem; border-radius: var(--radius-sm); background: var(--gold-soft); border: 1.5px solid var(--sand-deep); }
#cz-actions .btn { width: 100%; justify-content: center; box-sizing: border-box; }
.cz-qstatus { margin-top: .5rem; font-size: .9rem; outline: none; }
.cz-qstatus ul { margin: .3rem 0 0; padding-left: 1.1rem; }
.cz-qstatus--ok { color: var(--teal-text); }
#cz-quote form [aria-invalid="true"] { border-color: #92400E !important; }
.cz-print-frame { position: fixed; width: 1px; height: 1px; right: 0; bottom: 0; border: 0; opacity: 0; }
@media (min-width: 560px) {
  .cz-grid--opts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cz-grid--markets { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cz-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cz-row { grid-template-columns: 1fr 1fr; }
  #cz-actions .btn { width: auto; }
}
@media (min-width: 1000px) {
  .cz-layout { grid-template-columns: minmax(0, 1fr) 360px; gap: 2rem; }
  .cz-summary { position: sticky; top: 6.5rem; max-height: calc(100vh - 7.5rem); overflow: auto; }
  .cz-bar { display: none; }
  body:has(.cz-bar) { padding-bottom: 0; }
}
@media (prefers-reduced-motion: reduce) { .cz-opt { transition: none; } }
