/* Yalt storefront v2: theme fonts, one merchant colour (--yalt-accent) and the text derived from it. */
.yalt-sf {
  --yalt-accent: #242E42;
  --yalt-on-accent: #FFFFFF;
  font-family: inherit;
  color: inherit;
  box-sizing: border-box;
}
.yalt-sf *, .yalt-sf *::before, .yalt-sf *::after { box-sizing: border-box; }
.yalt-sf [hidden], .yalt-sf[hidden] { display: none !important; }
.yalt-sf p { margin: 0; }
/* The panel and the My Account card set their own text size: a theme's paragraph size (often 18 to 22 px) stops
   here. The size classes below are repeated under .yalt-sf so they still win over this reset. */
.yalt-sf-panel, .yalt-sf-account { font-size: 14px; line-height: 1.45; }
.yalt-sf-panel p, .yalt-sf-account p { font-size: inherit; line-height: inherit; }
.yalt-sf-locked { overflow: hidden; }
.yalt-sf-offscreen { position: absolute; left: -9999px; }

/* Buttons and links: 44px targets */
.yalt-sf-btn {
  font-family: inherit; font-size: 14px; font-weight: 600; line-height: 1.2;
  display: inline-flex; flex-direction: row; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 10px 16px; border-radius: 8px; border: 1px solid transparent;
  cursor: pointer; text-decoration: none; text-align: center;
}
.yalt-sf-btn.is-accent { background: var(--yalt-accent); color: var(--yalt-on-accent); }
.yalt-sf-btn.is-ghost { background: #FFFFFF; color: #242E42; border-color: #D0D5DD; }
.yalt-sf-btn.is-danger { background: #B42318; color: #FFFFFF; }
.yalt-sf-btn.is-small { font-size: 13px; padding: 8px 12px; }
.yalt-sf-btn.is-stacked { flex-direction: column; gap: 2px; }
.yalt-sf-btn[disabled] { opacity: .5; cursor: not-allowed; }
.yalt-sf-btn:focus-visible, .yalt-sf-link:focus-visible, .yalt-sf-row:focus-visible, .yalt-sf-launcher:focus-visible, .yalt-sf-nav-item:focus-visible {
  outline: 2px solid var(--yalt-accent); outline-offset: 2px;
}
.yalt-sf-link {
  font-family: inherit; font-size: 13px; font-weight: 600; background: none; border: 0; padding: 0 4px;
  min-height: 44px; min-width: 44px; color: inherit; text-decoration: underline; cursor: pointer;
}
.yalt-sf-link.is-danger { color: #B42318; }
.yalt-sf-pill {
  font-family: inherit; font-size: 13px; font-weight: 600; display: inline-flex; align-items: center;
  min-height: 44px; padding: 8px 14px; border-radius: 999px; border: 1px solid currentColor;
  background: transparent; color: inherit; text-decoration: none; cursor: pointer;
}

/* Layout pieces */
.yalt-sf-stack { display: flex; flex-direction: column; gap: 12px; }
.yalt-sf-pad { padding: 16px; }
.yalt-sf-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.yalt-sf-inline { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.yalt-sf-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.yalt-sf-line { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.yalt-sf-center { text-align: center; }
.yalt-sf-title { font-size: 17px; font-weight: 650; margin: 0; }
.yalt-sf-figure { font-size: 28px; font-weight: 650; font-variant-numeric: tabular-nums; }
.yalt-sf-small, .yalt-sf .yalt-sf-small { font-size: 12.5px; }
.yalt-sf-muted { color: #667085; }
.yalt-sf-strong { font-weight: 600; }
.yalt-sf-eyebrow { font-size: 11.5px; font-weight: 650; letter-spacing: .07em; text-transform: uppercase; color: #667085; }
.yalt-sf-mono { font-variant-numeric: tabular-nums; font-weight: 600; letter-spacing: .02em; }
.yalt-sf-mono.is-plus { color: #0B5D43; }
.yalt-sf-tag { display: inline-flex; align-items: center; font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 999px; background: #E6F4EE; color: #0B5D43; }
.yalt-sf-tag.is-grey { background: #F2F4F7; color: #344054; }
.yalt-sf-note, .yalt-sf .yalt-sf-note { font-size: 13px; padding: 10px 12px; border-radius: 8px; background: #F2F4F7; color: #344054; }
.yalt-sf-note.is-error { background: #FEE4E2; color: #B42318; }
.yalt-sf-note.is-ok { background: #E6F4EE; color: #0B5D43; }
.yalt-sf-state { display: flex; flex-direction: column; gap: 4px; padding: 16px; text-align: center; color: #344054; }
.yalt-sf-card { background: #FFFFFF; border: 1px solid #EAECF0; border-radius: 12px; color: #242E42; }
.yalt-sf-card.is-list { display: flex; flex-direction: column; }
.yalt-sf-row {
  font-family: inherit; font-size: 14px; width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 56px; padding: 10px 16px; background: none; border: 0; border-bottom: 1px solid #EAECF0;
  color: inherit; text-align: left; cursor: pointer;
}
.yalt-sf-row:last-child { border-bottom: 0; }
.yalt-sf-row.is-static { cursor: default; }
.yalt-sf-row.is-wrap { flex-wrap: wrap; }
.yalt-sf-row.is-used { color: #667085; }
.yalt-sf-row-text { display: flex; flex-direction: column; gap: 2px; flex: 1 1 140px; min-width: 0; }
.yalt-sf-code { display: flex; justify-content: space-between; align-items: center; gap: 8px; border: 1px dashed #D0D5DD; border-radius: 8px; padding: 4px 4px 4px 12px; min-height: 44px; }
.yalt-sf-input, .yalt-sf input[type="date"], .yalt-sf input[type="tel"] {
  font-family: inherit; font-size: 14px; min-height: 44px; padding: 10px 12px; border: 1px solid #D0D5DD; border-radius: 8px; width: 100%; background: #FFFFFF; color: #242E42;
}
.yalt-sf-input.is-amount { max-width: 160px; font-variant-numeric: tabular-nums; }
.yalt-sf-field, .yalt-sf .yalt-sf-field { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; }
.yalt-sf-field .yalt-sf-hint { font-size: 13px; font-weight: 400; }
.yalt-sf-check, .yalt-sf .yalt-sf-check { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; line-height: 18px; min-height: 44px; padding-top: 4px; }
.yalt-sf-check input { width: 20px; height: 20px; margin: 0; flex-shrink: 0; }
.yalt-sf-row-label { font-size: 12.5px; color: #667085; }
.yalt-sf-row-value { font-size: 14px; color: #242E42; overflow-wrap: anywhere; }
/* Add or Edit opens the field in place: the field and its button on one line, same height (StorefrontPanel O) */
.yalt-sf-field-line { display: flex; flex-wrap: nowrap; gap: 8px; align-items: stretch; width: 100%; }
.yalt-sf-field-line .yalt-sf-input { flex: 1 1 auto; min-width: 0; width: auto; }
.yalt-sf-field-line .yalt-sf-btn { flex: 0 0 auto; min-height: 44px; }
/* Consent switches: a sliding switch in the accent colour (StorefrontPanel O, Rules "Consent") */
.yalt-sf-switch {
  appearance: none; -webkit-appearance: none; position: relative; flex: 0 0 auto; width: 40px; height: 22px; margin: 0;
  border: 0; border-radius: 999px; background: #D0D5DD; cursor: pointer; transition: background-color 150ms ease-out;
}
.yalt-sf-switch::before {
  content: ''; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 999px;
  background: #FFFFFF; box-shadow: 0 1px 2px rgba(16, 24, 40, .2); transition: transform 150ms ease-out;
}
.yalt-sf-switch:checked { background: var(--yalt-accent); }
.yalt-sf-switch:checked::before { transform: translateX(18px); }
.yalt-sf-switch:focus-visible { outline: 2px solid var(--yalt-accent); outline-offset: 2px; }
.yalt-sf-row label { flex: 1 1 auto; cursor: pointer; }
.yalt-sf-card.is-list.is-plain { border: 0; border-radius: 0; background: transparent; }
.yalt-sf-card.is-list.is-plain > .yalt-sf-row { padding-left: 0; padding-right: 0; }
.yalt-sf-card.is-list.is-plain > .yalt-sf-row:last-child { border-bottom: 0; }

/* Rewards button and panel */
.yalt-sf-widget { position: fixed; bottom: 20px; z-index: 99990; }
.yalt-sf-widget.is-bottom-right { right: 20px; }
.yalt-sf-widget.is-bottom-left { left: 20px; }
.yalt-sf-launcher {
  font-family: inherit; font-size: 14px; font-weight: 600; display: inline-flex; gap: 8px; align-items: center;
  min-height: 44px; padding: 12px 18px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--yalt-accent); color: var(--yalt-on-accent); box-shadow: 0 12px 32px rgba(16, 24, 40, .18);
}
.yalt-sf-backdrop { position: fixed; inset: 0; background: rgba(16, 24, 40, .45); z-index: 99991; animation: yalt-sf-fade-in 180ms ease-out; }
.yalt-sf-backdrop.is-clear { background: transparent; }
.yalt-sf-backdrop.is-closing { animation: yalt-sf-fade-out 150ms ease-in forwards; }
/* StorefrontPanel board, Rules "Size and motion": one fixed height whatever the tab, below the WordPress admin bar;
   the header region and the bottom bar stay put, only the body scrolls. */
.yalt-sf-panel {
  position: fixed; bottom: 80px; width: 380px; z-index: 99992;
  height: min(640px, calc(100vh - 100px - var(--wp-admin--admin-bar--height, 0px)));
  height: min(640px, calc(100dvh - 100px - var(--wp-admin--admin-bar--height, 0px)));
  display: flex; flex-direction: column; background: #FFFFFF; color: #344054; border-radius: 16px; overflow: hidden;
  box-shadow: 0 12px 32px rgba(16, 24, 40, .18);
  animation: yalt-sf-open 180ms ease-out;
}
.yalt-sf-panel.is-closing { animation: yalt-sf-close 150ms ease-in forwards; }
.yalt-sf-widget.is-bottom-right .yalt-sf-panel { right: 20px; transform-origin: bottom right; }
.yalt-sf-widget.is-bottom-left .yalt-sf-panel { left: 20px; transform-origin: bottom left; }
.yalt-sf-panel-head { flex: 0 0 auto; }
.yalt-sf-panel-body { flex: 1 1 0; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.yalt-sf-panel .yalt-sf-nav { flex: 0 0 auto; }
.yalt-sf-panel [tabindex="-1"]:focus { outline: none; }
.yalt-sf-screen { min-height: 100%; display: flex; flex-direction: column; }
.yalt-sf-screen > * { flex: 1 0 auto; }
.yalt-sf-screen > div:not([class]) { display: flex; flex-direction: column; }
.yalt-sf-screen > div:not([class]) > .is-grey:last-child { flex: 1 0 auto; }
.yalt-sf-screen.is-entering { animation: yalt-sf-enter 150ms ease-out; }
@keyframes yalt-sf-open { from { opacity: 0; transform: translateY(12px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes yalt-sf-close { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(12px) scale(.96); } }
@keyframes yalt-sf-enter { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes yalt-sf-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes yalt-sf-fade-out { from { opacity: 1; } to { opacity: 0; } }
/* The accent header of every screen (StorefrontPanel I to Q, StorefrontWidget A to H) */
.yalt-sf-head { background: var(--yalt-accent); color: var(--yalt-on-accent); padding: 12px 12px 20px 20px; display: flex; flex-direction: column; gap: 6px; }
.yalt-sf-head-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 44px; }
.yalt-sf-head.is-compact { flex-direction: row; align-items: center; justify-content: space-between; gap: 4px; padding: 10px 12px 10px 20px; min-height: 72px; }
.yalt-sf-head.is-compact.has-back { padding-left: 6px; }
.yalt-sf-head-text { display: flex; flex-direction: column; gap: 2px; flex: 1 1 auto; min-width: 0; }
.yalt-sf-head-title { font-size: 17px; font-weight: 650; line-height: 1.25; }
.yalt-sf-head-sub { font-size: 13px; opacity: .85; }
.yalt-sf-head.is-balance .yalt-sf-head-big { font-size: 34px; letter-spacing: -.02em; line-height: 1.1; }
/* StorefrontWidget A: the guest offer headline is 20 px */
.yalt-sf-head.is-offer .yalt-sf-head-big { font-size: 20px; line-height: 1.25; }
.yalt-sf-head-btn {
  flex: 0 0 auto; width: 44px; height: 44px; padding: 0; display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 0; border-radius: 999px; color: inherit; cursor: pointer;
}
.yalt-sf-head-btn:focus-visible { outline: 2px solid var(--yalt-on-accent); outline-offset: -2px; }
.yalt-sf-close {
  position: absolute; top: 6px; right: 6px; z-index: 1; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 0; border-radius: 999px; color: var(--yalt-on-accent); cursor: pointer;
}
.yalt-sf-modal-box .yalt-sf-close { color: #344054; }
.yalt-sf-head-small { font-size: 13px; opacity: .85; }
.yalt-sf-head-big { font-size: 26px; font-weight: 650; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.yalt-sf-panel .yalt-sf-pad > .yalt-sf-title:first-child { margin-top: 0; }
.yalt-sf-pad.is-grey, .yalt-sf-stack.is-grey { background: #F9FAFB; }
.yalt-sf-tabs { display: flex; gap: 4px; border-bottom: 1px solid #EAECF0; }
.yalt-sf-tabs button {
  font-family: inherit; font-size: 13.5px; font-weight: 600; min-height: 44px; padding: 8px 12px; background: none; border: 0;
  border-bottom: 2px solid transparent; color: #667085; cursor: pointer;
}
.yalt-sf-tabs button.is-active { color: #242E42; border-bottom-color: var(--yalt-accent); }
.yalt-sf-nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); border-top: 1px solid #EAECF0; background: #FFFFFF; }
.yalt-sf-nav-item {
  font-family: inherit; font-size: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  min-height: 58px; background: none; border: 0; color: #667085; cursor: pointer;
}
.yalt-sf-nav-item.is-active { color: var(--yalt-accent); font-weight: 650; }
.yalt-sf-membercard { background: var(--yalt-accent); color: var(--yalt-on-accent); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.yalt-sf-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.yalt-sf-stats > div { display: flex; flex-direction: column; gap: 2px; padding: 12px; border: 1px solid #EAECF0; border-radius: 12px; }

/* Top bar and wide banner */
.yalt-sf-bar {
  background: var(--yalt-accent); color: var(--yalt-on-accent); display: flex; align-items: center; justify-content: center;
  gap: 12px; flex-wrap: wrap; padding: 4px 52px 4px 16px; position: relative; font-size: 14px; text-align: center;
}
.yalt-sf-dismiss {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center; background: none; border: 0; color: inherit; cursor: pointer;
}
.yalt-sf-banner { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); border-radius: 16px; overflow: hidden; border: 1px solid #EAECF0; background: #FFFFFF; color: #344054; margin: 16px 0; }
.yalt-sf-banner-main { background: var(--yalt-accent); color: var(--yalt-on-accent); padding: 24px; }
.yalt-sf-banner-side { padding: 24px; }

/* Cart, checkout, thank-you */
.yalt-sf-cart { display: flex; flex-direction: column; gap: 12px; border: 1px solid #EAECF0; border-radius: 12px; padding: 16px; margin: 0 0 16px; background: #FFFFFF; color: #242E42; }
.yalt-sf-cart.is-block { border: 0; padding: 0; margin: 8px 0 0; }
.yalt-sf-earn { font-size: 14px; margin: 8px 0; }
.yalt-sf-earn.is-soft { padding: 10px 12px; border-radius: 8px; background: #F2F4F7; border-left: 3px solid var(--yalt-accent); }
.yalt-sf-join-box { border: 1px solid #EAECF0; border-radius: 12px; padding: 12px 16px; margin: 16px 0; }
.yalt-sf-thanks { display: flex; flex-direction: column; gap: 8px; border: 1px solid #EAECF0; border-radius: 12px; padding: 16px; margin: 0 0 24px; }

/* My Account */
.yalt-sf-account { display: flex; flex-direction: column; gap: 24px; }
.yalt-sf-hero { background: var(--yalt-accent); color: var(--yalt-on-accent); border-radius: 12px; padding: 20px; }
.yalt-sf-hero .yalt-sf-note { background: rgba(255, 255, 255, .14); color: inherit; }
.yalt-sf-progress { height: 8px; border-radius: 999px; background: rgba(255, 255, 255, .25); overflow: hidden; }
.yalt-sf-progress span { display: block; height: 100%; background: #2FAE7B; }
.yalt-sf-hero .yalt-sf-head-big.is-stamps { font-size: 20px; }
.yalt-sf-info, .yalt-sf .yalt-sf-info { color: #344054; font-size: 14px; }
/* Stamp cards: checked dots in the panel (StorefrontPanel Q), one pill per stamp in My Account (AccountCashback) */
.yalt-sf-stamps.is-dots { display: flex; gap: 8px; flex-wrap: wrap; }
.yalt-sf-stamps.is-dots span { width: 34px; height: 34px; border-radius: 999px; border: 2px dashed rgba(255, 255, 255, .55); display: flex; align-items: center; justify-content: center; }
.yalt-sf-stamps.is-dots span.is-on { border: 0; background: #FFFFFF; color: var(--yalt-accent); }
.yalt-sf-stamps.is-card { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; }
.yalt-sf-stamps.is-card span { height: 36px; border-radius: 99px; background: rgba(255, 255, 255, .2); }
.yalt-sf-stamps.is-card span.is-on { background: #2FAE7B; }
.yalt-sf-section { gap: 10px; }
.yalt-sf-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.yalt-sf-table th, .yalt-sf-table td { padding: 10px 8px; border-bottom: 1px solid #EAECF0; text-align: left; }
.yalt-sf-table .is-num { text-align: right; }
.yalt-sf-dash { margin: 0 0 16px; }
.yalt-sf-modal { position: fixed; inset: 0; z-index: 99995; background: rgba(16, 24, 40, .45); display: flex; align-items: center; justify-content: center; padding: 16px; }
.yalt-sf-modal-box { position: relative; background: #FFFFFF; color: #344054; border-radius: 16px; padding: 24px; width: 100%; max-width: 380px; }

/* Phone width: full-screen panel, stacked banner */
@media (max-width: 600px) {
  .yalt-sf-panel { top: var(--wp-admin--admin-bar--height, 0px); bottom: 0; width: auto; height: auto; border-radius: 0; }
  .yalt-sf-widget.is-bottom-right .yalt-sf-panel, .yalt-sf-widget.is-bottom-left .yalt-sf-panel { left: 0; right: 0; transform-origin: bottom center; }
  .yalt-sf-banner { grid-template-columns: minmax(0, 1fr); }
  .yalt-sf-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Reduced motion: no movement, everything instant */
@media (prefers-reduced-motion: reduce) {
  .yalt-sf-panel, .yalt-sf-panel.is-closing, .yalt-sf-backdrop, .yalt-sf-backdrop.is-closing, .yalt-sf-screen.is-entering { animation: none; }
  .yalt-sf-switch, .yalt-sf-switch::before { transition: none; }
}
