/* ==========================================================================
   Store Pro — styles for the rich text editor, size guide, coupon conditions
   and the website information tab. Only touches the new blocks, so the
   existing desktop and mobile look stays exactly as it was.
   ========================================================================== */

/* ------------------------------------------------ rich text (storefront) */
.rich-text { line-height: 1.85; }
.rich-text > *:first-child { margin-top: 0; }
.rich-text > *:last-child { margin-bottom: 0; }
.rich-text p { margin: 0 0 10px; }
.rich-text ul, .rich-text ol { margin: 0 0 12px; padding-left: 22px; }
.rich-text li { margin: 4px 0; }
.rich-text h2, .rich-text h3, .rich-text h4 { margin: 16px 0 8px; font-weight: 700; line-height: 1.45; }
.rich-text h2 { font-size: 20px; }
.rich-text h3 { font-size: 17px; }
.rich-text h4 { font-size: 15px; }
.rich-text blockquote { margin: 12px 0; padding: 8px 14px; border-left: 3px solid var(--accent); color: var(--muted); }
.rich-text a { color: var(--accent-ink); text-decoration: underline; }
.detail-info-description { font-size: 13.5px; line-height: 1.9; color: var(--muted); }
.landing-description.rich-text { color: inherit; }

/* ------------------------------------------------------------ editor (admin) */
.rte { display: flex; flex-direction: column; gap: 0; width: 100%; }
.rte-label { font-size: 11px; color: var(--muted); margin-bottom: 6px; }
.rte-toolbar {
  display: flex; align-items: center; gap: 2px; flex-wrap: wrap;
  padding: 6px 8px; border: 1px solid var(--line); border-bottom: 0;
  border-radius: 10px 10px 0 0; background: var(--cream);
}
.rte-toolbar button {
  min-width: 30px; height: 30px; padding: 0 7px; border: 0; border-radius: 7px;
  background: transparent; color: var(--ink); font-size: 13px; line-height: 1;
  display: inline-grid; place-items: center; cursor: pointer;
}
.rte-toolbar button:hover { background: var(--surface); box-shadow: 0 1px 3px rgba(9, 22, 48, .12); }
.rte-toolbar button .icon { width: 14px; height: 14px; }
.rte-sep { width: 1px; height: 18px; background: var(--line); margin: 0 4px; }
.rte-area {
  min-height: 130px; max-height: 340px; overflow: auto;
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 0 0 10px 10px;
  background: var(--surface); font-size: 14px; line-height: 1.8; color: var(--ink);
}
.rte-area:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.rte-area:empty::before { content: attr(data-placeholder); color: var(--muted); }

/* --------------------------------------------------------- size guide editor */
.size-guide-editor {
  border: 1px solid var(--line); border-radius: 14px; padding: 16px;
  background: var(--cream); display: flex; flex-direction: column; gap: 10px;
}
.sge-head strong { font-size: 13px; display: block; }
.sge-head small { font-size: 11px; color: var(--muted); line-height: 1.6; }
.sge-table-wrap { overflow-x: auto; }
.sge-table { width: 100%; border-collapse: collapse; min-width: 480px; }
.sge-table th {
  text-align: left; font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em;
  color: var(--muted); font-weight: 700; padding: 0 6px 6px;
}
.sge-table td { padding: 3px 6px; }
.sge-table input {
  width: 100%; min-width: 64px; padding: 8px 9px; border: 1px solid var(--line);
  border-radius: 8px; background: var(--surface); font-size: 13px;
}
.sge-table td:last-child { width: 42px; }
.sge-table .icon-button { width: 34px; height: 34px; }
.sge-note { font-size: 11px; color: var(--muted); display: flex; flex-direction: column; gap: 5px; }
.sge-note input { padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); font-size: 13px; }

/* ------------------------------------------------- size guide (storefront) */
.size-guide-table-wrap { overflow-x: auto; margin: 14px 0; }
.size-guide-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.size-guide-table th, .size-guide-table td {
  border: 1px solid var(--line); padding: 9px 12px; text-align: left;
}
.size-guide-table thead th {
  background: var(--cream); font-size: 11px; text-transform: uppercase;
  letter-spacing: .05em; color: var(--muted);
}
.size-guide-table tbody th { font-weight: 700; background: var(--surface); }
.size-guide-note {
  display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; line-height: 1.7;
  padding: 10px 12px; border-radius: 10px; background: var(--cream); color: var(--muted);
}
.size-guide-note .icon { width: 15px; height: 15px; flex: 0 0 auto; margin-top: 2px; color: var(--accent-ink); }

