/* Shared fitting rules for original web screens, forms and marketplace cards. */
html #root :is(.section-heading,.market-heading,.profile-heading,.bundle-head,.onboarding-step,.vendor-application,.form-grid,.offer-body,.saved)>*{min-width:0}
html #root :is(p,h1,h2,h3,h4,label,small,.notice,.doc-list,.application-facts,.bundle-name){overflow-wrap:break-word}
html #root :is(p,h1,h2,h3,h4){max-width:100%}
html #root :is(input,select,textarea){max-width:100%;box-sizing:border-box}
html #root textarea{height:auto;min-height:112px;resize:vertical}
html #root :is(.form-grid>div,.document-upload,.profile-heading>div,.brand-badge-text,.market-event>div){min-width:0}
html #root :is(.form-actions,.onboarding-actions,.profile-actions,.bundle-actions){flex-wrap:wrap;gap:10px}
html #root :is(.dialog,.reviews-sheet,.offer-share-panel,.floating-panel){overflow-wrap:break-word}
html[lang=ar] #root h1{font-size:42px;line-height:1.5}
html[lang=ar] #root p{line-height:1.85}
html[lang=ar] #root :is(.muted,.notice,.market-result-count,.empty,.saved p,.doc-list small){font-size:18px;line-height:1.85}
html[lang=ar] #root :is(.market-controls label,.vendor-onboarding label,.offer-editor label,.document-upload strong,.application-status,.application-facts,.profile-tags,.market-tabs button){font-size:13px!important;line-height:1.85}
html[lang=ar] #root :is(.market-controls select,.market-event select){font-size:17px!important;line-height:1.75;min-height:46px}
html[lang=en] #root :is(.market-controls select,.market-event select){font-size:15px!important;line-height:1.6;min-height:46px}
html[lang=ar] #root :is(.phone-field small,.consent,.planner-head p,.doc-list small,.form-note){font-size:16px;line-height:1.9}
html #root .phone-entry :is(select,input,.dial-code){font-family:IPlanRoboto,IPlanNaskh,sans-serif!important;font-size:16px!important;line-height:1.5}
html #root .phone-entry select{width:93px;min-width:93px}
html #root .phone-entry input{width:0;flex:1 1 0;min-width:0}
html #root :is(.calendar-head strong,.selected-date,.offer-like b,.offer-views b){font-family:IPlanRoboto,IPlanNaskh,sans-serif!important;font-weight:500!important}
html[lang=ar] #root :is(.calendar-head strong,.selected-date){font-size:16px;line-height:1.6}
html[lang=ar] #root .weekday{font-size:12px;line-height:1.6}
html #root :is(.doc-list,.application-facts){overflow-wrap:anywhere}
html #root :is(.market-demo-note,.profile-bio,.application-facts,.doc-list,.saved,.share-privacy){line-height:1.85;overflow-wrap:anywhere}
html #root .nav .lang{font-family:IPlanRoboto,IPlanKufi,sans-serif!important}
/* Review sheets are rendered into document.body by a React portal. */
html body .reviews-sheet,html body .reviews-sheet *{font-family:IPlanRoboto,IPlanNaskh,sans-serif!important;font-weight:300}
html[lang=ar] body .reviews-sheet,html[lang=ar] body .reviews-sheet *{font-family:IPlanNaskh,IPlanRoboto,serif!important;font-weight:400}
html body .reviews-sheet h2{font-family:IPlanBree,IPlanLalezar,serif!important;font-weight:400;line-height:1.5;font-size:28px}
html[lang=ar] body .reviews-sheet h2{font-family:IPlanLalezar,IPlanNaskh,serif!important;font-size:30px}
html body .reviews-sheet :is(button,b){font-family:IPlanRoboto,IPlanKufi,sans-serif!important;font-weight:500;line-height:1.8}
html[lang=ar] body .reviews-sheet :is(button,b){font-family:IPlanKufi,IPlanRoboto,sans-serif!important;font-weight:700;font-size:14px}
html body .reviews-sheet :is(p,small){line-height:1.85;overflow-wrap:anywhere}
html[lang=ar] body .reviews-sheet p{font-size:20px}
html body .reviews-sheet .reviews-score :is(strong,small){font-family:IPlanRoboto,sans-serif!important;font-weight:500}
html body .reviews-sheet .rating-stars,html body .reviews-sheet .rating-stars *{font-family:Arial,sans-serif!important}

