/* Shared iOS / Android fixes: deterministic campaign type and theme surfaces. */
@font-face{font-family:'FF Campaign';src:url('/assets/fonts/ff-campaign.ttf') format('truetype');font-style:normal;font-weight:400;font-display:swap}
.ff-home-ad .ff-sale-heading h2,.ff-home-ad .ff-sale-section-title strong,.ff-home-ad .ff-sale-top-label,.ff-home-ad .ff-sale-empty strong{font-family:'FF Campaign',Impact,sans-serif;font-weight:400;font-synthesis:none}
.ff-home-ad .ff-sale-heading h2{display:flex;align-items:center;justify-content:center;white-space:nowrap;line-height:1;-webkit-text-stroke:0;text-shadow:none}
.ff-home-ad .ff-sale-wordmark{display:block;width:clamp(165px,48vw,295px);height:auto;max-width:100%;overflow:visible}
.ff-home-ad .ff-sale-top-label{line-height:.95}
.ff-home-ad{color-scheme:only light}
#ff-address-dialog .ab-top-cities{grid-template-columns:repeat(3,minmax(0,1fr))}
#ff-address-dialog .ab-top-cities button svg{display:block;width:52px;height:52px;margin:0 auto 9px;stroke-width:2.2}
#ff-address-dialog .ab-top-cities button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;min-height:112px;color:#202020;font-size:12px;font-weight:500}
#ff-address-dialog .ab-city-help{color:var(--fa-muted);font-size:13px;line-height:1.5;margin:8px 0 14px}
#ff-address-dialog .ab-city-sheet>section{box-sizing:border-box;max-height:calc(100dvh - env(safe-area-inset-top) - 12px);padding-bottom:calc(18px + env(safe-area-inset-bottom));overscroll-behavior:contain}
#ff-address-dialog .ab-city-sheet label{position:relative}
#ff-address-dialog .ab-suggestions{display:grid;gap:2px;font-size:13px;color:var(--fa-muted);max-height:210px;overflow-y:auto;overscroll-behavior:contain}
#ff-address-dialog .ab-suggestions:empty{display:none}
#ff-address-dialog .ab-suggestions button{width:100%;min-height:44px;padding:10px 12px;text-align:left;border:1px solid var(--fa-line);background:var(--fa-paper);color:var(--fa-ink);border-radius:7px;font-size:14px}
#ff-address-dialog .ab-suggestions small{display:block;color:var(--fa-muted);margin-top:3px;font-size:12px}
#ff-address-dialog .ab-suggestions [aria-selected=true]{outline:2px solid var(--fa-green);outline-offset:-2px}
#ff-address-dialog .ab-city-search{flex-wrap:wrap}
#ff-address-dialog .ab-city-search input{flex:1;min-width:0}
#ff-address-dialog .ab-city-search .ab-suggestions{flex-basis:100%;border-radius:8px}
html[data-theme=dark]{--fa-bg:#151917;--fa-paper:#202622;--fa-ink:#f2f5f2;--fa-muted:#b1bdb4;--fa-line:#3c4840;--ff-dark-field:#18201b;--ff-dark-soft:#29342d}
html[data-theme=dark] body,html[data-theme=dark] .app-shell,html[data-theme=dark] #customer-shell{background:var(--fa-bg);color:var(--fa-ink)}
html[data-theme=dark] .fa-account,html[data-theme=dark] .fa-account .profile-identity,html[data-theme=dark] .fa-account .profile-name-editor,html[data-theme=dark] .fa-account .profile-form,html[data-theme=dark] .fa-account #appearance-card,html[data-theme=dark] .fa-account .profile-shortcuts{background:var(--fa-paper)!important;color:var(--fa-ink)!important;border-color:var(--fa-line)!important}
html[data-theme=dark] .fa-account h1,html[data-theme=dark] .fa-account h2,html[data-theme=dark] .fa-account h3,html[data-theme=dark] .fa-account label,html[data-theme=dark] .fa-account #profile-display-name,html[data-theme=dark] .fa-account .profile-shortcuts button{color:var(--fa-ink)!important}
html[data-theme=dark] #ff-account-pages,html[data-theme=dark] #ff-account-pages>header,html[data-theme=dark] #ff-account-pages .fa-white-card,html[data-theme=dark] #fa-profile-fields .profile-form,html[data-theme=dark] #fa-profile-fields .profile-name-editor{background:var(--fa-paper)!important;color:var(--fa-ink)!important;border-color:var(--fa-line)!important}
html[data-theme=dark] #ff-address-dialog,html[data-theme=dark] #ff-address-dialog>header,html[data-theme=dark] #ff-address-dialog .ab-city-sheet>section,html[data-theme=dark] #ff-address-dialog .ab-details-card,html[data-theme=dark] #ff-address-dialog .ab-top-cities button,html[data-theme=dark] #ff-address-dialog .ab-city-search{background:var(--fa-paper)!important;color:var(--fa-ink)!important;border-color:var(--fa-line)!important}
html[data-theme=dark] #ff-address-dialog .ff-address-body,html[data-theme=dark] #ff-account-pages #fa-page-body{background:var(--fa-bg);color:var(--fa-ink)}
html[data-theme=dark] #ff-address-dialog input:not([type=radio]):not([type=checkbox]),html[data-theme=dark] #ff-account-pages input:not([type=radio]):not([type=checkbox]),html[data-theme=dark] #ff-account-pages textarea,html[data-theme=dark] #ff-account-pages select,html[data-theme=dark] .fa-account input:not([type=radio]):not([type=checkbox]),html[data-theme=dark] .fa-account .mobile-field{background:var(--ff-dark-field)!important;color:var(--fa-ink)!important;border-color:var(--fa-line)!important}
html[data-theme=dark] #ff-address-dialog input::placeholder,html[data-theme=dark] #ff-account-pages input::placeholder,html[data-theme=dark] .fa-account input::placeholder{color:var(--fa-muted);opacity:1}
html[data-theme=dark] #ff-address-dialog label,html[data-theme=dark] #ff-address-dialog .ab-card-content p,html[data-theme=dark] #ff-account-pages label,html[data-theme=dark] .fa-account #profile-display-mobile{color:var(--fa-muted)!important}
html[data-theme=dark] #ff-address-dialog .ab-city-done,html[data-theme=dark] #ff-address-dialog #delivery-confirm-address,html[data-theme=dark] #ff-account-pages .profile-submit-button,html[data-theme=dark] .fa-account .profile-submit-button{background:#267d1c!important;color:#fff!important;border-color:transparent!important}
html[data-theme=dark] #ff-address-dialog #ff-address-status,html[data-theme=dark] #ff-account-pages .profile-required{background:#3c3420!important;color:#ffedbd!important;border-color:#67552a!important}
html[data-theme=dark] .fa-account .appearance-options,html[data-theme=dark] .fa-account .appearance-options button,html[data-theme=dark] .fa-account .appearance-title{background:var(--fa-paper)!important;color:var(--fa-ink)!important;border-color:var(--fa-line)!important}
html[data-theme=dark] .fa-account .appearance-options button.is-active{background:var(--ff-dark-soft)!important;box-shadow:inset 0 0 0 1px #8bcf79}
html[data-theme=dark] #cart-dialog,html[data-theme=dark] #ff-dialog.ff-checkout-dialog{background:var(--fa-bg)!important;color:var(--fa-ink)!important}
html[data-theme=dark] #cart-dialog .cart-head,html[data-theme=dark] #cart-dialog .cart-item,html[data-theme=dark] #cart-dialog .delivery-location,html[data-theme=dark] #cart-dialog .delivery-slots,html[data-theme=dark] #cart-dialog .ff-bill,html[data-theme=dark] #cart-dialog .ff-recipient,html[data-theme=dark] #ff-dialog .ff-check-section,html[data-theme=dark] #ff-dialog .ff-bill{background:var(--fa-paper)!important;color:var(--fa-ink)!important;border-color:var(--fa-line)!important}
html[data-theme=dark] #cart-dialog input,html[data-theme=dark] #cart-dialog textarea,html[data-theme=dark] #cart-dialog select{background:var(--ff-dark-field)!important;color:var(--fa-ink)!important;border-color:var(--fa-line)!important}
html[data-theme=dark] #ff-address-dialog .ab-city-entry,html[data-theme=dark] .fa-account .appearance-toggle{background:var(--fa-paper)!important;color:var(--fa-ink)!important}
html[data-theme=dark] #ff-money-dialog,html[data-theme=dark] #ff-money-dialog .wm-add-card,html[data-theme=dark] #ff-money-dialog .wm-transactions,html[data-theme=dark] #ff-money-dialog .wm-empty,html[data-theme=dark] #ff-money-dialog .wm-tabs{background:var(--fa-paper)!important;color:var(--fa-ink)!important}
html[data-theme=dark] #ff-money-dialog #wm-amount{color:var(--fa-ink)!important}
html[data-theme=dark] #ff-address-dialog button:not(.ab-sheet-shade):not(.ab-city-done):not(#delivery-confirm-address){background:var(--fa-paper);color:var(--fa-ink);border-color:var(--fa-line)}
html[data-theme=dark] #ff-address-dialog .ab-select-row>span:last-child,html[data-theme=dark] #ff-address-dialog .ab-card-symbol,html[data-theme=dark] #ff-address-dialog .ab-select-icon,html[data-theme=dark] #ff-address-dialog .ab-actions summary,html[data-theme=dark] #ff-address-dialog .ab-actions>button,html[data-theme=dark] #ff-address-dialog .ab-badge{background:var(--ff-dark-soft)!important;color:var(--fa-ink)!important}
html[data-theme=dark] #ff-address-dialog .ab-card-phone strong,html[data-theme=dark] #ff-address-dialog #ab-pin-status{color:var(--fa-muted)}
/* Out-of-stock catalogue actions get their own full-width row on narrow cards. */
.product-actions:has(>.alternative-button){align-items:stretch;grid-template-columns:34px minmax(0,1fr)}
.product-actions>.alternative-button{grid-column:1/-1;box-sizing:border-box;width:100%;min-width:0;min-height:40px;height:auto;padding:9px 6px;font-size:13px;line-height:1.3;white-space:normal;overflow-wrap:break-word;display:flex;align-items:center;justify-content:center}
.product-actions:has(>.alternative-button)>.notify-button{min-width:0;height:auto;min-height:38px;white-space:normal;line-height:1.3;padding:8px 6px}
#ops-stock .ff-stock-quantity{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;padding-top:8px;border-top:1px solid #d4deea;color:#17253a}
#ops-stock .ff-stock-quantity label{font-size:13px;display:flex;flex-direction:column;gap:5px;min-width:0}
#ops-stock .ff-stock-quantity input{box-sizing:border-box;width:100%;min-width:0;min-height:44px;border:1px solid #9caec0;border-radius:8px;padding:8px;background:#fff;color:#17253a;font-size:16px}
#ops-stock .ff-stock-quantity button{min-height:44px;border:1px solid #9caec0;border-radius:8px;padding:8px;font-size:13px;align-self:end;background:#edf6ef;color:#164e35;white-space:normal}
#ops-stock .ff-stock-quantity small{grid-column:1/-1;white-space:normal;overflow:visible;font-size:12px;line-height:1.5;color:#52635a}
#ops-stock .ff-stock-quantity button[data-quantity-reload]{grid-column:1/-1;justify-self:start;background:#fff}
#ops-stock .ff-stock-quantity :disabled{opacity:.6}
html[data-theme=dark] .product-actions>.alternative-button{background:#322641!important;color:#ecdcff!important;border-color:#8d70b5!important}
