/* F90 CARD | Final header direction + sticky header + complete cream storefront palette
 * Loaded LAST so prior reference CSS cannot reset sticky positioning or force navy
 * surfaces into the cream customer theme. No HTML or account logic changes. */

/* Deterministic physical header placement. CSS grid eliminates earlier
   auto-margin/order interactions and never depends on which language is active at load. */
html.f90-reference-theme .site-header{
 position:sticky!important;top:0!important;inset-block-start:0!important;
 z-index:60!important;transform:none!important;filter:none!important;
 opacity:1!important;contain:none!important;
 background:#0e1422!important;color:#fff!important;
 box-shadow:0 3px 12px rgba(6,8,18,.19)!important;
 border-bottom:1px solid #2b3446!important;
}
html.f90-reference-theme .site-header .header-inner.container{
 display:grid!important;
 grid-template-columns:auto auto minmax(0,1fr) auto!important;
 grid-template-rows:minmax(69px,auto)!important;
 direction:ltr!important;
 align-items:center!important;justify-items:stretch!important;
 gap:5px!important;
 min-height:69px!important;width:100%!important;max-width:none!important;
 padding:3px clamp(7px,2vw,20px)!important;
 margin:0 auto!important;box-sizing:border-box!important;
 transform:none!important;position:relative!important;
}
html.f90-reference-theme .site-header .header-inner #f90ReferenceBack{
 grid-column:1!important;grid-row:1!important;order:0!important;
 display:grid!important;place-items:center!important;
 width:29px!important;min-width:29px!important;max-width:29px!important;
 height:35px!important;min-height:35px!important;
 margin:0!important;padding:3px!important;
 background:transparent!important;border:0!important;color:#fff!important;
}
html.f90-reference-theme .site-header .header-inner #f90ReferenceBack[hidden]{display:none!important;}
html.f90-reference-theme .site-header .header-inner #headerBrand.brand{
 grid-column:2!important;grid-row:1!important;order:1!important;
 width:88px!important;min-width:0!important;max-width:88px!important;
 height:66px!important;
 display:flex!important;justify-content:flex-start!important;align-items:center!important;
 margin:0!important;padding:0!important;gap:0!important;
 background:transparent!important;border:0!important;box-shadow:none!important;
 overflow:visible!important;transform:none!important;
}
html.f90-reference-theme .site-header .header-inner #headerBrand.brand img{
 display:block!important;width:85px!important;max-width:85px!important;
 height:65px!important;max-height:65px!important;min-height:0!important;
 object-fit:contain!important;object-position:left center!important;
 margin:0!important;padding:0!important;transform:none!important;filter:none!important;
}
html.f90-reference-theme .site-header .header-inner #headerBrand :is(.brand-name,.f90-reference-brand-name){display:none!important;}
html.f90-reference-theme .site-header .header-inner .header-actions{
 grid-column:4!important;grid-row:1!important;order:3!important;
 direction:rtl!important;display:flex!important;flex-flow:row nowrap!important;
 align-items:center!important;justify-content:flex-start!important;
 width:max-content!important;max-width:100%!important;min-width:0!important;
 gap:5px!important;
 padding:0!important;margin:0!important;
}
html.f90-reference-theme .site-header .header-actions :is(a,button,label),
html.f90-reference-theme .site-header #f90ReferenceBack{
 color:#f7f8fd!important;
}
html.f90-reference-theme .site-header .header-actions #menuButton{order:0!important;}
html.f90-reference-theme .site-header .header-actions #f90-language-control{order:1!important;}
html.f90-reference-theme .site-header .header-actions #headerWallet{
 order:2!important;direction:ltr!important;unicode-bidi:isolate!important;
}
html.f90-reference-theme .site-header .header-actions #f90ReferenceHeaderVip{order:3!important;}
html.f90-reference-theme .site-header .header-actions #headerWallet>span:not(.f90-wallet-plus){
 color:#fff!important;
}
/* Other languages fully reverse the four physical header tracks.
   The existing language switcher writes html.dir synchronously. */
