/* UFUQ ALWOSOOL V5 — additive, scoped cosmetic controls.
   The 'original' choice adds no override to the existing site. */

/* Font preference applies only in the language currently being viewed. */
html[lang="ar"][data-ufuq-font="alexandria"]{--ufuq-preferred-font:'Alexandria',sans-serif}
html[lang="ar"][data-ufuq-font="cairo"]{--ufuq-preferred-font:'Cairo','IBM Plex Sans Arabic',sans-serif}
html[lang="ar"][data-ufuq-font="tajawal"]{--ufuq-preferred-font:'Tajawal','IBM Plex Sans Arabic',sans-serif}
html[lang="en"][data-ufuq-font="manrope"]{--ufuq-preferred-font:'Manrope',Arial,sans-serif}
html[lang="en"][data-ufuq-font="inter"]{--ufuq-preferred-font:'Inter',Arial,sans-serif}
html[lang="en"][data-ufuq-font="dmsans"]{--ufuq-preferred-font:'DM Sans',Arial,sans-serif}
html[data-ufuq-font] body,
html[data-ufuq-font] body :is(h1,h2,h3,h4,h5,h6,p,a,button,input,select,textarea,label,small,em,span,strong,b,output,blockquote,summary,li),
html[data-ufuq-font] body :is(.overline,.detail-overline,.hero-side-word,.signature,.product-english,.product-ref,.brandword){
 font-family:var(--ufuq-preferred-font) !important;
}
/* The chooser's own controls are always steady and easy to read. */
.ufuq-personalize, .ufuq-personalize *{font-family:'IBM Plex Sans Arabic','Manrope',Arial,sans-serif !important}
html[lang="en"] .ufuq-personalize, html[lang="en"] .ufuq-personalize *{font-family:'Manrope',Arial,sans-serif !important}

