/* Print shop: header cart, "Order a print" on artwork pages, and the
   /cart, /checkout, /order and /account pages. Uses the site's colour
   variables (colors.css). */

/* ---- header cart ---- */
.logo-nav .flex-container { align-items: center; gap: .75rem; }
.header-cart-wrap { margin-top: 10px; }
.header-cart { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; color: var(--text-light); border-radius: 4px; }
.header-cart:hover, .header-cart:focus-visible { color: var(--primary-text-color); background: rgba(255, 255, 255, .08); border-bottom: 0; }
.cart-count { position: absolute; top: 2px; right: 0; min-width: 1.2rem; height: 1.2rem; padding: 0 .3rem; box-sizing: border-box; border-radius: 999px; background: var(--primary-color); color: #fff; font: 600 .75rem/1.2rem 'Fira Sans', sans-serif; text-align: center; }
.cart-count[hidden] { display: none; }
@media screen and (max-width: 769px) {
    .logo-nav .flex-container { gap: .25rem; }
    .header-cart { width: 38px; }
    .logo { min-width: 0; flex: 1 1 auto; }
    .logo-nav { width: auto; flex: none; }
}
/* Narrow phones: the cart button needs room next to MENU. */
@media screen and (max-width: 420px) {
    .header-logo { width: 140px; }
    .header-palette { width: 34px; margin-right: .5rem; }
}

/* ---- Order a print (inside the blue artwork sidebar) ---- */
.print-order { margin: 0 0 1.5rem; padding: 0 0 1.25rem; border-bottom: 1px solid rgba(255, 255, 255, .25); }
.print-order h2 { margin-top: 0; }
.print-order-row { display: grid; grid-template-columns: 1fr 5rem; gap: .75rem; margin-bottom: .75rem; }
.print-order label { display: flex; flex-direction: column; gap: .3rem; font-weight: 600; }
.print-order select { width: 100%; padding: .55rem .5rem; font: inherit; font-weight: 400; color: var(--text-dark); background: #fff; border: 0; border-radius: 3px; }
.print-order .print-order-add { width: 100%; margin: 0; background: var(--primary-text-color); color: var(--text-dark) !important; font-weight: 600; border-radius: 3px; }
.print-order .print-order-add:hover, .print-order .print-order-add:focus { background: #fff; }
.print-order-status { margin: .6rem 0 0; min-height: 1.2em; }
.print-order-status a, .detail-content .print-order-status a { display: inline; color: #fff; text-decoration: underline; font-weight: 600; }
.print-order-note { margin: .5rem 0 0; font-size: .85rem; opacity: .85; }

/* ---- shop pages ---- */
#shop-root[hidden] { display: none; }
.shop-page { max-width: 1100px; margin: 0 auto; padding: 1rem 1rem 3rem; color: var(--text-light); }
.shop-page h1 { margin: .5rem 0 1.25rem; }
.shop-page h2 { font-size: 1.25rem; margin: 0 0 .75rem; }
.shop-loading { padding: 3rem 0; text-align: center; color: var(--text-light-hover); }
.shop-muted { color: #b9b9b9; font-size: .9rem; }
.shop-center { text-align: center; }
.shop-warning { color: var(--required-color); }
.shop-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.shop-columns { display: grid; grid-template-columns: minmax(0, 1fr) 20rem; gap: 2rem; align-items: start; }
.shop-main > * + * { margin-top: 1.25rem; }
.shop-summary { position: sticky; top: calc(var(--site-header-h, 0px) + 1rem); padding: 1.25rem; background: var(--background-color-primary); border-radius: 6px; }
.shop-summary h2 + * { margin-top: 0; }
.shop-summary h2:not(:first-child) { margin-top: 1.5rem; }
.shop-page .button-link, .shop-page button { border-radius: 3px; font: inherit; }
.shop-page button:disabled, .shop-page .is-disabled { opacity: .5; cursor: not-allowed; pointer-events: none; }
.shop-wide { display: block; width: 100%; box-sizing: border-box; margin: 1rem 0 .5rem; text-align: center; }
.shop-pay { font-size: 1.15rem; font-weight: 600; padding: 1.1rem; }
.shop-text-link { display: block; text-align: center; margin-top: .5rem; color: var(--secondary-text-color); }
.shop-page .shop-link-button { align-self: flex-start; background: none; border: 0; padding: .25rem 0; margin: 0; color: var(--secondary-text-color) !important; text-decoration: underline; cursor: pointer; }
.shop-page .shop-link-button:hover, .shop-page .shop-link-button:focus { background: none; color: #fff !important; }
.shop-empty { padding: 2rem; text-align: center; background: var(--background-color-primary); border-radius: 6px; }
.shop-empty p:first-child { font-size: 1.2rem; }

/* cart and order lines */
.shop-lines { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--gray); }
.shop-line { display: grid; grid-template-columns: 88px minmax(0, 1fr) auto; gap: 1rem; align-items: start; padding: 1rem 0; border-bottom: 1px solid var(--gray); }
.shop-line-gone { opacity: .75; }
.shop-thumb { display: block; width: 88px; height: 88px; object-fit: cover; border-radius: 4px; background: #222; }
.shop-thumb-none { border: 1px dashed var(--lightgray); box-sizing: border-box; }
.shop-line-main { display: flex; flex-direction: column; gap: .4rem; min-width: 0; }
.shop-line-title { color: var(--text-light); font-weight: 600; font-size: 1.1rem; }
.shop-line-size select { max-width: 100%; padding: .4rem; font: inherit; color: #fff; background: rgb(20, 31, 48); border: 1px solid var(--lightgray); border-radius: 3px; }
.shop-line-actions { display: flex; align-items: center; gap: 1.25rem; }
.shop-line-price { font-weight: 600; white-space: nowrap; }
.shop-qty { display: inline-flex; align-items: center; border: 1px solid var(--lightgray); border-radius: 3px; }
.shop-page .shop-qty button { width: 2.2rem; height: 2.2rem; padding: 0; margin: 0; border-radius: 0; background: transparent; color: var(--text-light) !important; font-size: 1.1rem; }
.shop-page .shop-qty button:hover:not(:disabled) { background: var(--gray); }
.shop-qty span { min-width: 2rem; text-align: center; }

/* totals */
.shop-totals { display: flex; flex-direction: column; gap: .4rem; margin: .5rem 0; }
.shop-total-row { display: flex; justify-content: space-between; }
.shop-total-grand { padding-top: .6rem; margin-top: .3rem; border-top: 1px solid var(--lightgray); font-size: 1.2rem; font-weight: 600; }
.shop-mini-lines { list-style: none; margin: 0 0 1rem; padding: 0; display: flex; flex-direction: column; gap: .75rem; }
.shop-mini-lines li { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: .6rem; align-items: center; }
.shop-mini-lines .shop-thumb { width: 48px; height: 48px; }
.shop-mini-main { display: flex; flex-direction: column; min-width: 0; }
.shop-mini-main strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }

/* checkout */
.shop-steps { display: flex; gap: .5rem; list-style: none; padding: 0; margin: 0 0 1.5rem; flex-wrap: wrap; }
.shop-step { display: flex; align-items: center; gap: .5rem; color: #9a9a9a; }
.shop-step + .shop-step::before { content: ''; width: 2rem; height: 1px; background: var(--lightgray); margin-right: .25rem; }
.shop-step-n { display: inline-flex; align-items: center; justify-content: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; border: 1px solid currentColor; font-size: .85rem; }
.shop-step.is-on { color: #fff; font-weight: 600; }
.shop-step.is-on .shop-step-n { background: var(--primary-color); border-color: var(--primary-color); }
.shop-step.is-done { color: var(--primary-text-color); }
.shop-account-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1rem; padding: .9rem 1rem; background: var(--background-color-primary); border-left: 4px solid var(--secondary-color); border-radius: 3px; }
.shop-account-banner button { margin: 0; padding: .6rem 1.2rem; }
.shop-form fieldset { border: 0; padding: 0; margin: 0 0 1.5rem; }
.shop-form legend { background: none; color: var(--text-light); font-family: 'Fira Sans', sans-serif; font-size: 1.25rem; font-weight: 600; margin-bottom: .75rem; padding: 0; }
.shop-field { display: flex; flex-direction: column; gap: .3rem; margin-bottom: .9rem; }
.shop-field label { font-weight: 600; }
.shop-optional { font-weight: 400; color: #b9b9b9; }
.shop-hint { font-size: .85rem; color: #b9b9b9; }
/* Scoped to beat forms.css (light inputs, red "required" bars before anyone
   has typed). Here a field only turns red once the customer has left it
   invalid. */
#shop-root .shop-form .shop-input { width: 100%; box-sizing: border-box; padding: .7rem .7rem; font: inherit; font-size: 1rem; color: #fff; background: rgb(20, 31, 48); border: 1px solid var(--lightgray) !important; border-radius: 3px; }
#shop-root .shop-form .shop-input:focus { outline: 2px solid var(--primary-color); outline-offset: 0; border-color: var(--primary-color) !important; }
#shop-root .shop-form .shop-input:user-invalid { border-color: var(--required-color) !important; box-shadow: inset 4px 0 0 var(--required-color); }
.shop-field-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr) minmax(0, 1fr); gap: 0 .75rem; }
.shop-check { display: flex; align-items: center; gap: .5rem; cursor: pointer; }
.shop-check input { width: 1.1rem; height: 1.1rem; accent-color: var(--primary-color); }
.shop-review { padding: 1rem 1.25rem; background: var(--background-color-primary); border-radius: 6px; }
.shop-review + .shop-review, .shop-error + .shop-review { margin-top: 1rem; }
.shop-review-head { display: flex; justify-content: space-between; align-items: baseline; }
.shop-address { display: flex; flex-direction: column; font-style: normal; line-height: 1.5; }
.shop-test-banner { padding: .75rem 1rem; margin-bottom: 1rem; background: #4a3b10; color: #ffe7a3; border: 1px solid #8a6d1f; border-radius: 3px; }
.shop-fake-card { display: flex; flex-direction: column; gap: .25rem; padding: 1rem; border: 1px dashed var(--lightgray); border-radius: 4px; }
.shop-error { padding: .9rem 1rem; background: var(--alert-danger); color: var(--alert-danger-color); border-radius: 3px; }
.shop-error p { margin: 0; }
.shop-error ul { margin: .5rem 0 0; }

/* order status */
.shop-thanks { padding: 1.5rem; margin-bottom: 1.5rem; background: var(--alert-success); color: var(--alert-success-color); border-radius: 6px; }
.shop-thanks h1 { margin: 0 0 .5rem; color: #fff; }
.shop-thanks p { margin: 0; }
.shop-order-head { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; }
.shop-order-head div { display: flex; flex-direction: column; }
.shop-tracker { display: grid; grid-template-columns: repeat(3, 1fr); list-style: none; padding: 0; margin: 1.5rem 0; counter-reset: none; }
.shop-tracker li { position: relative; display: flex; flex-direction: column; align-items: center; gap: .5rem; text-align: center; color: #9a9a9a; font-size: .9rem; }
.shop-tracker li::before { content: ''; position: absolute; top: .55rem; left: -50%; width: 100%; height: 3px; background: var(--gray); z-index: 0; }
.shop-tracker li:first-child::before { display: none; }
.shop-tracker li.is-done::before { background: var(--primary-color); }
.shop-tracker-dot { position: relative; z-index: 1; width: 1.2rem; height: 1.2rem; border-radius: 50%; background: var(--gray); border: 3px solid var(--background-color); }
.shop-tracker li.is-done { color: var(--text-light); }
.shop-tracker li.is-done .shop-tracker-dot { background: var(--primary-color); }
.shop-tracker li.is-current { font-weight: 600; color: #fff; }
.shop-tracker-date { font-size: .8rem; font-weight: 400; color: #b9b9b9; }
.shop-tracking { padding: .9rem 1rem; background: var(--alert-success); color: var(--alert-success-color); border-radius: 4px; }
.shop-tracking a { color: #fff; font-weight: 600; }
.shop-cancel { padding: 1rem 1.25rem; border: 1px solid var(--gray); border-radius: 6px; }
.shop-cancel p { margin: .35rem 0 .5rem; }
.shop-cancel-pending { border-color: #8a6d1f; background: #4a3b10; color: #ffe7a3; }
.shop-cancel-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.shop-cancel-actions button { margin: 0; }
.shop-callout { padding: 1.25rem; border: 1px solid var(--secondary-color); border-radius: 6px; }
.shop-callout p { margin-top: 0; }
.shop-badge { display: inline-block; padding: .2rem .6rem; border-radius: 999px; font-size: .8rem; white-space: nowrap; background: var(--lightgray); color: #fff; }
.shop-badge-paid { background: var(--primary-color); }
.shop-badge-sent-to-printer { background: var(--secondary-color); }
.shop-badge-shipped { background: #2f6b4f; }
.shop-badge-refunded, .shop-badge-cancelled { background: #6b2f2f; }
.shop-badge-cancel-requested { background: #8a6d1f; }

/* account */
.shop-signin { padding: 1.5rem; background: var(--background-color-primary); border-radius: 6px; }
.shop-signin button { margin: .5rem 0 1rem; padding: 1rem 1.5rem; }
.shop-account-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.shop-account-head h1 { margin-bottom: .25rem; }
.shop-account-head p { margin: 0; }
.shop-account-actions { display: flex; gap: .75rem; align-items: center; }
.shop-account-actions > * { margin: 0 !important; }
.shop-page section > h2 { margin-top: 1.5rem; }
.shop-order-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .6rem; }
.shop-order-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 1rem; align-items: center; padding: .9rem 1rem; background: var(--background-color-primary); border-radius: 6px; color: var(--text-light); text-decoration: none; }
.shop-order-card:hover, .shop-order-card:focus-visible { outline: 1px solid var(--primary-color); border-bottom: 0; }
.shop-order-thumbs { display: flex; }
.shop-order-thumbs .shop-thumb { width: 56px; height: 56px; border: 2px solid var(--background-color-primary); }
.shop-order-thumbs .shop-thumb + .shop-thumb { margin-left: -24px; }
.shop-order-main { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.shop-order-main strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shop-saved-address { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem; background: var(--background-color-primary); border-radius: 6px; }
.shop-saved-actions { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: .5rem; text-align: right; }
.shop-saved-actions .shop-link-button { align-self: flex-end; }
.shop-check-hint { margin: .3rem 0 0 2.2rem; }
.shop-device-orders { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .4rem; }
.shop-device-orders a { color: var(--secondary-text-color); font-weight: 600; }

@media screen and (max-width: 820px) {
    .shop-columns { grid-template-columns: 1fr; }
    .shop-summary { position: static; }
}
@media screen and (max-width: 520px) {
    .shop-steps { flex-wrap: nowrap; font-size: .9rem; gap: .35rem; }
    .shop-step + .shop-step::before { width: .9rem; }
    .shop-line { grid-template-columns: 64px minmax(0, 1fr); }
    .shop-thumb { width: 64px; height: 64px; }
    .shop-line-price { grid-column: 2; }
    .shop-field-row { grid-template-columns: 1fr 1fr; }
    .shop-field-row > :first-child { grid-column: 1 / -1; }
    .shop-order-card { grid-template-columns: minmax(0, 1fr) auto; }
    .shop-order-thumbs { display: none; }
    .shop-account-head { flex-direction: column; align-items: flex-start; }
}

/* ---- footer links and /privacy, /terms pages ---- */
.footer-links { display: inline-flex; flex-wrap: wrap; gap: .25rem 1rem; }
.footer-links a { white-space: nowrap; }
#page-root[hidden] { display: none; }
.legal { max-width: 46rem; margin: 0 auto; padding: 1rem 1rem 3rem; color: var(--text-light); line-height: 1.6; }
.legal h1 { margin: .5rem 0 .25rem; }
.legal h2 { font-size: 1.3rem; margin: 2rem 0 .5rem; }
.legal h3 { font-size: 1.05rem; margin: 1.25rem 0 .25rem; }
.legal ul { padding-left: 1.25rem; }
.legal li + li { margin-top: .35rem; }
.legal a { color: var(--secondary-text-color); }
.legal-updated { color: #b9b9b9; margin-top: 0; }
.legal-draft { padding: .6rem 1rem; background: #4a3b10; color: #ffe7a3; border: 1px solid #8a6d1f; border-radius: 3px; }

/* ---- /contact ---- */
.contact-form { display: flex; flex-direction: column; gap: 1rem; margin-top: 1.5rem; }
.contact-field { display: flex; flex-direction: column; gap: .3rem; }
.contact-field[hidden] { display: none; }
.contact-field label { font-weight: 600; }
.contact-optional { font-weight: 400; color: #b9b9b9; }
#page-root .contact-field input, #page-root .contact-field textarea { width: 100%; box-sizing: border-box; padding: .7rem; font: inherit; font-size: 1rem; color: #fff; background: rgb(20, 31, 48); border: 1px solid var(--lightgray) !important; border-radius: 3px; }
#page-root .contact-field input:focus, #page-root .contact-field textarea:focus { outline: 2px solid var(--primary-color); border-color: var(--primary-color) !important; }
#page-root .contact-field input[readonly] { color: #b9b9b9; background: transparent; }
.contact-field textarea { resize: vertical; min-height: 9rem; }
.contact-count { align-self: flex-end; color: #b9b9b9; }
.contact-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-form button { align-self: flex-start; padding: .9rem 1.5rem; border-radius: 3px; font: inherit; font-weight: 600; }
.contact-status { min-height: 1.5em; margin: 0; }
.contact-status-ok { padding: .75rem 1rem; background: var(--alert-success); color: var(--alert-success-color); border-radius: 3px; }
.contact-status-error { color: var(--required-color); }
