/* Layout only. Colours, borders and radii come from theme.css (loaded first) - do not set them here, or they silently override the theme. */
html {
  font-size: 14px;
}

/* iOS Safari zooms into any field under 16px: form fields (only) stay at 16px on phones. The sign-in code field is larger already (it's
   the cells' 1.75rem, through font: inherit). */
@media (max-width: 767.98px) {
  .form-control, .form-select, .form-control-sm, .form-select-sm, textarea.form-control { font-size: 16px; }
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

html {
  position: relative;
  min-height: 100%;
}


.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}
/* The header: one row at every width (the logo's words are dropped on a phone). */
.site-header { display: flex; flex-wrap: nowrap; align-items: center; gap: 0.25rem; }
.site-header .nav-link { padding: 0.5rem 0.4rem; white-space: nowrap; }
.header-right { display: flex; flex-wrap: nowrap; align-items: center; gap: 0.1rem; margin-left: auto; min-width: 0; }
.account-link { overflow: hidden; text-overflow: ellipsis; max-width: 9rem; }
.cart-link { position: relative; display: inline-flex; }
.cart-badge { position: absolute; top: 0; right: -0.1rem; min-width: 1.1rem; padding: 0 0.3rem; border-radius: 0.55rem; background: var(--accent); color: #fff; font-size: 0.7rem; line-height: 1.1rem; text-align: center; }
@media (max-width: 575.98px) { .brand-name { display: none; } .brand { margin-right: 0.25rem; } }

/* Brand in the header: the emblem beside the name in the shirt fonts (logo approved 2026-10-14). */
.brand {
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #111111;
}

.brand-name {
  font-family: "Cinzel Decorative", serif;
  font-weight: 700;
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.brand-the {
  font-family: "Satisfy", cursive;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.95em;
}

/* The sign-in code: one real input drawn as six cells (Account/Code). Each cell is --cell wide with --gap between; the
   input's letters are spaced to land in the middle of each cell. */
.code-cells {
    --cell: 3ch; --gap: 0.6ch;
    position: relative;
    overflow: hidden;
    display: flex;
    width: max-content;
    gap: var(--gap);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 1.75rem;
}
.code-cells > span {
    width: var(--cell);
    height: 2em;
    border: 1px solid var(--edge);
    border-radius: 0.5rem;
    background: #fff;
}
.code-cells:focus-within > span { border-color: #8a8478; }
.code-cells[data-filled="0"]:focus-within > span:nth-child(1),
.code-cells[data-filled="1"]:focus-within > span:nth-child(2),
.code-cells[data-filled="2"]:focus-within > span:nth-child(3),
.code-cells[data-filled="3"]:focus-within > span:nth-child(4),
.code-cells[data-filled="4"]:focus-within > span:nth-child(5),
.code-cells[data-filled="5"]:focus-within > span:nth-child(6) { border-color: #212529; box-shadow: 0 0 0 0.2rem rgba(33, 37, 41, 0.15); }
.code-cells > input {
    position: absolute;
    inset: 0;
    width: calc(100% + var(--cell));   /* room for the caret after the sixth digit, so the text never scrolls */
    border: 0;
    outline: none;
    background: transparent;
    font: inherit;
    color: #212529;
    letter-spacing: calc(var(--cell) + var(--gap) - 1ch);
    padding-left: calc((var(--cell) - 1ch) / 2);
    overflow: hidden;
}

/* The cart page */
.cart-line-body { display: flex; gap: 1rem; }
.cart-thumb { width: 90px; height: 120px; object-fit: contain; flex: none; }
.cart-line-main { min-width: 0; flex: 1; }
.cart-line-body > a { flex: none; }
.line-total { white-space: nowrap; }
.cart-sizes { display: grid; grid-template-columns: repeat(auto-fill, minmax(4.5rem, 1fr)); gap: 0.5rem; }
.cart-size { display: flex; flex-direction: column; font-size: 0.85rem; }
.cart-totals { display: grid; grid-template-columns: 1fr auto; max-width: 20rem; margin-left: auto; }
.cart-totals dd { margin: 0; text-align: right; }
@media (max-width: 480px) { .cart-thumb { width: 60px; height: 80px; } }

/* The checkout page */
.checkout-line { display: flex; gap: 0.75rem; margin-bottom: 0.75rem; }
.checkout-line .cart-thumb { width: 60px; height: 80px; }
#new-address[hidden] { display: none; }
/* The Promo code box under the order summary: the field shrinks so Apply always fits, even at 320 px */
.promo-box { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0.25rem 0 0.75rem; padding: 0.75rem 0; }
/* Phones: the summary, with the Promo code box, comes before the form and its pay button (as on Shopify) */
@media (max-width: 767.98px) { .two-col > #checkout-summary { order: -1; } }
.promo-entry { display: flex; gap: 0.5rem; }
.promo-entry .form-control { min-width: 0; flex: 1 1 auto; }
.promo-entry .btn { flex: 0 0 auto; }
.promo-applied { display: flex; justify-content: space-between; align-items: baseline; gap: 0.75rem; min-width: 0; }
.promo-line > span:first-child { min-width: 0; overflow-wrap: anywhere; }

/* Store pages: the account area, cart, checkout and order page share these */
.acct { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 2.5rem; margin-top: 2rem; margin-bottom: 3rem; }
.acct-body { padding: 0.5rem 1.5rem 0; }
.acct-nav a, .acct-signout button { display: block; width: 100%; padding: 0.55rem 0.75rem; border: 0; background: none; text-align: left; text-decoration: none; font: inherit; }
.acct-nav hr { margin: 0.5rem 0; }
.acct-title { margin-bottom: 1.5rem; }
.acct-narrow { max-width: 32rem; }
.acct-pad { padding: 0 0.5rem; }
@media (max-width: 767.98px) { .acct { margin-top: 1rem; } .acct-body, .acct-pad { padding: 0; } }
@media (max-width: 767.98px) {
    .acct { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
    .acct-nav { display: flex; align-items: center; overflow-x: auto; gap: 0.25rem; border-bottom: 1px solid var(--line); padding-bottom: 0.5rem; }
    .acct-nav a, .acct-signout button { width: auto; white-space: nowrap; }
    .acct-nav hr { display: none; }
}

.status-pill { display: inline-block; padding: 0.1rem 0.55rem; border-radius: 1rem; font-size: 0.8rem; background: #e7f5ec; color: #146c43; }

.two-col { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 2rem; align-items: start; }
@media (max-width: 767.98px) { .two-col { grid-template-columns: minmax(0, 1fr); } }

.summary-box { border-width: 1px; border-style: solid; }
.summary-row { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: 0.4rem; }
.summary-total { font-size: 1.15rem; font-weight: 700; border-top: 1px solid var(--line); padding-top: 0.6rem; margin-top: 0.6rem; margin-bottom: 0; }

.cart-line, .order-item { padding: 1rem 0; border-bottom-width: 1px; border-bottom-style: solid; }
.cart-line:first-child, .order-item:first-child { padding-top: 0; }
.order-item { display: flex; justify-content: space-between; gap: 1rem; }
.order-item-price { white-space: nowrap; }
.order-item-main { flex: 1; min-width: 0; }
.order-item-thumb { width: 84px; height: 112px; object-fit: contain; flex: none; display: block; }
.order-item-pic { display: flex; gap: 0.75rem; flex: 1; min-width: 0; }

.address-card { display: flex; align-items: flex-start; gap: 0.6rem; border-width: 1px; border-style: solid; padding: 0.75rem 1rem; margin-bottom: 0.5rem; cursor: pointer; }
/* The returns acknowledgement: it must be seen and ticked before payment. */
.returns-box { background: #fff; border: 2px solid var(--ink, #1d1b20); border-radius: 0.75rem; padding: 1rem 1.25rem 1rem 3.4rem; font-size: 1rem; color: var(--ink, #1d1b20); }
.returns-box .form-check-input { width: 1.5rem; height: 1.5rem; margin-left: -2.35rem; margin-top: 0.05rem; border: 2px solid var(--ink, #1d1b20); cursor: pointer; }
.returns-box .form-check-label { cursor: pointer; }
.returns-box:has(.form-check-input:checked) { border-color: var(--accent, #6d3fa0); background: var(--accent-soft, #f1ebf8); }

.added-panel { position: fixed; top: 5rem; right: 1rem; z-index: 1080; display: flex; gap: 0.75rem; width: 22rem; max-width: calc(100vw - 2rem); padding: 0.85rem 2rem 0.85rem 0.85rem; border-width: 1px; border-style: solid; box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.18); }
.added-thumb { width: 60px; height: 80px; object-fit: contain; flex: none; background: #f5f5f5; border-radius: 0.3rem; }
.added-text { min-width: 0; }
.added-title { font-weight: 600; }
.added-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.5rem; }
.added-close { position: absolute; top: 0.25rem; right: 0.4rem; border: 0; background: none; font-size: 1.4rem; line-height: 1; color: #555; padding: 0.1rem 0.4rem; }
@media (max-width: 767.98px) { .added-panel { left: 0; right: 0; width: auto; max-width: none; border-radius: 0; } }
.acct-signout-note { margin: 0.25rem 0.75rem 0; font-size: 0.78rem; color: #6c757d; }
@media (max-width: 767.98px) { .acct-signout { max-width: 14rem; white-space: normal; } .acct-signout-note { white-space: normal; } }

/* The yellow bar shown on every page while an admin previews unpublished changes. */
.preview-bar { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; align-items: center; padding: 0.4rem 1rem; background: #f6e27a; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 0.9rem; font-weight: 500; }
.preview-bar a, .preview-bar .btn-link { color: var(--ink); text-decoration: underline; font-size: inherit; font-weight: 600; }
.preview-bar a:hover, .preview-bar .btn-link:hover { color: var(--accent); }
.preview-bar .preview-exit { margin: 0; display: inline; }

/* The slim notices: ordering halted (everyone), and maintenance mode seen by a signed-in admin. */
.ordering-bar, .maintenance-bar { padding: 0.4rem 1rem; text-align: center; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 0.9rem; font-weight: 500; }
/* The Staging ribbon: calm blue-grey, deliberately not the error red or the maintenance yellow. */
.test-site-ribbon { padding: 0.3rem 1rem; text-align: center; background: #dde7f1; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 0.85rem; font-weight: 500; }
.ordering-bar { background: var(--accent-soft); }
.maintenance-bar { background: #f6e27a; }
.site-banner { overflow-wrap: anywhere; padding: 0.4rem 1rem; text-align: center; background: var(--ink); color: #fff; font-size: 0.9rem; font-weight: 500; }
.switch-status { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; margin-top: 1rem; padding: 0.5rem 1rem; background: #f6e27a; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); font-size: 0.95rem; }
.switch-status a { color: var(--ink); font-weight: 600; text-decoration: underline; }

/* Admin: grouped left menu (a wrapped block above the page on a phone), the unpublished-changes banner, and the Changes/History tables. */
.admin-nav-group { margin-bottom: 0.75rem; }
.admin-nav-heading { display: block; padding: 0.25rem 0.75rem; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: #6c757d; }
.draft-banner { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin-top: 1rem; padding: 0.5rem 1rem; background: var(--accent-soft); border: 1px solid var(--line); border-radius: 6px; color: var(--ink); font-size: 0.95rem; }
.draft-banner a, .draft-banner .btn-link { color: var(--accent); font-weight: 600; font-size: inherit; text-decoration: underline; }
.draft-banner .draft-banner-form { margin: 0; display: inline; }
.swatch { display: inline-block; width: 0.9rem; height: 0.9rem; border: 1px solid var(--line); border-radius: 3px; vertical-align: -0.1rem; margin-right: 0.25rem; }
.change-stale { color: #8a4b00; font-size: 0.85rem; }
@media (max-width: 767.98px) {
    .admin-nav { flex-wrap: wrap; overflow-x: visible; align-items: flex-start; }
    .admin-nav-group { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem; margin-bottom: 0.25rem; width: 100%; }
    .admin-nav-heading { width: auto; }
}

/* Admin: the phrase edit form beside its sample print (stacked on a phone). */
.phrase-edit { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: flex-start; }
.phrase-edit form { flex: 1 1 20rem; max-width: 32rem; }
.phrase-preview-box { flex: 0 1 450px; max-width: 100%; }
.phrase-preview-box canvas { width: 100%; height: auto; border: 1px solid #d9d2de; border-radius: 0.25rem; background: #fff; }

/* Admin: the palette edit form beside its two live previews, and the small previews in the list. */
.palette-edit { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: flex-start; }
.palette-edit form { flex: 1 1 20rem; max-width: 32rem; }
.palette-preview-box { flex: 0 1 500px; display: flex; flex-wrap: wrap; gap: 0.75rem; max-width: 100%; }
.palette-preview-box canvas { width: 240px; max-width: 100%; height: auto; border: 1px solid var(--line); border-radius: 0.25rem; background: var(--paper); }
.stop-row { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.5rem; }
.stop-row .stop-color { width: 2.5rem; height: 2.25rem; padding: 0; border: 1px solid var(--line); border-radius: 0.25rem; background: var(--paper); flex: none; }
.stop-row .stop-hex { max-width: 8rem; font-family: ui-monospace, monospace; }
.palette-thumbs { white-space: nowrap; }
.palette-thumb { width: 72px; height: 72px; margin-right: 0.35rem; border-radius: 50%; background: var(--accent-soft); }

/* Admin: the setting pages (tile layout, print layout, generators). */
.setting-edit { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: flex-start; }
.setting-edit form { flex: 1 1 20rem; max-width: 32rem; }
.setting-preview-box { flex: 1 1 24rem; display: flex; flex-wrap: wrap; gap: 0.75rem; max-width: 100%; }
.setting-preview-box figure, .generator-pair figure { margin: 0; text-align: center; }
.setting-preview-box canvas, .generator-pair canvas { max-width: 100%; height: auto; border: 1px solid var(--line); border-radius: 0.25rem; background: var(--paper); }
.setting-input { max-width: 12rem; }
.generator-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1.5rem; }
.generator-previews { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.generator-pair { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: flex-start; }
.generator-pair h3 { flex: 1 0 100%; margin: 0; }
.setting-preview-box canvas.shirt-canvas { width: 350px; }

/* Admin: the store pages (prices, products, cart limits): money lines up on the right with tabular numbers. */
.money { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.money-input { max-width: 12rem; }
.money-input .form-control { font-variant-numeric: tabular-nums; }
.price-table .money-input { margin-left: auto; }
.name-input { max-width: 24rem; }
.example-row.below-floor th, .example-row.below-floor td { background: #fbeedc; }
.example-row .floor-flag { color: #8a4b00; font-size: 0.85rem; font-weight: 600; }
.line-unavailable { margin-bottom: 0.5rem; }

/* The admin dashboard */
.dash-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.dash-tile { display: flex; flex-direction: column; gap: 0.2rem; padding: 1rem; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.dash-label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.dash-value { font-size: 1.9rem; font-weight: 600; line-height: 1.1; }
.dash-note { font-size: 0.8rem; color: var(--muted); }
.dash-alert { border-color: #b02a37; background: #fbe9eb; }
.dash-alert .dash-value { color: #b02a37; }
.dash-late { color: #b02a37; font-weight: 600; }
.dash-errors { padding: 0.5rem 1rem; border: 1px solid #b02a37; border-radius: 6px; background: #fbe9eb; }
.dash-periods { display: flex; gap: 0.25rem; margin-bottom: 0.75rem; }
.dash-periods a { padding: 0.25rem 0.8rem; border: 1px solid var(--line); border-radius: 1rem; text-decoration: none; color: var(--ink); }
.dash-periods a.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.dash-health { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
@media (max-width: 767.98px) { .dash-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Admin > Lenses: the list of six lenses (picture, name, On switch, order arrows) and the picture on a tile. */
.lens-list { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: 0.5rem; max-width: 36rem; }
.lens-row { display: flex; align-items: center; gap: 0.75rem; padding: 0.5rem; border: 1px solid var(--line); border-radius: 0.5rem; background: var(--paper); }
.lens-row.lens-off .lens-pic { opacity: 0.4; }
.lens-link { display: flex; align-items: center; gap: 0.75rem; flex: 1 1 auto; color: inherit; text-decoration: none; }
.lens-link:hover .lens-name { text-decoration: underline; }
.lens-name { font-weight: 600; }
.lens-pic { border-radius: 50%; object-fit: cover; background: var(--paper); }
.lens-switch, .lens-move { margin: 0; display: flex; gap: 0.25rem; }
.showcase-design[aria-pressed="true"] { background: #212529; color: #fff; }

/* Admin > Home carousel: one card per slide, its chosen designs, and the design picker. */
.carousel-slides { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: 0.75rem; max-width: 52rem; }
.carousel-slides > .carousel-slide { padding: 0.75rem; border: 1px solid var(--line); border-radius: 0.5rem; background: var(--paper); }
.carousel-slides > .carousel-slide.carousel-off { opacity: 0.75; border-style: dashed; }
.carousel-head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; margin-bottom: 0.5rem; }
.carousel-head h2 { flex: 1 1 auto; }
.carousel-move { display: flex; gap: 0.25rem; }
.carousel-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 0.5rem; }
.carousel-fields .carousel-wide { grid-column: 1 / -1; }
.carousel-code { font-family: ui-monospace, monospace; text-transform: uppercase; max-width: 14rem; }
.carousel-photo-preview { object-fit: cover; border-radius: 0.25rem; border: 1px solid var(--line); }
.carousel-pick { display: flex; flex-direction: column; align-items: center; gap: 0.25rem; width: 7rem; }
.carousel-pick-pic { width: 6rem; height: auto; min-height: 4rem; background: #f2f2f2; border-radius: 0.25rem; }
.carousel-pick-undrawn .carousel-pick-pic { outline: 2px solid #dc3545; }
.carousel-dialog { width: min(52rem, 96vw); max-height: 90vh; overflow-y: auto; border: 1px solid var(--line); border-radius: 0.5rem; }
.carousel-pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(8rem, 1fr)); gap: 0.5rem; }
.carousel-pick-choice { width: 100%; padding: 0.25rem; border: 1px solid var(--line); border-radius: 0.5rem; background: #fff; text-align: center; }
.carousel-pick-choice canvas { width: 100%; height: auto; }
.carousel-pick-choice[aria-pressed="true"] { outline: 3px solid #212529; }
.carousel-pick-choice:disabled { opacity: 0.6; }

/* Sharing a design (Pages/Shared/_ShareParts.cshtml, js/share/share.js): the photo "are you sure?" and the small share panel. */
.share-warning { width: min(26rem, calc(100vw - 2rem)); padding: 1.1rem; border: 1px solid var(--line); border-radius: 1rem; background: #fff; color: var(--ink); }
.share-warning::backdrop { background: rgba(0, 0, 0, 0.35); }
.share-warning-title { margin: 0 0 0.35rem; font-size: 1.05rem; font-weight: 600; }
.share-warning-text { margin: 0; color: var(--muted); font-size: 0.9rem; }
.share-warning-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.5rem; margin-top: 1rem; }
.share-buttons { position: fixed; z-index: 1080; width: max-content; max-width: calc(100vw - 1rem); padding: 0.85rem 2.25rem 0.85rem 0.85rem; border: 1px solid var(--line); border-radius: 1rem; background: #fff; box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.18); }
.share-buttons[hidden] { display: none; }
.share-buttons.docked { left: 0; right: 0; bottom: 0; top: auto; width: auto; max-width: none; border-radius: 1rem 1rem 0 0; padding-bottom: calc(0.85rem + env(safe-area-inset-bottom, 0px)); }
.share-note { margin: 0; font-size: 0.9rem; overflow-wrap: anywhere; }
.share-note[hidden], .share-ready[hidden], .share-links[hidden] { display: none; }
.share-note:not([hidden]) + .share-ready, .share-note:not([hidden]) ~ .share-links { margin-top: 0.5rem; }
.share-ready-text { margin: 0 0 0.5rem; font-weight: 600; }
.share-links { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.share-links .btn { border-radius: 999px; display: inline-flex; align-items: center; gap: 0.3rem; }
.share-close { position: absolute; top: 0.3rem; right: 0.45rem; border: 0; background: none; font-size: 1.4rem; line-height: 1; color: #555; padding: 0.1rem 0.4rem; }

/* "Show it off" on the order confirmation page, a box per design (js/share/orderShare.js). */
.show-it-off { display: flex; gap: 0.85rem; align-items: flex-start; margin: 1rem 0; padding: 0.85rem; border-radius: 0.75rem; background: var(--accent-soft); }
.show-it-off-thumb { width: 63px; height: 84px; flex: none; object-fit: contain; background: #fff; border-radius: 4px; }
.show-it-off-text { flex: 1; min-width: 0; }
.show-it-off-title { font-weight: 600; }
.show-it-off-button { display: inline-flex; margin-top: 0.6rem; }
.show-it-off-wait { margin: 0.5rem 0 0; font-size: 0.9rem; }
.show-it-off .share-status, .order-share .share-status { margin: 0.4rem 0 0; }
.share-status[hidden] { display: none; }
@media (max-width: 575.98px) { .show-it-off-button { display: flex; width: 100%; justify-content: center; } }

/* The order page: "Shared · Stop sharing" / "Not shared · Share again" under each design. */
.order-share { margin-top: 0.5rem; font-size: 0.9rem; }
.order-share-state { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 0.35rem; }
.order-share-form { display: inline; margin: 0; }
.order-share-action { padding: 0; border: 0; font-size: inherit; vertical-align: baseline; }
.order-share-wait { margin: 0; color: var(--muted); }

/* My designs: the designs shared from the designer, while their links last. */
.shared-designs { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 0.75rem; }
.shared-design { display: flex; gap: 0.75rem; align-items: center; padding: 0.6rem; border: 1px solid var(--line); border-radius: 0.6rem; }
.shared-design-pic { width: 96px; height: 96px; flex: none; object-fit: cover; border-radius: 0.4rem; background: #f1f1f1; }
.shared-design-text { min-width: 0; }

/* Admin: each section of a page is its own card (the look began on Switches & timings), with a tinted title bar when it has a heading.
   A card with a form is outlined while it is being edited. On Switches & timings, links at the top jump between the cards. */
.switch-jump { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1.5rem; }
.switch-jump a { padding: 0.25rem 0.75rem; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 0.875rem; text-decoration: none; color: var(--ink); }
.switch-jump a:hover { border-color: var(--accent); color: var(--accent); }
.admin-card { background: #fff; border: 1px solid var(--line); border-radius: 0.75rem; margin-bottom: 1.5rem; scroll-margin-top: 1rem; transition: border-color 0.15s, box-shadow 0.15s; }
.admin-card-head { padding: 0.9rem 1.25rem; border-bottom: 1px solid var(--line); background: var(--accent-soft); border-radius: 0.75rem 0.75rem 0 0; }
.admin-card-head > :last-child, .admin-card-body > :last-child { margin-bottom: 0; }
.admin-card-body { padding: 1rem 1.25rem 1.25rem; }
form + .admin-card { margin-top: 1.5rem; }   /* a card after a form's Save button doesn't sit on it */
.admin-card:has(form):focus-within, .admin-card:target { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
@media (max-width: 767.98px) { .admin-card-head, .admin-card-body { padding-left: 1rem; padding-right: 1rem; } }

/* ---- The home page carousel ---- */
/* The slides use the page's empty space: from 440 px up to 680 px, tied to the viewport (header, controls, button and footer take about 22rem). */
.home-carousel { --slide-h: clamp(440px, calc(100svh - 22rem), 680px); max-width: 1240px; margin: 0 auto 1.5rem; }
.carousel-frame { position: relative; border-radius: 1.25rem; overflow: hidden; background: #fff; box-shadow: 0 .25rem 1.5rem rgba(0, 0, 0, .06); }
.carousel-track { display: flex; transition: transform .7s ease; touch-action: pan-y; }
.home-carousel .carousel-slide { flex: 0 0 100%; min-width: 0; display: flex; }
.home-carousel .carousel-slide > .slide-x { flex: 1; min-width: 0; }
.carousel-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 1px solid var(--line); background: rgba(255, 255, 255, .9); font-size: 1.3rem; line-height: 1; color: var(--ink); padding: 0; }
.carousel-arrow.prev { left: .75rem; }
.carousel-arrow.next { right: .75rem; }
.carousel-controls { display: flex; justify-content: center; align-items: center; gap: 1rem; padding: .5rem 0; }
.carousel-dots { display: flex; gap: 0; }
/* 24px tap area; the visible dot (.65rem) is drawn by ::before */
.carousel-dots button { position: relative; width: 1.7rem; height: 1.7rem; border: 0; background: none; padding: 0; }
.carousel-dots button::before { content: ""; position: absolute; top: 50%; left: 50%; width: .65rem; height: .65rem; margin: -.325rem 0 0 -.325rem; border-radius: 50%; background: var(--line); }
.carousel-dots button[aria-current="true"]::before { background: var(--accent); }
.carousel-pause { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: .1rem .8rem; font-size: .85rem; color: var(--muted); }

.slide-x { display: grid; grid-template-columns: 1fr 1.5fr; align-items: center; gap: 1.5rem; padding: 2.5rem 3.5rem; min-height: var(--slide-h); }
.slide-x .eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; color: var(--accent); font-weight: 600; margin-bottom: .5rem; }
.slide-x .headline { font-size: 2.6rem; line-height: 1.08; font-weight: 600; margin: 0 0 .75rem; }
.slide-x .sentence { font-size: 1.1rem; color: var(--muted); margin-bottom: 1.25rem; max-width: 26rem; }
.slide-x .cta { border-radius: 999px; padding: .6rem 1.6rem; font-size: 1.05rem; }
.slide-x .visual { position: relative; display: flex; align-items: center; justify-content: center; min-height: 340px; min-width: 0; }
.slide-x.launch { background: linear-gradient(120deg, var(--accent-soft), #fff 60%); }
.promo-code { display: inline-block; border: 2px dashed var(--accent); color: var(--accent); border-radius: .75rem; padding: .4rem 1rem; font-weight: 700; letter-spacing: .1em; font-size: 1.4rem; margin-bottom: 1rem; }

.fan { position: relative; width: 100%; height: clamp(360px, calc(var(--slide-h) - 5rem), 560px); }
.fan img { position: absolute; top: 0; width: 46%; height: auto; filter: drop-shadow(0 .5rem 1rem rgba(0, 0, 0, .08)); }
.fan img:nth-child(1) { left: 2%; transform: rotate(-6deg) translateY(18px); }
.fan img:nth-child(2) { left: 27%; z-index: 2; }
.fan img:nth-child(3) { right: 2%; transform: rotate(6deg) translateY(18px); }
/* Shirt pictures (not the close-ups, which keep their frame): no frame or shadow. The picture's white photo background multiplies into the
   slide's own background (white, or the promo's pale gradient), so only the shirt shows. Side by side on one centre line, the middle one
   in front and a little larger; the pictures overlap only in their white margins, because a multiplied shirt body would show through. */
.fan img.shirt:not(.closeup) { top: 50%; width: 39%; filter: none; mix-blend-mode: multiply; }
.fan img.shirt:not(.closeup):nth-child(1) { left: 0; right: auto; transform: translateY(-50%); }
.fan img.shirt:not(.closeup):nth-child(2) { left: 30.5%; right: auto; transform: translateY(-50%) scale(1.1); z-index: 2; }
.fan img.shirt:not(.closeup):nth-child(3) { left: auto; right: 0; transform: translateY(-50%); }

.photo-to-shirt { display: grid; grid-template-columns: 1fr auto 1.2fr; align-items: center; gap: 1rem; width: 100%; }
.polaroid { background: #fff; padding: .6rem .6rem 1.6rem; box-shadow: 0 .4rem 1.2rem rgba(0, 0, 0, .12); transform: rotate(-4deg); }
.polaroid img { width: 100%; display: block; }
.polaroid p { margin: .4rem 0 0; font-size: .8rem; color: var(--muted); text-align: center; }
.arrow-big { font-size: 2.2rem; color: var(--accent); }
.shirt-one img, .step-card .pic img { width: 100%; height: auto; display: block; }
.shirt-one img.shirt:not(.closeup), .step-card .pic img.shirt:not(.closeup) { mix-blend-mode: multiply; }
.faces-one { width: min(calc((var(--slide-h) - 6rem) * .85), 90%, 520px); }

.live-disc { width: min(calc(var(--slide-h) - 6rem), 90%); aspect-ratio: 1; display: block; }
.snap-chip { position: absolute; bottom: 8%; right: 10%; background: var(--ink); color: #fff; border-radius: 999px; padding: .45rem 1rem; font-size: .95rem; box-shadow: 0 .3rem .8rem rgba(0, 0, 0, .2); }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); grid-auto-flow: column; gap: 1rem; width: 100%; }
.step-card { text-align: center; }
.step-card .pic { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; background: var(--paper); border-radius: 1rem; overflow: hidden; }
.step-card .live-disc { width: 88%; }
.step-card .n { display: inline-flex; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--ink); color: #fff; align-items: center; justify-content: center; font-size: .85rem; margin: .6rem .4rem 0 0; }
.step-card .t { font-weight: 600; }
.snapframe { position: relative; width: 70%; }
.snapframe canvas { width: 100%; border-radius: 50%; display: block; }
.snapframe .tick { position: absolute; right: -2%; bottom: -2%; width: 2rem; height: 2rem; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; }

@media (max-width: 767.98px) {
  .home-carousel { margin-inline: -.25rem; }
  .carousel-arrow { display: none; }
  /* On a phone the page is as tall as the screen: the slide card and the controls fill what is between the header and the footer
     (words on top, the picture filling the rest, centred). The layout's spacing around the carousel is trimmed to match. */
  body:has(.home-carousel) { min-height: 100svh; display: flex; flex-direction: column; }
  body:has(.home-carousel) > .container { flex: 1 0 auto; display: flex; flex-direction: column; }
  body:has(.home-carousel) > .container > main { flex: 1; display: flex; flex-direction: column; padding-bottom: 0 !important; }
  body:has(.home-carousel) > .site-footer { margin-top: .25rem; }
  .home-carousel { flex: 1; display: flex; flex-direction: column; margin-bottom: 0; }
  .carousel-frame { flex: 1; display: flex; flex-direction: column; }
  .carousel-track { flex: 1; }
  .slide-x { grid-template-columns: 1fr; grid-template-rows: auto 1fr; align-content: stretch; align-items: start; padding: 1.5rem 1.25rem 1rem; min-height: 0; text-align: center; gap: 1rem; }
  .slide-x .headline { font-size: 1.8rem; }
  .slide-x .sentence { margin-inline: auto; }
  .slide-x .visual { min-height: 0; align-self: stretch; }
  .fan { height: clamp(260px, 38svh, 420px); }
  .steps { gap: .5rem; }
}
@media (prefers-reduced-motion: reduce) {
  .carousel-track { transition: none; }
}

/* A slide shown as Close-up: the pictures are the design alone (3:4, on the store's light grey), so they get a round-cornered frame
   instead of the shirt's silhouette, and a little less width so the faces stay in view. */
.shirt.closeup { border-radius: 1.25rem; box-shadow: 0 .4rem 1.2rem rgba(0, 0, 0, .12); filter: none; }
.fan img.shirt.closeup { filter: none; }
.carousel-slide[data-view="closeup"] .faces-one { width: min(calc((var(--slide-h) - 6rem) * .75), 80%, 480px); }
.carousel-slide[data-view="closeup"] .photo-to-shirt { grid-template-columns: 1fr auto 1fr; }
.carousel-slide[data-view="closeup"] .fan img { width: min(42%, calc((var(--slide-h) - 6rem) * .72)); }
.carousel-slide[data-view="closeup"] .fan img:nth-child(1) { left: 4%; }
.carousel-slide[data-view="closeup"] .fan img:nth-child(2) { left: 29%; }
.carousel-slide[data-view="closeup"] .fan img:nth-child(3) { right: 4%; }
.step-card .pic img.closeup { height: 100%; width: auto; max-width: 100%; border-radius: 0; box-shadow: none; }
@media (max-width: 767.98px) { .carousel-slide[data-view="closeup"] .fan { height: 300px; } }

/* Admin inbox: the thread keeps a customer's line breaks (the text is encoded by Razor, never raw HTML). */
.inbox-unread td { font-weight: 700; }
.inbox-from { min-width: 8rem; }
.inbox-preview { font-weight: 400; overflow-wrap: anywhere; }
.inbox-thread { display: flex; flex-direction: column; gap: 0.75rem; max-width: 46rem; }
.inbox-message { border: 1px solid var(--bs-border-color, #dee2e6); border-radius: 0.5rem; padding: 0.75rem 1rem; }
.inbox-message.inbox-reply { background: var(--bs-tertiary-bg, #f8f9fa); }
.inbox-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.inbox-photos { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.5rem; }
.inbox-photo { display: inline-flex; flex-direction: column; gap: 0.15rem; }
.inbox-photo img { max-width: 120px; height: auto; border-radius: 0.25rem; }
