/* Contact Us pop-up (contact-us.js). Canonical copy: contact-us/frontend/. Everything is scoped to .cu so it can run on any
   site. Colours and fonts come from the store's own tokens (--brand, --ink, --line ... in a template store's styles.css); embed
   brands set --cu-* from their theme (config/brands.js). Same structure as the site's other pop-ups: dark backdrop, centred
   white dialog, close button top right; a full-height sheet on phones with the form scrolling inside. */
.cu {
  --cu-accent: var(--brand, #1f1f1f); --cu-accent-hover: color-mix(in srgb, var(--cu-accent) 86%, #000); --cu-accent-ink: var(--brand-ink, #fff);
  --cu-ink: var(--ink, #1a1a1a); --cu-text: var(--ink, #2b2b2b); --cu-muted: var(--muted, #707070); --cu-field: #d6d6d6;
  --cu-line: var(--line, #e6e6e6); --cu-soft: var(--soft, #f5f5f5); --cu-card: #fff; --cu-radius: 16px; --cu-field-radius: 5px; --cu-button-radius: var(--radius, 6px);
  --cu-focus: var(--brand, #1f1f1f);
  --cu-font: var(--font, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif); --cu-heading-font: var(--cu-font);
  position: fixed; inset: 0; z-index: 2147483000; display: flex; align-items: center; justify-content: center; padding: 24px;
  font: 16px/1.5 var(--cu-font); color: var(--cu-text); text-align: left; -webkit-font-smoothing: antialiased;
}
.cu[hidden], .cu [hidden] { display: none !important; }
.cu *, .cu *::before, .cu *::after { box-sizing: border-box; }
.cu-backdrop { position: absolute; inset: 0; background: rgba(27, 25, 22, .55); }
.cu-dialog { position: relative; display: flex; flex-direction: column; width: 100%; max-width: 640px; max-height: min(92vh, 900px); background: var(--cu-card);
  border-radius: var(--cu-radius); box-shadow: 0 24px 64px rgba(27, 25, 22, .28); overflow: hidden; outline: none; }
.cu-head { flex: 0 0 auto; position: relative; padding: 30px 64px 0; text-align: center; }
.cu-title { margin: 0; font-family: var(--cu-heading-font); font-size: 30px; line-height: 1.2; font-weight: 600; letter-spacing: -.01em; color: var(--cu-ink); }
.cu-close { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; padding: 0; border-radius: 50%; border: 1px solid var(--cu-line); background: #fff;
  display: grid; place-items: center; cursor: pointer; }
.cu-close:hover { background: var(--cu-soft); }
.cu-close svg { width: 18px; height: 18px; fill: none; stroke: var(--cu-ink); stroke-width: 2; stroke-linecap: round; }
.cu-body { flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 10px 40px 34px; }
.cu-intro { margin: 0 auto 22px; max-width: 520px; text-align: center; color: var(--cu-muted); font-size: 15px; line-height: 1.65; }
.cu-form { margin: 0; }
.cu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.cu-wide { grid-column: 1 / -1; }
.cu-field { position: relative; min-width: 0; }
.cu-input { display: block; width: 100%; height: 52px; margin: 0; padding: 14px 12px; font: inherit; font-size: 16px; color: var(--cu-ink); background: #fff;
  border: 1px solid var(--cu-field); border-radius: var(--cu-field-radius); transition: padding .12s, border-color .12s, box-shadow .12s; -webkit-appearance: none; appearance: none; }
textarea.cu-input { height: auto; min-height: 112px; padding-top: 24px; resize: vertical; line-height: 1.5; }
.cu-label { position: absolute; left: 13px; top: 15px; right: 12px; font-size: 15px; line-height: 1.4; color: var(--cu-muted); pointer-events: none; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; transition: top .12s, font-size .12s; }
input.cu-input:focus, input.cu-input:not(:placeholder-shown) { padding: 22px 12px 6px; }
.cu-input:focus + .cu-label, .cu-input:not(:placeholder-shown) + .cu-label { top: 6px; font-size: 12px; }
.cu-input:focus { outline: none; border-color: var(--cu-accent); box-shadow: 0 0 0 1px var(--cu-accent); }
.cu-input[aria-invalid="true"] { border-color: #DD1D1D; box-shadow: 0 0 0 1px #DD1D1D; }
.cu-req { color: inherit; }
.cu-field-error { margin: 6px 2px 0; font-size: 13.5px; line-height: 1.4; color: #B3261E; }
.cu-hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.cu-turnstile:empty { display: none; }
.cu-turnstile { margin: 14px 0 0; }
.cu-error { margin: 16px 0 0; padding: 11px 14px; border-radius: 8px; background: #FDECEA; color: #8A1C13; font-size: 14.5px; line-height: 1.5; }
.cu-error .cu-mail { color: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }
.cu-submit { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 54px; margin: 18px 0 0; padding: 14px 20px; border: 0;
  border-radius: var(--cu-button-radius); background: var(--cu-accent); color: var(--cu-accent-ink); font: inherit; font-size: 17px; font-weight: 700; letter-spacing: .01em;
  cursor: pointer; box-shadow: 0 6px 18px rgba(31, 52, 99, .22); transition: background .15s, transform .1s; }
.cu-submit:hover { background: var(--cu-accent-hover); }
.cu-submit:active { transform: translateY(1px); }
.cu-submit[disabled] { cursor: progress; opacity: .8; transform: none; }
.cu-close:focus-visible, .cu-submit:focus-visible, .cu-error .cu-mail:focus-visible, .cu-success:focus-visible { outline: 3px solid var(--cu-focus); outline-offset: 2px; }
.cu-spinner { display: none; width: 18px; height: 18px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: cu-spin .8s linear infinite; }
.cu-submit.is-loading .cu-spinner { display: inline-block; }
@keyframes cu-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .cu-spinner { animation-duration: 2s; } .cu-input, .cu-label, .cu-submit { transition: none; } }
.cu-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.cu-success { padding: 10px 0 4px; text-align: center; outline: none; }
.cu-success-title { margin: 0 0 8px; font-family: var(--cu-heading-font); font-size: 24px; line-height: 1.3; font-weight: 600; color: var(--cu-ink); }
.cu-success-text { margin: 0 auto; max-width: 460px; color: var(--cu-text); font-size: 16px; line-height: 1.6; }
.cu-done { max-width: 260px; }
html.cu-open, html.cu-open body { overflow: hidden; }
/* "Contact Us" in the site's menu bar (index.html .header-contact), the mirror of "Track Your Order": icon + label on wider
   screens; on phones the icon with a small label under it. Ships hidden and is shown by contact-us.js. */
.header-contact { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; min-width: 0; max-width: 100%; padding: 0 4px; color: var(--ink, #1d1d1f);
  text-decoration: none; font-size: 14px; font-weight: 600; white-space: nowrap; }
.header-contact[hidden] { display: none !important; }
.header-contact:hover { color: var(--brand, #1f4fd8); }
.header-contact svg { width: 22px; height: 22px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; }
/* Optional two labels, like Track Your Order: .header-contact-long ("Contact Us") on wider screens, .header-contact-short
   ("Contact") on phones, so the link never runs into a wide centred logo. A link with a single plain <span> shows it everywhere. */
.header-contact-short { display: none; }
@media (max-width: 600px) {
  .header-contact { flex-direction: column; justify-content: center; gap: 1px; padding: 2px 0; font-size: 10px; line-height: 1.1; letter-spacing: .01em; }
  .header-contact svg { width: 20px; height: 20px; }
  .header-contact-long { display: none; }
  .header-contact-short { display: inline; }
}
@media (max-width: 600px) {
  .cu { padding: 0; align-items: stretch; }
  .cu-dialog { max-width: none; max-height: none; height: 100%; height: 100dvh; border-radius: 0; }
  .cu-head { padding: 18px 60px 0; padding-top: calc(18px + env(safe-area-inset-top)); }
  .cu-close { top: calc(8px + env(safe-area-inset-top)); right: 8px; }
  .cu-title { font-size: 25px; }
  .cu-body { padding: 8px 20px calc(28px + env(safe-area-inset-bottom)); }
  .cu-intro { font-size: 14.5px; margin-bottom: 18px; }
  .cu-grid { grid-template-columns: 1fr; gap: 12px; }
}
