/* [cazrom_account] : the customer's account , in tabs.
 * Everything is scoped under .czma. The phone layout is in cazrom_my_account_mobile.css. */

:root:not(#cz) .czma {
    --czma-ink: #16181d; --czma-muted: #5d6470; --czma-line: #e3e4e8; --czma-soft: #f3f4f6;
    --czp-primary: var(--e-global-color-primary, #16181d); --czp-on-primary: #fff;
    color: var(--czma-ink); font-family: inherit; font-size: 15px; line-height: 1.45; text-align: left;
}
:root:not(#cz) .czma *, :root:not(#cz) .czma *::before, :root:not(#cz) .czma *::after { box-sizing: border-box; }
:root:not(#cz) .czma [hidden] { display: none !important; }
:root:not(#cz) .czma p, :root:not(#cz) .czma h2, :root:not(#cz) .czma h3, :root:not(#cz) .czma h4, :root:not(#cz) .czma dl, :root:not(#cz) .czma dd, :root:not(#cz) .czma dt { margin: 0; padding: 0; }
:root:not(#cz) .czma .czma-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
html:not(#cz).czma-locked { overflow: hidden; }

/* buttons that are plain text : whatever the theme does to buttons stays out */
:root:not(#cz) .czma .czma-link, :root:not(#cz) .czma .czma-link:hover, :root:not(#cz) .czma .czma-link:focus, :root:not(#cz) .czma .czma-link:active,
:root:not(#cz) .czma .czma-x, :root:not(#cz) .czma .czma-x:hover, :root:not(#cz) .czma .czma-x:focus, :root:not(#cz) .czma .czma-x:active {
    margin: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none;
    color: var(--czma-ink); font: inherit; font-size: 14px; font-weight: 600; line-height: 1.3; letter-spacing: 0; text-transform: none;
    text-decoration: underline; text-underline-offset: 2px; cursor: pointer;
}
:root:not(#cz) .czma .czma-link:hover { color: var(--czma-muted); }
:root:not(#cz) .czma .czma-link.czma-danger, :root:not(#cz) .czma .czma-link.czma-danger:hover, :root:not(#cz) .czma .czma-link.czma-danger:focus { color: #b42318; }
:root:not(#cz) .czma .czma-link:disabled { opacity: .5; cursor: default; }
:root:not(#cz) .czma .czma-link:focus-visible, :root:not(#cz) .czma .czma-x:focus-visible, :root:not(#cz) .czma .czma-tab:focus-visible { outline: 2px solid var(--czma-ink); outline-offset: 3px; }
:root:not(#cz) .czma .czma-small.czma-small, :root:not(#cz) .czma .czma-small.czma-small:hover, :root:not(#cz) .czma .czma-small.czma-small:focus, :root:not(#cz) .czma .czma-small.czma-small:active { min-height: 42px; padding: 0 22px; font-size: 14px; }
:root:not(#cz) .czma .czma-muted { color: var(--czma-muted); font-size: 14px; }

/* ----- signed out ----- */
:root:not(#cz) .czma-guest { display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: 480px; margin: 24px auto; padding: 44px 24px; border-radius: 20px; background: var(--czma-soft); text-align: center; }
:root:not(#cz) .czma .czma-guest-title { font-size: 22px; font-weight: 800; line-height: 1.2; color: var(--czma-ink); }
:root:not(#cz) .czma-guest p { color: var(--czma-muted); }

/* ----- the top , and the tabs ( the pills of the products page ) ----- */
:root:not(#cz) .czma-top { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
:root:not(#cz) .czma .czma-hello { font-size: 28px; font-weight: 800; line-height: 1.2; color: var(--czma-ink); }
:root:not(#cz) .czma-tabs, :root:not(#cz) .czma-pills { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 4px; scrollbar-width: none; }
:root:not(#cz) .czma-tabs::-webkit-scrollbar, :root:not(#cz) .czma-pills::-webkit-scrollbar { display: none; }
:root:not(#cz) .czma-tabs { margin-bottom: 24px; }
:root:not(#cz) .czma .czma-tab, :root:not(#cz) .czma .czma-tab:hover, :root:not(#cz) .czma .czma-tab:focus, :root:not(#cz) .czma .czma-tab:active {
    flex: none; display: inline-flex; align-items: center; height: 40px; margin: 0; padding: 0 18px;
    border: 1px solid #8d939c; border-radius: 100px; background: #fff; box-shadow: none;
    color: var(--czma-ink); font: inherit; font-size: 14px; font-weight: 700; line-height: 1; letter-spacing: 0; text-transform: none; text-decoration: none; white-space: nowrap; cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease;
}
:root:not(#cz) .czma .czma-tab:hover { background: var(--czma-soft); }
:root:not(#cz) .czma .czma-tab.is-selected, :root:not(#cz) .czma .czma-tab.is-selected:hover, :root:not(#cz) .czma .czma-tab.is-selected:focus { border-color: var(--czma-ink); background: var(--czma-ink); color: #fff; }
:root:not(#cz) .czma-pills-small .czma-tab, :root:not(#cz) .czma-pills-small .czma-tab:hover, :root:not(#cz) .czma-pills-small .czma-tab:focus { height: 32px; padding: 0 13px; font-size: 13px; }
:root:not(#cz) .czma-panel:focus { outline: none; }
:root:not(#cz) .czma-panel:focus-visible { outline: 2px solid var(--czma-line); outline-offset: 6px; border-radius: 8px; }

/* ----- waiting , empty , failed ----- */
:root:not(#cz) .czma-state { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 44px 20px; border-radius: 20px; background: var(--czma-soft); color: var(--czma-muted); text-align: center; }
:root:not(#cz) .czma-state-loading { align-items: stretch; padding: 0; background: none; }
:root:not(#cz) .czma-state-error { background: #fdecec; color: #9b1c1c; }
:root:not(#cz) .czma-bone { display: block; height: 96px; border-radius: 16px; background: linear-gradient(90deg, #f0f1f3 25%, #e6e8eb 37%, #f0f1f3 63%); background-size: 400% 100%; animation: czma-shimmer 1.4s ease infinite; }
@keyframes czma-shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
:root:not(#cz) .czma .czma-inline-error { margin-top: 8px; padding: 9px 12px; border-radius: 10px; background: #fdecec; color: #9b1c1c; font-size: 13px; font-weight: 600; }
:root:not(#cz) .czma .czma-section-title { margin: 0 0 14px; font-size: 18px; font-weight: 800; color: var(--czma-ink); }
:root:not(#cz) .czma .czma-section-title:not(:first-child) { margin-top: 32px; }

/* ----- cards and fields ----- */
:root:not(#cz) .czma-card { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; max-width: 640px; margin-bottom: 18px; padding: 24px; border: 1px solid var(--czma-line); border-radius: 20px; background: #fff; }
:root:not(#cz) .czma .czma-card-title { font-size: 18px; font-weight: 800; color: var(--czma-ink); }
:root:not(#cz) .czma-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; width: 100%; }
:root:not(#cz) .czma .czma-field { position: relative; display: block; margin: 0; }
:root:not(#cz) .czma .czma-field-wide { grid-column: 1 / -1; }
:root:not(#cz) .czma .czma-field input {
    display: block; width: 100%; height: 54px; margin: 0; padding: 20px 14px 6px; border: 1px solid #c3c8d0; border-radius: 12px; background: #fff; box-shadow: none;
    color: var(--czma-ink); font: inherit; font-size: 15px; line-height: 1.2;
    transition: border-color .15s ease;
}
:root:not(#cz) .czma .czma-field input:focus { border-color: var(--czma-ink); outline: none; }
/* the label rests in the field , and moves up when the field is used or filled */
:root:not(#cz) .czma .czma-field span {
    position: absolute; left: 15px; top: 17px; max-width: calc(100% - 30px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    color: var(--czma-muted); font-size: 15px; line-height: 1.3; pointer-events: none; transform-origin: left top;
    transition: transform .15s ease, color .15s ease;
}
:root:not(#cz) .czma .czma-field input:focus + span, :root:not(#cz) .czma .czma-field input:not(:placeholder-shown) + span { transform: translateY(-11px) scale(.78); }
:root:not(#cz) .czma .czma-field input:focus + span { color: var(--czma-ink); }
:root:not(#cz) .czma .czma-check { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 14px; cursor: pointer; }
:root:not(#cz) .czma .czma-check input { width: 18px; height: 18px; margin: 0; flex: none; accent-color: var(--czp-primary); }
:root:not(#cz) .czma .czma-note { font-size: 13px; font-weight: 600; color: var(--czma-muted); }
:root:not(#cz) .czma .czma-note.is-error { color: #b42318; }

/* ----- orders , quotes ----- */
:root:not(#cz) .czma-orders { display: flex; flex-direction: column; gap: 14px; }
:root:not(#cz) .czma-order { display: flex; flex-direction: column; gap: 14px; padding: 18px 20px; border: 1px solid var(--czma-line); border-radius: 20px; background: #fff; transition: box-shadow .18s ease; }
:root:not(#cz) .czma-order:hover { box-shadow: 0 8px 26px rgba(15, 17, 22, .08); }
:root:not(#cz) .czma-order-head, :root:not(#cz) .czma-order-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
:root:not(#cz) .czma-order-title, :root:not(#cz) .czma-order-sum { display: flex; flex-direction: column; min-width: 0; }
:root:not(#cz) .czma-order-title strong { font-size: 16px; font-weight: 800; }
:root:not(#cz) .czma-order-title span, :root:not(#cz) .czma-order-sum span { font-size: 13px; color: var(--czma-muted); }
:root:not(#cz) .czma-order-sum strong { font-size: 18px; font-weight: 800; }
:root:not(#cz) .czma-order-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
:root:not(#cz) .czma-badge { flex: none; padding: 4px 12px; border-radius: 100px; background: var(--czma-soft); color: var(--czma-ink); font-size: 12px; font-weight: 800; white-space: nowrap; }
:root:not(#cz) .czma-thumbs { display: flex; align-items: center; gap: 8px; overflow: hidden; }
:root:not(#cz) .czma-thumbs img { flex: none; width: 64px; height: 64px; padding: 4px; object-fit: contain; border-radius: 12px; background: var(--czma-soft); mix-blend-mode: multiply; }
:root:not(#cz) .czma-thumbs .czma-more { font-size: 13px; font-weight: 700; color: var(--czma-muted); }

:root:not(#cz) .czma-items { display: flex; flex-direction: column; }
:root:not(#cz) .czma-item { display: flex; align-items: flex-start; gap: 14px; padding: 14px 0; border-top: 1px solid var(--czma-line); }
:root:not(#cz) .czma-item:first-child { border-top: 0; padding-top: 0; }
/* the picture on the soft grey of a product card ; "multiply" lets the grey through a white background */
:root:not(#cz) .czma-item-media { flex: none; display: grid; place-items: center; width: 72px; height: 72px; border-radius: 12px; background: var(--czma-soft); overflow: hidden; }
:root:not(#cz) .czma-item-media img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; mix-blend-mode: multiply; }
:root:not(#cz) .czma-item-info { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
:root:not(#cz) .czma-item-info strong { font-size: 15px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
:root:not(#cz) .czma-item-info > span { font-size: 13px; color: var(--czma-muted); overflow-wrap: anywhere; }
:root:not(#cz) .czma-sizes { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 3px; }
:root:not(#cz) .czma-sizes em { padding: 3px 10px; border: 1px solid var(--czma-line); border-radius: 100px; background: #fff; color: var(--czma-ink); font-size: 12px; font-style: normal; font-weight: 600; white-space: nowrap; }
:root:not(#cz) .czma-item-price { flex: none; display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
:root:not(#cz) .czma-item-price strong { font-size: 15px; font-weight: 800; }
:root:not(#cz) .czma-item-price span { font-size: 12px; color: var(--czma-muted); white-space: nowrap; }

/* ----- one order , in the pop-up ----- */
:root:not(#cz) .czma .czma-facts { display: flex; flex-wrap: wrap; gap: 14px 32px; margin-bottom: 18px; padding: 16px 18px; border-radius: 14px; background: var(--czma-soft); }
:root:not(#cz) .czma-facts dt { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--czma-muted); }
:root:not(#cz) .czma-facts dd { font-size: 14px; font-weight: 700; }
:root:not(#cz) .czma-order-lower { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 22px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--czma-line); }
:root:not(#cz) .czma-addresses { display: flex; flex-wrap: wrap; gap: 20px 36px; }
:root:not(#cz) .czma-addresses > div { display: flex; flex-direction: column; font-size: 14px; }
:root:not(#cz) .czma .czma-addresses h4 { margin-bottom: 4px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--czma-muted); }
:root:not(#cz) .czma-totals { flex: 0 1 280px; margin-left: auto; padding: 16px 18px; border-radius: 14px; background: var(--czma-soft); }
:root:not(#cz) .czma-totals p { display: flex; justify-content: space-between; gap: 16px; padding: 3px 0; font-size: 14px; color: var(--czma-muted); }
:root:not(#cz) .czma-totals p span:last-child { color: var(--czma-ink); font-weight: 600; }
:root:not(#cz) .czma-totals .czma-grand { margin-top: 8px; padding-top: 10px; border-top: 1px solid #dcdfe4; color: var(--czma-ink); font-weight: 700; }
:root:not(#cz) .czma-totals .czma-grand strong { font-size: 20px; font-weight: 800; }

/* ----- saved art ----- */
:root:not(#cz) .czma-designs { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
:root:not(#cz) .czma-design { display: flex; flex-direction: column; gap: 6px; padding: 10px 10px 14px; border: 1px solid var(--czma-line); border-radius: 16px; background: #fff; transition: box-shadow .18s ease; }
:root:not(#cz) .czma-design:hover { box-shadow: 0 8px 26px rgba(15, 17, 22, .1); }
:root:not(#cz) .czma-design-media { display: grid; place-items: center; aspect-ratio: 4 / 3; margin-bottom: 4px; padding: 14px; border-radius: 10px; background: var(--czma-soft); overflow: hidden; }
:root:not(#cz) .czma-design-media img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; }
:root:not(#cz) .czma-design-name { padding: 0 4px; font-size: 15px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
:root:not(#cz) .czma-design-date { padding: 0 4px; font-size: 12px; color: var(--czma-muted); }
:root:not(#cz) .czma-design-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; padding: 0 4px; }

/* ----- address book ----- */
:root:not(#cz) .czma-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
:root:not(#cz) .czma-address-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
:root:not(#cz) .czma-address { display: flex; flex-direction: column; gap: 2px; padding: 18px 20px; border: 1px solid var(--czma-line); border-radius: 16px; background: #fff; font-size: 14px; }
:root:not(#cz) .czma-address strong { font-size: 15px; font-weight: 800; }
:root:not(#cz) .czma-address span { color: var(--czma-muted); }
:root:not(#cz) .czma-address-actions { display: flex; gap: 16px; margin-top: 12px; }

/* ----- the pop-up ----- */
:root:not(#cz) .czma-pop { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 24px; }
:root:not(#cz) .czma-backdrop { position: absolute; inset: 0; background: rgba(15, 17, 22, .55); }
:root:not(#cz) .czma-dialog { position: relative; display: flex; flex-direction: column; width: 100%; max-width: 560px; max-height: min(820px, calc(100vh - 48px)); border-radius: 20px; background: #fff; box-shadow: 0 24px 70px rgba(15, 17, 22, .3); outline: none; overflow: hidden; }
:root:not(#cz) .czma-dialog.is-wide { max-width: 760px; }
:root:not(#cz) .czma-pop-head { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 16px 16px 24px; border-bottom: 1px solid var(--czma-line); }
:root:not(#cz) .czma .czma-pop-title { font-size: 19px; font-weight: 800; line-height: 1.25; color: var(--czma-ink); overflow-wrap: anywhere; }
:root:not(#cz) .czma .czma-x, :root:not(#cz) .czma .czma-x:hover, :root:not(#cz) .czma .czma-x:focus { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; text-decoration: none; }
:root:not(#cz) .czma .czma-x:hover { background: var(--czma-soft); }
:root:not(#cz) .czma-pop-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 20px 24px 24px; }
:root:not(#cz) .czma-pop-foot { flex: none; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; padding: 14px 24px; border-top: 1px solid var(--czma-line); }
:root:not(#cz) .czma-pop-foot .czma-inline-error { flex: 1 1 100%; margin: 0; }
:root:not(#cz) .czma-form { display: flex; flex-direction: column; gap: 14px; }

/* the product picker */
:root:not(#cz) .czma .czma-search { display: block; width: 100%; height: 44px; margin: 0 0 12px; padding: 0 14px; border: 1px solid #c3c8d0; border-radius: 12px; background: #fff; box-shadow: none; color: var(--czma-ink); font: inherit; font-size: 15px; }
:root:not(#cz) .czma .czma-search:focus { border-color: var(--czma-ink); outline: none; }
:root:not(#cz) .czma-pop-body .czma-pills { margin-bottom: 10px; }
:root:not(#cz) .czma-products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 6px; }
:root:not(#cz) .czma .czma-product, :root:not(#cz) .czma .czma-product:hover, :root:not(#cz) .czma .czma-product:focus { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 10px; border: 1px solid var(--czma-line); border-radius: 14px; background: #fff; color: var(--czma-ink); text-decoration: none; transition: box-shadow .15s ease; }
:root:not(#cz) .czma .czma-product:hover { box-shadow: 0 6px 20px rgba(15, 17, 22, .12); }
:root:not(#cz) .czma-product img { width: 100%; aspect-ratio: 1 / 1; margin-bottom: 4px; object-fit: contain; border-radius: 10px; background: #fff; }
:root:not(#cz) .czma-product-brand { font-size: 11px; font-weight: 600; color: var(--czma-muted); text-transform: uppercase; letter-spacing: .04em; overflow-wrap: anywhere; }
:root:not(#cz) .czma-product-name { font-size: 14px; font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }

@media (prefers-reduced-motion: reduce) {
    :root:not(#cz) .czma *, :root:not(#cz) .czma *::before { transition: none !important; }
    :root:not(#cz) .czma-bone { animation: none; }
}

:root:not(#cz) .czma .czma-inline-link { color: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }

/* delete a saved design : a trash can , so it fits beside the button on a narrow card */
:root:not(#cz) .czma .czma-link.czma-trash, :root:not(#cz) .czma .czma-link.czma-trash:hover, :root:not(#cz) .czma .czma-link.czma-trash:focus { flex: none; display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0; border-radius: 50%; text-decoration: none; }
:root:not(#cz) .czma .czma-link.czma-trash:hover { background: #fdecec; }
:root:not(#cz) .czma .czma-design-actions { display: flex; align-items: center; gap: 8px; }
:root:not(#cz) .czma .czma-design-actions .czu-button { flex: 1 1 auto; min-width: 0; }

/* A theme or framework often gives every label a bottom margin ; ours never want one. */
:root:not(#cz) .czma label { margin-bottom: 0; }