/* ------------------------------------------------------- coupon conditions */
.coupon-conditions { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.coupon-condition {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 10.5px; font-weight: 600; color: var(--muted);
  background: var(--cream); border: 1px solid var(--line);
  border-radius: 999px; padding: 3px 9px;
}
.coupon-condition .icon { width: 11px; height: 11px; color: var(--accent-ink); }
.coupon-offers { display: flex; flex-direction: column; gap: 7px; margin-top: 10px; }
.coupon-offers-label {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--muted);
}
.coupon-offers-label .icon { width: 13px; height: 13px; }
.coupon-offer {
  display: grid; grid-template-columns: auto 1fr; gap: 2px 10px;
  align-items: center; text-align: left; width: 100%;
  border: 1px dashed var(--line); border-radius: 12px; padding: 9px 12px;
  background: var(--surface); cursor: pointer; transition: border-color .15s, background .15s;
}
.coupon-offer:hover { border-color: var(--accent); background: var(--cream); }
.coupon-offer-code {
  font: 700 12.5px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .04em; color: var(--accent-ink);
}
.coupon-offer-value { font-size: 12px; font-weight: 700; color: var(--ink); }
.coupon-offer-conditions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 4px; }
.coupon-blocked {
  margin: 8px 0 0; font-size: 11.5px; line-height: 1.6;
  color: #9a523a; display: flex; gap: 6px;
}
html[data-theme=dark] .coupon-blocked { color: #f0b394; }

/* coupon form in the admin modal */
#discount-form .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
#discount-form .form-grid small { display: block; font-size: 10.5px; color: var(--muted); margin-top: 4px; }
#discount-form .form-grid label[hidden] { display: none; }
@media (max-width: 620px) { #discount-form .form-grid { grid-template-columns: 1fr; } }

/* ------------------------------------------------- website information tab */
#site-info-form label small { display: block; font-size: 10.5px; color: var(--muted); margin-top: 4px; line-height: 1.6; }

/* ==========================================================================
   Checkout: one quiet coupon line (code + offers live in a popup), a clearly
   marked optional email card under the phone number, and the phone-only
   confirm button that sits after the totals.
   ========================================================================== */

/* --- coupon line --------------------------------------------------------- */
.coupon-line{
  display:flex; align-items:stretch; gap:8px; margin:14px 0 4px;
  border:1px dashed var(--line-2,#CBD5E1); border-radius:12px; background:var(--surface,#fff);
  overflow:hidden; transition:border-color .16s, background .16s;
}
.coupon-line.is-applied{ border-style:solid; border-color:rgba(242,106,33,.55); background:rgba(242,106,33,.06); }
.coupon-line-main{
  flex:1 1 auto; display:flex; align-items:center; gap:10px; min-width:0;
  padding:11px 14px; background:none; border:0; text-align:left; cursor:pointer;
  font:inherit; color:inherit;
}
.coupon-line-main .icon{ width:19px; height:19px; flex:0 0 auto; color:var(--accent,#F26A21); }
.coupon-line-copy{ display:flex; flex-direction:column; gap:2px; min-width:0; }
.coupon-line-copy strong{ font-size:13.5px; font-weight:700; color:var(--navy,#0A1F44); }
.coupon-line-copy small{ font-size:11.5px; color:var(--muted,#64748B); line-height:1.35; }
.coupon-line-cta{
  margin-left:auto; display:inline-flex; align-items:center; gap:4px; flex:0 0 auto;
  font-size:12px; font-weight:700; color:var(--accent-ink,#C0520F); white-space:nowrap;
}
.coupon-line-cta .icon{ width:13px; height:13px; color:inherit; transform:rotate(-90deg); }
.coupon-line-remove{
  flex:0 0 auto; padding:0 13px; border:0; border-left:1px solid rgba(242,106,33,.28);
  background:none; color:#B42318; font:inherit; font-size:12px; font-weight:700; cursor:pointer;
}
.coupon-line-remove:hover{ background:rgba(180,35,24,.08); }
html[data-theme="dark"] .coupon-line{ background:var(--surface-2,#111A2B); border-color:#2C3D5C; }
html[data-theme="dark"] .coupon-line-copy strong{ color:#E8EEF9; }
html[data-theme="dark"] .coupon-line.is-applied{ background:rgba(242,106,33,.12); border-color:rgba(242,106,33,.45); }

/* --- coupon popup -------------------------------------------------------- */
.coupon-modal .coupon-modal-sub{ font-size:12.5px; color:var(--muted,#64748B); margin:2px 0 14px; line-height:1.5; }
.coupon-modal .coupon-form{ display:flex; gap:8px; margin:0 0 8px; }
.coupon-modal .coupon-form input{
  flex:1 1 auto; min-width:0; height:44px; padding:0 14px; border-radius:10px;
  border:1.5px solid var(--line,#E2E8F0); background:var(--paper,#F5F7FB);
  font:inherit; font-size:15px; letter-spacing:.6px; text-transform:uppercase; color:var(--navy,#0A1F44);
}
.coupon-modal .coupon-form input:focus{ outline:none; border-color:var(--accent,#F26A21); background:#fff; }
.coupon-modal .coupon-form .btn{ flex:0 0 auto; min-height:44px; padding:0 16px; white-space:nowrap; }
.coupon-modal .coupon-error{ margin:8px 0 0; font-size:12.5px; font-weight:600; color:#B42318; line-height:1.45; }
.coupon-modal .coupon-applied{
  display:flex; align-items:center; gap:10px; margin:0 0 12px; padding:10px 12px;
  border-radius:10px; background:rgba(242,106,33,.08); border:1px solid rgba(242,106,33,.3);
}
.coupon-modal .coupon-applied b{ font-size:14px; letter-spacing:.6px; }
.coupon-modal .coupon-applied small{ display:block; font-size:11.5px; color:var(--muted,#64748B); }
.coupon-modal .coupon-applied .coupon-remove{ margin-left:auto; }
.coupon-offers{ margin-top:12px; border-top:1px solid var(--line,#E2E8F0); padding-top:10px; }
.coupon-offers-toggle{
  width:100%; display:flex; align-items:center; justify-content:space-between; gap:8px;
  background:none; border:0; padding:6px 2px; font:inherit; font-size:12.5px; font-weight:700;
  color:var(--navy,#0A1F44); cursor:pointer;
}
.coupon-offers-toggle>span{ display:inline-flex; align-items:center; gap:6px; }
.coupon-offers-toggle .icon{ width:14px; height:14px; color:var(--accent,#F26A21); }
.coupon-offers-toggle>svg{ width:15px; height:15px; transition:transform .16s; }
.coupon-offers-toggle.is-open>svg:last-child{ transform:rotate(180deg); }
.coupon-offers-body{ display:flex; flex-direction:column; gap:8px; padding:8px 0 2px; }
.coupon-offers-body[hidden]{ display:none; }
.coupon-offers-note,.coupon-offers-empty,.coupon-offers-loading{
  margin:0; font-size:11.5px; line-height:1.5; color:var(--muted,#64748B);
}
.coupon-hint{
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  width:100%; padding:10px 12px; border-radius:10px; text-align:left;
  border:1px solid var(--line,#E2E8F0); background:var(--paper,#F5F7FB); cursor:pointer; font:inherit;
}
.coupon-hint:hover{ border-color:var(--accent,#F26A21); }
.coupon-hint b{ display:block; font-size:13px; letter-spacing:.6px; color:var(--navy,#0A1F44); }
.coupon-hint small{ display:block; font-size:11px; color:var(--muted,#64748B); margin-top:1px; }
.coupon-hint-go{ display:inline-flex; align-items:center; gap:3px; font-size:11.5px; font-weight:700; color:var(--accent-ink,#C0520F); flex:0 0 auto; }
.coupon-hint-go .icon{ width:12px; height:12px; transform:rotate(-90deg); }
html[data-theme="dark"] .coupon-modal .coupon-form input{ background:#0D1626; border-color:#22314D; color:#E8EEF9; }
html[data-theme="dark"] .coupon-hint{ background:#0D1626; border-color:#22314D; }
html[data-theme="dark"] .coupon-hint b{ color:#E8EEF9; }
html[data-theme="dark"] .coupon-offers-toggle{ color:#E8EEF9; }

/* --- optional email card ------------------------------------------------- */
.checkout-email{
  margin:10px 0 14px; padding:12px 14px; border-radius:12px;
  border:1.5px dashed rgba(10,31,68,.22); background:rgba(10,31,68,.03);
  display:flex; flex-direction:column; gap:8px;
}
.checkout-email-head{ display:flex; align-items:flex-start; gap:9px; cursor:pointer; }
.checkout-email-head .icon{ width:18px; height:18px; flex:0 0 auto; margin-top:2px; color:var(--accent,#F26A21); }
.checkout-email-head strong{ display:block; font-size:12.5px; font-weight:700; color:var(--navy,#0A1F44); }
.checkout-email input[type="email"]{
  height:44px; padding:0 13px; border-radius:10px; font:inherit; font-size:15px;
  border:1.5px solid var(--line,#E2E8F0); background:var(--surface,#fff); color:var(--navy,#0A1F44);
}
.checkout-email input[type="email"]:focus{ outline:none; border-color:var(--accent,#F26A21); box-shadow:0 0 0 3px rgba(242,106,33,.12); }
html[data-theme="dark"] .checkout-email{ background:rgba(255,255,255,.03); border-color:#2C3D5C; }
html[data-theme="dark"] .checkout-email-head strong{ color:#E8EEF9; }
html[data-theme="dark"] .checkout-email input[type="email"]{ background:#0D1626; border-color:#22314D; color:#E8EEF9; }

/* --- confirm button: the phone-only copy is hidden everywhere else -------- */
.place-order-tail{ display:none; }

/* ==========================================================================
   Contact strip between the marquee and the header: small, centred, and it
   floats over the seam with a soft highlight. It scrolls away — never sticky.
   ========================================================================== */
.contact-strip{
  position: relative; z-index: 3;
  margin: 0 auto;                      /* top border meets the marquee, bottom border meets the header */
  width: max-content; max-width: calc(100% - 24px);
  display: flex; align-items: center; gap: 8px;
  padding: 8px 16px 7px 13px; border-radius: 999px;
  /* no colour of its own: it is filled with the store header's background */
  background: var(--surface);
  border: 1px solid rgba(242,106,33,.30);
  box-shadow: 0 6px 18px -12px rgba(10,31,68,.45);
  font-size: 11.5px; line-height: 1.2; color: var(--navy, #0A1F44);
}
/* the header background is a soft gradient in the light theme — match it exactly */
html:not([data-theme=dark]) .contact-strip{
  background: linear-gradient(180deg, #FCFDFF 0%, #F6F9FD 100%);
}
.contact-strip::before{                 /* the highlight that makes it pop */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6);
}
.contact-strip-label{
  font-size: 10.5px; font-weight: 700; letter-spacing: .4px;
  color: var(--accent-ink, #C0520F); text-transform: none;
}
.contact-strip-label::after{ content: "·"; margin-left: 6px; color: rgba(10,31,68,.3); }
.contact-strip-number{
  display: inline-flex; align-items: center; gap: 5px;
  font-weight: 700; font-size: 12px; color: var(--navy, #0A1F44);
  text-decoration: none; letter-spacing: .2px;
}
.contact-strip-number .icon{ width: 13px; height: 13px; color: var(--accent, #F26A21); }
.contact-strip-number:hover{ color: var(--accent-ink, #C0520F); }
html[data-theme="dark"] .contact-strip{
  background: var(--surface);
  border-color: rgba(242,106,33,.34);
}
html[data-theme="dark"] .contact-strip-number{ color: #E8EEF9; }
html[data-theme="dark"] .contact-strip-label::after{ color: rgba(232,238,249,.35); }

@media (max-width: 700px){
  .contact-strip{ margin: 0 auto; padding: 7px 13px 6px 11px; gap: 7px; }
  .contact-strip-label{ font-size: 10px; }
  .contact-strip-number{ font-size: 11.5px; }
}

/* cart drawer: no delivery quote before checkout */
.cart-summary .cart-summary-note{
  font-size: 11px; line-height: 1.45; color: var(--muted, #64748B);
  margin: 2px 0 8px; padding-top: 6px; border-top: 1px dashed var(--line, #E2E8F0);
}
