/* [cazrom_get_a_quote] : the Get a Quote button and its pop-up.
 * Everything is scoped under .czq / .czq-launch so a theme's own button and form styles stay out.
 * The phone layout is in cazrom_quote_popup_mobile.css. */

/* ---------- the button on the page ---------- */
.czq-launch { display: inline-block; --czp-primary: var(--e-global-color-primary, #16181d); --czp-on-primary: #fff; }
.czq-launch .czq-button, .czq-launch .czq-button:hover, .czq-launch .czq-button:focus, .czq-launch .czq-button:active {
    display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 28px;
    border: 0; border-radius: var(--czp-button-radius, 100px); background: var(--czp-primary); color: var(--czp-on-primary);
    font: inherit; font-size: 16px; font-weight: 700; line-height: 1; text-decoration: none; text-transform: none; letter-spacing: 0;
    box-shadow: none; cursor: pointer; transition: filter .15s ease;
}
.czq-launch .czq-button { transition: transform .18s ease, box-shadow .18s ease; }
.czq-launch .czq-button:hover { transform: scale(1.035); box-shadow: 0 8px 22px rgba(15, 17, 22, .22); }
.czq-launch .czq-button:focus-visible { outline: 2px solid var(--czp-primary); outline-offset: 3px; }

html.czq-locked { overflow: hidden; }

/* ---------- the pop-up ---------- */
.czq {
    --czq-ink: #16181d; --czq-muted: #5d6470; --czq-line: #e3e4e8; --czq-soft: #f3f4f6;
    --czp-primary: var(--e-global-color-primary, #16181d); --czp-on-primary: #fff;
    position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 24px;
    color: var(--czq-ink); font-family: inherit; font-size: 15px; line-height: 1.4; text-align: left;
}
.czq[hidden], .czq [hidden] { display: none !important; }
.czq *, .czq *::before, .czq *::after { box-sizing: border-box; }
.czq-backdrop { position: absolute; inset: 0; background: rgba(15, 17, 22, .55); }
.czq-dialog {
    position: relative; display: flex; flex-direction: column; width: 100%; max-width: 640px; max-height: min(820px, calc(100vh - 48px));
    background: #fff; border-radius: 20px; box-shadow: 0 24px 70px rgba(15, 17, 22, .3); outline: none; overflow: hidden;
}

/* Buttons : a theme styles button , button:hover and button:focus. Each kind of button here says what it
   wants through variables , and this one rule applies them in every state. */
.czq button, .czq button:hover, .czq button:focus, .czq button:active {
    margin: 0; padding: var(--czq-pad, 0); border: var(--czq-border, 0); border-radius: var(--czq-radius, 0);
    background: var(--czq-bg, none); color: var(--czq-color, inherit);
    font: inherit; font-size: var(--czq-size, inherit); font-weight: var(--czq-weight, inherit); line-height: 1.2;
    text-transform: none; letter-spacing: 0; text-decoration: var(--czq-decoration, none); box-shadow: none; cursor: pointer;
}
.czq button:focus-visible, .czq input:focus-visible, .czq select:focus-visible, .czq .czq-file-input:focus-visible + .czq-drop-label { outline: 2px solid var(--czq-ink); outline-offset: 2px; }
.czq button:disabled { opacity: .5; cursor: default; }
.czq p, .czq h2, .czq h3, .czq ul { margin: 0; padding: 0; }

.czq-head { flex: none; display: flex; align-items: center; gap: 8px; padding: 16px 16px 16px 24px; border-bottom: 1px solid var(--czq-line); }
.czq .czq-title { flex: 1 1 auto; font-size: 20px; font-weight: 800; line-height: 1.2; color: var(--czq-ink); }
.czq .czq-icon-button { --czq-radius: 50%; flex: none; display: grid; place-items: center; width: 38px; height: 38px; }
.czq .czq-icon-button:hover { --czq-bg: var(--czq-soft); }
.czq .czq-icon-button[data-czq-back] { margin-left: -10px; }

.czq-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 20px 24px 24px; }
.czq-view { display: flex; flex-direction: column; gap: 18px; }
.czq-block { display: flex; flex-direction: column; gap: 10px; }
.czq .czq-label { display: flex; align-items: baseline; gap: 8px; font-size: 14px; font-weight: 700; color: var(--czq-ink); }
.czq .czq-label span { font-size: 13px; font-weight: 500; color: var(--czq-muted); }
.czq .czq-link { --czq-color: var(--czq-muted); --czq-size: 13px; --czq-weight: 600; --czq-decoration: underline; text-underline-offset: 2px; }
.czq .czq-link:hover { --czq-color: var(--czq-ink); }
.czq .czq-note { color: var(--czq-muted); font-size: 14px; }
.czq .czq-warning { padding: 10px 12px; border-radius: 10px; background: #fff4d6; color: #6b4a00; font-size: 13px; }

/* ----- the products on the quote ----- */
.czq-items { display: flex; flex-direction: column; gap: 10px; }
.czq-items:empty { display: none; }
.czq-item { display: flex; align-items: flex-start; gap: 14px; padding: 12px; border: 1px solid var(--czq-line); border-radius: 14px; }
.czq-item-image { flex: none; width: 68px; height: 68px; object-fit: contain; border-radius: 10px; background: #fff; border: 1px solid var(--czq-line); }
.czq-item-info { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.czq .czq-item-name { font-weight: 700; color: var(--czq-ink); }
.czq .czq-item-meta { font-size: 13px; color: var(--czq-muted); }
.czq-item-links { display: flex; gap: 14px; margin-top: 6px; }
.czq-item-price { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; text-align: right; }
.czq-item-price strong { font-size: 16px; font-weight: 800; }
.czq-item-price span { font-size: 12px; color: var(--czq-muted); white-space: nowrap; }

.czq .czq-add {
    --czq-border: 2px dashed #c3c8d0; --czq-radius: 14px; --czq-pad: 16px; --czq-weight: 700; --czq-size: 15px;
    display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
}
.czq .czq-add:hover { --czq-border: 2px dashed var(--czq-ink); --czq-bg: var(--czq-soft); }
.czq.is-empty .czq-add { --czq-pad: 44px 16px; --czq-size: 17px; }
.czq-rest { display: flex; flex-direction: column; gap: 18px; }

/* ----- artwork ----- */
.czq-drop { position: relative; }
.czq .czq-file-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.czq .czq-drop-label {
    display: flex; flex-direction: column; align-items: center; gap: 4px; margin: 0; padding: 18px 14px; border: 2px dashed #c3c8d0; border-radius: 14px;
    color: var(--czq-ink); text-align: center; cursor: pointer;
}
.czq .czq-drop-label:hover, .czq-drop.is-over .czq-drop-label { border-color: var(--czq-ink); background: var(--czq-soft); }
.czq-drop-text { font-weight: 700; }
.czq-drop-hint { font-size: 12px; color: var(--czq-muted); }
.czq-files { display: flex; flex-direction: column; gap: 6px; list-style: none; }
.czq-files:empty { display: none; }
.czq .czq-file { display: flex; align-items: center; gap: 10px; margin: 0; padding: 8px 12px; border-radius: 10px; background: var(--czq-soft); font-size: 13px; list-style: none; }
.czq-file-type { flex: none; min-width: 38px; padding: 3px 5px; border-radius: 5px; background: var(--czq-ink); color: #fff; font-size: 10px; font-weight: 800; text-align: center; }
.czq-file-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.czq-file-size { flex: none; color: var(--czq-muted); }

/* ----- fields ----- */
.czq-fields, .czq-sides { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.czq .czq-field { display: flex; flex-direction: column; gap: 5px; margin: 0; font-size: 13px; font-weight: 600; color: var(--czq-ink); }
.czq .czq-field input, .czq .czq-input, .czq .czq-search {
    width: 100%; height: 44px; margin: 0; padding: 0 12px; border: 1px solid #c3c8d0; border-radius: 10px; background: #fff; color: var(--czq-ink);
    font: inherit; font-size: 15px; font-weight: 400; box-shadow: none;
}
.czq select.czq-input {
    -webkit-appearance: none; appearance: none; padding-right: 34px; cursor: pointer;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%2316181d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 12px center;
}
.czq .czq-field input:focus, .czq .czq-input:focus, .czq .czq-search:focus { border-color: var(--czq-ink); outline: none; }
.czq .czq-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.czq .czq-safe { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--czq-muted); }
.czq .czq-safe svg { flex: none; width: 14px; height: 14px; }
.czq .czq-safe a { color: inherit; text-decoration: underline; }

/* ----- choosing a product ----- */
.czq-cats { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.czq-cats::-webkit-scrollbar { display: none; }
.czq .czq-pill { --czq-border: 1px solid #c3c8d0; --czq-radius: 100px; --czq-pad: 9px 16px; --czq-size: 14px; --czq-weight: 600; flex: none; white-space: nowrap; }
.czq .czq-pill:hover { --czq-border: 1px solid var(--czq-ink); }
.czq .czq-pill.is-selected { --czq-bg: var(--czq-ink); --czq-color: #fff; --czq-border: 1px solid var(--czq-ink); }
.czq-subcats .czq-pill { --czq-pad: 6px 12px; --czq-size: 13px; }
.czq-products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.czq .czq-product { --czq-border: 1px solid var(--czq-line); --czq-radius: 14px; --czq-pad: 10px; display: flex; flex-direction: column; gap: 4px; text-align: left; transition: box-shadow .15s ease; }
.czq .czq-product:hover { box-shadow: 0 6px 20px rgba(15, 17, 22, .12); --czq-border: 1px solid #c3c8d0; }
.czq-product img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; border-radius: 10px; background: #fff; margin-bottom: 4px; }
.czq-product-brand { font-size: 11px; font-weight: 600; color: var(--czq-muted); text-transform: uppercase; letter-spacing: .04em; }
.czq-product-name { font-size: 14px; font-weight: 700; line-height: 1.25; color: var(--czq-ink); }

/* ----- its options ----- */
.czq-config-top { display: flex; align-items: center; gap: 14px; }
.czq-config-image { flex: none; width: 96px; height: 96px; object-fit: contain; border-radius: 12px; background: #fff; border: 1px solid var(--czq-line); }
.czq .czq-config-name { margin-bottom: 4px; font-size: 17px; font-weight: 800; line-height: 1.25; color: var(--czq-ink); }
.czq-colors { display: flex; flex-wrap: wrap; gap: 8px; }
.czq .czq-color { --czq-radius: 50%; --czq-bg: var(--czq-swatch, #ccc); --czq-border: 1px solid rgba(22, 24, 29, .18); width: 30px; height: 30px; }
.czq .czq-color.is-selected { outline: 2px solid var(--czq-ink); outline-offset: 2px; }
.czq-qty { display: flex; align-items: center; gap: 16px; }
.czq .czq-qty-input { flex: none; width: 110px; font-weight: 700; }
.czq .czq-range {
    -webkit-appearance: none; appearance: none; flex: 1 1 auto; min-width: 0; height: 6px; margin: 0; padding: 0; border: 0; border-radius: 100px; cursor: pointer; outline: none;
    background: linear-gradient(to right, var(--czp-primary) 0 var(--czq-fill, 0%), #dcdfe4 var(--czq-fill, 0%) 100%);
}
.czq .czq-range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 2px solid var(--czp-primary); }
.czq .czq-range::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 2px solid var(--czp-primary); }

/* ----- sent ----- */
.czq-done { align-items: center; padding: 36px 12px; text-align: center; }
.czq-done-mark { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: #dff5e3; color: #147a28; }
.czq-done-mark svg { width: 30px; height: 30px; }
.czq .czq-done h3 { font-size: 22px; font-weight: 800; color: var(--czq-ink); }
.czq .czq-done p { max-width: 400px; color: var(--czq-muted); }

/* ----- the bar at the bottom ----- */
.czq-foot { flex: none; padding: 14px 24px; border-top: 1px solid var(--czq-line); background: #fff; }
.czq .czq-error { margin-bottom: 10px; padding: 9px 12px; border-radius: 10px; background: #fde8e8; color: #9b1c1c; font-size: 13px; font-weight: 600; }
.czq-foot-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.czq-total { display: flex; flex-direction: column; min-width: 0; }
.czq-total-label { font-size: 12px; color: var(--czq-muted); }
.czq-total-value { font-size: 22px; font-weight: 800; line-height: 1.15; }
.czq-total-sub { font-size: 12px; color: var(--czq-muted); }
.czq .czq-primary {
    --czq-bg: var(--czp-primary); --czq-color: var(--czp-on-primary); --czq-radius: var(--czp-button-radius, 100px); --czq-pad: 0 26px; --czq-weight: 700; --czq-size: 15px;
    flex: none; display: inline-flex; align-items: center; justify-content: center; min-height: 48px; transition: filter .15s ease;
}
.czq .czq-primary { transition: transform .18s ease, box-shadow .18s ease; }
.czq .czq-primary:hover:not(:disabled) { transform: scale(1.035); box-shadow: 0 8px 22px rgba(15, 17, 22, .22); }

@media (prefers-reduced-motion: reduce) {
    .czq *, .czq-launch * { transition: none !important; }
}

/* long product names wrap inside their card , whatever the theme says about buttons */
.czq .czq-product { min-width: 0; width: 100%; white-space: normal; overflow: hidden; }
.czq-product-brand, .czq-product-name { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }

/* A theme or framework often gives every label a bottom margin ; ours never want one. */
.czq label { margin-bottom: 0; }
