/* NVMed Integration public UI v1.22.0 */
.nvmed-addon-rules {
    position: relative;
    margin: 20px 0 24px;
    padding: 0;
    border: 1px solid #dbeaf7;
    border-radius: 14px;
    background: #fff;
    max-width: 690px;
    box-shadow: 0 12px 28px rgba(31, 45, 61, .06);
    overflow: hidden;
    font-family: inherit;
}
.nvmed-addon-rules * { box-sizing: border-box; }
.nvmed-addon-head {
    padding: 17px 20px 15px;
    background: linear-gradient(180deg, #f8fcff 0%, #ffffff 100%);
    border-bottom: 1px solid #edf4fa;
}
.nvmed-addon-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    margin-bottom: 8px;
    padding: 3px 10px;
    border-radius: 999px;
    background: #e8f6ff;
    color: #2196d3;
    font-size: 11px;
    line-height: 1;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.nvmed-addon-title {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    color: #1f2d3d;
    line-height: 1.28;
}
.nvmed-addon-subtitle {
    margin: 6px 0 0;
    font-size: 13px;
    line-height: 1.45;
    color: #738091;
}
.nvmed-addon-items { padding: 14px 14px 8px; }
.nvmed-addon-rule {
    position: relative;
    margin: 0 0 12px;
    border: 1px solid #e4eef6;
    border-radius: 12px;
    background: #fff;
    transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.nvmed-addon-rule:last-child { margin-bottom: 0; }
.nvmed-addon-rule.is-selected {
    border-color: #47a9e6;
    background: #f5fbff;
    box-shadow: 0 6px 18px rgba(47, 152, 215, .10);
}
.nvmed-addon-card {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    width: 100%;
    margin: 0;
    padding: 14px 15px;
    cursor: pointer;
    color: #24364a;
    user-select: none;
    -webkit-user-select: none;
}
.nvmed-addon-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.nvmed-addon-check {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #cfe1ee;
    background: #fff;
    display: inline-block;
    position: relative;
    transition: background-color .18s ease, border-color .18s ease;
}
.nvmed-addon-check:after {
    content: '';
    position: absolute;
    left: 9px;
    top: 5px;
    width: 8px;
    height: 14px;
    border: solid #fff;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg) scale(.75);
    opacity: 0;
    transition: opacity .18s ease, transform .18s ease;
}
.nvmed-addon-checkbox:checked + .nvmed-addon-check {
    border-color: #3498db;
    background: #3498db;
}
.nvmed-addon-checkbox:checked + .nvmed-addon-check:after {
    opacity: 1;
    transform: rotate(45deg) scale(1);
}
.nvmed-addon-content { min-width: 0; }
.nvmed-addon-name {
    display: block;
    font-size: 15px;
    line-height: 1.35;
    font-weight: 800;
    color: #24364a;
}
.nvmed-addon-meta {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    line-height: 1.35;
    color: #7b8794;
}
.nvmed-addon-price {
    justify-self: end;
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 11px;
    border-radius: 999px;
    background: #fff4d8;
    color: #8a5a00;
    font-weight: 800;
    font-size: 13px;
    white-space: nowrap;
}
.nvmed-addon-status {
    display: none;
    margin: -5px 14px 12px 71px;
    padding: 7px 10px;
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.35;
    color: #6b7786;
    background: #f5f7fa;
}
.nvmed-addon-status.is-error,
.nvmed-addon-status.is-ok { display: inline-block; }
.nvmed-addon-status.is-error { color: #b42318; background: #fff1f0; }
.nvmed-addon-status.is-ok { color: #137333; background: #eefaf1; }
.nvmed-addon-total {
    display: none;
    grid-template-columns: 1fr auto;
    gap: 6px 16px;
    align-items: center;
    margin: 0 14px 14px;
    padding: 13px 15px;
    border-radius: 12px;
    background: #f7fbff;
    border: 1px dashed #cfe3f4;
    color: #596979;
    font-size: 13px;
}
.nvmed-addon-total.is-visible { display: grid; }
.nvmed-addon-total b {
    justify-self: end;
    color: #1f2d3d;
    font-size: 15px;
    font-weight: 800;
    white-space: nowrap;
}
.nvmed-addon-hidden { display: none !important; }
@media (max-width: 700px) {
    .nvmed-addon-rules { max-width: none; margin: 16px 0 20px; border-radius: 12px; }
    .nvmed-addon-head { padding: 15px; }
    .nvmed-addon-title { font-size: 16px; }
    .nvmed-addon-items { padding: 10px; }
    .nvmed-addon-card { grid-template-columns: 38px minmax(0, 1fr); gap: 10px; padding: 12px; }
    .nvmed-addon-price { grid-column: 2; justify-self: start; margin-top: 4px; }
    .nvmed-addon-status { margin-left: 60px; }
    .nvmed-addon-total { margin: 0 10px 10px; }
}

/* Basket/order cleanup for hidden addon products v1.7.0 */
.nvmed-addon-cart-row .nvmed-addon-cart-title {
    display: inline-block;
    color: #1f2d3d;
    font-weight: 500;
    line-height: 1.35;
}
.nvmed-addon-cart-row .nvmed-addon-cart-badge {
    display: inline-flex;
    align-items: center;
    width: max-content;
    margin-top: 8px;
    padding: 4px 9px;
    border-radius: 999px;
    background: #eef8ff;
    color: #2587c7;
    font-size: 12px;
    line-height: 1;
    font-weight: 700;
}
.nvmed-addon-prop-hidden {
    display: none !important;
}
.nvmed-addon-cart-row a[href=""],
.nvmed-addon-cart-row a:not([href]) {
    cursor: default;
    text-decoration: none;
}
.nvmed-addon-rule.is-selected .nvmed-addon-status.is-ok {
    display: inline-block;
}

/* v1.10 checkout/cart cleanup: hidden addon rows remain visible in basket/order, but without public links and internal props */
.nvmed-addon-cart-row .nvmed-addon-cart-title {
    display: block;
    color: #1f2d3d;
    font-weight: 600;
    line-height: 1.35;
    max-width: 360px;
}
.nvmed-addon-cart-row .nvmed-addon-cart-image-wrap {
    display: inline-block;
    pointer-events: none;
}
.nvmed-addon-cart-row .nvmed-addon-cart-image-wrap img {
    display: block;
}
.nvmed-addon-title-fixed {
    color: #1f2d3d !important;
}
.nvmed-addon-cart-row .nvmed-addon-cart-badge {
    vertical-align: middle;
}
.nvmed-addon-cart-row [href=""],
.nvmed-addon-cart-row a:not([href]) {
    pointer-events: none !important;
    cursor: default !important;
    text-decoration: none !important;
}
.nvmed-addon-prop-hidden,
[data-nvmed-addon-prop-hidden="1"] {
    display: none !important;
}

/* v1.12: checkout/cart cleanup without location reloads */
.nvmed-addon-weight-hidden {
    visibility: hidden !important;
}
.nvmed-addon-cart-row .nvmed-addon-prop-hidden,
.nvmed-addon-cart-row [data-nvmed-addon-prop-hidden="1"] {
    display: none !important;
}


/* v1.13: clean addon order rows and prevent delivery weight errors from showing technical weight */
.nvmed-addon-cart-row .nvmed-addon-prop-hidden,
.nvmed-addon-cart-row [data-nvmed-addon-prop-hidden="1"] { display:none !important; }
.nvmed-addon-cart-row .nvmed-addon-weight-hidden { visibility:hidden !important; }

/* v1.22: protection for product detail description/tabs/characteristics/delivery/payment blocks */
.catalog-element-tabs.nvmed-addon-hidden,
.catalog-element-sections.nvmed-addon-hidden,
.catalog-element-description.nvmed-addon-hidden,
.catalog-element-characteristics.nvmed-addon-hidden,
.catalog-element-delivery.nvmed-addon-hidden,
.catalog-element-payment.nvmed-addon-hidden,
.catalog-element-information.nvmed-addon-hidden,
.catalog-element-main-block.nvmed-addon-hidden,
.product-item-detail-tabs-container.nvmed-addon-hidden,
.product-item-detail-tab-content-container.nvmed-addon-hidden {
    display: block !important;
}

/* v1.37: images and optional product links inside addon offer cards */
.nvmed-addon-card.has-image {
    grid-template-columns: 42px 58px minmax(0, 1fr) auto;
}
.nvmed-addon-image-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border: 1px solid #e4eef6;
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
}
.nvmed-addon-image-wrap img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}
.nvmed-addon-image-wrap a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}
.nvmed-addon-product-link {
    color: inherit;
    text-decoration: none;
}
.nvmed-addon-product-link:hover {
    color: #2587c7;
    text-decoration: underline;
}
.nvmed-addon-name-text {
    color: inherit;
}
@media (max-width: 700px) {
    .nvmed-addon-card.has-image {
        grid-template-columns: 38px 52px minmax(0, 1fr);
    }
    .nvmed-addon-card.has-image .nvmed-addon-price {
        grid-column: 3;
    }
    .nvmed-addon-image-wrap {
        width: 52px;
        height: 52px;
    }
}

/* v1.38: addon product links are shown only for non-hidden addon rules */
.nvmed-addon-cart-title[href]{color:#2d94d9;text-decoration:none;border-bottom:1px dashed rgba(45,148,217,.45);}
.nvmed-addon-cart-title[href]:hover{color:#0b79c9;border-bottom-color:#0b79c9;}
