/* /order-by-chat (OrderChatController). Phone first; one column at every width.
   Kept quiet on purpose: a white page, the site's own type (Open Sans for words,
   Outfit for the few headings), nothing heavier than semibold, borders only on
   things that can be pressed or that hold an order. */
@font-face { font-family: "Open Sans"; src: url("/fonts/open-sans-latin.woff2") format("woff2"); font-weight: 300 700; font-stretch: 100%; font-display: swap; }
@font-face { font-family: "Outfit"; src: url("/fonts/outfit-latin.woff2") format("woff2"); font-weight: 400 800; font-display: swap; }

:root {
  color-scheme: light;
  --oc-bg: #ffffff; --oc-card: #ffffff; --oc-side: #f9fafb; --oc-fill: #f3f5f8; --oc-tint: #eef5fc; --oc-tint-line: #a9cbeb;
  --oc-ink: #1f2937; --oc-soft: #6b7280; --oc-faint: #9aa3af; --oc-line: #e5e7eb; --oc-line-strong: #d5dbe3; --oc-dash: #c3d5e8; --oc-dash-faint: #d3dde8;
  --oc-blue: #1776C8; --oc-blue-dark: #125A9C; --oc-mine: #1776C8;   /* fills: white words sit on these in both looks */
  --oc-accent: #1776C8; --oc-on-tint: #125A9C;                       /* blue as words, icons and outlines */
  --oc-ring: rgba(23, 118, 200, .14); --oc-shadow: 0 1px 3px rgba(16, 24, 40, .06); --oc-drawer: 0 10px 40px rgba(0, 0, 0, .22);
  --oc-good: #12805c; --oc-warn: #a15c00; --oc-bad-bg: #fff5f5; --oc-bad-line: #f0c9c9;
  --oc-tip-bg: #1f2937; --oc-tip-ink: #ffffff; --oc-swatch-line: rgba(0, 0, 0, .22); --oc-veil: rgba(15, 25, 40, .5);
  --oc-head: "Outfit", "Open Sans", system-ui, sans-serif;
}
/* Dark. The page script sets data-theme before the first paint: the visitor's own choice
   if they made one with the button in the header, otherwise what their device asks for.
   Mockups and garment photos stay on white: they are pictures of the real thing. */
:root[data-theme="dark"] {
  color-scheme: dark;
  --oc-bg: #0f141a; --oc-card: #171d25; --oc-side: #0b1015; --oc-fill: #1f2731; --oc-tint: #16283a; --oc-tint-line: #2f5a85;
  --oc-ink: #e6eaf0; --oc-soft: #9aa5b3; --oc-faint: #6f7b8a; --oc-line: #2a3340; --oc-line-strong: #364252; --oc-dash: #35495f; --oc-dash-faint: #2a3644;
  --oc-accent: #5aa9ec; --oc-on-tint: #8fc5f3;
  --oc-ring: rgba(90, 169, 236, .24); --oc-shadow: none; --oc-drawer: 0 10px 40px rgba(0, 0, 0, .6);
  --oc-good: #3fcf9a; --oc-warn: #f0b35a; --oc-bad-bg: #2a1718; --oc-bad-line: #5c2b2d;
  --oc-tip-bg: #e6eaf0; --oc-tip-ink: #0f141a; --oc-swatch-line: rgba(255, 255, 255, .3); --oc-veil: rgba(0, 0, 0, .65);
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--oc-ink); background: var(--oc-bg); display: flex; flex-direction: column; font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
button, input, textarea { font: inherit; color: inherit; }
strong, b { font-weight: 600; }
h2, h3 { font-family: var(--oc-head); font-weight: 600; }