html.f90-reference-theme[dir="ltr"] .site-header .header-inner.container{
 grid-template-columns:auto minmax(0,1fr) auto auto!important;
 direction:ltr!important;
}
html.f90-reference-theme[dir="ltr"] .site-header .header-inner .header-actions{
 grid-column:1!important;grid-row:1!important;
 direction:ltr!important;justify-content:flex-start!important;
}
html.f90-reference-theme[dir="ltr"] .site-header .header-inner #headerBrand.brand{
 grid-column:3!important;grid-row:1!important;
 justify-content:flex-end!important;
}
html.f90-reference-theme[dir="ltr"] .site-header .header-inner #headerBrand.brand img{
 object-position:right center!important;
}
html.f90-reference-theme[dir="ltr"] .site-header .header-inner #f90ReferenceBack{
 grid-column:4!important;grid-row:1!important;
 transform:scaleX(-1)!important;
}
@media(max-width:650px){
 html.f90-reference-theme .site-header .header-inner.container{
  min-height:67px!important;grid-template-rows:minmax(67px,auto)!important;
  gap:3px!important;padding:3px 7px!important;
 }
 html.f90-reference-theme .site-header .header-inner #headerBrand.brand{
  width:81px!important;max-width:81px!important;height:64px!important;
 }
 html.f90-reference-theme .site-header .header-inner #headerBrand.brand img{
  width:79px!important;max-width:79px!important;height:63px!important;max-height:63px!important;
 }
 html.f90-reference-theme .site-header .header-inner .header-actions{gap:3px!important;}
}
@media(max-width:365px){
 html.f90-reference-theme .site-header .header-inner.container{gap:2px!important;padding:3px 5px!important;}
 html.f90-reference-theme .site-header .header-inner #headerBrand.brand{width:72px!important;max-width:72px!important;}
 html.f90-reference-theme .site-header .header-inner #headerBrand.brand img{
  width:71px!important;max-width:71px!important;height:62px!important;max-height:62px!important;
 }
 html.f90-reference-theme .site-header .header-actions #headerWallet{max-width:58px!important;}
 html.f90-reference-theme .site-header .header-actions #headerWallet>span:not(.f90-wallet-plus){
  max-width:35px!important;
 }
}
/* Top and bottom keep dark branding in both modes without theme flicker. */
html.f90-reference-theme[data-theme="cream"] .site-header,
html.f90-reference-theme[data-theme="cream"] .site-header .header-inner,
html.f90-reference-theme[data-theme="cream"] #mobileDock.f90-mobile-dock{
 background:#0e1422!important;color:#fff!important;border-color:#293447!important;
}
html.f90-reference-theme[data-theme="cream"] .site-header :is(
 #f90ReferenceBack,#menuButton,#f90-language-control,#headerWallet,#f90ReferenceHeaderVip
),
html.f90-reference-theme[data-theme="cream"] #mobileDock.f90-mobile-dock>a svg{
 color:#fff!important;
}

/* The requested cream skin: warm ivory, muted berry accents, dark readable ink.
 * All variables intentionally inherit throughout account, catalog and checkout. */
