/* First order offer (so-signup-offer.php): the text before the email field in the sitewide bar, the code shown
   there after sign-up, and the small sign-up card (bottom left, never a modal, nothing to close to keep
   shopping). Standard look first, then the Black Friday skin under body.so-bf. */

/* ---------- Sitewide bar ---------- */
.so-ab-email { align-items: center; }
.so-ab-email-label { color: inherit; font-size: .8rem; font-weight: 600; letter-spacing: .01em; white-space: nowrap; }
.so-ab-email-label-short { display: none; }
.so-ab-email .so-ab-email-input { width: 150px; }
@media (max-width: 1320px) {
  .so-ab-email-label-full { display: none; }
  .so-ab-email-label-short { display: inline; }
}
@media (max-width: 980px) {
  .so-ab-email { gap: 8px; }
  .so-ab-email .so-ab-email-form { flex: 1 1 auto; max-width: 300px; min-width: 0; width: auto; }
  .so-ab-email .so-ab-email-input { width: auto; }
}
@media (max-width: 480px) {
  .so-ab-email-label { font-size: .74rem; }
}
.so-fo-bar { align-items: center; display: inline-flex; gap: 8px; font-size: .8rem; font-weight: 600; white-space: nowrap; }
.so-fo-bar-code { -webkit-appearance: none; appearance: none; background: rgba(255,255,255,.12); border: 1px dashed rgba(255,255,255,.45); border-radius: 4px; color: inherit; cursor: pointer; font: 700 .8rem/1 var(--so-font, Inter, system-ui, sans-serif); letter-spacing: .14em; padding: 6px 10px; }
.so-fo-bar-code:hover { background: rgba(255,255,255,.2); }
.so-fo-bar-code:focus-visible, .so-fo-bar-more:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.so-fo-bar-more { -webkit-appearance: none; appearance: none; background: none; border: 0; color: inherit; cursor: pointer; font: 500 .76rem/1 var(--so-font, Inter, system-ui, sans-serif); opacity: .85; padding: 4px 0; text-decoration: underline; text-underline-offset: 2px; }
body.so-bf .so-ab-email-label, body.so-bf .so-fo-bar-code { color: #d9c38a; }
body.so-bf .so-fo-bar-code { background: rgba(241,233,218,.08); border-color: rgba(217,195,138,.5); }

/* ---------- Card ---------- */
.so-fo {
  --fo-bg: #fff; --fo-ink: #1f3026; --fo-text: #414c45; --fo-quiet: #59655d; --fo-line: #e4dfd4; --fo-accent: #8a6a2f;
  --fo-field: #fff; --fo-field-line: #cfc8b8; --fo-btn: #4a654d; --fo-btn-ink: #fff; --fo-btn-hover: #3d5540;
  background: var(--fo-bg); border: 1px solid var(--fo-line); border-radius: 14px;
  box-shadow: 0 18px 48px -18px rgba(31,48,38,.45), 0 2px 8px rgba(31,48,38,.08);
  bottom: var(--so-fo-bottom, 20px); box-sizing: border-box; color: var(--fo-text);
  font-family: var(--so-font, Inter, system-ui, sans-serif); left: 20px; max-width: calc(100vw - 40px);
  opacity: 0; padding: 20px 22px 16px; position: fixed; transform: translateY(14px);
  transition: opacity .35s ease, transform .35s cubic-bezier(.2,.7,.2,1); width: 372px; z-index: 9990;
}
.so-fo[hidden] { display: none; }
.so-fo.is-in { opacity: 1; transform: none; }
.so-fo *, .so-fo *::before, .so-fo *::after { box-sizing: border-box; }
.so-fo p { margin: 0; max-width: none; }
.so-fo-eyebrow { color: var(--fo-accent); font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.so-fo-title { color: var(--fo-ink); font-family: var(--so-font-display, Georgia, Gelasio, "Times New Roman", serif); font-size: 1.28rem; font-weight: 400; letter-spacing: -.01em; line-height: 1.2; padding: 6px 26px 0 0; }
.so-fo-tiers { color: var(--fo-quiet); font-size: .78rem; line-height: 1.45; padding-top: 8px; }
.so-fo-tiers span { white-space: nowrap; }
.so-fo-form { display: flex; gap: 0; padding-top: 14px; }
.so-fo-input { -webkit-appearance: none; appearance: none; background: var(--fo-field); border: 1px solid var(--fo-field-line); border-radius: 6px 0 0 6px; border-right: 0; color: var(--fo-ink); flex: 1 1 auto; font: 400 16px/1.2 var(--so-font, Inter, system-ui, sans-serif); height: 42px; min-width: 0; padding: 0 12px; }
.so-fo-input::placeholder { color: var(--fo-quiet); opacity: .8; }
.so-fo-input:focus { border-color: var(--fo-btn); outline: 2px solid var(--fo-btn); outline-offset: -2px; }
.so-fo-btn { -webkit-appearance: none; appearance: none; background: var(--fo-btn); border: 1px solid var(--fo-btn); border-radius: 0 6px 6px 0; color: var(--fo-btn-ink); cursor: pointer; flex: 0 0 auto; font: 600 .84rem/1 var(--so-font, Inter, system-ui, sans-serif); height: 42px; padding: 0 16px; white-space: nowrap; }
.so-fo-btn:hover { background: var(--fo-btn-hover); border-color: var(--fo-btn-hover); }
.so-fo-btn:disabled { cursor: default; opacity: .6; }
.so-fo-btn:focus-visible, .so-fo-close:focus-visible, .so-fo-copy:focus-visible { outline: 2px solid var(--fo-ink); outline-offset: 2px; }
.so-fo-msg { color: #8a2c1c; font-size: .78rem; padding-top: 6px; }
.so-fo-msg:empty { display: none; }
.so-fo-small { color: var(--fo-quiet); font-size: .72rem; line-height: 1.45; padding-top: 10px; }
.so-fo-close { -webkit-appearance: none; appearance: none; align-items: center; background: none; border: 0; border-radius: 50%; color: var(--fo-quiet); cursor: pointer; display: flex; font: 400 20px/1 Arial, sans-serif; height: 32px; justify-content: center; padding: 0; position: absolute; right: 8px; top: 8px; width: 32px; }
.so-fo-close:hover { background: rgba(31,48,38,.07); color: var(--fo-ink); }
.so-fo-coderow { align-items: center; display: flex; gap: 10px; padding-top: 12px; }
.so-fo-code { border: 1px dashed var(--fo-accent); border-radius: 6px; color: var(--fo-ink); font: 700 1.05rem/1 var(--so-font, Inter, system-ui, sans-serif); letter-spacing: .16em; padding: 10px 14px; }
.so-fo-copy { -webkit-appearance: none; appearance: none; background: var(--fo-btn); border: 0; border-radius: 6px; color: var(--fo-btn-ink); cursor: pointer; font: 600 .8rem/1 var(--so-font, Inter, system-ui, sans-serif); height: 38px; min-width: 76px; padding: 0 14px; }
.so-fo-copy:hover { background: var(--fo-btn-hover); }
.so-fo-sr { border: 0; clip: rect(0 0 0 0); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; white-space: nowrap; width: 1px; }

body.so-bf .so-fo {
  --fo-bg: #15120e; --fo-ink: #f1e9da; --fo-text: #e9e1cc; --fo-quiet: rgba(241,233,218,.72); --fo-line: rgba(217,195,138,.38); --fo-accent: #d9c38a;
  --fo-field: rgba(241,233,218,.08); --fo-field-line: rgba(217,195,138,.4); --fo-btn: #d9c38a; --fo-btn-ink: #15120e; --fo-btn-hover: #e6d3a1;
  box-shadow: 0 18px 48px -18px rgba(0,0,0,.7), 0 0 0 1px rgba(176,141,76,.25);
}
body.so-bf .so-fo-close:hover { background: rgba(241,233,218,.1); }
body.so-bf .so-fo-msg { color: #f0b8a4; }

@media (max-width: 600px) {
  .so-fo { border-radius: 12px; bottom: var(--so-fo-bottom, 12px); left: 10px; max-width: none; padding: 12px 14px 10px; right: var(--so-fo-right, 10px); width: auto; }
  .so-fo-eyebrow { display: none; }
  .so-fo-title { font-size: 1.08rem; padding-top: 0; }
  .so-fo-tiers { font-size: .74rem; padding-top: 4px; }
  .so-fo-form { padding-top: 9px; }
  .so-fo-input, .so-fo-btn { height: 40px; }
  .so-fo-btn { padding: 0 12px; }
  .so-fo-small { font-size: .68rem; padding-top: 7px; }
  .so-fo-close { right: 4px; top: 4px; }
  .so-fo-coderow { padding-top: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .so-fo { transform: none; transition: none; }
}
@media print { .so-fo { display: none !important; } }
