/* Affiroma Stage 242.6 — portal, shop and mobile stabilization. */
body.affiroma-stage2426-front{--aff246-ink:#0f172a;--aff246-muted:#64748b;--aff246-line:#dbe3ef;--aff246-soft:#f8fafc;--aff246-blue:#3158e8;--aff246-radius:14px}
body.affiroma-stage2426-front *,body.affiroma-stage2426-front *:before,body.affiroma-stage2426-front *:after{box-sizing:border-box}
body.affiroma-stage2426-front .aep-dashboard,body.affiroma-stage2426-front .aep-content,body.affiroma-stage2426-front .aep-card{min-width:0;max-width:100%}
body.affiroma-stage2426-front .aep-content{overflow:visible}
body.affiroma-stage2426-front .aep-card,body.affiroma-stage2426-front [class*="affiroma-stage"]{overflow-wrap:anywhere}
body.affiroma-stage2426-front img{max-width:100%;height:auto}

/* Account identity: user, role and compatible plan from the canonical assignment resolver. */
.affiroma-stage2426-identity{display:grid;grid-template-columns:minmax(180px,1.5fr) repeat(2,minmax(130px,1fr));gap:9px;margin:0 0 14px;padding:11px;background:#fff;border:1px solid var(--aff246-line);border-radius:14px;box-shadow:0 7px 22px rgba(15,23,42,.05)}
.affiroma-stage2426-identity>div{min-width:0;padding:9px 11px;border-radius:10px;background:#f8fafc}.affiroma-stage2426-identity span{display:block;color:var(--aff246-muted);font-size:12px;font-weight:800}.affiroma-stage2426-identity strong{display:block;margin-top:3px;color:var(--aff246-ink);font-size:15px;overflow-wrap:anywhere}.affiroma-stage2426-identity .is-account strong{color:#1d4ed8}

/* Sidebars: consistent active item and contained mobile menu. */
body.affiroma-stage2426-front .aep-sidebar a{min-width:0;overflow-wrap:anywhere}
body.affiroma-stage2426-front .aep-sidebar a.affiroma-stage2426-active{background:#2f6cf5!important;color:#fff!important;box-shadow:0 7px 16px rgba(47,108,245,.22)!important}
body.affiroma-stage2426-front .aep-mobile-menu-toggle{min-height:42px;border-radius:11px}

/* Long portal tables and PDF viewers. */
.affiroma-stage2426-table-scroll{display:block;width:100%;max-width:100%;overflow:auto;-webkit-overflow-scrolling:touch;border-radius:13px}
.affiroma-stage2426-table-scroll>table{margin-bottom:0!important;min-width:720px}
body.affiroma-stage2426-front iframe[src*=".pdf"],body.affiroma-stage2426-front object[type="application/pdf"],body.affiroma-stage2426-front embed[type="application/pdf"],body.affiroma-stage2426-front .affiroma-pdf-viewer iframe{display:block;width:100%!important;max-width:100%!important;min-height:72vh!important;height:760px!important;border:1px solid var(--aff246-line)!important;border-radius:14px!important;background:#fff}

/* Create Order: preserve calculations while improving layout. */
body.affiroma-stage2426-front .aep-order-page{min-width:0}
body.affiroma-stage2426-front .aep-order-page .aep-order-top-controls{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:10px!important;align-items:end!important}
body.affiroma-stage2426-front .aep-order-page .aep-order-top-controls>*{min-width:0!important;width:100%!important}
body.affiroma-stage2426-front .aep-order-page .aep-products-table{table-layout:fixed!important;width:100%!important}
body.affiroma-stage2426-front .aep-order-page .aep-product-row td{min-width:0!important}
body.affiroma-stage2426-front .aep-order-page .aep-product-select,body.affiroma-stage2426-front .aep-order-page .aep-variation-select{width:100%!important;max-width:100%!important;overflow:hidden;text-overflow:ellipsis}
body.affiroma-stage2426-front .aep-order-page .aep-product-row input{width:100%;max-width:100%}
body.affiroma-stage2426-front .aep-order-page .aep-create-summary-bar{min-width:0}
body.affiroma-stage2426-front .aep-order-page .aep-create-summary-bar>div{min-width:0}
body.affiroma-stage2426-front .aep-order-page .aep-create-summary-bar strong{overflow-wrap:anywhere;font-variant-numeric:tabular-nums}

/* Shipping page: compact filters and stable cards. */
body.affiroma-stage2426-front .affiroma-stage170-shipping-tools,body.affiroma-stage2426-front .aep-shipping-tools{display:grid!important;grid-template-columns:repeat(4,minmax(135px,1fr))!important;gap:9px!important;align-items:end!important}
body.affiroma-stage2426-front .affiroma-stage170-shipping-tools>label,body.affiroma-stage2426-front .aep-shipping-tools>*{min-width:0!important;width:100%!important}
body.affiroma-stage2426-front .affiroma-stage170-shipping-actions{grid-column:1/-1;display:flex;gap:8px;flex-wrap:wrap}
body.affiroma-stage2426-front .affiroma-stage170-shipping-actions .button{min-width:110px;flex:0 1 auto}
body.affiroma-stage2426-front .affiroma-stage170-shipping-wrap,body.affiroma-stage2426-front .aep-shipping-table-wrap{width:100%;max-width:100%;overflow:auto;-webkit-overflow-scrolling:touch}
body.affiroma-stage2426-front .affiroma-stage170-shipping-table{min-width:820px}

/* Public /shop filters: marketplace-like, compact and mobile friendly. */
body.affiroma-stage2426-front .affiroma-stage144-shop-filter{border:1px solid #e2e8f0!important;border-radius:16px!important;background:#fff!important;box-shadow:0 10px 28px rgba(15,23,42,.055)!important}
body.affiroma-stage2426-front .affiroma-stage144-shop-filter label{min-width:0!important;gap:4px!important}
body.affiroma-stage2426-front .affiroma-stage144-shop-filter label>span{font-size:12px!important;font-weight:850!important;color:#475569!important}
body.affiroma-stage2426-front .affiroma-stage144-shop-filter input,body.affiroma-stage2426-front .affiroma-stage144-shop-filter select{width:100%!important;max-width:100%!important;min-width:0!important;min-height:42px!important;border-radius:10px!important}
.affiroma-stage2426-shop-filter-toggle{display:none;width:100%;min-height:44px;margin:0 0 8px;border:1px solid #c7d2fe;border-radius:11px;background:#eef2ff;color:#3730a3;font-weight:900;cursor:pointer}
body.affiroma-stage2426-front .affiroma-stage144-shop-filter.affiroma-stage2426-filter-collapsed{display:none!important}

/* Vendor / agent store settings and design tools. */
body.affiroma-stage2426-front .affiroma-stage2232-store-tabs{grid-template-columns:repeat(auto-fit,minmax(140px,1fr))!important;gap:8px!important;overflow:visible!important}
body.affiroma-stage2426-front .affiroma-stage2232-store-tabs a{min-width:0!important;overflow-wrap:anywhere!important}
body.affiroma-stage2426-front .affiroma-stage2232-settings-shell .affiroma-s211-card,body.affiroma-stage2426-front .affiroma-stage2232-settings-shell .s223-card{min-width:0}
body.affiroma-stage2426-front .affiroma-stage2232-media-grid{grid-template-columns:repeat(auto-fill,minmax(175px,1fr))!important}
body.affiroma-stage2426-front .affiroma-stage2232-media-card img{aspect-ratio:4/3;height:auto!important;object-fit:cover}
body.affiroma-stage2426-front .affiroma-stage2232-upload{align-items:end!important}
body.affiroma-stage2426-front .affiroma-stage2232-upload label{min-width:min(100%,220px)!important}

/* Vendor store title: keep label and value on a single balanced line. */
body.affiroma-stage2426-front .affiroma-stage114-hero h1,body.affiroma-stage2426-front .affiroma-stage115-profile h1,body.affiroma-stage2426-front [class*="vendor-store"] h1{overflow-wrap:anywhere;line-height:1.3}
body.affiroma-stage2426-front .affiroma-stage2426-store-title-line{display:flex;align-items:baseline;gap:7px;flex-wrap:wrap}

/* Generic portal forms and cards. */
body.affiroma-stage2426-front .aep-content input:not([type=checkbox]):not([type=radio]):not([type=hidden]),body.affiroma-stage2426-front .aep-content select,body.affiroma-stage2426-front .aep-content textarea{max-width:100%}
body.affiroma-stage2426-front .aep-content .button,body.affiroma-stage2426-front .aep-content button{white-space:normal;text-align:center}
body.affiroma-stage2426-front .aep-dashboard [class*="grid"],body.affiroma-stage2426-front .aep-dashboard [class*="cards"]{min-width:0}

@media(max-width:1050px){body.affiroma-stage2426-front .affiroma-stage170-shipping-tools,body.affiroma-stage2426-front .aep-shipping-tools{grid-template-columns:repeat(2,minmax(0,1fr))!important}.affiroma-stage2426-identity{grid-template-columns:1.5fr 1fr 1fr}}
@media(max-width:782px){
 .affiroma-stage2426-identity{grid-template-columns:1fr 1fr;margin-top:4px}.affiroma-stage2426-identity .is-account{grid-column:1/-1}
 body.affiroma-stage2426-front .aep-dashboard{display:block!important;width:100%!important}
 body.affiroma-stage2426-front .aep-content{width:100%!important;max-width:100%!important;margin:0!important;padding-inline:8px!important}
 body.affiroma-stage2426-front .aep-card{padding:12px!important;border-radius:14px!important}
 body.affiroma-stage2426-front .aep-order-page .aep-order-top-controls{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:7px!important}
 body.affiroma-stage2426-front .aep-order-page .aep-order-top-controls select{font-size:14px!important;padding-inline:7px!important}
 body.affiroma-stage2426-front .aep-order-page .aep-products-table,body.affiroma-stage2426-front .aep-order-page .aep-products-table tbody{display:block!important;width:100%!important}
 body.affiroma-stage2426-front .aep-order-page .aep-products-table thead{display:none!important}
 body.affiroma-stage2426-front .aep-order-page .aep-products-table tr.aep-product-row{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;padding:11px!important;margin-bottom:11px!important;border:1px solid #e2e8f0!important;border-radius:14px!important;background:#fff!important}
 body.affiroma-stage2426-front .aep-order-page .aep-products-table tr.aep-product-row td{display:grid!important;gap:4px!important;width:100%!important;padding:0!important;border:0!important}
 body.affiroma-stage2426-front .aep-order-page .aep-products-table tr.aep-product-row td:first-child{grid-column:1/-1!important}
 body.affiroma-stage2426-front .aep-order-page .aep-products-table tr.aep-product-row td:last-child{grid-column:1/-1!important;display:flex!important;justify-content:flex-end!important}
 body.affiroma-stage2426-front .aep-order-page .aep-products-table tr.aep-product-row td:before{content:attr(data-label);display:block;color:#64748b;font-size:11px;font-weight:850}
 body.affiroma-stage2426-front .aep-order-page .aep-product-select,body.affiroma-stage2426-front .aep-order-page .aep-variation-select{min-height:48px!important;font-size:14px!important}
 body.affiroma-stage2426-front .aep-order-page .aep-create-summary-bar{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important}
 body.affiroma-stage2426-front .affiroma-stage170-shipping-tools,body.affiroma-stage2426-front .aep-shipping-tools{grid-template-columns:1fr 1fr!important}
 body.affiroma-stage2426-front .affiroma-stage170-shipping-actions{display:grid!important;grid-template-columns:1fr 1fr!important}
 body.affiroma-stage2426-front .affiroma-stage170-shipping-actions .button:last-child{grid-column:1/-1}
 body.affiroma-stage2426-front .affiroma-stage170-shipping-table{min-width:760px}
 .affiroma-stage2426-shop-filter-toggle{display:block}
 body.affiroma-stage2426-front .affiroma-stage144-shop-filter{grid-template-columns:1fr 1fr!important;padding:10px!important;gap:8px!important;margin-inline:0!important;width:100%!important}
 body.affiroma-stage2426-front .affiroma-stage144-shop-filter>label:has([name="shop_vendor"]),body.affiroma-stage2426-front .affiroma-stage144-shop-filter>label:has([name="product_cat_id"]),body.affiroma-stage2426-front .affiroma-stage144-shop-filter>label:has([name="orderby"]){grid-column:auto!important}
 body.affiroma-stage2426-front .affiroma-stage151-filter-actions{grid-column:1/-1!important;display:grid!important;grid-template-columns:1fr 1fr!important}
 body.affiroma-stage2426-front iframe[src*=".pdf"],body.affiroma-stage2426-front object[type="application/pdf"],body.affiroma-stage2426-front embed[type="application/pdf"],body.affiroma-stage2426-front .affiroma-pdf-viewer iframe{height:74vh!important;min-height:520px!important;border-radius:10px!important}
 body.affiroma-stage2426-front .affiroma-stage2232-store-tabs{display:flex!important;overflow-x:auto!important;flex-wrap:nowrap!important;padding:7px!important;scroll-snap-type:x proximity}
 body.affiroma-stage2426-front .affiroma-stage2232-store-tabs a{flex:0 0 min(72vw,190px)!important;scroll-snap-align:start}
}
@media(max-width:520px){
 .affiroma-stage2426-identity{grid-template-columns:1fr}.affiroma-stage2426-identity .is-account{grid-column:auto}
 body.affiroma-stage2426-front .aep-order-page .aep-order-top-controls{grid-template-columns:repeat(3,minmax(0,1fr))!important}
 body.affiroma-stage2426-front .aep-order-page .aep-order-top-controls select{font-size:12.5px!important;min-height:43px!important}
 body.affiroma-stage2426-front .aep-order-page .aep-products-table tr.aep-product-row{grid-template-columns:1fr 1fr!important;padding:9px!important}
 body.affiroma-stage2426-front .aep-order-page .aep-products-table tr.aep-product-row input{font-size:15px!important;padding-inline:6px!important}
 body.affiroma-stage2426-front .aep-order-page .aep-create-summary-bar strong{font-size:20px!important}
 body.affiroma-stage2426-front .affiroma-stage170-shipping-tools,body.affiroma-stage2426-front .aep-shipping-tools{grid-template-columns:1fr!important}
 body.affiroma-stage2426-front .affiroma-stage170-shipping-actions{grid-template-columns:1fr 1fr!important}
 body.affiroma-stage2426-front .affiroma-stage144-shop-filter{grid-template-columns:1fr 1fr!important}
 body.affiroma-stage2426-front .affiroma-stage144-shop-filter label>span{font-size:10.5px!important}
 body.affiroma-stage2426-front .affiroma-stage144-shop-filter input,body.affiroma-stage2426-front .affiroma-stage144-shop-filter select{min-height:40px!important;font-size:13px!important;padding-inline:6px!important}
}
