/* Search and cart share the same quantity controls. */
.artbt-header-ready #searchResult .item.product .addCart.ab-native-buy{display:none!important}
.ab-search-buy{display:flex;align-items:center;gap:10px;clear:both;margin-top:12px}
.ab-add,.ab-checkout{border:0;background:#e0000b;color:white!important;border-radius:12px;min-height:44px;padding:11px 20px;font:inherit;font-weight:600;text-decoration:none;cursor:pointer}
.ab-add:hover,.ab-checkout:hover{background:#be0009}
.ab-quantity{display:inline-flex;align-items:center;background:#f1f2f4;border-radius:12px;height:42px;overflow:hidden;flex:none}
.ab-quantity button{width:38px;height:42px;flex:none;border:0;background:transparent;color:#252a30;font:inherit;font-size:23px;cursor:pointer;padding:0}
.ab-quantity input{width:44px;min-width:0;max-width:60px;border:0;background:transparent;text-align:center;font:inherit;font-weight:600;color:#252a30;padding:0;height:40px;border-radius:0;box-shadow:none}
.ab-cart-arrow{width:44px;height:42px;display:flex;justify-content:center;align-items:center;background:#252a30;color:#fff!important;border-radius:12px}
.ab-quantity button:disabled,.ab-add:disabled{opacity:.4;cursor:default}
#ab-notice{position:fixed;bottom:90px;left:50%;transform:translateX(-50%);z-index:999999;max-width:calc(100% - 32px);width:max-content;background:#252a30;color:#fff;padding:14px 20px;box-shadow:0 8px 30px #0002;border-radius:12px;font:15px/1.5 Arial,sans-serif}
#ab-notice[hidden]{display:none}
/* The head bootstrap enables this before native cart markup can be painted. */
html.ab-cart-pending #right>:not(script):not(style):not(#ab-cart-loading-status){display:none!important}
html.ab-cart-pending #main{background:#f5f6f7;padding-top:26px;padding-bottom:40px}
html.ab-cart-pending #main,body.ab-cart-page #main{box-sizing:border-box;min-height:calc(100vh - 190px)}
@media(min-width:768px) and (max-width:1190px){html.ab-cart-pending #main,body.ab-cart-page #main{min-height:calc(100vh - 247px)}}
@media(max-width:767px){html.ab-cart-pending #main,body.ab-cart-page #main{min-height:calc(100vh - 167px)}}
html.ab-cart-pending #right::before{content:'Корзина';display:block;font:700 28px/1.3 Arial,sans-serif;color:#252a30;background:#fff;border-radius:18px 18px 0 0;padding:24px 24px 18px}
html.ab-cart-pending #right::after{content:'Загружаем товары…';display:block;box-sizing:border-box;min-height:280px;padding:24px;font:16px/1.5 Arial,sans-serif;color:#737b85;background:#fff;border-radius:0 0 18px 18px;margin-bottom:25px}
body.ab-cart-page #right>:not(#ab-cart):not(script):not(style){display:none!important}
body.ab-cart-page #main{background:#f5f6f7;padding-top:26px;padding-bottom:40px}
#ab-cart{--ab-ink:#252a30;color:var(--ab-ink);font:16px/1.5 Arial,sans-serif;display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:28px;align-items:start;margin-bottom:25px}
#ab-cart *{box-sizing:border-box}
#ab-cart [hidden]{display:none!important}
#ab-cart button,#ab-cart input,#ab-cart select{font:inherit}
#ab-cart button{cursor:pointer}
#ab-cart button:disabled{opacity:.4;cursor:default}
#ab-cart :focus-visible,.ab-search-buy :focus-visible{outline:2px solid #252a30;outline-offset:3px}
#ab-cart a{color:inherit;text-decoration:none}
#ab-cart .ab-cart-products,.ab-summary,#ab-cart .artbt-buyer{background:#fff;border-radius:18px;padding:24px;border:0}
.ab-cart-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px}
#ab-cart h1{font:700 28px/1.3 Arial,sans-serif;margin:0;padding:0}
.ab-cart-tools{display:flex;align-items:center;gap:14px;color:#737b85}
.ab-cart-tools>button{display:flex;align-items:center;gap:7px;border:0;background:none;padding:4px 0;color:inherit}
.ab-more{position:relative}
.ab-more summary{list-style:none;cursor:pointer;font-size:30px;line-height:36px;min-width:32px;text-align:center;font-weight:bold}
.ab-more summary::-webkit-details-marker{display:none}
.ab-more>div{position:absolute;right:0;top:44px;min-width:270px;background:#fff;border:1px solid #e7e9ed;border-radius:14px;padding:8px;box-shadow:0 6px 30px #0002;z-index:6}
.ab-more button{display:block;width:100%;text-align:left;background:transparent;border:0;padding:14px 12px;color:#252a30;border-radius:8px}
.ab-more button:hover{background:#f3f4f6}
.ab-selection{display:flex;align-items:center;gap:24px;padding-bottom:22px;border-bottom:1px solid #e7e9ed;font-size:14px}
.ab-selection label{display:flex;gap:10px;align-items:center;cursor:pointer}
#ab-cart input[type=checkbox]{width:21px;height:21px;margin:0;accent-color:#e0000b;cursor:pointer;flex:none;appearance:auto}
.ab-selection>button{display:flex;align-items:center;gap:7px;border:0;background:none;padding:0;color:#454b54}
.ab-cart-row{display:grid;grid-template-columns:22px 110px minmax(130px,1fr) 130px 122px;gap:14px;align-items:start;padding:26px 0;border-bottom:1px solid #eceef0}
.ab-cart-row:last-child{border-bottom:0;padding-bottom:4px}
.ab-row-select{padding-top:3px;line-height:1}
.ab-product-photo{display:flex;align-items:center;justify-content:center;width:110px;height:110px;background:#fff;border-radius:12px;padding:8px}
.ab-product-photo img{max-width:100%;max-height:100%;object-fit:contain;mix-blend-mode:normal}
.ab-product-name{font-size:16px;line-height:1.5;display:block;overflow-wrap:anywhere}
#ab-cart .ab-product-name:hover,#ab-cart .ab-product-name:focus-visible,#ab-cart .ab-product-name:active{color:#e0000b!important;text-decoration:none!important}
.ab-article{font-size:13px;color:#7c838d;margin:6px 0}
.ab-product-actions{display:flex;gap:8px;margin-top:12px}
.ab-product-actions button,.ab-product-actions a{border:0;border-radius:10px;width:36px;height:36px;padding:7px;display:inline-flex;align-items:center;justify-content:center;background:#f1f2f4;color:#333b43}
.ab-product-actions .added{color:#e0000b!important}.ab-product-actions .added svg{fill:#e0000b1a}
.ab-product-price strong{font-size:20px;line-height:1.3;white-space:nowrap;display:block}
.ab-product-price s{font-size:14px;color:#8c939d}
.ab-availability{font-size:13px;color:#349f36;margin:8px 0 0}
.ab-unselected .ab-availability{color:#7c838d}
.ab-product-quantity small{display:block;margin:5px 0 0;font-size:13px;color:#626b75;text-align:center}
.ab-cart-aside{position:sticky;top:130px;display:grid;gap:18px}
#ab-cart .artbt-buyer{max-width:none;margin:0;padding:22px}
#ab-cart .artbt-buyer>strong,#ab-cart .artbt-buyer>p{display:none}
#ab-cart .artbt-buyer-tabs{flex-direction:row;padding:3px;gap:4px;background:#f4f5f7;border-radius:12px}
#ab-cart .artbt-buyer-tabs button{min-height:44px;padding:6px 10px;font-size:15px;border-radius:10px;box-shadow:none;border:2px solid transparent;line-height:1.3}
#ab-cart .artbt-buyer-tabs button[aria-pressed=true]{border-color:#252a30;background:white}
.ab-buyer-details{margin-top:20px;overflow-wrap:anywhere}
.ab-buyer-details label,.ab-buyer-details strong{font-size:15px;font-weight:bold;display:block;margin-bottom:8px}
#ab-cart .ab-buyer-details p{margin:6px 0;font-size:14px;color:#737b85}
.ab-buyer-details small{font-size:13px;color:#737b85}
.ab-buyer-details select{max-width:100%;width:100%;min-height:40px;border:1px solid #dce0e5;border-radius:8px;padding:6px;background:white;color:#252a30}
.ab-summary-line{display:flex;justify-content:space-between;gap:14px;font-size:14px;margin-bottom:8px}
/* The legacy Roboto/Arial files lack U+20BD on macOS and fall back to a serif
   math glyph. Render each complete amount in the same system sans font. */
#ab-cart .ab-product-price strong,#ab-cart .ab-product-price s,#ab-cart .ab-product-quantity small,#ab-cart .ab-summary-line>span:last-child,#ab-cart .ab-total>strong:last-child{font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
#ab-cart .ab-product-price strong,#ab-cart .ab-total>strong:last-child{font-weight:700}
.ab-saving{color:#319f36}
.ab-total{display:flex;justify-content:space-between;gap:14px;font-size:26px;margin:18px 0 24px;line-height:1.2}
.ab-coupon{display:flex;flex-wrap:wrap;border:1px solid #d6dae0;border-radius:11px;overflow:hidden;margin-bottom:18px}
.ab-coupon input{min-width:0;width:60%;flex:1;border:0;padding:11px 12px;background:#fff;color:#252a30;box-shadow:none}
.ab-coupon button{background:#f3f4f6;border:0;color:#454b54;padding:11px;font-size:13px!important}
.ab-coupon-status{font-size:13px;margin:0 0 12px;overflow-wrap:anywhere;color:#626b75}
.ab-coupon-status button{border:0;background:none}
#ab-cart .ab-checkout{display:block;text-align:center;padding:15px 12px;min-height:52px;font-size:16px}
#ab-cart .ab-checkout[aria-disabled=true]{opacity:.45;cursor:default}
.ab-summary-note{font-size:12px;color:#838b96;text-align:center;margin:12px 0 0}
.ab-empty{padding:30px 0 55px;text-align:center}.ab-empty h2{font-size:24px}.ab-empty a{text-decoration:underline!important}
.ab-sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
/* A denser desktop basket keeps prices and controls at their readable sizes. */
@media(min-width:601px){#ab-cart .ab-cart-heading{margin-bottom:16px}#ab-cart .ab-selection{padding-bottom:16px}#ab-cart .ab-cart-row{padding-top:18px;padding-bottom:18px}#ab-cart .ab-cart-row:last-child{padding-bottom:4px}#ab-cart .ab-product-name{line-height:1.4}#ab-cart .ab-product-actions{margin-top:8px}#ab-cart .ab-cart-aside{gap:14px}#ab-cart .artbt-buyer,#ab-cart .ab-summary{padding:20px}#ab-cart .ab-buyer-details{margin-top:16px}#ab-cart .ab-total{margin:14px 0 18px}#ab-cart .ab-coupon{margin-bottom:14px}}
@media(min-width:1200px){#ab-cart .ab-cart-row{grid-template-columns:22px 100px minmax(130px,1fr) 130px 122px;gap:14px}#ab-cart .ab-product-photo{width:100px;height:100px}}
@media(min-width:1700px){#ab-cart{grid-template-columns:minmax(0,1fr) 380px;gap:32px}#ab-cart .ab-cart-row{grid-template-columns:22px 100px minmax(180px,1fr) 145px 130px;gap:16px}#ab-cart .ab-product-name{font-size:16px}}
@media(max-width:1190px){#ab-cart{grid-template-columns:minmax(0,1fr) 295px;gap:18px}#ab-cart .ab-cart-products{padding:20px}.ab-cart-row{grid-template-columns:22px 85px minmax(100px,1fr) 122px;gap:12px}.ab-product-photo{width:85px;height:85px}.ab-product-price{grid-column:3;grid-row:2}.ab-product-quantity{grid-column:4;grid-row:1}.ab-product-description{grid-column:3}.ab-cart-tools span{display:none}.ab-product-price strong{font-size:18px}.ab-cart-aside{top:120px}.ab-total{font-size:24px}}
@media(max-width:900px){#ab-cart{grid-template-columns:1fr;gap:20px}.ab-cart-aside{position:static;grid-template-columns:1fr 1fr;gap:18px}.ab-cart-row{grid-template-columns:22px 95px minmax(100px,1fr) 140px 122px}.ab-product-photo{width:95px;height:95px}.ab-product-price{grid-column:4;grid-row:1}.ab-product-quantity{grid-column:5;grid-row:1}}
@media(min-width:601px) and (max-width:900px){#ab-cart .ab-cart-row{grid-template-columns:22px 85px minmax(90px,1fr) 110px 122px}#ab-cart .ab-product-photo{width:85px;height:85px}}
/* The mobile order bar belongs to the page, below navigation and modal menus. */
.ab-mobile-checkout{display:none}
#ab-cart .ab-cart-help{display:none}
@media(max-width:600px){
 html.ab-cart-pending #main,body.ab-cart-page #main{padding-top:12px}
 html.ab-cart-pending #right::before{font-size:24px;padding:16px 16px 18px}
 #ab-cart{font-size:14px;gap:14px}
 #ab-cart .ab-cart-products{padding:14px;border-radius:14px}
 #ab-cart h1{font-size:24px}
 .ab-cart-heading{margin-bottom:12px;gap:6px}
 .ab-cart-tools{gap:4px}
 #ab-cart .ab-cart-tools>button,.ab-more summary{width:40px;height:44px;display:flex;align-items:center;justify-content:center}
 .ab-selection{gap:12px;font-size:12px;padding-bottom:12px}
 .ab-selection>button,.ab-selection>label{min-height:36px}
 .ab-selection svg{width:16px}
 #ab-cart .ab-cart-row{position:relative;grid-template-columns:104px minmax(0,1fr);gap:7px 12px;padding:18px 0}
 #ab-cart .ab-cart-row:last-child{padding-bottom:4px}
 #ab-cart .ab-row-select{position:absolute;top:14px;left:-4px;padding:4px;z-index:1;line-height:0;background:#fff;border-radius:6px}
 #ab-cart .ab-product-photo{grid-column:1;grid-row:1 / span 3;width:104px;height:104px;padding:0;position:relative;overflow:hidden}
 #ab-cart .ab-product-photo .ab-photo-framed{position:absolute;width:var(--ab-photo-width);height:var(--ab-photo-height);left:var(--ab-photo-left);top:var(--ab-photo-top);max-width:none;max-height:none;object-fit:fill}
 #ab-cart .ab-product-description{display:contents}
 #ab-cart .ab-product-name{grid-column:2;grid-row:2;font-size:14px;line-height:1.4}
 #ab-cart .ab-article{grid-column:2;grid-row:3;margin:0;font-size:12px;line-height:1.4}
 #ab-cart .ab-product-price{grid-column:2;grid-row:1}
 #ab-cart .ab-product-price strong{font-size:20px}
 #ab-cart .ab-product-price p{margin-top:2px;font-size:12px}
 #ab-cart .ab-product-actions{grid-column:1;grid-row:4;margin:5px 0 0;gap:6px}
 /* Small visual controls retain their larger transparent touch area. */
 #ab-cart .ab-product-actions a,#ab-cart .ab-product-actions button{position:relative;isolation:isolate;width:44px;height:44px;padding:0;background:transparent;border-radius:9px}
 #ab-cart .ab-product-actions a::before,#ab-cart .ab-product-actions button::before{content:'';position:absolute;inset:6px;border-radius:9px;background:#eff0f2;z-index:-1}
 #ab-cart .ab-product-actions svg{width:18px;height:18px;stroke-width:1.8}
 #ab-cart .ab-product-actions button svg{width:16px;height:16px}
 #ab-cart .ab-product-actions .added::before{background:#fde5e7}
 #ab-cart .ab-product-actions .added svg{fill:currentColor}
 #ab-cart .ab-product-quantity{grid-column:2;grid-row:4;justify-self:start;margin-top:5px;max-width:100%}
 #ab-cart .ab-product-quantity .ab-quantity{position:relative;isolation:isolate;height:44px;max-width:100%;background:transparent;overflow:visible;border-radius:10px}
 #ab-cart .ab-product-quantity .ab-quantity::before{content:'';position:absolute;inset:6px 0;border-radius:10px;background:#eff0f2;z-index:-1}
 #ab-cart .ab-product-quantity .ab-quantity button{width:36px;height:44px;font-size:18px}
 #ab-cart .ab-product-quantity .ab-quantity input{width:36px;height:44px;font-size:13px}
 #ab-cart .ab-product-quantity small{text-align:left;font-size:12px;margin-top:4px}
 .ab-cart-aside{grid-template-columns:1fr;gap:14px}
 #ab-cart .artbt-buyer,.ab-summary{padding:20px}
 .ab-total{font-size:26px}
 .ab-more>div{right:0;min-width:250px}
 /* Override the shell's html.artbt-layout body rule and reserve both fixed bars. */
 html.artbt-layout body.ab-cart-has-items{padding-bottom:calc(var(--ab-nav-height,70px) + var(--ab-bar-height,76px) + 12px)}
 .ab-mobile-checkout:not([hidden]){position:fixed;display:flex;justify-content:space-between;align-items:center;gap:12px;left:0;right:0;bottom:var(--ab-nav-height,70px);z-index:890;padding:10px 16px;background:#fff;border-top:1px solid #e7e9ed;box-shadow:0 -4px 16px #252a3008;box-sizing:border-box;color:#252a30;font:14px/1.3 Arial,sans-serif}
 .ab-mobile-total{min-width:0}
 .ab-mobile-total strong{display:block;font:700 18px/1.3 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;overflow-wrap:anywhere}
 .ab-mobile-total small{display:block;font-size:11px;color:#737b85;margin-top:3px}
 .ab-mobile-order{flex:none;text-decoration:none!important;border-radius:10px;min-height:44px;box-sizing:border-box;display:flex;align-items:center;justify-content:center;padding:10px 14px;background:#e0000b;color:#fff!important;font-weight:600}
 .ab-mobile-order[aria-disabled=true]{opacity:.45;cursor:default}
 .ab-mobile-order:focus-visible{outline:2px solid #252a30;outline-offset:3px}
 body.ab-checkout-in-view .ab-mobile-checkout,body.ab-cart-editing .ab-mobile-checkout,body.ab-chat-open .ab-mobile-checkout{visibility:hidden;pointer-events:none}
 body.ab-cart-has-items #ab-notice{bottom:calc(var(--ab-nav-height,70px) + var(--ab-bar-height,76px) + 12px)}
 /* Only launcher labels are replaced; the actual conversation stays available. */
 body.ab-inline-chat #sankran-jivo-launcher,body.ab-inline-chat #jvLabelWrap,body.ab-inline-chat #jivo_chat_widget,body.ab-inline-chat .__jivoMobileButton{display:none!important}
 #ab-cart .ab-cart-help:not([hidden]){display:flex}
}

/* Give the mobile cart the viewport width while retaining the store header.
   Apply the same width to the loading state so the content does not jump. */
@media(max-width:600px){
 html.ab-cart-pending body #main>.limiter,body.ab-cart-page #main>.limiter{max-width:none!important;width:100%!important;padding-left:0!important;padding-right:0!important;margin-left:0!important;margin-right:0!important}
 html.ab-cart-pending #main>.limiter>.compliter,body.ab-cart-page #main>.limiter>.compliter,html.ab-cart-pending #right,body.ab-cart-page #right{width:100%!important;margin-left:0!important;margin-right:0!important;padding-left:0!important;padding-right:0!important}
 html.ab-cart-pending #right::before,html.ab-cart-pending #right::after{border-radius:0}
 #ab-cart .ab-cart-products{padding:14px 16px;border-radius:0}
 #ab-cart .artbt-buyer,#ab-cart .ab-summary{padding:20px 16px;border-radius:0}
}
