/* "Upload Your Design" pop-up on the product details page. Scoped under .czup , with the look of the
 * Get a Quote pop-up. The phone layout is in cazrom_upload_design_mobile.css. */

html.czup-locked { overflow: hidden; }

.czup {
    --czup-ink: #16181d; --czup-muted: #5d6470; --czup-line: #e3e4e8; --czup-soft: #f3f4f6;
    position: fixed; inset: 0; z-index: 100001; display: flex; align-items: center; justify-content: center; padding: 24px;
    color: var(--czup-ink); font-family: inherit; font-size: 15px; line-height: 1.4; text-align: left;
}
.czup[hidden], .czup [hidden] { display: none !important; }
.czup *, .czup *::before, .czup *::after { box-sizing: border-box; }
.czup-backdrop { position: absolute; inset: 0; background: rgba(15, 17, 22, .55); }
.czup-dialog {
    position: relative; display: flex; flex-direction: column; width: 100%; max-width: 660px; max-height: min(840px, 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 here says what it wants through
   variables , and this one rule applies them in every state. ( The shared .czu-button ones look after themselves. ) */
.czup button:not(.czu-button):not(.czu-button-outline), .czup button:not(.czu-button):not(.czu-button-outline):hover,
.czup button:not(.czu-button):not(.czu-button-outline):focus, .czup button:not(.czu-button):not(.czu-button-outline):active {
    margin: 0; padding: var(--czup-pad, 0); border: var(--czup-border, 0); border-radius: var(--czup-radius, 0);
    background: var(--czup-bg, none); color: var(--czup-color, inherit);
    font: inherit; font-size: var(--czup-size, inherit); font-weight: var(--czup-weight, inherit); line-height: 1.2;
    text-transform: none; letter-spacing: 0; text-decoration: var(--czup-decoration, none); box-shadow: none; cursor: pointer;
}
.czup button:focus-visible, .czup input:focus-visible, .czup select:focus-visible, .czup textarea:focus-visible { outline: 2px solid var(--czup-ink); outline-offset: 2px; }
.czup button:disabled { opacity: .5; cursor: default; }
.czup p, .czup h2, .czup h3, .czup ul { margin: 0; padding: 0; }

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

.czup-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 20px 24px 24px; }
.czup-view { display: flex; flex-direction: column; gap: 18px; }
.czup-block { display: flex; flex-direction: column; gap: 10px; }
.czup .czup-label { font-size: 14px; font-weight: 700; color: var(--czup-ink); }
.czup .czup-link { --czup-color: var(--czup-muted); --czup-size: 13px; --czup-weight: 600; --czup-decoration: underline; flex: none; text-underline-offset: 2px; }
.czup .czup-link:hover { --czup-color: var(--czup-ink); }
.czup .czup-note { color: var(--czup-muted); font-size: 13px; }

.czup .czup-field { display: flex; flex-direction: column; gap: 5px; margin: 0; font-size: 13px; font-weight: 600; color: var(--czup-ink); }
.czup .czup-field em { font-style: normal; font-weight: 500; color: var(--czup-muted); }
.czup .czup-input {
    width: 100%; height: 44px; margin: 0; padding: 0 12px; border: 1px solid #c3c8d0; border-radius: 10px; background: #fff; color: var(--czup-ink);
    font: inherit; font-size: 15px; font-weight: 400; box-shadow: none;
}
.czup textarea.czup-input { height: auto; min-height: 84px; padding: 10px 12px; resize: vertical; line-height: 1.4; }
.czup select.czup-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;
}
.czup .czup-input:focus { border-color: var(--czup-ink); outline: none; }
.czup .czup-file-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* ----- step 1 : the sides ----- */
.czup-sides { display: flex; flex-direction: column; gap: 10px; }
/* each location is a light grey panel , like the picture area of a product card ; the fields in it stay white */
.czup-side { padding: 14px 16px; border: 0; border-radius: 14px; background: var(--czup-soft); }
.czup-side-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.czup-side-name { font-size: 15px; font-weight: 700; }
.czup-side-picks { flex: none; display: flex; align-items: center; gap: 8px; }
.czup .czup-side-method { flex: none; width: 160px; }
.czup .czup-side-choice { flex: none; width: 170px; }
.czup-side-more { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.czup .czup-drop {
    --czup-border: 2px dashed #c3c8d0; --czup-radius: 12px; --czup-pad: 16px 14px; --czup-bg: #fff;
    display: flex; flex-direction: column; align-items: center; gap: 4px; width: 100%; text-align: center;
}
.czup .czup-drop:hover, .czup .czup-drop.is-over { --czup-border: 2px dashed var(--czup-ink); --czup-bg: var(--czup-soft); }
.czup-drop strong { font-size: 14px; font-weight: 700; }
.czup-drop span { font-size: 12px; color: var(--czup-muted); }
.czup-file { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 12px; background: var(--czup-soft); }
.czup-file-thumb { flex: none; width: 46px; height: 46px; object-fit: contain; border-radius: 8px; background: #fff; border: 1px solid var(--czup-line); }
.czup-file-info { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.czup-file-info strong { font-size: 14px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.czup-file-info span { font-size: 12px; color: var(--czup-muted); }

/* ----- step 2 : colors and sizes ----- */
.czup-colors { display: flex; flex-direction: column; gap: 12px; }
.czup-color { padding: 14px; border: 1px solid var(--czup-line); border-radius: 14px; }
.czup-color-top { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.czup-color-image { flex: none; width: 52px; height: 52px; object-fit: contain; border-radius: 10px; background: #fff; border: 1px solid var(--czup-line); }
.czup-color-heading { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.czup-color-heading strong { font-size: 15px; font-weight: 700; }
.czup-color-count { font-size: 12px; color: var(--czup-muted); }
.czup-sizes { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 10px; }
.czup .czup-size { display: flex; flex-direction: column; gap: 4px; margin: 0; font-size: 12px; font-weight: 700; text-align: center; color: var(--czup-ink); }
.czup .czup-size .czup-input { padding: 0 6px; text-align: center; font-weight: 600; -moz-appearance: textfield; }
.czup .czup-size .czup-input::-webkit-outer-spin-button, .czup .czup-size .czup-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.czup-swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.czup .czup-swatch { --czup-radius: 50%; --czup-bg: var(--czup-swatch, #ccc); --czup-border: 1px solid rgba(22, 24, 29, .18); width: 30px; height: 30px; }
.czup .czup-swatch:hover { outline: 2px solid var(--czup-ink); outline-offset: 2px; }

/* ----- step 3 : the price ----- */
.czup-summary { padding: 14px 16px; border-radius: 14px; background: var(--czup-soft); }
.czup-summary-name { display: block; margin-bottom: 6px; font-size: 16px; font-weight: 800; }
.czup .czup-summary-sides { display: flex; flex-direction: column; gap: 4px; list-style: none; }
.czup .czup-summary-sides li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; margin: 0; font-size: 13px; list-style: none; }
.czup-summary-sides em { font-style: normal; color: var(--czup-muted); overflow-wrap: anywhere; }
.czup-lines { display: flex; flex-direction: column; gap: 10px; }
.czup-line { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--czup-line); border-radius: 14px; }
.czup-line-image { flex: none; width: 56px; height: 56px; object-fit: contain; border-radius: 10px; background: #fff; border: 1px solid var(--czup-line); }
.czup-line-info { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.czup-line-info strong { font-size: 15px; font-weight: 700; }
.czup-line-info span { font-size: 13px; color: var(--czup-muted); }
.czup-line-price { flex: none; display: flex; flex-direction: column; align-items: flex-end; }
.czup-line-price strong { font-size: 16px; font-weight: 800; }
.czup-line-price span { font-size: 12px; color: var(--czup-muted); white-space: nowrap; }

/* ----- in the cart ----- */
.czup-done { align-items: center; padding: 30px 12px; text-align: center; }
.czup-done-mark { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: #dff5e3; color: #147a28; }
.czup-done-mark svg { width: 30px; height: 30px; }
.czup .czup-done h3 { font-size: 22px; font-weight: 800; color: var(--czup-ink); }
.czup .czup-done p { max-width: 420px; color: var(--czup-muted); }
.czup-done-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 6px; }

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

/* ----- while InkSoft is being talked to ----- */
.czup-busy { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; background: rgba(255, 255, 255, .86); font-size: 14px; font-weight: 600; }
.czup-spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--czup-line); border-top-color: var(--czup-ink); animation: czup-spin .8s linear infinite; }
@keyframes czup-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
    .czup-spinner { animation-duration: 2.4s; }
    .czup .czup-primary { transition: none; }
    .czup .czup-primary:hover:not(:disabled) { transform: none; }
}

/* long lines wrap inside their button , whatever the theme says about buttons */
.czup .czup-drop { white-space: normal; min-width: 0; }
.czup-drop strong, .czup-drop span { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }

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

/* the picture of a pre-decorated design , beside the product's : on the light grey a transparent design can be seen against */
.czup .czup-color-art { background: #F1F2F3; object-fit: contain; }