/* Common side-column layout for all product cards. Calculator-specific CSS may override it. */
.tabs > section {
    padding-top: 8px;
}

.tabs > section #razv_dev {
    margin-top: 0;
}

#telo:has(> .left):has(> .center):has(> .right) {
    display: grid !important;
    grid-template-columns: minmax(330px, 380px) minmax(300px, 1fr) minmax(260px, 300px);
    grid-template-areas: "gallery details buy";
    column-gap: 32px;
    row-gap: 24px;
    align-items: start;
    width: 100%;
    margin: 0;
}

@media (min-width: 1200px) {
    #telo:has(> .left):has(> .center):has(> .right) {
        grid-template-columns: minmax(390px, 420px) minmax(300px, 1fr) minmax(260px, 300px);
    }
}

@media (min-width: 1041px) {
    #telo:has(> .left):has(> .center):has(> .right) #poz_fixed_img:has(> .owl-carousel.single-product) {
        display: grid;
        grid-template-columns: 76px minmax(0, 1fr);
        grid-template-rows: auto;
        column-gap: 12px;
        align-items: start;
    }

    #telo:has(> .left):has(> .center):has(> .right) #poz_fixed_img:has(> .owl-carousel.single-product) > .product-image {
        grid-column: 2;
        grid-row: 1;
    }

    #telo:has(> .left):has(> .center):has(> .right) #poz_fixed_img:has(> .owl-carousel.single-product) > .owl-carousel.single-product {
        grid-column: 1;
        grid-row: 1;
        display: block;
        width: 76px !important;
        height: 330px !important;
        max-height: 330px;
        margin: 0 !important;
        padding: 0 4px 0 0 !important;
        overflow: hidden;
    }

    #telo:has(> .left):has(> .center):has(> .right) #poz_fixed_img .owl-carousel.single-product .owl-stage-outer {
        width: 100%;
        height: 100%;
        overflow-x: hidden;
        overflow-y: auto;
        scrollbar-width: thin;
        scrollbar-color: #b8c5bc transparent;
    }

    #telo:has(> .left):has(> .center):has(> .right) #poz_fixed_img .owl-carousel.single-product .owl-stage {
        display: flex;
        flex-direction: column;
        width: 100% !important;
        transform: none !important;
    }

    #telo:has(> .left):has(> .center):has(> .right) #poz_fixed_img .owl-carousel.single-product .owl-item {
        flex: 0 0 auto;
        width: 100% !important;
        margin: 0 0 8px !important;
    }

    #telo:has(> .left):has(> .center):has(> .right) #poz_fixed_img .owl-carousel.single-product .owl-item img {
        display: block;
        width: 64px !important;
        height: 76px;
        margin: 0 auto;
        padding: 4px;
        border: 1px solid #e1e8e3;
        border-radius: 7px;
        object-fit: contain;
        background: #fff;
        box-sizing: border-box;
    }

    #telo:has(> .left):has(> .center):has(> .right) #poz_fixed_img .owl-carousel.single-product .owl-nav {
        display: none !important;
    }
}

#telo:has(> .left):has(> .center):has(> .right) > .left,
#telo:has(> .left):has(> .center):has(> .right) > .center,
#telo:has(> .left):has(> .center):has(> .right) > .right {
    float: none;
    width: auto;
    min-width: 0;
    margin: 0;
    padding: 0;
}

#telo:has(> .left):has(> .center):has(> .right) > .left {
    grid-area: gallery;
}

#telo:has(> .left):has(> .center):has(> .right) > .center {
    grid-area: details;
}

#telo:has(> .left):has(> .center):has(> .right) > .right {
    grid-area: buy;
}

@media (min-width: 821px) and (min-height: 700px) {
    #telo:has(> .left):has(> .center):has(> .right) > .left,
    #telo:has(> .left):has(> .center):has(> .right) > .center,
    #telo:has(> .left):has(> .center):has(> .right) > .right {
        position: sticky;
        top: 12px;
        align-self: start;
    }
}

#telo:has(> .left):has(> .center):has(> .right) #poz_fixed_img {
    position: static !important;
    width: 100%;
    padding: 16px !important;
    border: 1px solid #e1e8e3;
    border-radius: 10px;
    background: #fff;
    box-sizing: border-box;
    overflow: hidden;
}

#telo:has(> .left):has(> .center):has(> .right) #poz_fixed_img .product-image {
    width: 100% !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

#telo:has(> .left):has(> .center):has(> .right) #poz_fixed_img #main-image {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 330px;
    margin: 0 auto;
    object-fit: contain;
}

#telo:has(> .left):has(> .center):has(> .right) .product-right-sidebar {
    position: static;
    display: block;
    width: 100%;
    margin: 0;
    padding: 12px;
    border: 1px solid #e1e8e3;
    border-radius: 10px;
    background: #f7faf8;
    box-shadow: none;
    box-sizing: border-box;
    text-align: center;
}

#telo:has(> .left):has(> .center):has(> .right) .product-right-sidebar .product-info {
    width: 100%;
    line-height: 1.25;
    text-align: center;
}