.oc-top { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; background: var(--oc-bg); border-bottom: 1px solid var(--oc-line); }
.oc-top-start { display: flex; align-items: center; gap: 10px; min-width: 0; }
.oc-logo img { display: block; height: 30px; width: auto; }
.oc-top-actions { display: flex; align-items: center; gap: 14px; }
.oc-link { background: none; border: 0; padding: 0; color: var(--oc-accent); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; font-size: inherit; }
#oc-new, .oc-signin { color: var(--oc-soft); text-decoration: none; font-size: 14px; white-space: nowrap; }
#oc-new:hover, #oc-new:focus-visible, .oc-signin:hover, .oc-signin:focus-visible { color: var(--oc-accent); }
/* The signed-in customer: their initial, and the way to My Account. */
.oc-me { flex: 0 0 auto; width: 30px; height: 30px; display: inline-grid; place-items: center; border-radius: 50%; background: var(--oc-tint); color: var(--oc-on-tint); font-size: 13px; font-weight: 600; text-decoration: none; }
a.oc-me:hover, a.oc-me:focus-visible { outline: 2px solid var(--oc-accent); outline-offset: 2px; }
/* Light or dark: the moon shows in light, the sun in dark. */
.oc-icon { flex: 0 0 auto; width: 34px; height: 34px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--oc-soft); cursor: pointer; transition: background .12s, color .12s; }
.oc-icon:hover, .oc-icon:focus-visible { background: var(--oc-fill); color: var(--oc-accent); outline: none; }
.oc-theme .oc-sun, [data-theme="dark"] .oc-theme .oc-moon { display: none; }
[data-theme="dark"] .oc-theme .oc-sun { display: block; }
.oc-cart { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: var(--oc-ink); border: 1px solid var(--oc-line); padding: 6px 14px; border-radius: 999px; font-weight: 600; font-size: 14px; }
.oc-cart:hover, .oc-cart:focus-visible { border-color: var(--oc-accent); color: var(--oc-accent); outline: none; }
.oc-cart span { background: var(--oc-blue); color: #fff; border-radius: 999px; min-width: 20px; padding: 0 6px; text-align: center; font-size: 12px; line-height: 20px; }

.oc-shell { flex: 1 1 auto; min-height: 0; display: flex; position: relative; }
.oc-stage { flex: 1 1 auto; min-width: 0; min-height: 0; display: flex; flex-direction: column; }

/* ---- The side panel, for a signed-in customer: their orders and their saved designs.
   Open beside the conversation on a wide screen (.oc-side-open on <html>, set before the
   first paint), a drawer over it elsewhere. Every row is a link into My Account. */
.oc-side { display: none; flex: 0 0 272px; width: 272px; min-height: 0; flex-direction: column; background: var(--oc-side); border-right: 1px solid var(--oc-line); }
.oc-side-open .oc-side { display: flex; }
.oc-side-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 10px 8px 6px; }
.oc-side-new { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; border-radius: 10px; background: none; font-size: 14px; font-weight: 600; text-align: left; cursor: pointer; }
.oc-side-new svg { color: var(--oc-soft); }
.oc-side-new:hover, .oc-side-new:focus-visible, .oc-side-row:hover, .oc-side-row:focus-visible { background: var(--oc-fill); outline: none; }
.oc-side-part { margin-top: 14px; }
.oc-side-title { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 0; padding: 0 10px 4px; font-size: 12px; color: var(--oc-soft); }
.oc-side-title a { color: inherit; text-decoration: none; }
.oc-side-title a:hover, .oc-side-title a:focus-visible { color: var(--oc-accent); text-decoration: underline; }
.oc-side-row { display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-radius: 10px; color: var(--oc-ink); text-decoration: none; }
.oc-side-pic { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 8px; background: #fff; border: 1px solid var(--oc-line); object-fit: contain; }
.oc-side-pic-none { display: grid; place-items: center; background: var(--oc-fill); color: var(--oc-faint); }
.oc-side-text { min-width: 0; display: flex; flex-direction: column; }
.oc-side-name { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.oc-side-sub { font-size: 12px; color: var(--oc-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.oc-side-note { margin: 0; padding: 6px 10px; font-size: 13px; color: var(--oc-soft); }
/* Earlier conversations: one quiet line each, the day at the end. */
.oc-side-chat { display: flex; align-items: baseline; gap: 8px; width: 100%; padding: 7px 10px; border: 0; border-radius: 10px; background: none; color: var(--oc-ink); font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.oc-side-chat:hover, .oc-side-chat:focus-visible, .oc-side-chat-on { background: var(--oc-fill); outline: none; }
.oc-side-chat span:first-child { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.oc-side-chat span:last-child { flex: none; font-size: 12px; color: var(--oc-soft); }
.oc-side-foot { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--oc-line); font-size: 13px; }
.oc-side-me { display: flex; align-items: center; gap: 8px; min-width: 0; color: var(--oc-ink); text-decoration: none; }
.oc-side-me span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.oc-side-out { flex: 0 0 auto; color: var(--oc-soft); text-decoration: none; }
.oc-side-me:hover span:last-child, .oc-side-out:hover, .oc-side-out:focus-visible { color: var(--oc-accent); }
.oc-side-veil { display: none; }
/* Narrower than a desk: the panel is a drawer over the conversation. */
@media (max-width: 1099px) {
  .oc-side { position: absolute; z-index: 30; top: 0; bottom: 0; left: 0; width: min(300px, 86vw); box-shadow: var(--oc-drawer); }
  .oc-side-open .oc-side-veil { display: block; position: absolute; z-index: 29; inset: 0; background: var(--oc-veil); }
}
.oc-main { flex: 1 1 auto; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 16px 16px 8px; }
.oc-intro, .oc-log, .oc-sale { max-width: 760px; margin-left: auto; margin-right: auto; }
.oc-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* The sale, as a small note at the top of the conversation. */
.oc-sale { margin-top: 0; margin-bottom: 14px; text-align: center; font-size: 13px; }
.oc-sale span { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--oc-tint); color: var(--oc-on-tint); }


.oc-starter, .oc-logo-tile { cursor: pointer; }
.oc-logo-tile strong { color: var(--oc-ink); }
.oc-on-touch { display: none !important; }
@media (hover: none) and (pointer: coarse) { .oc-on-touch { display: inline !important; } .oc-on-mouse { display: none !important; } }

/* Shown while a file is held over the page. It never takes the pointer, so the drop lands on the page beneath. */
.oc-drop { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px; background: rgba(23, 118, 200, .93); color: #fff; pointer-events: none; }
.oc-drop[hidden] { display: none; }
.oc-drop-box { max-width: 520px; padding: 44px 32px; border: 2px dashed rgba(255, 255, 255, .85); border-radius: 22px; text-align: center; }
.oc-drop-box strong { display: block; font-family: var(--oc-head); font-size: 28px; line-height: 1.2; margin-bottom: 8px; }
.oc-drop-box span { font-size: 15px; }

.oc-msg { display: flex; margin: 10px 0; }
.oc-msg-user { justify-content: flex-end; }
.oc-bubble { max-width: 86%; padding: 9px 14px; border-radius: 18px; white-space: pre-wrap; overflow-wrap: anywhere; }
.oc-msg-user .oc-bubble { background: var(--oc-mine); color: #fff; border-bottom-right-radius: 6px; }
.oc-msg-bot .oc-bubble { background: var(--oc-fill); border-bottom-left-radius: 6px; }
.oc-bubble a { color: inherit; }
.oc-msg-bot .oc-bubble a { color: var(--oc-accent); }
.oc-typing { color: var(--oc-soft); }
.oc-typing .oc-bubble { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; }
.oc-dots { display: inline-flex; gap: 4px; flex: 0 0 auto; }
.oc-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--oc-accent); opacity: .3; animation: oc-dot 1.2s infinite ease-in-out; }
.oc-dots i:nth-child(2) { animation-delay: .15s; }
.oc-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes oc-dot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.oc-error .oc-bubble { background: var(--oc-bad-bg); box-shadow: inset 0 0 0 1px var(--oc-bad-line); }

.oc-block { margin: 10px 0 14px; }
.oc-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.oc-card { background: var(--oc-card); color: var(--oc-ink); border: 1px solid var(--oc-line); border-radius: 12px; padding: 10px; text-align: left; cursor: pointer; display: flex; flex-direction: column; gap: 3px; }
.oc-card:hover, .oc-card:focus-visible { border-color: var(--oc-accent); outline: none; }
.oc-card img { width: 100%; aspect-ratio: 4 / 5; object-fit: contain; background: #fff; border-radius: 8px; }
.oc-card-name { font-weight: 600; font-size: 14px; line-height: 1.3; }
.oc-card-meta { color: var(--oc-soft); font-size: 13px; }
.oc-card-price { font-size: 14px; }

.oc-mockups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.oc-mockups figure { margin: 0; background: #fff; border: 1px solid var(--oc-line); border-radius: 12px; padding: 8px; }
[data-theme="dark"] .oc-mockups figcaption { color: #6b7280; }
.oc-mockups img { width: 100%; aspect-ratio: 4 / 5; object-fit: contain; display: block; border-radius: 8px; background: #fff; }
.oc-mockups figcaption { text-align: center; font-size: 13px; color: var(--oc-soft); padding-top: 6px; }
.oc-mockups-one { grid-template-columns: minmax(0, 320px); }
.oc-zoomable { display: block; width: 100%; padding: 0; border: 0; background: none; border-radius: 8px; cursor: zoom-in; }
.oc-zoomable:focus-visible { outline: 2px solid var(--oc-accent); outline-offset: 2px; }
.oc-zoom { border: 0; border-radius: 14px; padding: 10px; background: var(--oc-card); color: var(--oc-ink); width: min(760px, calc(100vw - 20px)); max-height: calc(100vh - 20px); }
.oc-zoom::backdrop { background: rgba(15, 25, 40, .72); }
.oc-zoom img { display: block; width: 100%; max-height: calc(100vh - 110px); object-fit: contain; border-radius: 8px; background: #fff; }
.oc-zoom-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 4px 2px; }
.oc-zoom-cap { color: var(--oc-soft); font-size: 14px; }

.oc-panel { background: var(--oc-card); border: 1px solid var(--oc-line); border-radius: 14px; padding: 14px 16px; }
.oc-panel h3 { margin: 0 0 2px; font-size: 17px; line-height: 1.3; }
.oc-panel-sub { color: var(--oc-soft); font-size: 13px; margin: 0 0 8px; }
.oc-lines { width: 100%; border-collapse: collapse; font-size: 14px; }
.oc-lines td { padding: 5px 0; border-top: 1px solid var(--oc-line); vertical-align: top; }
.oc-lines td:last-child, .oc-lines td:nth-child(2) { text-align: right; white-space: nowrap; padding-left: 10px; }
.oc-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--oc-ink); font-weight: 600; font-size: 16px; }
.oc-note { color: var(--oc-soft); font-size: 13px; margin: 6px 0 0; }
.oc-more { color: var(--oc-good); font-size: 13px; margin: 6px 0 0; }

.oc-btn { display: inline-block; background: var(--oc-blue); color: #fff; border: 0; border-radius: 10px; padding: 11px 18px; font-weight: 600; cursor: pointer; text-decoration: none; text-align: center; }
.oc-btn:hover { background: var(--oc-blue-dark); }
.oc-btn-quiet { background: var(--oc-card); color: var(--oc-ink); border: 1px solid var(--oc-line); font-weight: 500; }
.oc-btn-quiet:hover { background: var(--oc-fill); }
.oc-cart-panel { border-color: var(--oc-good); }

/* The order card: one per order, redrawn whole when the order changes. */
.oc-order .oc-mockups { margin-bottom: 10px; }
.oc-order-panel.oc-in-cart { border-color: var(--oc-good); }
.oc-sizes { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 8px 0 2px; }
.oc-sizes-colour { font-size: 13px; color: var(--oc-soft); margin-right: 2px; }
.oc-size { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--oc-tint); font-size: 13px; white-space: nowrap; }
.oc-guess { color: var(--oc-warn); font-size: 13px; margin: 6px 0 0; }
.oc-warning { color: var(--oc-warn); font-size: 13px; margin: 6px 0 0; }
.oc-status { margin: 12px 0 0; font-weight: 600; font-size: 14px; }
.oc-status-in { color: var(--oc-good); }
.oc-status-wait { color: var(--oc-warn); }
.oc-order-panel .oc-btn { display: block; width: 100%; margin-top: 10px; }
.oc-label { margin: 14px 0 6px; font-size: 13px; color: var(--oc-soft); }

/* A past order or saved design, brought into the chat from the side panel. */
.oc-re-head { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--oc-line); }
.oc-re-head img { width: 52px; height: 52px; object-fit: contain; flex: none; border-radius: 8px; border: 1px solid var(--oc-line); background: #fff; }
.oc-re-head strong { display: block; font-weight: 600; font-size: 15px; line-height: 1.3; }
.oc-re-head .oc-panel-sub { display: block; margin: 0; }
.oc-re-sum { margin: 8px 0 0; font-size: 13px; color: var(--oc-soft); text-align: right; }
.oc-btn:disabled { opacity: .5; cursor: default; }
.oc-btn:disabled:hover { background: var(--oc-blue); }

/* Colour dots. */
.oc-swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.oc-swatch { width: 28px; height: 28px; padding: 0; border-radius: 50%; border: 1px solid var(--oc-swatch-line); cursor: pointer; background: #fff; }
.oc-swatch:hover, .oc-swatch:focus-visible { outline: 2px solid var(--oc-accent); outline-offset: 2px; }
.oc-swatch-on { outline: 2px solid var(--oc-accent); outline-offset: 2px; }
.oc-swatch-none { background: repeating-linear-gradient(45deg, #e9edf2 0 4px, #fff 4px 8px); }
.oc-swatch-more { display: none; }
.oc-swatches-all .oc-swatch-more { display: inline-block; }
.oc-all { display: inline-block; margin-top: 8px; font-size: 13px; }

/* Size by size. */
.oc-steps { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.oc-step { border: 1px solid var(--oc-line); border-radius: 10px; padding: 6px 6px 8px; text-align: center; background: var(--oc-card); }
.oc-step-on { border-color: var(--oc-tint-line); background: var(--oc-tint); }
.oc-step-out { opacity: .45; }
.oc-step-size { display: block; font-weight: 600; font-size: 13px; margin-bottom: 4px; }
.oc-step-row { display: flex; align-items: center; justify-content: center; gap: 2px; }
.oc-step-btn { width: 34px; height: 36px; border: 1px solid var(--oc-line); border-radius: 8px; background: var(--oc-card); font-size: 20px; line-height: 1; cursor: pointer; color: var(--oc-accent); }
.oc-step-btn:hover { border-color: var(--oc-accent); }
.oc-step-btn:disabled { cursor: default; color: var(--oc-soft); }
.oc-step-n { width: 34px; height: 36px; border: 0; background: none; text-align: center; font-weight: 600; font-size: 16px; padding: 0; }
.oc-step-n:focus { outline: 2px solid var(--oc-accent); border-radius: 6px; }
.oc-step-gone { display: block; font-size: 12px; color: var(--oc-soft); line-height: 36px; }
.oc-steps-more { display: none; margin-top: 8px; font-size: 13px; }
/* On a phone the sizes are a compact list: the size, then its buttons, two to a line.
   A long run of sizes shows the ones in the order first; "More sizes" shows the rest. */
@media (max-width: 560px) {
  .oc-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 18px; }
  .oc-steps-wide { grid-template-columns: minmax(0, 1fr); }
  .oc-step, .oc-step-on { display: flex; align-items: center; justify-content: space-between; gap: 6px; border: 0; border-radius: 0; padding: 0; background: none; text-align: left; min-height: 40px; }
  .oc-step-size { margin: 0; font-size: 14px; white-space: nowrap; }
  .oc-step-zero .oc-step-size, .oc-step-zero .oc-step-n { color: var(--oc-soft); font-weight: 500; }
  .oc-step-on .oc-step-size, .oc-step-on .oc-step-n { color: var(--oc-ink); font-weight: 600; }
  .oc-step-row { gap: 0; }
  .oc-step-btn { width: 36px; height: 36px; border-radius: 50%; font-size: 18px; }
  .oc-step-n { width: 32px; }
  .oc-step-gone { line-height: 1.2; }
  .oc-steps-many:not(.oc-steps-all) .oc-step-rest { display: none; }
  .oc-steps-more { display: inline-block; }
}

/* Quantity chips. */
.oc-qty { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.oc-qty-chip { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 8px 4px; border: 1px solid var(--oc-line); border-radius: 10px; background: var(--oc-card); cursor: pointer; }
.oc-qty-chip:hover, .oc-qty-chip:focus-visible { border-color: var(--oc-accent); outline: none; }
.oc-qty-chip b { font-size: 15px; }
.oc-qty-chip span { font-size: 12px; color: var(--oc-soft); white-space: nowrap; }
.oc-qty-on { border-color: var(--oc-accent); background: var(--oc-tint); }
.oc-qty-on span { color: var(--oc-on-tint); }

/* A change is being saved: the old price is not the price any more. */
.oc-stale .oc-each, .oc-stale .oc-sum, .oc-saving .oc-each, .oc-saving .oc-sum { opacity: .35; }
.oc-saving { pointer-events: none; }
.oc-saving .oc-order-panel { opacity: .8; }
.oc-cart-panel .oc-btn { display: block; width: 100%; margin-top: 10px; }

/* One-tap answers under a price. */
.oc-offers { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 16px; }
.oc-offer { min-height: 38px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--oc-line); background: var(--oc-card); font-size: 14px; cursor: pointer; transition: border-color .12s, color .12s; }
.oc-offer:hover, .oc-offer:focus-visible { border-color: var(--oc-accent); color: var(--oc-accent); outline: none; }
.oc-offer-main { background: var(--oc-blue); border-color: var(--oc-blue); color: #fff; font-weight: 600; }
.oc-offer-main:hover, .oc-offer-main:focus-visible { background: var(--oc-blue-dark); border-color: var(--oc-blue-dark); color: #fff; }

/* The message box: one rounded box holding the logo button, the words, the microphone and send. */
.oc-compose { flex: 0 0 auto; background: var(--oc-bg); padding: 8px 12px 0; }
.oc-compose > * { max-width: 760px; margin-left: auto; margin-right: auto; }
.oc-row { display: flex; align-items: flex-end; gap: 2px; padding: 5px; border: 1px solid var(--oc-line-strong); border-radius: 26px; background: var(--oc-card); box-shadow: var(--oc-shadow); transition: border-color .15s, box-shadow .15s; }
.oc-row:focus-within { border-color: var(--oc-accent); box-shadow: 0 0 0 3px var(--oc-ring); }
.oc-attach, .oc-mic { flex: 0 0 auto; width: 40px; height: 40px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--oc-soft); cursor: pointer; transition: background .12s, color .12s; }
.oc-attach:hover, .oc-mic:hover, .oc-mic:focus-visible { background: var(--oc-fill); color: var(--oc-accent); outline: none; }
.oc-attach.oc-busy { opacity: .55; pointer-events: none; }
#oc-input { flex: 1 1 auto; min-width: 0; min-height: 40px; max-height: 140px; resize: none; border: 0; outline: none; background: none; padding: 9px 6px; font-size: 16px; line-height: 22px; }
#oc-input::placeholder { color: var(--oc-faint); }
.oc-send { flex: 0 0 auto; width: 40px; height: 40px; padding: 0; border-radius: 50%; border: 0; background: var(--oc-blue); color: #fff; cursor: pointer; display: grid; place-items: center; transition: background .12s; }
.oc-send svg { width: 19px; height: 19px; }
.oc-send:hover { background: var(--oc-blue-dark); }
.oc-send:disabled { opacity: .45; cursor: default; }
.oc-mic[hidden] { display: none; }
.oc-mic.oc-mic-on { background: #c8102e; color: #fff; animation: oc-listen 1.2s infinite ease-in-out; }
@keyframes oc-listen { 0%, 100% { box-shadow: 0 0 0 0 rgba(200, 16, 46, .45); } 50% { box-shadow: 0 0 0 7px rgba(200, 16, 46, 0); } }

/* ---- The home screen (.oc-home on <html>): nothing has been said yet. The question, the
   message box and the examples sit together in the middle of the page, a little above
   centre. The first message takes .oc-home away: the box drops to the bottom and the
   conversation takes the page (the page script glides the box there). */
.oc-hero { display: none; }
.oc-home .oc-stage { overflow-y: auto; }
.oc-home .oc-main { flex: 0 0 auto; overflow: visible; margin-top: auto; padding-bottom: 0; }
.oc-home .oc-log { display: none; }
.oc-home .oc-sale { margin-bottom: 18px; }
.oc-home .oc-hero { display: block; max-width: 760px; margin: 0 auto 22px; text-align: center; }
.oc-hero h2 { margin: 0 0 8px; font-size: 28px; font-weight: 500; line-height: 1.2; letter-spacing: -.01em; }
.oc-hero p { margin: 0 auto; max-width: 31em; color: var(--oc-soft); }
.oc-home .oc-compose { padding-top: 0; }
.oc-home .oc-row { padding: 7px; border-radius: 30px; }
.oc-home .oc-foot { margin-top: auto; }

/* The examples, as a short list under the box. */
.oc-intro { width: calc(100% - 24px); margin: 10px auto 9vh; }
.oc-starters { display: block; margin: 0; }
.oc-starter, .oc-logo-tile { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 14px; border: 0; border-top: 1px solid var(--oc-line); border-radius: 0; background: none; font-size: 15px; color: var(--oc-ink); text-align: left; transition: background .12s; }
.oc-starter:first-child { border-top-color: transparent; }
.oc-starter:hover, .oc-starter:focus-visible, .oc-logo-tile:hover, .oc-logo-tile:focus-within { background: var(--oc-fill); border-radius: 10px; border-top-color: transparent; color: var(--oc-ink); outline: none; }
.oc-starter:hover + .oc-starter { border-top-color: transparent; }
.oc-starter svg, .oc-logo-tile svg { display: block; flex: 0 0 auto; color: var(--oc-soft); }
/* The logo row is where a file can be dropped: a very faint dashed outline says so. */
.oc-logo-tile { margin-top: 10px; border: 1px dashed var(--oc-dash-faint); border-radius: 12px; color: var(--oc-soft); }
.oc-logo-tile:hover, .oc-logo-tile:focus-within { border-color: var(--oc-dash); border-radius: 12px; }

/* What each control does, on hover. */
@media (hover: hover) {
  .oc-row [data-tip] { position: relative; }
  .oc-row [data-tip]::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 10px); left: 0; z-index: 5; white-space: nowrap; background: var(--oc-tip-bg); color: var(--oc-tip-ink); font-size: 12px; font-weight: 500; line-height: 1; padding: 7px 9px; border-radius: 6px; opacity: 0; pointer-events: none; transition: opacity .12s; }
  .oc-row .oc-mic[data-tip]::after, .oc-row .oc-send[data-tip]::after { left: auto; right: 0; }
  .oc-row [data-tip]:hover::after, .oc-row [data-tip]:focus-visible::after { opacity: 1; }
}

.oc-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.oc-chips:empty { display: none; }
.oc-chip { display: inline-flex; align-items: center; gap: 8px; background: var(--oc-tint); border-radius: 10px; padding: 4px 8px 4px 4px; font-size: 13px; max-width: 100%; }
.oc-chip img { width: 34px; height: 34px; object-fit: contain; background: repeating-conic-gradient(#e9edf2 0 25%, #fff 0 50%) 0 0 / 10px 10px; border-radius: 6px; }
.oc-chip button { border: 0; background: none; cursor: pointer; font-size: 18px; line-height: 1; color: var(--oc-soft); padding: 0 2px; }
.oc-chip-note { display: block; color: var(--oc-warn); font-size: 12px; }
.oc-chip-busy { padding: 8px 10px; color: var(--oc-soft); }
.oc-spin { flex: 0 0 auto; width: 16px; height: 16px; border: 2px solid var(--oc-tint-line); border-top-color: var(--oc-accent); border-radius: 50%; animation: oc-spin .8s linear infinite; }
@keyframes oc-spin { to { transform: rotate(360deg); } }
.oc-foot { flex: 0 0 auto; color: var(--oc-soft); font-size: 12px; margin: 0; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); text-align: center; }
.oc-foot .oc-link { color: inherit; }
.oc-foot .oc-link:hover { color: var(--oc-accent); }

.oc-dialog { border: 0; border-radius: 14px; padding: 0; width: min(440px, calc(100vw - 28px)); background: var(--oc-card); color: var(--oc-ink); }
.oc-dialog::backdrop { background: var(--oc-veil); }
.oc-dialog form { padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.oc-dialog h2 { margin: 0; font-size: 20px; }
.oc-dialog p { margin: 0; color: var(--oc-soft); font-size: 14px; }
.oc-dialog label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; font-weight: 600; }
.oc-dialog input, .oc-dialog textarea { border: 1px solid var(--oc-line-strong); border-radius: 10px; padding: 10px; font-weight: 400; font-size: 16px; background: var(--oc-bg); }
.oc-dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; }
.oc-dialog-msg:empty { display: none; }
/* Sign in, on this page. */
.oc-dialog .oc-sign-msg { color: var(--oc-warn); }
/* Google draws its button in a frame of its own. Told the page is dark, the browser paints that
   frame's background white, a slab behind the button: the frame is always treated as light. */
.oc-google { display: flex; justify-content: center; min-height: 44px; color-scheme: light; }
.oc-google[hidden], .oc-or[hidden] { display: none; }
.oc-or { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--oc-soft); }
.oc-or::before, .oc-or::after { content: ""; flex: 1 1 auto; border-top: 1px solid var(--oc-line); }
.oc-sign-more { text-align: center; font-size: 13px; }
.oc-sign-more a { color: var(--oc-accent); }
.oc-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

@media (min-width: 640px) {
  .oc-main { padding-top: 22px; }
  .oc-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .oc-bubble { max-width: 76%; }
}
@media (max-width: 480px) { .oc-foot-more { display: none; } .oc-hero h2 { font-size: 23px; } .oc-intro { margin-bottom: 6vh; } }
@media (max-width: 420px) { .oc-top { padding: 10px 12px; gap: 8px; } .oc-top-actions { gap: 9px; } .oc-top-start { gap: 4px; } .oc-logo img { height: 26px; } #oc-new, .oc-signin { font-size: 13px; } .oc-cart { padding: 6px 10px; } }
@media (max-width: 350px) { .oc-theme { display: none; } }

@media (prefers-reduced-motion: no-preference) {
  .oc-main { scroll-behavior: smooth; }
}
@media (prefers-reduced-motion: no-preference) {
  .oc-home .oc-hero { animation: oc-rise .4s ease-out both; }
  .oc-home .oc-intro { animation: oc-rise .4s .1s ease-out both; }
}
@keyframes oc-rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .oc-dots i, .oc-spin, .oc-mic-on { animation: none; } .oc-dots i { opacity: .6; } }
