/*
 * Customize page (T12.3, F3). Three columns on desktop; on mobile one column with no preview, and sections 8 and 9
 * closed until Continue To Info, as in the F3 mobile column.
 */
.ec-cz-page { background: var(--ec-cream-soft); padding: 26px 0 40px; }
.ec-cz-title { font-size: 28px; margin-bottom: 4px; }
.ec-cz-empty { padding: 60px 0; text-align: center; }

/* Stepper */
.ec-cz-stepper { align-items: center; display: flex; gap: 14px; justify-content: center; list-style: none; margin: 4px 0 20px; padding: 0; }
.ec-cz-stepper li { align-items: center; color: var(--ec-muted); display: flex; font-size: 13px; gap: 8px; }
.ec-cz-stepper li:not(:last-child)::after { background: var(--ec-line); content: ""; height: 1px; margin-left: 6px; width: 42px; }
.ec-cz-step-number { align-items: center; border: 1px solid var(--ec-line); border-radius: 50%; background: #ffffff; display: inline-flex; font-weight: 600; height: 30px; justify-content: center; width: 30px; }
.ec-cz-stepper .is-active, .ec-cz-stepper .is-done { color: var(--ec-ink); font-weight: 600; }
.ec-cz-stepper .is-active .ec-cz-step-number, .ec-cz-stepper .is-done .ec-cz-step-number { background: var(--ec-gold); border-color: var(--ec-gold); color: #ffffff; }

/* Layout */
.ec-cz-layout { align-items: start; display: grid; gap: 14px; grid-template-columns: minmax(290px, 3fr) minmax(0, 4fr) minmax(190px, 2fr); }
.ec-cz-choices { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); }
.ec-cz-preview { align-items: center; background: #fbf7f1; border-radius: var(--ec-radius); flex-direction: column; gap: 18px; height: 100%; padding: 20px; }
.ec-cz-summary { align-self: stretch; }
.ec-cz-notes { grid-column: 1 / 3; }
.ec-cz-info { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; margin-top: 14px; }
.ec-cz-trust { margin-top: 16px; }

/* Cards and headings */
.ec-cz-card { background: #ffffff; border: 1px solid var(--ec-line); border-radius: var(--ec-radius); padding: 14px; }
.ec-cz-card-head { align-items: center; background: none; border: 0; color: inherit; display: flex; justify-content: space-between; padding: 0; text-align: left; width: 100%; }
.ec-cz-card-head i { color: var(--ec-muted); font-size: 11px; transition: transform .15s; }
.ec-cz-heading { color: var(--ec-ink); display: block; font-size: 12.5px; font-weight: 700; letter-spacing: .2px; margin: 0 0 10px; text-transform: uppercase; }
.ec-cz-card-head .ec-cz-heading { margin-bottom: 0; }
.ec-cz-card-body { margin-top: 10px; }
.ec-cz-heading small { color: var(--ec-muted); font-size: 11px; font-weight: 400; text-transform: none; }
.ec-cz-heading--large { font-size: 14px; }
.ec-cz-hint { color: var(--ec-muted); font-size: 12px; margin: -6px 0 10px; }
.ec-cz-error { color: #c0392b; display: block; font-size: 12px; margin-top: 6px; }
.ec-cz-error:empty { display: none; }
.is-collapsed > .ec-cz-card-body { display: none; }
.is-collapsed > .ec-cz-card-head i { transform: rotate(180deg); }

/* Product and placement options */
.ec-cz-products, .ec-cz-placements { display: grid; gap: 8px; grid-template-columns: repeat(3, 1fr); }
.ec-cz-placements { grid-template-columns: repeat(2, 1fr); }
.ec-cz-option { background: #ffffff; border: 1px solid var(--ec-line); border-radius: var(--ec-radius); cursor: pointer; display: block; padding: 6px; position: relative; text-align: center; }
.ec-cz-option:has(input:checked) { border-color: var(--ec-gold); box-shadow: 0 0 0 1px var(--ec-gold); }
.ec-cz-option:has(input:focus-visible), .ec-cz-size:has(input:focus-visible), .ec-cz-color:has(input:focus-visible) { outline: 2px solid var(--ec-gold-dark); outline-offset: 2px; }
.ec-cz-thumb { align-items: center; aspect-ratio: 1; display: flex; justify-content: center; overflow: hidden; }
.ec-cz-thumb img { height: 100%; object-fit: contain; width: 100%; }
.ec-cz-thumb .ec-picture-empty { border-radius: 4px; font-size: 20px; }
.ec-cz-placements .ec-cz-thumb { aspect-ratio: 4 / 3; }
.ec-cz-option-name { display: block; font-size: 11.5px; font-weight: 500; margin-top: 4px; }
.ec-cz-option-name small { color: var(--ec-gold-dark); font-size: 10.5px; }
.ec-cz-tick { color: var(--ec-gold); display: none; font-size: 15px; position: absolute; right: 5px; bottom: 5px; }
.ec-cz-option:has(input:checked) .ec-cz-tick { display: block; }

/* Colours and sizes */
.ec-cz-colors { display: flex; flex-wrap: wrap; gap: 10px; }
.ec-cz-color { border-radius: 50%; cursor: pointer; padding: 3px; }
.ec-cz-color .ec-swatch { border: 1px solid var(--ec-line); border-radius: 50%; display: block; height: 26px; width: 26px; }
.ec-cz-color:has(input:checked) { box-shadow: 0 0 0 2px var(--ec-ink); }
.ec-cz-color-name { font-size: 12px; font-weight: 500; margin: 6px 0 0; }
.ec-cz-sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.ec-cz-size { cursor: pointer; margin: 0; }
.ec-cz-size span { background: #ffffff; border: 1px solid var(--ec-line); border-radius: 4px; display: block; font-size: 12.5px; font-weight: 500; min-width: 48px; padding: 8px 12px; text-align: center; }
.ec-cz-size:has(input:checked) span { background: var(--ec-gold); border-color: var(--ec-gold); color: #ffffff; }

/* Upload */
.ec-cz-upload { display: flex; gap: 8px; min-height: 120px; }
.ec-cz-drop { align-items: center; border: 1px dashed #cfc9bf; border-radius: var(--ec-radius); color: var(--ec-muted); cursor: pointer; display: flex; flex-direction: column; font-size: 11.5px; gap: 2px; justify-content: center; min-width: 0; padding: 22px 10px; text-align: center; flex: 1 1 0; }
.ec-cz-drop.is-over, .ec-cz-drop:hover { background: var(--ec-cream-soft); border-color: var(--ec-gold); }
.ec-cz-drop i { font-size: 26px; }
.ec-cz-drop small { font-size: 10px; }
.ec-cz-drop-title { color: var(--ec-gold-dark); font-size: 12.5px; font-weight: 600; }
.ec-cz-uploaded { border: 1px solid var(--ec-line); border-radius: var(--ec-radius); flex: 1 1 0; min-width: 0; padding: 6px; position: relative; text-align: center; }
.ec-cz-uploaded img { aspect-ratio: 1; border-radius: 4px; object-fit: cover; width: 100%; }
.ec-cz-uploaded label { color: var(--ec-gold-dark); cursor: pointer; display: block; font-size: 11.5px; margin-top: 5px; }
.ec-cz-remove { align-items: center; background: #ffffff; border: 1px solid var(--ec-line); border-radius: 50%; display: flex; height: 22px; justify-content: center; padding: 0; position: absolute; right: 10px; top: 10px; width: 22px; }

/* Add-ons */
.ec-cz-addons, .ec-cz-gateways, .ec-cz-perks { list-style: none; margin: 0; padding: 0; }
.ec-cz-addons label { align-items: center; cursor: pointer; display: flex; font-size: 12.5px; gap: 9px; padding: 6px 0; }
.ec-cz-addons .form-check-input { margin: 0; }
.ec-cz-addons span { flex: 1; }
.ec-cz-addons em { font-style: normal; font-weight: 600; }
.ec-cz-page .form-check-input { border-color: #a8a297; }
.ec-cz-page .form-check-input:checked { background-color: var(--ec-gold); border-color: var(--ec-gold); }

/* Preview */
.ec-cz-stage { align-items: center; display: flex; flex: 0 0 auto; justify-content: center; max-width: 100%; overflow: hidden; width: 100%; }
.ec-cz-canvas { aspect-ratio: 4 / 5; max-width: 400px; position: relative; transform-origin: center; transition: transform .15s; width: 100%; }
.ec-cz-canvas > img:first-child { height: 100%; object-fit: contain; width: 100%; }
.ec-cz-canvas .ec-picture-empty { border-radius: var(--ec-radius); font-size: 44px; }
.ec-cz-design { object-fit: contain; position: absolute; }
.ec-cz-design.is-circle { border-radius: 50%; object-fit: cover; }
.ec-cz-views { background: #ffffff; border: 1px solid var(--ec-line); border-radius: 22px; display: inline-flex; padding: 3px; }
.ec-cz-views button { background: none; border: 0; border-radius: 18px; font-size: 12.5px; font-weight: 500; padding: 7px 22px; }
.ec-cz-views .is-active { background: var(--ec-black); color: #ffffff; }
.ec-cz-zoom { align-items: center; display: flex; font-size: 12.5px; gap: 8px; }
.ec-cz-zoom button { background: none; border: 0; font-size: 18px; line-height: 1; padding: 2px; }
.ec-cz-zoom button:hover { color: var(--ec-gold-dark); }
.ec-cz-note { background: var(--ec-cream); border-radius: var(--ec-radius); display: flex; font-size: 12px; gap: 14px; max-width: 420px; padding: 14px 18px; width: 100%; }
.ec-cz-note i { font-size: 18px; }
.ec-cz-note p { color: var(--ec-muted); margin: 3px 0 0; }

/* Summary */
.ec-cz-summary-title { font-size: 14px; font-weight: 700; text-transform: uppercase; }
.ec-cz-lines { margin: 0; }
.ec-cz-lines > div { display: flex; font-size: 12px; gap: 8px; justify-content: space-between; padding: 7px 0; }
.ec-cz-lines dt { color: var(--ec-muted); font-weight: 400; }
.ec-cz-lines dd { font-weight: 500; margin: 0; text-align: right; }
.ec-cz-lines--ruled { border-top: 1px solid var(--ec-line); margin-top: 8px; padding-top: 8px; }
.ec-cz-lines-title { font-size: 12px; font-weight: 600; margin: 8px 0 0; }
.ec-cz-dot { border: 1px solid var(--ec-line); border-radius: 50%; display: inline-block; height: 11px; margin-right: 5px; vertical-align: -1px; width: 11px; }
.ec-cz-total { align-items: flex-start; border-top: 1px solid var(--ec-line); display: flex; font-size: 13px; font-weight: 700; justify-content: space-between; margin-top: 8px; padding-top: 12px; }
.ec-cz-total strong { font-size: 20px; }
.ec-cz-total small { color: var(--ec-muted); font-size: 10.5px; font-weight: 400; }
.ec-cz-perks { border-top: 1px solid var(--ec-line); margin-top: 18px; padding-top: 14px; }
.ec-cz-perks li { align-items: center; display: flex; font-size: 11.5px; font-weight: 600; gap: 10px; padding: 9px 0; }
.ec-cz-perks i { font-size: 18px; }

/* Notes, information and payment */
.ec-cz-notes .form-control, .ec-cz-info .form-control { border-color: var(--ec-line); font-size: 12.5px; }
.ec-cz-notes .form-control:focus, .ec-cz-info .form-control:focus { border-color: var(--ec-gold); box-shadow: none; }
.ec-cz-counter { color: var(--ec-muted); display: block; font-size: 11px; margin-top: 3px; text-align: right; }
.ec-cz-info .form-label { font-size: 12px; font-weight: 500; margin-bottom: 4px; }
.ec-cz-required { color: #c0392b; font-style: normal; }
.ec-cz-save-info { align-items: center; cursor: pointer; display: flex; font-size: 12.5px; gap: 9px; }
.ec-cz-save-info .form-check-input { margin: 0; }
.ec-cz-gateways label { align-items: center; cursor: pointer; display: flex; font-size: 12.5px; font-weight: 500; gap: 10px; padding: 8px 0; }
.ec-cz-gateways .form-check-input { margin: 0; }
.ec-cz-gateways small { color: var(--ec-muted); font-weight: 400; }
.ec-cz-actions { display: grid; gap: 8px; margin-top: 14px; }
.ec-cz-actions .ec-btn, .ec-cz-mobile-actions .ec-btn { justify-content: center; letter-spacing: .6px; text-transform: uppercase; width: 100%; }
.ec-cz-saved { background: #ffffff; border: 1px solid var(--ec-line); border-radius: var(--ec-radius); margin: 20px auto; max-width: 480px; padding: 34px 24px; text-align: center; }
.ec-cz-saved i { color: var(--ec-green); font-size: 38px; }
.ec-cz-saved h2 { font-family: var(--ec-serif); font-size: 22px; margin: 10px 0; }
.ec-cz-saved:focus { outline: none; }

/* The label beside each step shows only for the current step on small screens */
@media (max-width: 991.98px) {
    .ec-cz-page { padding-top: 18px; }
    .ec-cz-title { font-size: 22px; text-align: center; }
    .ec-cz-stepper { justify-content: space-between; margin-bottom: 26px; margin-top: 12px; }
    .ec-cz-stepper li { position: relative; }
    .ec-cz-stepper li:not(:last-child) { flex: 1; }
    .ec-cz-stepper li:not(:last-child)::after { flex: 1; margin: 0; width: auto; }
    .ec-cz-step-label { display: none; font-size: 11.5px; left: 0; position: absolute; top: 34px; white-space: nowrap; }
    .is-active .ec-cz-step-label { display: block; }
    .ec-cz-layout { grid-template-columns: minmax(0, 1fr); }
    .ec-cz-notes { order: 2; }
    .ec-cz-summary { order: 3; }
    .ec-cz-tick { bottom: auto; right: 4px; top: 4px; }
    .ec-cz-notes { background: #ffffff; border: 1px solid var(--ec-line); border-radius: var(--ec-radius); grid-column: auto; padding: 14px; }
    .ec-cz-products { display: flex; gap: 8px; margin: 0 -14px; overflow-x: auto; padding: 2px 14px 6px; scrollbar-width: none; }
    .ec-cz-products .ec-cz-option { flex: 0 0 76px; }
    .ec-cz-upload { max-width: 100%; }
    .ec-cz-info { display: none; grid-template-columns: minmax(0, 1fr); }
    .ec-cz-info.is-open { display: grid; }
    .ec-cz-mobile-actions { display: grid; gap: 8px; margin-top: 14px; }
    .ec-cz-mobile-actions.d-none { display: none; }
    .ec-cz-size span { min-width: 56px; }
}

/* Size chart (T12.4, F8 Size Guide). Also opens from Product Details */
.ec-cz-chart-link { background: none; border: 0; color: var(--ec-muted); font-size: 11.5px; margin-top: 8px; padding: 0; text-decoration: underline; }
.ec-cz-chart-link:hover { color: var(--ec-gold-dark); }
.ec-size-chart-head { align-items: baseline; display: flex; font-size: 13px; font-weight: 600; justify-content: space-between; margin-bottom: 10px; }
.ec-size-chart-head small { color: var(--ec-muted); font-size: 11.5px; font-weight: 400; }
.ec-size-chart { font-size: 13px; margin: 0; text-align: center; width: 100%; }
.ec-size-chart th { background: var(--ec-cream); font-weight: 600; padding: 9px 8px; }
.ec-size-chart td { border-bottom: 1px solid var(--ec-line); padding: 9px 8px; }
.ec-size-chart-tip { color: var(--ec-muted); font-size: 12px; margin: 12px 0 0; }