/* Compact image composition: actions on one edge, provider identity beneath. */
html #root .offer-card{border:1px solid #e5eaf1;border-radius:22px;box-shadow:0 16px 36px -25px #1b335b55,0 3px 12px #3057c00a;background:#fff;overflow:hidden}
html #root .offer-image{aspect-ratio:1.82;min-height:0;height:auto}
html #root .offer-image:after{background:linear-gradient(180deg,#07152b66,transparent 42%,#07152b99)}
html #root .offer-image .offer-share-trigger{top:12px;inset-inline-end:12px;width:44px;height:44px;min-height:44px;border-radius:14px;background:transparent!important;border:0;box-shadow:none;color:#fff}
html #root .offer-image .offer-engagement{position:absolute;inset:0;padding:0;margin:0;border:0;pointer-events:none;z-index:3;background:transparent}
html #root .offer-image .offer-activity{position:absolute;top:64px;inset-inline-end:12px;display:flex;flex-direction:column;gap:7px;align-items:center}
html #root .offer-image :is(.offer-like,.offer-views){position:static;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;width:44px;min-width:44px;height:46px;min-height:44px;padding:5px 2px;border:0;border-radius:14px;background:transparent!important;box-shadow:none;color:#fff;line-height:1;pointer-events:auto;text-shadow:0 1px 4px #07152be6}
html #root .offer-image :is(.offer-share-trigger,.offer-like,.offer-views) svg{filter:drop-shadow(0 1px 3px #07152bc9)}
html #root .offer-image :is(.offer-like b,.offer-views b){font-size:11px;line-height:1}
html #root .offer-image .offer-like[aria-pressed=true]{color:#ff806d;background:transparent}
html #root .offer-image .demo-tag{display:none}
html #root .offer-image .offer-rating{position:absolute;top:16px;inset-inline-start:14px;inset-inline-end:auto;min-height:28px;padding:0;border:0;border-radius:0;background:transparent!important;box-shadow:none;pointer-events:auto;line-height:1.25;color:#fff;text-shadow:0 1px 4px #07152be6}
html #root .offer-image .offer-rating:disabled{display:inline-flex;opacity:1;cursor:default}
html #root .offer-image .rating-stars{font-family:Arial,sans-serif!important;font-size:21px;line-height:1.3;letter-spacing:1px;color:#fff;text-shadow:0 1px 3px #07152bd9}
html #root .offer-image .rating-stars>span{color:#fff}
html #root .offer-image .rating-stars i{color:#ffbd38}
html #root .offer-image .offer-rating:disabled .rating-stars i{width:60%!important}
html #root .offer-image .rating-stars *{font-family:Arial,sans-serif!important}
html #root .offer-image .offer-watching{position:absolute;top:48px;inset-inline-start:14px;inset-inline-end:auto;font-size:13px;line-height:1.6;background:transparent;color:#fff;padding:0;border:0;border-radius:0;max-width:calc(100% - 85px);white-space:nowrap;text-shadow:0 1px 4px #07152be6}
html #root .offer-image .brand-badge{inset:auto auto 12px 12px;inset-inline-start:12px;inset-inline-end:auto;display:flex;width:auto;max-width:calc(100% - 84px);min-height:42px;gap:8px;padding:5px 2px;border:0;border-radius:0;background:transparent;box-shadow:none;backdrop-filter:none;text-align:start;color:#fff;text-shadow:0 1px 4px #07152be6}
html #root .offer-image .brand-mark{width:31px;height:31px;flex:0 0 31px;border-radius:9px}
html #root .offer-image .brand-badge strong{font-size:13px;line-height:1.6;margin:0;max-width:180px;color:#fff}
html #root .offer-image .brand-badge small{font-size:13px;line-height:1.4;margin:0;color:#ffffffe0}
html #root .offer-image .badge-arrow{display:none}
html #root .offer-image .brand-badge:after{content:'‹';font-family:IPlanRoboto,sans-serif!important;font-size:21px;line-height:1;color:#fff;margin-inline-start:6px}
html[lang=en] #root .offer-image .brand-badge:after{content:'›'}
html #root .offer-body{padding:14px 15px 13px!important;gap:0;display:flex;flex-direction:column}
html #root .offer-card h3{margin:0 0 8px!important;font-size:16px!important;line-height:1.8!important}
html #root .offer-meta-row{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:5px 12px}
html #root .offer-fulfillment{display:flex;align-items:center;gap:6px;font-size:16px;line-height:1.7;min-width:0}
html #root .offer-details{margin:0;font-size:15px;min-width:0}
html #root .offer-details summary{font-size:12px;line-height:1.8;min-height:32px;padding:4px 0;white-space:normal}
html #root .offer-details[open]{flex:1 0 100%}
html #root .offer-detail-copy{margin:8px 0 3px;padding:10px 12px;background:#f7f9fc;border:1px solid #e7edf5;border-radius:12px}
html #root .offer-bottom{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;border-top:1px solid #edf0f5;margin-top:10px;padding-top:10px}
html #root .offer-bottom>strong{font-family:IPlanRoboto,IPlanNaskh,sans-serif!important;font-weight:500!important;font-size:21px;line-height:1.5;color:#15243a;white-space:nowrap}
html #root .offer-bottom>strong small{font-size:15px;line-height:1.5;color:#758196;font-weight:400!important}
html #root .offer-bottom .btn{min-height:44px!important;padding:8px 13px!important;font-size:12px!important;line-height:1.8;border-radius:12px;gap:7px}
html[lang=en] #root .offer-fulfillment{font-size:12px;line-height:1.6}
html[lang=en] #root .offer-card h3{font-size:16px!important;line-height:1.5!important}
html[lang=en] #root .offer-details summary{font-size:11px}
/* Keep the complete installation headline on one line with the identity fonts. */
html #root .install-bar{display:grid;grid-template-columns:32px minmax(0,1fr) auto;align-items:center;gap:8px;padding:9px max(12px,calc(50vw - 620px))}
html #root .install-bar .app-icon{width:32px;height:32px;min-width:32px;flex:none}
html #root .install-bar .app-icon img{width:100%;height:100%;object-fit:contain}
html #root .install-bar>div:nth-child(2){min-width:0}
html #root .install-bar b{white-space:nowrap;font-size:13px!important;line-height:1.6!important;letter-spacing:0}
html #root .install-bar span{font-size:14px!important;line-height:1.6!important}
html #root .install-bar button{font-size:11px!important;line-height:1.8;gap:5px;padding:7px 9px;min-height:36px;margin:0;white-space:nowrap}
html #root .install-bar button svg{width:15px;height:15px;flex:none}
html[lang=en] #root .install-bar b{font-size:12px!important}
html[lang=en] #root .install-bar span{font-size:11px!important}
@media(max-width:720px){
 html #root .hero{height:auto;min-height:620px;max-height:none}
 html #root .hero-copy{padding-top:clamp(132px,22svh,190px);padding-bottom:92px}
 html[lang=en] #root .hero h1{font-size:clamp(34px,8vw,40px)!important;line-height:1.32!important}
 html[lang=en] #root h1{font-size:30px;line-height:1.4}
 html #root .offer-grid{gap:18px}
 html #root .offer-card{border-radius:20px}
 html #root .offer-image{aspect-ratio:1.82;min-height:190px}
 html[lang=ar] #root h1{font-size:32px;line-height:1.5}
 html #root :is(.market-heading,.profile-heading,.provider-profile-head){flex-wrap:wrap;gap:12px}
 html #root :is(.market-heading h1,.profile-heading h2,.vendor-onboarding h2){margin-block:6px 10px}
 html #root :is(.market-controls,.market-event,.form-grid,.application-facts){min-width:0}
 html #root .market-controls{gap:10px;align-items:stretch}
 html #root .market-controls>label{flex:1 1 130px;min-width:0}
 html #root .market-controls select{width:100%}
 html[lang=ar] #root :is(.market-result-count,.notice,.profile-bio,.saved p){font-size:17px;line-height:1.85}
 html[lang=ar] #root :is(.vendor-onboarding label,.offer-editor label){font-size:13px!important;line-height:1.9}
 html #root :is(.profile-actions,.onboarding-actions,.planner-footer){gap:10px}
 html #root .onboarding-actions .btn{flex:1 1 auto;min-width:100px}
 html #root :is(.dialog,.reviews-sheet,.offer-share-panel){max-height:calc(100dvh - 24px);overflow-y:auto}
 html #root .offer-image .brand-badge strong{max-width:160px}
}
@media(max-width:350px){
 html #root .install-bar{grid-template-columns:28px minmax(0,1fr) auto;gap:7px;padding-inline:10px}
 html #root .install-bar .app-icon{width:28px;height:28px;min-width:28px}
 html #root .install-bar b{font-size:11.5px!important}
 html #root .install-bar span{font-size:12px!important}
 html #root .install-bar button{font-size:10.5px!important;padding-inline:7px;gap:4px}
 html #root .nav{grid-template-columns:64px minmax(0,1fr);padding-inline:10px;column-gap:6px}
 html #root .nav>.brand{width:64px;min-width:64px}
 html #root .nav :is(.brand-logo,.brand-word){width:64px}
 html #root .nav .brand-word{height:20px}
 html #root .nav .brand-logo>span:last-child{font-size:6px;letter-spacing:1.5px;line-height:1.4}
 html #root .nav .nav-actions{gap:5px;min-width:0}
 html #root .nav .audience-toggle{min-width:140px;max-width:148px}
 html #root .nav .audience-toggle button{font-size:11px!important;padding-inline:4px;gap:3px}
 html #root .nav .audience-toggle button svg{width:12px;height:12px;flex-basis:12px}
 html #root .nav :is(.lang,.login-btn){font-size:11px!important;padding-inline:5px;min-width:22px}
 html #root .offer-bottom{gap:8px}
 html #root .offer-bottom .btn{padding-inline:10px!important;font-size:11px!important}
 html #root .offer-image .brand-badge strong{max-width:125px}
 html[lang=ar] #root .category-card .category-caption h3{font-size:14px!important}
}

/* Match the accepted native photo-action treatment. */
html #root .offer-image :is(.offer-share-trigger,.offer-like,.offer-views){background:rgba(33,43,54,.64)!important;border-radius:22px;color:#fff;text-shadow:none;backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px)}
html #root .offer-image .offer-like[aria-pressed=true]{color:#ffb0a2}