html.f90-reference-theme[data-theme="cream"]{
  color-scheme:light!important;
  --bg:#f7f0e9!important;
  --surface:#fffaf6!important;
  --surface2:#f0e5df!important;
  --line:#d8c4bb!important;
  --text:#2d2630!important;
  --muted:#60525d!important;
  --accent:#a6204a!important;
  --accent2:#791735!important;
  --gold:#966017!important;
  --shadow:0 12px 29px rgba(91,47,60,.105)!important;
  --f90-focus:#b33761!important;
  --f90-original-bg:#f7f0e9!important;
  --f90-original-surface:#fffaf6!important;
  --f90-original-surface2:#f0e5df!important;
  --f90-original-line:#d8c4bb!important;
  background-color:#f7f0e9!important;
}
html.f90-reference-theme[data-theme="cream"] body:not(.admin-body){
  background:#f7f0e9!important;
  color:#2d2630!important;
  -webkit-text-fill-color:initial;
}
html.f90-reference-theme[data-theme="cream"] body:not(.admin-body)::before{
  background:
    radial-gradient(ellipse at 13% 12%,rgba(177,87,101,.075) 0%,transparent 43%),
    radial-gradient(ellipse at 88% 73%,rgba(188,142,104,.10) 0%,transparent 50%),
    linear-gradient(150deg,rgba(255,255,255,.18),rgba(238,221,212,.1))!important;
  pointer-events:none!important;
}
html.f90-reference-theme[data-theme="cream"] #f90ThemeBackdrop[data-theme="cream"] .f90-theme-watermark{
  opacity:.075!important;
}
/* Brand bars stay dark even on the light theme. */
html.f90-reference-theme[data-theme="cream"] .site-header,
html.f90-reference-theme[data-theme="cream"] .site-header .header-inner,
html.f90-reference-theme[data-theme="cream"] #mobileDock.f90-mobile-dock,
html.f90-reference-theme[data-theme="cream"] .f90-mobile-dock{
  background:#0e1422!important;color:#fafbff!important;
  border-color:#273145!important;
}
html.f90-reference-theme[data-theme="cream"] .site-header .header-actions :is(a,button,label,select),
html.f90-reference-theme[data-theme="cream"] .site-header #f90ReferenceBack,
html.f90-reference-theme[data-theme="cream"] .site-header #headerWallet>span:not(.f90-wallet-plus),
html.f90-reference-theme[data-theme="cream"] #mobileDock.f90-mobile-dock>a svg{
  color:#fff!important;
}
html.f90-reference-theme[data-theme="cream"] .site-header #headerWallet .f90-wallet-plus{
  color:#141922!important;background:#fff!important;
}
html.f90-reference-theme[data-theme="cream"] :is(.site-footer,.f90-seo-directory-link){
  background:transparent!important;color:#675562!important;
}
/* Cards and panels across public account screens. */
html.f90-reference-theme[data-theme="cream"] #mainContent :is(
  .panel,.record,.catalog-row,.method-tile,.product-info,
  .f90-fin-row,.f90-fin-field,.f90-order-secondary,.profile-card,
  .payment-card,.f90-deposit-request-card,.f90-deposit-destination,
  .f90-deposit-compact,.f90-fin-tools,.f90-fin-list
){
  color:#2d2630!important;border-color:#dbc9c2!important;
}
html.f90-reference-theme[data-theme="cream"] #mainContent :is(
  .panel,.record,.catalog-row,.method-tile,.product-info,
  .profile-card,.payment-card,.f90-deposit-request-card,.f90-fin-field
){
  background-color:#fffaf6!important;
  box-shadow:0 5px 17px rgba(77,47,51,.055)!important;
}
html.f90-reference-theme[data-theme="cream"] #mainContent :is(
  h1,h2,h3,h4,.section-head h2,.page-head h1,.tile-caption,
  .record-main strong,.field>span,.f90-fin-heading strong
){
  color:#2d2630!important;
  text-shadow:none!important;
}
html.f90-reference-theme[data-theme="cream"] #mainContent :is(
  p,small,.muted,.card-meta,.hint,.subtitle,.f90-fin-mid small,
  .f90-fin-heading small,.f90-fin-field span,.field-help
){
  color:#60525d!important;
}
html.f90-reference-theme[data-theme="cream"] #mainContent .image-grid .image-tile .tile-caption{
  color:#382a36!important;-webkit-text-fill-color:#382a36!important;
  text-shadow:none!important;
}
html.f90-reference-theme[data-theme="cream"] #mainContent :is(
  input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
  select,textarea
){
  background:#f3eae5!important;color:#2c2430!important;
  border:1px solid #cfbcb5!important;
  caret-color:#8f193d!important;
}
html.f90-reference-theme[data-theme="cream"] #mainContent :is(input,textarea)::placeholder{
  color:#6e6169!important;opacity:1!important;
}
html.f90-reference-theme[data-theme="cream"] #mainContent :is(input,select,textarea):focus-visible{
  outline:2px solid #b13760!important;outline-offset:2px!important;
  border-color:#a6204a!important;
}
/* Buttons and active controls: consistent deep berry, clean cream alternatives. */
html.f90-reference-theme[data-theme="cream"] #mainContent :is(
  .button:not(.secondary):not(.ghost):not(.danger),
  button.button:not(.secondary):not(.ghost):not(.danger),
  .f90-fin-search-btn,.f90-fin-reset
){
  background:#a6204a!important;color:#fff!important;
  border-color:#a6204a!important;
  box-shadow:0 4px 10px rgba(142,32,72,.13)!important;
}
html.f90-reference-theme[data-theme="cream"] #mainContent :is(
 .button.secondary,.button.ghost,.f90-fin-quicklinks a,
 .f90-fin-nav a
){
  background:#f0e3e0!important;color:#7a2348!important;
  border:1px solid #d3b9b7!important;
  box-shadow:none!important;
}
html.f90-reference-theme[data-theme="cream"] #mainContent :is(
  .button,.f90-fin-filters button,.f90-fin-nav a
):focus-visible{
  outline:2px solid #a6204a!important;outline-offset:3px!important;
}
html.f90-reference-theme[data-theme="cream"] #mainContent :is(
  .button,.f90-fin-nav a
):hover:not(:disabled){
  filter:brightness(.97);
}
html.f90-reference-theme[data-theme="cream"] #mainContent :is(
  .button,button
):disabled{
  opacity:.58!important;cursor:not-allowed!important;
}
/* Stay readable in specialized page widgets without painting their status badges. */
html.f90-reference-theme[data-theme="cream"] #mainContent :is(
 .f90-fin-totals,.f90-fin-page .f90-fin-tools,.f90-fin-wallet-ledger .f90-fin-tools,
 .f90-history-filters,.f90-fin-wallet-deposits
){
  color:#352732!important;
}
html.f90-reference-theme[data-theme="cream"] #mainContent :is(
 .f90-fin-date-row input,.f90-fin-search-row input,.f90-reference-search input,
 .f90-category-search input
){
  color:#342632!important;background:#f0e5df!important;
}
html.f90-reference-theme[data-theme="cream"] #mainContent .f90-fin-list .f90-fin-row,
html.f90-reference-theme[data-theme="cream"] #f90HistoryView #historyRecords.f90-fin-list .f90-fin-row{
  background:#fffaf6!important;border-color:#d9c8c3!important;
}
html.f90-reference-theme[data-theme="cream"] #mainContent .f90-fin-row .f90-fin-summary :is(
 .f90-fin-heading strong,.f90-fin-price
){
  color:#342631!important;
}
html.f90-reference-theme[data-theme="cream"] #mainContent .f90-fin-row .f90-fin-expanded{
  background:#f4ebe5!important;border-color:#decfc9!important;
}
/* Dialog and drawer should be legible without replacing intentionally dark checkout art. */
html.f90-reference-theme[data-theme="cream"] #drawer.drawer{
  background:#fff9f4!important;
  color:#332733!important;
  border-color:#ddc6c2!important;
}
html.f90-reference-theme[data-theme="cream"] #drawer #drawerLinks>a:not(#f90AdminShortcut){
  color:#30232e!important;
}
html.f90-reference-theme[data-theme="cream"] #drawer :is(
 .f90-drawer-username,.f90-drawer-customerid,.drawer-preferences,
 .f90-theme-toggle-label,.drawer-profile,.f90-drawer-account-actions a
){
  color:#342631!important;
}
html.f90-reference-theme[data-theme="cream"] #drawer #drawerLinks>a:first-child:not(#f90AdminShortcut){
  color:#392332!important;background:#ede0de!important;
}
html.f90-reference-theme[data-theme="cream"] #drawer #currencySelect{
  color:#302331!important;background:#f0e5df!important;border-color:#d5bdc3!important;
}
html.f90-reference-theme[data-theme="cream"] .modal:not(.f90-precise-checkout),
html.f90-reference-theme[data-theme="cream"] .modal:not(.f90-precise-checkout) :is(
  .field input,.field textarea,.field select
){
  background:#fffaf6!important;color:#2d2630!important;
  border-color:#d8c4bb!important;
}
/* Checkout-specific dark reference has its own layout and color contract. */
html.f90-reference-theme[data-theme="cream"] #quickProductPanel .f90-precise-checkout,
html.f90-reference-theme[data-theme="cream"] .f90-precise-checkout{
  color:#f4f7fd!important;
}
html.f90-reference-theme[data-theme="cream"] #mainContent .f90-order-summary-row :is(span,strong){
  color:#fff!important;
}
html.f90-reference-theme[data-theme="cream"] #mainContent .f90-order-summary-row :is(span,small,strong){
  color:#fff!important;
}
html.f90-reference-theme[data-theme="cream"] #mainContent .f90-fin-wallet-dashboard .f90-fin-metric :is(small,strong){
  color:#fff!important;
}
@media(prefers-reduced-motion:reduce){
  html.f90-reference-theme .site-header{transition:none!important;}
}