#telo:has(> .left):has(> .center):has(> .right) .product-right-sidebar .product-status {
    height: auto;
    margin: 3px auto 5px;
    padding: 3px 12px 3px 30px;
    font-size: 13px;
    line-height: 16px;
    text-align: center;
    background-position: 8px center;
    background-size: 14px 14px;
}

#telo:has(> .left):has(> .center):has(> .right) .product-right-sidebar .smallText {
    font-size: 13px;
    line-height: 16px;
    text-align: center;
}

#telo:has(> .left):has(> .center):has(> .right) .product-right-sidebar #printOldCena_ h4 {
    margin: 2px 0 0 !important;
    font-size: 19px;
    line-height: 22px;
}

#telo:has(> .left):has(> .center):has(> .right) .product-right-sidebar .product-info h3 {
    margin: 3px 0 2px !important;
    line-height: 36px;
    text-align: center !important;
}

#telo:has(> .left):has(> .center):has(> .right) .product-right-sidebar #kcena {
    font-size: 34px;
    line-height: 36px;
}

#telo:has(> .left):has(> .center):has(> .right) .product-right-sidebar #ItogoOther {
    display: block;
    margin: 0 !important;
    font-size: 13px !important;
    line-height: 18px;
    text-align: center;
}

#telo:has(> .left):has(> .center):has(> .right) .product-right-sidebar #skidka:empty {
    display: none;
}

#telo:has(> .left):has(> .center):has(> .right) .product-right-sidebar .purchase-row {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 6px;
    width: 100%;
    margin: 5px 0;
}

#telo:has(> .left):has(> .center):has(> .right) .product-right-sidebar .purchase-quantity {
    display: flex;
    flex: 0 0 96px;
    flex-direction: column;
    align-items: stretch;
    gap: 1px;
}

#telo:has(> .left):has(> .center):has(> .right) .product-right-sidebar .purchase-quantity > .smallText {
    width: 100%;
    text-align: left;
}

#telo:has(> .left):has(> .center):has(> .right) .product-right-sidebar .cart-counter {
    display: flex;
    justify-content: center;
    flex: none;
    width: 96px;
    height: 32px !important;
    padding: 0;
    margin: 0 !important;
}

#telo:has(> .left):has(> .center):has(> .right) .product-right-sidebar .counter-line {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 32px !important;
    margin-top: 0;
}

#telo:has(> .left):has(> .center):has(> .right) .product-right-sidebar #kol {
    float: none;
    width: 96px;
    height: 32px;
    margin: 0;
    text-align: center;
}

#telo:has(> .left):has(> .center):has(> .right) .product-right-sidebar #kupit {
    display: flex;
    flex: 0 0 auto;
    align-self: flex-end !important;
    height: 44px !important;
    margin: 0;
    text-align: center;
}

#telo:has(> .left):has(> .center):has(> .right) .product-right-sidebar .cart_button {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    box-sizing: border-box;
    padding: 4px 8px;
    font-size: 14px;
}

#telo:has(> .left):has(> .center):has(> .right) .product-right-sidebar > hr {
    margin: 10px 0;
}

#telo:has(> .left):has(> .center):has(> .right) .product-right-sidebar .sale-actions-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin: 0;
}

#telo:has(> .left):has(> .center):has(> .right) .product-right-sidebar .sale-actions-row .badge.badge-danger {
    display: inline-flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: center;
    width: auto;
    max-width: 150px;
    margin: 0;
    line-height: 17px;
}

#telo:has(> .left):has(> .center):has(> .right) .product-right-sidebar .podel {
    position: static !important;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    width: auto;
    margin: 0;
    color: #55bc74;
    font-size: 13px;
    line-height: 17px;
    text-align: center;
}

#telo:has(> .left):has(> .center):has(> .right) .product-right-sidebar #delivery-block {
    width: 100%;
    max-width: 100%;
    margin-top: 0;
}

#telo:has(> .left):has(> .center):has(> .right) .product-right-sidebar input,
#telo:has(> .left):has(> .center):has(> .right) .product-right-sidebar select,
#telo:has(> .left):has(> .center):has(> .right) .product-right-sidebar button {
    max-width: 100%;
}

@media (max-width: 1040px) {
    #telo:has(> .left):has(> .center):has(> .right) {
        grid-template-columns: minmax(220px, 270px) minmax(250px, 1fr) minmax(245px, 275px);
        gap: 18px;
    }
}

@media (max-width: 820px) {
    #telo:has(> .left):has(> .center):has(> .right) {
        grid-template-columns: minmax(190px, 260px) minmax(0, 1fr);
        grid-template-areas:
            "gallery details"
            "buy buy";
    }

    #telo:has(> .left):has(> .center):has(> .right) .product-right-sidebar {
        position: static;
    }

    #telo:has(> .left):has(> .center):has(> .right) > .left,
    #telo:has(> .left):has(> .center):has(> .right) > .center,
    #telo:has(> .left):has(> .center):has(> .right) > .right {
        position: static;
    }
}

@media (max-width: 600px) {
    #telo:has(> .left):has(> .center):has(> .right) {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "gallery"
            "details"
            "buy";
        gap: 16px;
    }
}

@media (max-width: 340px) {
    #telo:has(> .left):has(> .center):has(> .right) .product-right-sidebar .purchase-row {
        flex-wrap: wrap;
    }
}
