/* ITNETCOM_CART_ADD_MODAL_V2 — same experience for B2C, B2B and School */
body.itn-cart-modal-open { overflow: hidden !important; }
.itn-cart-add-modal[hidden] { display: none !important; }
.itn-cart-add-modal {
    position: fixed; inset: 0;
    display: flex; justify-content: center; align-items: center;
    padding: 20px; box-sizing: border-box;
    z-index: 2147483000;
    isolation: isolate;
}
.itn-modal-glass-layer {
    position: absolute; inset: 0;
    background: rgba(11, 17, 25, .62);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    cursor: pointer;
    animation: itn-modal-fade-in .22s ease both;
}
.itn-cart-add-modal-panel {
    position: relative; z-index: 1;
    box-sizing: border-box;
    width: min(100%, 490px); max-height: calc(100dvh - 32px);
    overflow-y: auto; overscroll-behavior: contain;
    border-radius: 20px; padding: 38px 30px 30px;
    text-align: center;
    background: #fff; color: #20242b;
    border-top: 5px solid #ed0000;
    box-shadow: 0 32px 90px rgba(0,0,0,.3);
    font: inherit;
    animation: itn-modal-rise-in .24s cubic-bezier(.2,.8,.2,1) both;
}
.itn-cart-add-modal-close {
    position: absolute; right: 14px; top: 10px;
    width: 38px; height: 38px;
    border: 0; border-radius: 50%;
    background: #f2f3f5; color: #515965;
    font: inherit; font-size: 26px; line-height: 1; cursor: pointer;
}
.itn-cart-add-modal-close:hover { background: #e9ebef; color: #15191f; }
.itn-cart-add-modal-symbol {
    margin: 0 auto 18px; width: 64px; height: 64px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: #fff0f0; color: #dc0000;
    font: 800 32px/1 Arial, sans-serif;
}
.itn-cart-add-modal-title { margin: 0; font-size: clamp(20px, 3vw, 24px); font-weight: 750; line-height: 1.3; }
.itn-cart-add-modal-item {
    display: grid; grid-template-columns: 132px minmax(0, 1fr);
    gap: 20px; align-items: center; margin-top: 25px; text-align: left;
}
.itn-cart-add-modal-media {
    display: flex; align-items: center; justify-content: center;
    width: 132px; height: 132px; box-sizing: border-box;
    border: 1px solid #eceff2; border-radius: 12px;
    background: #fff; overflow: hidden;
}
.itn-cart-add-modal-media img { display: block; width: 100%; height: 100%; object-fit: contain; padding: 9px; box-sizing: border-box; }
.itn-cart-add-modal-media-placeholder { display: none; padding: 10px; font-size: 11px; color: #7b8491; text-align: center; }
.itn-cart-add-modal-media.is-image-missing img { display: none; }
.itn-cart-add-modal-media.is-image-missing .itn-cart-add-modal-media-placeholder { display: block; }
.itn-cart-add-modal-info { min-width: 0; }
.itn-cart-add-modal-product { font-size: 15px; font-weight: 700; line-height: 1.45; overflow-wrap: anywhere; }
.itn-cart-add-modal-quantity,
.itn-cart-add-modal-unit-price { margin-top: 8px; font-size: 13px; color: #606873; }
.itn-cart-add-modal-quantity strong,
.itn-cart-add-modal-unit-price strong { color: #232b34; }
.itn-cart-add-modal-summary { margin: 12px 0 0; font-size: 13px; line-height: 1.5; color: #606873; }
.itn-cart-add-modal-total { display: block; margin-top: 3px; }
.itn-cart-add-modal-summary strong { color: #1f2933; }
.itn-cart-add-modal-actions { display: grid; gap: 11px; grid-template-columns: 1fr 1fr; margin-top: 28px; }
.itn-cart-add-modal-primary,
.itn-cart-add-modal-secondary {
    box-sizing: border-box; min-height: 48px; padding: 12px 14px;
    display: flex; justify-content: center; align-items: center;
    border-radius: 9px; text-decoration: none;
    font-family: inherit; font-size: 14px; font-weight: 700; line-height: 1.3;
    text-align: center; cursor: pointer;
}
.itn-cart-add-modal-primary { color: #fff !important; background: #ed0000; border: 2px solid #ed0000; }
.itn-cart-add-modal-primary:hover { background: #c90000; border-color: #c90000; }
.itn-cart-add-modal-secondary { color: #222b35; background: #fff; border: 2px solid #cbd1d8; }
.itn-cart-add-modal-secondary:hover { background: #f5f6f7; }
.itn-cart-add-modal-primary:focus-visible,
.itn-cart-add-modal-secondary:focus-visible,
.itn-cart-add-modal-close:focus-visible { outline: 3px solid #f98383; outline-offset: 3px; }
@media (max-width: 560px) {
    .itn-cart-add-modal { padding: 16px; }
    .itn-cart-add-modal-panel { padding: 34px 20px 22px; border-radius: 16px; }
    .itn-cart-add-modal-item { grid-template-columns: 94px minmax(0, 1fr); gap: 12px; margin-top: 20px; }
    .itn-cart-add-modal-media { width: 94px; height: 108px; }
    .itn-cart-add-modal-product { font-size: 14px; }
    .itn-cart-add-modal-quantity, .itn-cart-add-modal-unit-price, .itn-cart-add-modal-summary { font-size: 12px; }
    .itn-cart-add-modal-actions { grid-template-columns: 1fr; gap: 10px; margin-top: 23px; }
    .itn-cart-add-modal-primary, .itn-cart-add-modal-secondary { min-height: 48px; }
}
@media (prefers-reduced-motion: reduce) {
    .itn-modal-glass-layer, .itn-cart-add-modal-panel { animation: none; }
}
@keyframes itn-modal-fade-in { from {opacity: 0} to {opacity: 1} }
@keyframes itn-modal-rise-in { from {opacity: 0; transform: translateY(15px) scale(.98)}
                               to {opacity: 1; transform: translateY(0) scale(1)} }

/* ITNETCOM_IC_MIN_SALE_VISIBLE_INFO_20261111 */
.itn-supplier-min-sale-note {
    display: block;
    box-sizing: border-box;
    margin: 9px 0 5px;
    padding: 0 2px;
    font-size: 11px;
    line-height: 1.4;
    font-weight: 600;
    color: #566171;
    overflow-wrap: anywhere;
}
/* The product detail's purchase controls have 20px horizontal insets.
   Match those insets; never put the note flush against the grey box edge. */
.product-buy-box > .itn-supplier-min-sale-note {
    margin: 12px 20px -9px;
    padding: 0;
    font-size: 12px;
    color: #434b59;
}
@media (max-width: 560px) {
    /* Responsive buy-box actions use a 16px inset, not the desktop 20px. */
    .product-buy-box > .itn-supplier-min-sale-note {
        margin-left: 16px;
        margin-right: 16px;
    }
}
/* The related-product and catalogue cards are narrower than the detail. */
.product-related-actions ~ .itn-supplier-min-sale-note,
.shop-product-actions ~ .itn-supplier-min-sale-note,
.latest-product-actions ~ .itn-supplier-min-sale-note {
    margin-top: 6px;
}

/* ITNETCOM_RELATED_MIN_SALE_SERVER_RENDERED_20261111
   The recommendation card's line is always visible without JS or sign-in. */
.product-related-card > .itn-related-min-sale-note {
    box-sizing: border-box;
    display: block;
    flex: 0 0 auto;
    width: 100%;
    margin: 9px 0 0;
    padding: 0;
    color: #515c69;
    font-size: 11px;
    font-weight: 650;
    line-height: 1.35;
    text-align: left;
}
.product-related-card > .itn-related-min-sale-note + .product-related-actions {
    margin-top: 8px;
}


/* ITNETCOM_IC_VOLUME_VISIBLE_UI_20261111 */
.itn-volume-quantity {
    box-sizing: border-box;
    display: block;
    flex: 0 0 auto;
    width: 100%;
    margin: 7px 0 5px;
    padding: 7px 9px;
    border: 1px solid rgba(31, 118, 59, .24);
    border-radius: 7px;
    background: rgba(29, 123, 53, .045);
    color: #28513b;
    font-size: 11px;
    font-weight: 550;
    line-height: 1.45;
    overflow-wrap: anywhere;
}
.itn-volume-quantity .itn-volume-prefix {
    color: #166038;
    font-weight: 750;
    margin-right: 4px;
}
.product-buy-box > .itn-volume-quantity {
    width: auto;
    margin: 11px 20px 7px;
    font-size: 12px;
}
.product-related-card > .itn-volume-quantity {
    margin: 9px 0 0;
    padding: 5px 8px;
    font-size: 10.5px;
}
.itn-volume-quantity .itn-volume-tier-detail {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 12px;
    margin-top: 6px;
    font-size: 11px;
}
.itn-volume-quantity .itn-volume-tier-detail span { white-space: nowrap; }
.itn-volume-quantity small { display: block; margin-top: 6px; font-size: 10.5px; color: #556273; }
.itn-volume-quantity.is-loading [data-itn-volume-status] { opacity: .7; }
@media(max-width:560px) {
    .product-buy-box > .itn-volume-quantity {margin-left: 16px; margin-right: 16px;}
}