/* Refinements for all customer surfaces, preserving distinct finance/status
   colors and the intentional dark checkout design. */
html.f90-reference-theme[data-theme="cream"] #mainContent :is(
 .f90-news-item,.news-item,.notification-item,.f90-notification-card,
 .f90-history-card,.history-item,.order-card,.wallet-entry,
 .f90-recipient-item,.f90-recipient-toolbar,.f90-recipient-list,
 .product-card,.category-card,.f90-catalog-card,.f90-order-details,
 .f90-bell-list,.f90-bell-notice
){
 background:#fffaf6!important;
 color:#312632!important;border-color:#decac4!important;
 box-shadow:0 4px 15px rgba(93,56,69,.075)!important;
}
html.f90-reference-theme[data-theme="cream"] #mainContent :is(
 .f90-news-item,.news-item,.notification-item,.f90-notification-card,
 .f90-history-card,.history-item,.order-card,.wallet-entry,
 .f90-recipient-item,.f90-order-details
) :is(h2,h3,strong,.title,.heading){
 color:#332733!important;
}
html.f90-reference-theme[data-theme="cream"] #mainContent :is(
 .f90-news-item,.news-item,.notification-item,.f90-notification-card,
 .f90-history-card,.history-item,.order-card,.wallet-entry,
 .f90-recipient-item,.f90-order-details
) :is(p,small,.description,.muted,time){
 color:#655662!important;
}
html.f90-reference-theme[data-theme="cream"] #mainContent :is(
 .f90-fin-filters button,.filter-chip,.tabs button:not(.active),
 .f90-fin-nav a:not([aria-current="page"])
){
 background:#eee1dc!important;color:#4c3345!important;
 border:1px solid #d5c1ba!important;
}
html.f90-reference-theme[data-theme="cream"] #mainContent :is(
 .f90-fin-filters button[aria-pressed="true"],.filter-chip.active,
 .tabs button.active
){
 background:#a6204a!important;color:#fff!important;
 border-color:#a6204a!important;
}
html.f90-reference-theme[data-theme="cream"] :is(
 .toast,.f90-bell-panel,.f90-popup,.f90-popover,.f90-dropdown,
 .f90-notification-panel
){
 color:#342834!important;
 background:#fffaf6!important;
 border-color:#d5c0bb!important;
}
html.f90-reference-theme[data-theme="cream"] :is(
 .toast,.f90-bell-panel,.f90-popup,.f90-popover,.f90-dropdown,
 .f90-notification-panel
) :is(a,button){
 color:#8a1c46!important;
}
html.f90-reference-theme[data-theme="cream"] :is(
 .f90-bell-panel,.f90-popup,.f90-popover,.f90-dropdown,
 .f90-notification-panel
) :is(input,select,textarea){
 background:#f0e5df!important;color:#322633!important;
 border:1px solid #d1bbb6!important;
}
html.f90-reference-theme[data-theme="cream"] #mainContent :is(a,button,input,select,textarea):focus-visible,
html.f90-reference-theme[data-theme="cream"] #drawer :is(a,button,input,select):focus-visible{
 outline:2px solid #ad2b55!important;outline-offset:3px!important;
}
html.f90-reference-theme[data-theme="cream"] .f90-seo-directory-link a{
 color:#79435b!important;
}
@media(prefers-reduced-motion:reduce){
 html.f90-reference-theme .site-header{transition:none!important;}
}