/* Warm-ivory appearance: minimal color temperature changes, original layout. */
html[data-ufuq-theme="ivory"]{
 --paper:#f9f5ec;--chalk:#f1e9db;--white:#fffdf7;
 --line:#e7ddcf;--ink:#233328;--ink-soft:#435047;
}
html[data-ufuq-theme="ivory"] body,
html[data-ufuq-theme="ivory"] :is(.sectors,.catalogue){background:#f9f5ec}
html[data-ufuq-theme="ivory"] :is(.editorial,.editorial-premium,.process){background:#eee7da}
html[data-ufuq-theme="ivory"] .sector-ribbon{background:#eee7da}
html[data-ufuq-theme="ivory"] .header,
html[data-ufuq-theme="ivory"] .nav{background:rgba(252,248,239,.98)}
html[data-ufuq-theme="ivory"] :is(.sector-card,.product-card,.steps article,.contact-card,.quote-drawer,.product-modal,.customer-modal,.customer-list){background:#fffdf7}
html[data-ufuq-theme="ivory"] .sector-card-lux{background:linear-gradient(105deg,#fffdf7 42%,#f7eedb)}
html[data-ufuq-theme="ivory"] .contact-section{background:#eae1d1}
html[data-ufuq-theme="ivory"] .product-art{background:#f0ebe1}
html[data-ufuq-theme="ivory"] .font-controls{background:#fffaf1}

/* Night appearance: limited to decorative surfaces, never the business logic. */
html[data-ufuq-theme="night"]{
 color-scheme:dark;
 --paper:#13211c;--chalk:#1b2d26;--white:#1c3027;--line:#3c5548;
 --ink:#f1f4ec;--ink-soft:#d1dfd1;--muted:#b4c1b6;
 --accent:#e2a369;--accent-dark:#cc8b54;
}
html[data-ufuq-theme="night"] body{background:#13211c;color:#edf1e8}
html[data-ufuq-theme="night"] :is(.header,.nav){background:rgba(19,33,28,.97);border-color:#3e5347}
html[data-ufuq-theme="night"] :is(.sectors,.catalogue){background:#13211c}
html[data-ufuq-theme="night"] :is(.editorial,.editorial-premium,.process,.sector-ribbon){background:#192a23}
html[data-ufuq-theme="night"] .contact-section{background:#203328}
html[data-ufuq-theme="night"] :is(.sector-card,.product-card,.steps article,.contact-card,.quote-drawer,.product-modal,.customer-modal,.customer-list,.empty-products){background:#23372e;border-color:#40594a;color:#eef1e9}
html[data-ufuq-theme="night"] .sector-card-lux{background:linear-gradient(120deg,#23372e 50%,#2d4032)}
html[data-ufuq-theme="night"] :is(.sector-card,.product-card,.steps article,.contact-card){box-shadow:0 14px 35px rgba(0,0,0,.1)}
html[data-ufuq-theme="night"] :is(.product-art,.detail-image,.hero-product){background:#eaece3}
html[data-ufuq-theme="night"] :is(.nav a,.lang-select,.section-heading>p,.editorial-copy p,.editorial-premium .editorial-copy p,.text-link,.steps p,.contact-layout>div:first-child>p,.contact-card p,.sector-card small,.product-english,.product-ref,.catalog-caption,.catalog-end p,.product-topline small,.detail-copy>p,.detail-meta span,.quote-bottom p,.quote-empty,.quote-row-main small,.customer-intro,.customer-privacy,.customer-lists-explain,.customer-hint,.customer-myphone,.customer-list small,.customer-target){color:#b6c9bc}
html[data-ufuq-theme="night"] :is(.muted-title,.sector-icon,.sector-card-top span:first-child,.sector-arrow,.product-topline span,.contact-card-overline,.contact-details i,.product-marker,.detail-overline){color:#e6a76e}
html[data-ufuq-theme="night"] .ribbon-inner>span{color:#b8c9b9}
html[data-ufuq-theme="night"] :is(.search-box,.sort-select,.cart-code-select,.qty-direct,.detail-code-chooser select,.detail-code-chooser input,.ufuq-province,.ufuq-buyer-fields input,.customer-phone-input,.customer-otp-input,.customer-name-row input){background:#1b2e25;color:#edf2e7;border-color:#506659}
html[data-ufuq-theme="night"] :is(input,select,textarea)::placeholder{color:#abbcaf;opacity:1}
html[data-ufuq-theme="night"] :is(.filter-btn,.search-box,.sort-select){color:#ccdad0;border-color:#516658}
html[data-ufuq-theme="night"] :is(.filter-btn.active,.add-quote,.bag-button,.customer-primary,.customer-name-row button){background:#c88e55;color:#15241b}
html[data-ufuq-theme="night"] .font-controls{background:#1b2d25;border-color:#536858}
html[data-ufuq-theme="night"] .font-adjust{color:#f3f0e8}
html[data-ufuq-theme="night"] .font-adjust:hover:not(:disabled){background:#2c4336}
html[data-ufuq-theme="night"] .font-size-label{color:#e8b589}
html[data-ufuq-theme="night"] :is(.lang-select,.account-button){background:#243a2e;color:#f0eee5;border-color:#516659}
html[data-ufuq-theme="night"] .menu-button span{background:#edf1e6}
html[data-ufuq-theme="night"] :is(.card-detail,.close-button,.share-btn,.quote-row-qty button,.quote-preview-top button){background:#2b4436;color:#e9f0e7;border-color:#54705b}
html[data-ufuq-theme="night"] :is(.quote-preview-v4,.ufuq-area-picker,.detail-code-chooser,.customer-empty,.customer-confirm-icon){background:#20362a;color:#e3eee4;border-color:#4f6658}
html[data-ufuq-theme="night"] :is(.quote-preview-v4 pre,.quote-preview-top,.detail-code-chooser label,.ufuq-area-note,.ufuq-buyer-fields label span,.ufuq-data-note,.qty-label,.customer-page h2,.customer-brand b){color:#e2ede3}
html[data-ufuq-theme="night"] :is(.customer-divider span,.customer-lists-heading span,.customer-list-actions button,.customer-outline,.customer-logout){background:#314738;color:#e2eadf}
html[data-ufuq-theme="night"] .customer-modal :is(input,button){color-scheme:dark}
html[data-ufuq-theme="night"] .customer-modal .customer-primary{color:#12221a}
html[data-ufuq-theme="night"] .hero, html[data-ufuq-theme="night"] .philosophy,html[data-ufuq-theme="night"] .footer{color:#fff}

/* Discreet floating launcher, opposite the site's WhatsApp button. */
.ufuq-personalize{position:fixed;bottom:25px;left:25px;z-index:26;direction:rtl;pointer-events:none}
html[lang="en"] .ufuq-personalize{left:auto;right:25px;direction:ltr}
.ufuq-personalize > *{pointer-events:auto}
.ufuq-personalize-trigger{
 display:inline-flex;align-items:center;justify-content:center;gap:9px;
 background:#21392e;color:#fff;border:1px solid #b99b76;border-radius:30px;
 min-height:49px;padding:0 16px;box-shadow:0 13px 32px rgba(6,26,13,.19);
 font-size:12px;font-weight:700;line-height:1.2;cursor:pointer;
 transition:transform .16s ease,box-shadow .16s ease,background .16s ease;
}
.ufuq-personalize-trigger svg{width:20px;height:20px;flex:none;stroke:#e9bd86}
.ufuq-personalize-trigger:hover,.ufuq-personalize.is-open .ufuq-personalize-trigger{
 transform:translateY(-2px);background:#2c4a3c;box-shadow:0 17px 32px rgba(6,26,13,.24)}
.ufuq-personalize-trigger:focus-visible,.ufuq-personalize button:focus-visible,.ufuq-personalize select:focus-visible{
 outline:3px solid #d7975b;outline-offset:3px
}
.ufuq-personalize-panel{
 position:absolute;bottom:calc(100% + 13px);left:0;inline-size:min(336px,calc(100vw - 36px));
 max-height:min(75svh,530px);overflow:auto;overscroll-behavior:contain;
 color:#22372d;background:#fffefa;border:1px solid #e4dfd5;border-radius:13px;
 box-shadow:0 27px 70px rgba(9,25,14,.24);text-align:start;
}
html[lang="en"] .ufuq-personalize-panel{left:auto;right:0}
.ufuq-personalize-panel[hidden]{display:none !important}
.ufuq-personalize-panel-header{padding:21px 23px 16px;border-bottom:1px solid #eee8de;display:flex;align-items:flex-start;gap:10px;justify-content:space-between}
.ufuq-personalize-kicker{font:800 9px/1.4 Manrope,Arial,sans-serif !important;letter-spacing:1.3px;color:#aa744a;direction:ltr;text-align:start}
.ufuq-personalize-kicker span{color:#89968b}
.ufuq-personalize-panel h2{font-size:18px !important;font-weight:700;line-height:1.5;margin:8px 0 4px;color:#253c30;letter-spacing:0}
.ufuq-personalize-panel-header p{font-size:11px;line-height:1.8;color:#79857b;margin:0}
.ufuq-personalize-close{flex:none;display:grid;place-items:center;border:1px solid #e6e5dd;background:#faf8f3;color:#526354;width:29px;height:29px;border-radius:50%;font-size:21px;line-height:1;cursor:pointer}
.ufuq-personalize-content{padding:18px 23px 17px}
.ufuq-personalize-label{display:block;font-size:12px;font-weight:800;color:#304537;margin:0 0 11px}
.ufuq-personalize-themes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.ufuq-personalize-theme{border:1px solid #e0dfd5;background:#fff;color:#5c6b60;border-radius:8px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;padding:10px 3px;cursor:pointer;min-height:74px;font-size:10px;line-height:1.3;transition:border-color .15s,background .15s}
.ufuq-personalize-theme.is-active{border:1.5px solid #ad865b;background:#fbf5ea;color:#24382c;font-weight:800}
.ufuq-theme-swatch{width:33px;height:24px;border-radius:5px;border:1px solid rgba(54,63,55,.12);box-shadow:0 2px 5px #1f312015}
.ufuq-swatch-original{background:linear-gradient(130deg,#192b23 45%,#f9f8f4 46%)}
.ufuq-swatch-ivory{background:linear-gradient(130deg,#9b7451 45%,#f1e3cd 46%)}
.ufuq-swatch-night{background:linear-gradient(130deg,#101c18 45%,#324d3f 46%)}
.ufuq-personalize-fontlabel{margin:21px 0 10px}
.ufuq-personalize-select{appearance:auto;width:100%;padding:10px 13px;background:#faf9f5;border:1px solid #d9dfd4;border-radius:7px;color:#23372d;font-size:13px;min-height:44px;cursor:pointer}
.ufuq-personalize-preview{font-size:13px;line-height:1.8;color:#5c6b60;background:#f7f6f0;border-inline-start:2px solid #c99460;padding:11px 13px;margin-top:12px;border-radius:2px;min-height:45px}
.ufuq-personalize-preview[data-demo-font="alexandria"]{font-family:Alexandria,sans-serif !important}
.ufuq-personalize-preview[data-demo-font="cairo"]{font-family:Cairo,sans-serif !important}
.ufuq-personalize-preview[data-demo-font="tajawal"]{font-family:Tajawal,sans-serif !important}
.ufuq-personalize-preview[data-demo-font="manrope"]{font-family:Manrope,sans-serif !important}
.ufuq-personalize-preview[data-demo-font="inter"]{font-family:Inter,sans-serif !important}
.ufuq-personalize-preview[data-demo-font="dmsans"]{font-family:'DM Sans',sans-serif !important}
.ufuq-personalize-footer{padding:14px 23px 17px;border-top:1px solid #eee8de;display:flex;flex-direction:column;gap:7px}
.ufuq-personalize-footer button{background:transparent;border:0;padding:0;color:#97683e;font-size:12px;font-weight:800;cursor:pointer;text-align:start}
.ufuq-personalize-footer button:hover{text-decoration:underline}
.ufuq-personalize-footer small{color:#839084;font-size:10px;line-height:1.7}
html[data-ufuq-theme="night"] .ufuq-personalize-panel{background:#1f3429;border-color:#4a614e;color:#edf2e8}
html[data-ufuq-theme="night"] .ufuq-personalize-panel :is(h2,.ufuq-personalize-label){color:#f3eee4}
html[data-ufuq-theme="night"] .ufuq-personalize-panel :is(.ufuq-personalize-panel-header,.ufuq-personalize-footer){border-color:#48604d}
html[data-ufuq-theme="night"] .ufuq-personalize-panel :is(.ufuq-personalize-preview,.ufuq-personalize-select,.ufuq-personalize-theme,.ufuq-personalize-close){background:#294337;color:#dce9dd;border-color:#506b57}
html[data-ufuq-theme="night"] .ufuq-personalize-theme.is-active{background:#37513e;border-color:#daaa79}
@media(max-width:680px){
 .ufuq-personalize{bottom:17px;left:15px}
 html[lang="en"] .ufuq-personalize{right:15px}
 .ufuq-personalize-trigger{width:44px;height:44px;min-height:44px;padding:0;border-radius:50%}
 .ufuq-personalize-trigger-label{display:none}
 .ufuq-personalize-trigger svg{width:21px;height:21px}
 .ufuq-personalize-panel{bottom:calc(100% + 10px);inline-size:min(328px,calc(100vw - 30px))}
}
@media(prefers-reduced-motion:reduce){.ufuq-personalize-trigger,.ufuq-personalize-theme{transition:none}}
