/* Gulf CCTV brand tokens v2 (2.2.19-rc.87 step 1, rc.88 step 2).
   One source for the brand palette. Loaded last in the store shell, after gulf-palette-v1.css and store-pdp-v3.css.
   Values are the palette already live; nothing here changes how a page looks except the price colour rule at the end. */

/* 1. Brand tokens (canonical names). */
:root{
--gulf-brand-navy:#041A3F;
--gulf-brand-navy-700:#0A2E66;
--gulf-brand-blue:#0E62D6;
--gulf-brand-royal:#1A7BFF;
--gulf-brand-cyan:#00BEFF;
--gulf-brand-sky:#E8F2FF;
--gulf-brand-page:#F4F8FE;
--gulf-brand-ink:#0B1F3F;
--gulf-brand-muted:#5B6C84;
--gulf-brand-line:#D6E3F3;
--gulf-brand-success:#12804A;
--gulf-brand-deal:#E8590C;
/* roles */
--gulf-brand-price:var(--gulf-brand-navy);
--gulf-brand-discount:var(--gulf-brand-deal);
--gulf-brand-discount-text:#C2410C;
--gulf-brand-on-deal:#fff;

/* 2. Older palettes mapped onto the tokens (same values as live, so no visual change). */
/* gulf-palette-v1.css (--g-*) */
--g-navy900:var(--gulf-brand-navy);--g-navy700:var(--gulf-brand-navy-700);--g-blue:var(--gulf-brand-blue);--g-royal:var(--gulf-brand-royal);--g-cyan:var(--gulf-brand-cyan);--g-sky100:var(--gulf-brand-sky);--g-bg:var(--gulf-brand-page);--g-ink:var(--gulf-brand-ink);--g-muted:var(--gulf-brand-muted);--g-line:var(--gulf-brand-line);--g-deal:var(--gulf-brand-deal);--g-ok:var(--gulf-brand-success);
/* marketing names (--gulf-*) */
--gulf-deep:var(--gulf-brand-navy);--gulf-primary:var(--gulf-brand-blue);--gulf-cyan:var(--gulf-brand-cyan);--gulf-soft:var(--gulf-brand-sky);--gulf-bg:var(--gulf-brand-page);--gulf-ink:var(--gulf-brand-ink);--gulf-muted:var(--gulf-brand-muted);--gulf-line:var(--gulf-brand-line);
/* store-native.css names (--gt-*) */
--gt-navy:var(--gulf-brand-navy);--gt-blue:var(--gulf-brand-blue);--gt-cyan:var(--gulf-brand-cyan);--gt-soft:var(--gulf-brand-sky);--gt-bg:var(--gulf-brand-page);--gt-text:var(--gulf-brand-ink);--gt-muted:var(--gulf-brand-muted);--gt-line:var(--gulf-brand-line);--gt-ok:var(--gulf-brand-success);
/* store shell names (templates F and G) */
--gt-ink:var(--gulf-brand-ink);--gt-deep:var(--gulf-brand-navy-700);--gt-brand:var(--gulf-brand-blue);--gt-tint:var(--gulf-brand-sky)
}
/* store-pdp-v3.css (product page v4) local names that equal a token. --navy (#0B3E91) and --line (#E3ECF8) are
   product-page tones outside the palette; they are left as they are until the template step. */
html body .gt-pdp3{--n9:var(--gulf-brand-navy);--n7:var(--gulf-brand-navy-700);--blue:var(--gulf-brand-blue);--royal:var(--gulf-brand-royal);--sky:var(--gulf-brand-sky);--ink:var(--gulf-brand-ink);--muted:var(--gulf-brand-muted);--ok:var(--gulf-brand-success)}

/* 3. Price colour rule (owner decision, 27 Nov): the price is navy; the deal colour is only for discounts. */
/* current price, with or without a discount */
html body :is(.gt-price,.gt-product-price,.gtf-card-price strong,.gtf-dod-price strong,.gtg-price strong){color:var(--gulf-brand-price)!important}
/* old (crossed-out) price: small text, so the darker deal tone #C2410C for readability (rc.88) */
html body :is(.gt-old-price,.gtf-card-price s,.gtf-dod-price s,.gtg-price s){color:var(--gulf-brand-discount-text)!important}
/* discount badges and deal tags */
html body :is(.gt-sale-badge,.gtf-off,.gtg-off,.gtf-save,.gt-discount-pill,.gt-flash-ribbon){background:var(--gulf-brand-discount)!important;color:var(--gulf-brand-on-deal)!important}
html body .gt-sale-badge{box-shadow:0 5px 16px rgba(232,89,12,.19)}

/* 4. rc.88 (J): product page price and sticky price bar use the brand navy. */
html body .gt-pdp3 .gt-pdp-buy .gt-pdp-pr .gt-price{color:var(--gulf-brand-price)!important}
html body .gt-pdp-sticky .gt-pdp-sp b,html body .gt-pdp-sp b{color:var(--gulf-brand-price)!important}

/* 5. rc.88 (I): one help button (WhatsApp + Smart Advisor). One bottom rule: --gulf-fab-bottom is set by the store script
   to the height of whatever bar is fixed to the bottom of the screen plus 14px; the fallbacks cover the time before it runs. */
html body .gt-fab.gt-help{position:fixed;inset-inline-start:14px;inset-inline-end:auto;top:auto;bottom:calc(var(--gulf-fab-bottom,14px) + env(safe-area-inset-bottom,0px));z-index:60;display:flex;flex-direction:column;align-items:flex-start;gap:10px}
@media (max-width:860px){html body .gt-fab.gt-help{inset-inline-start:10px;bottom:calc(var(--gulf-fab-bottom,76px) + env(safe-area-inset-bottom,0px))}}
html body .gt-help-btn{display:inline-flex;align-items:center;justify-content:center;width:52px;height:52px;border-radius:50%;border:0;padding:0;cursor:pointer;background:var(--gulf-brand-blue);color:#fff;box-shadow:0 6px 18px rgba(4,26,63,.28);font:inherit}
html body .gt-help-btn:hover{background:var(--gulf-brand-royal)}
html body .gt-help-btn:focus-visible,html body .gt-help-menu a:focus-visible{outline:2px solid var(--gulf-brand-royal);outline-offset:2px}
html body .gt-help.open .gt-help-btn{background:var(--gulf-brand-navy)}
html body .gt-help-menu{display:flex;flex-direction:column;gap:8px}
html body .gt-help-menu[hidden]{display:none}
html body .gt-help-menu a{display:inline-flex;align-items:center;gap:8px;width:auto;height:auto;min-height:44px;padding:0 14px 0 12px;border-radius:999px;opacity:1;text-decoration:none;font-weight:700;font-size:14px;line-height:1;white-space:nowrap;box-shadow:0 6px 18px rgba(4,26,63,.22)}
html body .gt-help-menu a svg{width:22px;height:22px;flex:none}
html body .gt-help-menu .gt-help-wa{background:#25D366;color:#fff}
html body .gt-help-menu .gt-help-advisor{background:var(--gulf-brand-navy);color:#fff;border:1px solid rgba(255,255,255,.3)}
