/* ALR R3 Shared Saudi Shell v0.1.5; scoped to the independent sa. subdomain plugin. */
.alr-shared-shell.alr-r3{max-width:1440px;margin-inline:auto;overflow:visible;isolation:isolate}
.alr-shared-shell .alr-promo{position:relative;z-index:48}
.alr-shared-shell .alr-header{position:relative;z-index:47}
.alr-shared-shell .alr-footer{margin-top:0}
.alr-shared-header .alr-header>.alr-brand img{width:auto;max-width:225px;max-height:77px;object-fit:contain;object-position:right center}
.alr-shared-shell a:focus-visible,.alr-shared-shell summary:focus-visible{outline:3px solid #fb9500;outline-offset:3px}
/* Legacy Couponis chrome remains in the theme but is not shown; R3 is SSR without JS. */
body.alr-shared-shell-ready > header,
body.alr-shared-shell-ready > .navigation,
body.alr-shared-shell-ready > .sticky-nav,
body.alr-shared-shell-ready .footer-subscribe,
body.alr-shared-shell-ready .copyrights,
body.alr-shared-shell-ready #alc-unified-footer {display:none!important}
body.alr-shared-shell-ready{background:#fff;color:#171821;font-family:"Tajawal",system-ui,sans-serif}
body.alr-shared-shell-ready main>.container,
body.alr-shared-shell-ready .main-listing>.container,
body.alr-shared-shell-ready .content>.container{max-width:1240px;margin-inline:auto}
body.alr-shared-shell-ready :is(.white-block.coupon-box,.store-block.white-block,.post.white-block,.taxonomy-header.white-block){border:1px solid #ece6e4!important;border-radius:18px!important;box-shadow:0 5px 17px rgba(23,24,33,.07)!important}
body.alr-shared-shell-ready main :is(button,a,input,select,textarea):focus-visible{outline:3px solid #fb9500;outline-offset:3px}
@media(max-width:790px){
 .alr-shared-header .alr-header{display:grid!important;grid-template-columns:minmax(0,1fr) auto 44px;grid-template-rows:56px;gap:7px;min-height:65px;padding:5px 12px;align-items:center}
 .alr-shared-header .alr-header>.alr-brand{grid-column:1;grid-row:1;min-width:0;width:100%;max-width:100%;justify-content:flex-start;overflow:hidden}
 .alr-shared-header .alr-header>.alr-brand img{max-width:min(100%,168px);max-height:48px}
 .alr-shared-header .alr-header>.alr-actions{grid-column:2;grid-row:1;margin:0!important;display:flex;gap:6px}
 .alr-shared-header .alr-header>.alr-mobile-menu{grid-column:3;grid-row:1;justify-self:end}
 .alr-shared-header .alr-mobile-menu>nav{z-index:250;max-height:72vh;overflow-y:auto}
 .alr-shared-header .alr-selector-panel{z-index:250}
 body.alr-shared-shell-ready main>.container{padding-inline:15px}
}
@media(prefers-reduced-motion:reduce){.alr-shared-shell *{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}}

/* SSR native search entry in mobile menu. No JavaScript required to submit. */
.alr-shared-shell .alr-mobile-search{display:flex;gap:6px;padding:8px 3px 12px;margin:0}
.alr-shared-shell .alr-mobile-search input{width:100%;min-width:0;min-height:44px;padding:8px;border:1px solid #ece6e4;border-radius:9px;background:#fff;color:#171821;font:inherit}
.alr-shared-shell .alr-mobile-search button{min-height:44px;padding:6px 12px;border-radius:9px;background:#d32f2f;color:#fff;font:800 13px "Tajawal",sans-serif}
.alr-shared-shell .alr-mobile-search button:hover{background:#b71c1c}

/* ALR R3 Shared Saudi Shell 0.1.3 — internal Couponis content parity.
   Only the Saudi Arabic shell scope; no homepage, canonical, or rewrite edits. */
:root{--alr-shell-ink:#171821;--alr-shell-red:#D32F2F;--alr-shell-orange:#FF6D00;--alr-shell-surface:#FFF8F4;--alr-shell-line:#ECE6E4}
.alr-shared-header .alr-anchor-target{display:block;height:0;overflow:hidden;scroll-margin-top:14px}
.alr-shared-header .alr-selector-panel a{display:block;padding:9px 10px;min-height:44px;border-radius:8px;color:#171821;text-decoration:none;font-weight:700}
.alr-shared-header .alr-selector-panel a:hover,.alr-shared-header .alr-selector-panel a:focus-visible{background:#FFF0F3;color:#B71C1C}
.alr-shared-footer .alr-footer>.alr-brand img{max-width:190px;width:auto;max-height:74px;object-fit:contain}
.alr-shared-footer .alr-footer-meta{grid-column:1/-1;border-top:1px solid #ffffff30;padding-top:14px;font-size:13px;line-height:1.7;color:#e9e2e4}
.alr-shared-footer .alr-footer-social a{min-height:44px}
/* Missing search-results H1 is rendered by server before the existing search form. */
.alr-search-intro{direction:rtl;padding:34px 20px 30px;background:linear-gradient(115deg,#FFF8F4,#fff 82%);border-bottom:1px solid #F4E5E5;font-family:'Tajawal',system-ui,sans-serif}
.alr-inner-container{max-width:1240px;margin-inline:auto}
.alr-search-intro .alr-eyebrow{display:inline-block;color:#B71C1C;font-size:13px;font-weight:800;margin-bottom:9px}
.alr-search-intro h1{margin:0 0 8px;font:900 clamp(25px,3vw,37px)/1.3 'Tajawal',system-ui,sans-serif;color:#171821}
.alr-search-intro p{margin:0;max-width:720px;font:500 15px/1.8 'Tajawal',system-ui,sans-serif;color:#5C5861}
/* Match internal template headings to the R3 editorial hierarchy. */
body.alr-shared-shell-ready .main-title{background:linear-gradient(115deg,#FFF8F4,#fff 80%);border-bottom:1px solid #F2E7E9;padding:20px 0;margin:0 0 25px}
body.alr-shared-shell-ready .main-title .container{max-width:1240px;margin-inline:auto}
body.alr-shared-shell-ready .main-title h1{margin:0!important;font:900 clamp(24px,2.8vw,36px)/1.35 'Tajawal',system-ui,sans-serif!important;color:#171821!important}
body.alr-shared-shell-ready .main-title :is(a,li,span){font-family:'Tajawal',system-ui,sans-serif}
body.alr-shared-shell-ready main{max-width:100%;min-width:0;padding-block:22px 38px;direction:rtl}
body.alr-shared-shell-ready main>.container{width:100%;max-width:1240px;margin-inline:auto;padding-inline:20px}
body.alr-shared-shell-ready main :is(.row,[class*='col-sm-']){min-width:0}
/* Sitewide card foundations: retain all native Couponis interactions. */
body.alr-shared-shell-ready main :is(.white-block,.store-block.white-block,.category-block>.white-block){border-radius:17px;border-color:#ECE6E4;box-shadow:0 6px 20px rgba(23,24,33,.055)}
body.alr-shared-shell-ready main .white-block-content{color:#171821}
body.alr-shared-shell-ready main .coupon-box{overflow:hidden;min-width:0;background:#fff;transition:box-shadow .18s ease,border-color .18s ease}
body.alr-shared-shell-ready main .coupon-box:hover{border-color:#F4B8C8!important;box-shadow:0 12px 30px rgba(23,24,33,.09)!important}
body.alr-shared-shell-ready main .coupon-box .coupon-image img{display:block;max-width:100%;height:auto;max-height:160px;object-fit:contain}
body.alr-shared-shell-ready main .coupon-box h4{font:800 clamp(15px,1.5vw,18px)/1.55 'Tajawal',system-ui,sans-serif!important;overflow-wrap:anywhere}
body.alr-shared-shell-ready main .coupon-box h4 a{color:#171821!important}
body.alr-shared-shell-ready main .coupon-box h4 a:hover{color:#D32F2F!important}
body.alr-shared-shell-ready main :is(.coupon-action-button,a.visit-store){min-height:44px;border-radius:11px!important;font:800 14px/1.5 'Tajawal',system-ui,sans-serif!important}
body.alr-shared-shell-ready main .store-block .store-image img{display:block;max-width:100%;width:auto;height:auto;max-height:100px;object-fit:contain;margin-inline:auto}
body.alr-shared-shell-ready main .store-block.store-title{min-height:48px;text-align:center}
body.alr-shared-shell-ready main .store-block.store-title a{display:inline-block;padding:2px 0;font:800 15px/1.4 'Tajawal',system-ui,sans-serif;color:#171821!important;overflow-wrap:anywhere}
body.alr-shared-shell-ready main .category-block>.white-block{min-height:146px;display:flex;align-items:center;justify-content:center}
body.alr-shared-shell-ready main .category-block>.white-block .white-block-content{width:100%;padding:22px 10px}
body.alr-shared-shell-ready main .category-block span{font-weight:800;color:#171821}
body.alr-shared-shell-ready main .category-block:hover .white-block{border-color:#D32F2F!important;background:#FFF8F4!important}
/* Search, filters, coupon detail and rich editorial body. */
body.alr-shared-shell-ready main :is(.search-header,.search-filter,.taxonomy-header){border-radius:18px!important}
body.alr-shared-shell-ready main .search-header .white-block-content{padding:16px 20px}
body.alr-shared-shell-ready main .widget-title h4{font:800 18px/1.4 'Tajawal',system-ui,sans-serif!important;color:#171821}
body.alr-shared-shell-ready main :is(input.form-control,select.form-control,textarea.form-control,.widget-search-coupons select,.widget-search-coupons input[type=text]){min-height:44px;border-radius:10px;border-color:#E8E1E5;color:#171821;background:#fff;max-width:100%}
body.alr-shared-shell-ready main :is(input.form-control,select.form-control,textarea.form-control,.widget-search-coupons select,.widget-search-coupons input[type=text]):focus{border-color:#D32F2F;box-shadow:0 0 0 3px rgba(211,47,47,.09)}
body.alr-shared-shell-ready main .taxonomy-header .store-info h1,body.alr-shared-shell-ready main .taxonomy-header .category-info h1{font:900 clamp(24px,2.8vw,35px)/1.35 'Tajawal',system-ui,sans-serif!important;color:#171821}
body.alr-shared-shell-ready main .taxonomy-header .store-logo img{max-width:160px;max-height:90px;width:auto;height:auto;object-fit:contain}
body.alr-shared-shell-ready main .white-block-single-content :is(h1,h2,h3),body.alr-shared-shell-ready main .post-content :is(h2,h3){line-height:1.4;color:#171821;overflow-wrap:anywhere}
body.alr-shared-shell-ready main :is(.white-block-single-content,.post-content,.store-rich-content){font:500 16px/1.85 'Tajawal',system-ui,sans-serif;overflow-wrap:anywhere}
body.alr-shared-shell-ready main :is(.white-block-single-content,.post-content,.store-rich-content) img{max-width:100%;height:auto}
body.alr-shared-shell-ready main .pagination a,body.alr-shared-shell-ready main .pagination span{min-width:38px;min-height:38px;display:inline-flex;align-items:center;justify-content:center;border-radius:9px}
body.alr-shared-shell-ready main :is(.tab-content,.white-block-single-content,.store-rich-content) :is(table,pre){max-width:100%;overflow-x:auto}
/* Fixed-width platform content never forces the 320–390px viewport wider. */
@media(max-width:790px){
 body.alr-shared-shell-ready main{padding-block:16px 28px}
 body.alr-shared-shell-ready main>.container{padding-inline:14px}
 body.alr-shared-shell-ready .main-title{padding:17px 0;margin-bottom:17px}
 .alr-search-intro{padding:25px 14px 22px}
 body.alr-shared-shell-ready main .coupon-box h4{font-size:16px!important}
 body.alr-shared-shell-ready main .coupon-box .white-block-content{padding:14px!important}
 body.alr-shared-shell-ready main .taxonomy-header .white-block-content{padding:17px!important}
 .alr-shared-footer .alr-footer-meta{font-size:12px}
}
@media(max-width:359px){
 .alr-shared-header .alr-header{column-gap:4px;padding-inline:7px!important}
 .alr-shared-header .alr-official-logo{max-width:128px!important}
 .alr-shared-header .alr-actions{gap:2px!important}
 .alr-shared-header .alr-selector>summary{width:38px!important;min-width:38px!important;height:44px}
 .alr-shared-header .alr-mobile-menu>summary{width:40px!important;min-width:40px!important}
 .alr-search-intro h1{font-size:23px}
}
@media(prefers-reduced-motion:reduce){body.alr-shared-shell-ready main .coupon-box{transition:none!important}}

/* v0.1.3: native SSR desktop search + coherent submit/login actions. */
.alr-shared-header .alr-actions{gap:6px}
.alr-shared-header .alr-header-search-toggle{position:relative;z-index:62}
.alr-shared-header .alr-header-search-toggle>summary{display:grid;place-items:center;cursor:pointer;list-style:none;min-width:44px;min-height:44px;border:1px solid #ECE6E4;border-radius:12px;background:#fff;color:#171821}
.alr-shared-header .alr-header-search-toggle>summary::-webkit-details-marker{display:none}
.alr-shared-header .alr-header-search-toggle[open]>summary{border-color:#D32F2F;color:#D32F2F;background:#FFF8F4}
.alr-shared-header .alr-header-search-toggle form{position:absolute;top:calc(100% + 10px);inset-inline-end:0;z-index:120;min-width:min(365px,86vw);padding:15px;box-shadow:0 13px 35px rgba(23,24,33,.15);border:1px solid #ECE6E4;border-radius:16px;background:#fff;color:#171821}
.alr-shared-header .alr-header-search-toggle form label{display:block;margin:0 0 9px;font-weight:800;font-size:14px}
.alr-shared-header .alr-header-search-controls{display:flex;gap:7px}
.alr-shared-header .alr-header-search-controls input{width:100%;min-width:0;min-height:44px;padding:8px 10px;border:1px solid #ece6e4;border-radius:9px;background:#fff;color:#171821;font:inherit}
.alr-shared-header .alr-header-search-controls button{min-width:65px;min-height:44px;border-radius:9px;background:#D32F2F;color:#fff;font:800 14px 'Tajawal',sans-serif}
.alr-shared-header .alr-submit-action{padding:9px 14px!important;border-radius:12px!important;border:1px solid #D32F2F!important;background:#D32F2F!important;color:#fff!important;font-weight:800;min-height:44px}
.alr-shared-header .alr-submit-action:hover,.alr-shared-header .alr-submit-action:focus-visible{background:#B71C1C!important;color:#fff!important}
@media(max-width:1100px){.alr-shared-header .alr-submit-action{padding:7px 10px!important;font-size:13px}}
@media(max-width:790px){
 .alr-shared-header .alr-header-search-toggle{display:none!important}
 .alr-shared-header .alr-submit-action{display:none!important}
 .alr-shared-header .alr-mobile-menu>nav>a{min-height:44px}
}

/* v0.1.5: render legacy widget headings in the same editorial scale as R3. */
body.alr-shared-shell-ready main .widget :is(h2,h3,.widget-title h4){font:800 18px/1.5 "Tajawal",system-ui,sans-serif!important;color:#171821!important;overflow-wrap:anywhere}
body.alr-shared-shell-ready main .widget :is(a,button):focus-visible{outline:3px solid #FB9500;outline-offset:2px}
