/* The motion look in the live shop: the parts the design draft did not need yet (the
   account button, a logo picture, made-to-size, the basket's messages, the room set-up bar for staff). */

/* the weave chapter's word, drawn as a path (web/motion/page.ts) */
.weave-fa-word { display: block; height: .62em; width: auto; }

/* the shop's own logo, when it has uploaded one (Settings › Brand) */
.brand-logo { display: block; height: 40px; width: auto; max-width: min(46vw, 220px); object-fit: contain; }
.brand-logo.on-dark { display: none; }
[data-theme='dark'] .brand-logo.on-light, .hdr.on-dark .brand-logo.on-light { display: none; }
[data-theme='dark'] .brand-logo.on-dark, .hdr.on-dark .brand-logo.on-dark { display: block; }

/* the account button (the bag's neighbour) */
.acct-btn { position: relative; }
.acct-dot { position: absolute; top: 9px; right: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--turq); box-shadow: 0 0 0 2px var(--bg); }
@media (max-width: 380px) { .hdr-actions .acct-btn { display: none; } }

/* the bag: the basket's own words when something cannot be ordered */
.bag-line-problem { display: block; margin-top: 4px; color: var(--madder); font: 600 13px/1.35 var(--sans); font-style: normal; }
.bag-problem { margin: 0 20px 8px; padding: 10px 12px; border-radius: 10px; background: rgba(161, 29, 46, .1); color: var(--madder); font-size: 14px; }
.bag-checkout { justify-content: center; text-align: center; }
.bag-checkout.is-off { opacity: .45; }

/* a product made to the customer's size (priced per m²) */
.made-size { margin: 4px 0 16px; padding: 16px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--surface); }
.made-size-head { margin: 0 0 10px; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.made-size-head b { font: 600 15px/1.3 var(--sans); }
.made-size-limits { color: var(--ink-3); font-size: 13px; }
.made-size-row { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: end; }
.made-size-row > span { padding-bottom: 14px; color: var(--ink-3); }
.made-size label { display: grid; gap: 6px; font: 600 13px/1.2 var(--sans); color: var(--ink-2); }
.made-size input {
  width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 10px;
  background: var(--bg); color: var(--ink); font: 500 16px/1.2 var(--sans);   /* 16px: iPhones zoom in on smaller fields */
}
.made-size input:focus-visible { outline: 2px solid var(--lapis); outline-offset: 1px; }
.made-size-price { margin: 12px 0 0; font: 500 15px/1.4 var(--sans); }
.made-size-price b { font: 500 22px/1.2 var(--serif); }
.made-size-error { margin: 8px 0 0; color: var(--madder); font-size: 14px; }
.rug-price small { font: 600 14px/1 var(--sans); color: var(--ink-3); letter-spacing: 0; }

/* sold, or held while someone pays */
.add-bag[disabled] { opacity: .5; cursor: not-allowed; }
.one-only.is-sold i { background: var(--madder); }

/* staff setting up one of the shop's rooms (the admin area frames the planner with ?setup=1) */
.rp-setup { margin-bottom: 14px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--lapis); background: var(--lapis-soft); }
.rp-setup-head { margin: 0 0 6px; font: 600 15px/1.3 var(--sans); }
.rp-setup-text { margin: 0 0 10px; color: var(--ink-2); font-size: 14px; line-height: 1.5; }
.rp-setup-status { margin: 8px 0 0; font-size: 14px; color: var(--ink-2); }
.rp.is-setup .rp-act, .rp.is-setup .rp-looks, .rp.is-setup .rp-ownchip, .rp.is-setup .rp-roomchip, .rp.is-setup .rp-rug-actions { display: none; }

/* without scripts the shop is a plain list */
.plain-list { columns: 2 300px; padding: 0 var(--gutter); }
.plain-list li { margin: 0 0 8px; }

/* inside the admin area's frame, the planner is all there is */
.in-setup { --hdr: 0px; }
.in-setup :is(.hdr, .ftr, .chapters, .bag, .menu, .skip) { display: none !important; }
.in-setup body { padding-top: 0; }
.in-setup .rp { padding-top: 0; min-height: 100svh; }

/* the care booking: what a step still needs, or why the shop could not take it */
.book-error { margin: 0 0 12px; padding: 10px 14px; border-radius: 10px; background: rgba(161, 29, 46, .1); color: var(--madder); font-size: 14px; }
