/* Lanyard designer (/design-your-lanyard/). Classes are prefixed dz- so they never clash with the product page. */
.dz { padding: 8px 0 72px; }
.dz__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.dz__stage { position: sticky; top: 96px; }
.dz__canvas { position: relative; height: min(calc(100vh - 170px), 780px); min-height: 460px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #EEF3F8; }
.dz__canvas canvas { display: block; width: 100%; height: 100%; }
.dz__views { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); display: flex; gap: 2px; padding: 3px; background: rgba(255,255,255,.95); border: 1px solid var(--line); border-radius: 99px; box-shadow: var(--shadow-sm); }
.dz__views button { min-height: 36px; padding: 0 14px; border: 0; border-radius: 99px; background: transparent; color: var(--navy); font-weight: 500; font-size: .86rem; white-space: nowrap; cursor: pointer; }
.dz__views button:hover { background: var(--cyan-soft); }
.dz__views button.is-on { background: var(--navy); color: #fff; }
.dz__note { margin: 8px 2px 0; font-size: .82rem; color: var(--muted); }

.dz__panel { min-width: 0; }
.dz__head h1 { margin-bottom: .3em; }
.dz__head p { color: var(--muted); margin-bottom: 8px; }
.dz-step { border: 0; padding: 0; margin: 32px 0 0; min-width: 0; max-width: 100%; }
.dz-step__legend { display: flex; align-items: center; gap: 12px; padding: 0; margin: 0 0 16px; font: 700 1.2rem/1.2 var(--font-head); color: var(--navy); }
.dz-step__n { width: 32px; height: 32px; border-radius: 50%; background: var(--cyan); color: #fff; display: grid; place-items: center; font-size: 1rem; flex: none; }
form.dz-step .field, form.dz-step .grid-2 { margin-bottom: 14px; }
form.dz-step .check { margin: 6px 0 16px; }
form.dz-step [data-form-alert] { margin: 12px 0; }
.dz-field { margin-bottom: 16px; }
.dz-field input[type=text], .dz-field input[type=number], .dz-field select { width: 100%; }
.dz-field--qty { max-width: 260px; }
.dz-hint { margin: 6px 0 0; font-size: .85rem; color: var(--muted); }
.dz-hint[hidden], .dz-limit__used[hidden], .dz-limit__warn[hidden], .dz-logo__on[hidden], .dz-drop[hidden], .dz-check[hidden], .dz-opt[hidden], .dz-bar [hidden], .field__error[hidden] { display: none; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Options, chips and quantity bands */
.dz-opt { margin-bottom: 18px; }
.dz-opt__label { font-weight: 500; margin: 0 0 8px; font-size: .95rem; color: var(--ink); }
.dz-opt__hint { font-weight: 400; color: var(--muted); margin-left: 6px; font-size: .88rem; }
.dz-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.dz-chip { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 6px 16px; border: 1.5px solid var(--line); border-radius: 99px; background: #fff; cursor: pointer; font-weight: 500; font-size: .93rem; color: var(--ink); transition: border-color .15s, background-color .15s; }
.dz-chip:hover { border-color: var(--cyan); }
.dz-chip input, .dz-tier input { position: absolute; opacity: 0; pointer-events: none; }
.dz-chip:has(input:checked) { background: var(--navy); border-color: var(--navy); color: #fff; }
.dz-chips--attach { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
.dz-chip--img { flex-direction: column; flex: none; border-radius: 12px; padding: 8px; min-width: 92px; scroll-snap-align: start; font-size: .78rem; text-align: center; }
.dz-chip--img img { width: 60px; height: 60px; object-fit: contain; background: #fff; border-radius: 8px; }
.dz-tiers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.dz-tier { position: relative; display: flex; flex-direction: column; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; transition: border-color .15s, background-color .15s; }
.dz-tier:hover { border-color: var(--cyan); }
.dz-tier__qty { font-size: .85rem; color: var(--muted); font-weight: 500; }
.dz-tier__now { font: 700 1.2rem/1.2 var(--font-head); color: var(--navy); }
.dz-tier:has(input:checked) { background: var(--navy); border-color: var(--navy); }
.dz-tier:has(input:checked) .dz-tier__qty { color: #9FB4E2; }
.dz-tier:has(input:checked) .dz-tier__now { color: #fff; }
.dz-chip:has(input:focus-visible), .dz-tier:has(input:focus-visible), .dz-type:has(input:focus-visible), .dz-drop:has(input:focus-visible) { outline: 3px solid var(--cyan); outline-offset: 2px; }

/* Lanyard types */
.dz-types { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.dz-type { position: relative; display: flex; align-items: center; gap: 10px; padding: 8px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; transition: border-color .15s, background-color .15s; }
.dz-type:hover { border-color: var(--cyan); }
.dz-type input { position: absolute; opacity: 0; pointer-events: none; }
.dz-type img { width: 58px; height: 58px; flex: none; object-fit: cover; border-radius: 8px; background: var(--tint); }
.dz-type__text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.dz-type__text strong { font-size: .94rem; color: var(--navy); }
.dz-type__text small { font-size: .78rem; color: var(--muted); }
.dz-type__text .dz-type__price { color: var(--blue); font-weight: 700; }
.dz-type:has(input:checked) { border-color: var(--cyan); background: var(--cyan-soft); box-shadow: inset 0 0 0 1px var(--cyan); }

/* Colour limit */
.dz-limit { margin-top: 12px; padding: 12px 14px; background: var(--tint); border-radius: 12px; font-size: .92rem; }
.dz-limit p { margin: 0; }
.dz-limit__max { font-weight: 700; color: var(--navy); }
.dz-limit__method { color: var(--muted); font-size: .86rem; }
.dz-limit__used { margin-top: 6px !important; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.dz-limit__used span { margin-right: 4px; }
.dz-limit__used i, .dz-chips-mini span { display: inline-block; width: 16px; height: 16px; border-radius: 50%; border: 1px solid rgba(20,33,61,.25); }
.dz-limit__warn { margin-top: 10px; padding: 10px 12px; background: #FFF8E1; border: 1px solid #F2D98A; border-radius: 10px; }
.dz-limit__warn .btn { margin-top: 8px; }

/* Colours */
.dz-swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(36px, 1fr)); gap: 6px; }
.dz-swatches button { aspect-ratio: 1; width: 100%; padding: 0; border: 1px solid rgba(20,33,61,.25); border-radius: 8px; cursor: pointer; }
.dz-swatches button.is-on { outline: 3px solid var(--cyan); outline-offset: 2px; }
.dz-swatches--small { grid-template-columns: repeat(auto-fill, minmax(30px, 1fr)); }
.dz-custom { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.dz-picker { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 4px 12px 4px 6px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; font-size: .9rem; font-weight: 500; cursor: pointer; }
.dz-picker input { width: 34px; height: 34px; padding: 0; border: 0; background: none; cursor: pointer; }
.dz-pms { flex: 1 1 170px; }
.dz-pms input { width: 100%; min-height: 44px; }

.dz-row { display: flex; gap: 12px; align-items: flex-end; }
.dz-row .field { flex: 1 1 0; min-width: 0; }
.dz-row--even input[type=range] { width: 100%; min-height: 32px; accent-color: var(--cyan); padding: 0; border: 0; }
.dz-toggles { display: flex; gap: 4px; margin-bottom: 16px; }
.dz-toggles button { width: 46px; height: 46px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; font-size: 1.1rem; cursor: pointer; color: var(--ink); }
.dz-toggles button.is-on { background: var(--navy); border-color: var(--navy); color: #fff; }

/* Logo */
.dz-drop { position: relative; display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 2px dashed #B8CCE0; border-radius: 14px; background: var(--tint); cursor: pointer; transition: border-color .15s, background-color .15s; }
.dz-drop:hover, .dz-drop.is-over { border-color: var(--cyan); background: var(--cyan-soft); }
.dz-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dz-drop svg { color: var(--cyan); flex: none; }
.dz-drop__text { font-size: .88rem; color: var(--muted); line-height: 1.4; }
.dz-drop__text strong { display: block; color: var(--navy); font-size: .98rem; }
.dz-logo__on { display: flex; align-items: center; gap: 12px; padding: 10px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; }
.dz-logo__on > img { width: 72px; height: 48px; object-fit: contain; flex: none; background: repeating-conic-gradient(#eee 0 25%, #fff 0 50%) 0 0 / 12px 12px; border-radius: 4px; }
.dz-logo__on > div { flex: 1 1 auto; min-width: 0; }
.dz-logo__name { margin: 0; font-weight: 500; font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dz-check { display: flex; align-items: center; gap: 8px; font-size: .88rem; cursor: pointer; }
.dz-chips-mini { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 4px; }
.dz-link { background: none; border: 0; padding: 0; font: inherit; color: var(--blue); text-decoration: underline; cursor: pointer; }

/* Price */
.dz-estimate { display: grid; grid-template-columns: auto 1fr; gap: 2px 20px; align-items: center; padding: 16px 18px; background: var(--cyan-soft); border: 1.5px solid #B5E3F7; border-radius: 14px; margin-top: 8px; }
.dz-estimate p { margin: 0; }
.dz-estimate__unit { font: 800 1.9rem/1 var(--font-head); color: var(--navy); grid-row: span 2; }
.dz-estimate__unit small { display: block; font: 500 .8rem/1.4 var(--font); color: var(--muted); }
.dz-estimate__total strong { font-size: 1.15rem; color: var(--navy); }
.dz-estimate__setup { font-size: .9rem; color: var(--muted); }
.dz-estimate__note { grid-column: 1 / -1; font-size: .82rem; color: var(--muted); margin-top: 6px !important; }
.dz-pdf { margin-top: 12px; justify-content: center; }
.dz-pdf[aria-busy=true] { opacity: .6; }

/* Hide / show handle for the preview on phones */
.dz__toggle { display: none; }

/* Price bar on phones */
.dz-bar { display: none; }

@media (max-width: 960px) {
  .page-designer .site-header { position: static; }
  .page-designer .topbar { display: none; }
  .page-designer .breadcrumbs { display: none; }
  .dz { padding-top: 0; }
  .dz__grid { display: block; padding: 0; max-width: none; }
  .dz__stage { top: 0; z-index: 30; background: #fff; box-shadow: 0 8px 18px -14px rgba(0,30,99,.6); }
  .dz__canvas { height: 40vh; height: 40svh; min-height: 230px; border-width: 0 0 1px; border-radius: 0; transition: height .25s var(--ease), min-height .25s var(--ease); }
  .dz__toggle { display: flex; align-items: center; justify-content: center; gap: 4px; width: 100%; min-height: 34px; padding: 0 16px; border: 0; border-bottom: 1px solid var(--line); background: #fff; color: var(--navy); font-family: inherit; font-size: .82rem; font-weight: 500; cursor: pointer; touch-action: none; }
  .dz__toggle svg { transform: rotate(180deg); transition: transform .25s var(--ease); }
  .dz__stage.is-mini .dz__canvas { height: 96px; min-height: 0; }
  .dz__stage.is-mini .dz__views { display: none; }
  .dz__stage.is-mini .dz__toggle svg { transform: none; }
  .dz__views { bottom: 8px; }
  .dz__views button { min-height: 34px; padding: 0 11px; font-size: .8rem; }
  .dz__note { display: none; }
  .dz__panel { padding: 16px 16px 88px; }
  .dz-type { gap: 8px; padding: 6px; }
  .dz-type img { width: 44px; height: 44px; }
  .dz-tiers { grid-template-columns: repeat(2, 1fr); }
  .dz-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 18px -12px rgba(0,30,99,.4); }
  .dz-bar__price { margin: 0; display: flex; flex-direction: column; line-height: 1.2; }
  .dz-bar__price strong { font: 800 1.2rem/1.2 var(--font-head); color: var(--navy); }
  .dz-bar__price span { font-size: .78rem; color: var(--muted); }
}
@media (max-width: 380px) {
  .dz-types { grid-template-columns: 1fr; }
  .dz__views button { padding: 0 9px; }
}

/* Inputs: the same look as the site's quote form (.qform in style.css) */
.dz input[type=text], .dz input[type=email], .dz input[type=tel], .dz input[type=number], .dz input[type=date], .dz select, .dz textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; font: inherit; font-size: 1rem; color: var(--ink); background: #fff; transition: border-color .15s, box-shadow .15s;
}
.dz textarea { resize: vertical; min-height: 80px; }
.dz input:focus, .dz select:focus, .dz textarea:focus { outline: 0; border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(0, 164, 227, .15); }
.dz .is-invalid { border-color: #D7263D !important; }
.dz .dz-pms input { padding: 8px 12px; }
