.pricing {
    background: linear-gradient(61deg, #b8d0f8 0%, #d4defb 100%);
}

body:has(.pricing-with-breadcrumb) .site-header {
    background: linear-gradient(61deg, #b8d0f8 0%, #d4defb 100%);
}

.pricing:has(.breadcrumb) {
    padding-top: 30px;
    margin-top: -14px;
}

.pricing__heading {
    margin-bottom: 48px;
}

.pricing__heading * {
    color: #000000;
    font-weight: 700;
}

.pricing__items {
    display: flex;
    flex-direction: column;
}

.pricing__item.pricing__items-tarif,
.pricing__items-sidebar,
.pricing-buttons {
    display: flex;
}

.pricing__items-tarif:nth-last-child(2) .pricing__items-tarif-item:nth-child(2) .pricing__items-tarif-item-text,
.pricing__items-tarif:nth-last-child(2) .pricing__items-tarif-item:nth-child(6) .pricing__items-tarif-item-text{
    color: #256A00;
}

.pricing__items-tarif:nth-last-child(2) .pricing__items-tarif-item:nth-child(3) .pricing__items-tarif-item-text,
.pricing__items-tarif:nth-last-child(2) .pricing__items-tarif-item:nth-child(7) .pricing__items-tarif-item-text {
    color: #666202;
}

.pricing__items-tarif:nth-last-child(2) .pricing__items-tarif-item:nth-child(4) .pricing__items-tarif-item-text,
.pricing__items-tarif:nth-last-child(2) .pricing__items-tarif-item:nth-child(8) .pricing__items-tarif-item-text{
    color: #7B5100;
}

.pricing__items-tarif:nth-last-child(2) .pricing__items-tarif-item:nth-child(5) .pricing__items-tarif-item-text,
.pricing__items-tarif:nth-last-child(2) .pricing__items-tarif-item:nth-child(9) .pricing__items-tarif-item-text{
    color: #AC0101;
}

.pricing__items-tarif:nth-last-child(2) .pricing__items-tarif-item .pricing__items-tarif-item-text {
    font-weight: 700;
}


.pricing__items-tarif-item,
.pricing__items-sidebar-item {
    border: 1px solid #FFF;
}


.pricing__items-tarif-item-text {
    font-size: 14px;
    color: #000;
    font-weight: 400;
}

.pricing__mobile-price .pricing__items-tarif-item-text,
.pricing__mobile-name {
    font-weight: 600;
    font-size: 20px;
}

.pricing__items-tarif-item-text strong{
    font-weight: 700;
}


.pricing__items-tarif-item:nth-child(1),
.pricing__items-sidebar-item:nth-child(1),
.pricing__items-tarif-btn:nth-child(1) {
    flex-basis: 755px;
    flex-shrink: 1;
    border: 0;
    justify-content: flex-start;
    text-align: start;
}

.pricing__items-tarif-item,
.pricing__items-sidebar-item,
.pricing__items-tarif-btn {
    flex-basis: 155px;
    flex-shrink: 0;
    padding: 11px 20px;
    font-weight: 700;
    font-size: 14px;
    color: #000000;
    align-items: center;
    justify-content: center;
    text-align: center;
    display: flex;
}

.pricing__items-sidebar-item {
    padding: 14px 7px;
}

.pricing__item:nth-child(even) .pricing__items-tarif-item:first-child {
    background: #D4E1FB;
}

.pricing__item:nth-child(odd) .pricing__items-tarif-item:first-child,
.pricing__items-sidebar:nth-child(1) {
    background: #FFFFFF;
}

.pricing__items-tarif-item:nth-child(2),
.pricing__items-tarif-item:nth-child(6),
.pricing__items-sidebar-item:nth-child(2) {
    background: #EEFFE5;
}

.pricing__items-tarif-item:nth-child(3),
.pricing__items-tarif-item:nth-child(7),
.pricing__items-sidebar-item:nth-child(3) {
    background: #FFFDD6;
}

.pricing__items-tarif-item:nth-child(4),
.pricing__items-tarif-item:nth-child(8),
.pricing__items-sidebar-item:nth-child(4) {
    background: #FFF3DC;
}

.pricing__items-tarif-item:nth-child(5),
.pricing__items-tarif-item:nth-child(9),
.pricing__items-sidebar-item:nth-child(5) {
    background: #FFEAEA;
}

.pricing__items-sidebar-item:nth-child(2),
.pricing__items-sidebar-item:nth-child(6){
    color: #256a00;
}

.pricing__items-sidebar-item:nth-child(3),
.pricing__items-sidebar-item:nth-child(7) {
    color: #666202;
}

.pricing__items-sidebar-item:nth-child(4),
.pricing__items-sidebar-item:nth-child(8) {
    color: #7b5100;
}

.pricing__items-sidebar-item:nth-child(5),
.pricing__items-sidebar-item:nth-child(9) {
    color: #ac0101;
}



.empty-cell {
    opacity: 0;
}

.pricing__items-tarif-btn {
    display: flex;
    background: #252525;
    border-radius: 0 0 20px 20px;
    padding: 13px 4px;
    font-weight: 700;
    color: #FFF;
    font-size: 14px;
}

.pricing__items-tarif-btn--shortcode .mono-pch-button {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
}

.pricing__items-tarif-btn--shortcode .mono-pch-button:hover {
    color: #fff;
}


.pricing__items {
    border-radius: 20px;
    overflow: hidden;
}

.pricing__item.pricing__items-tarif:has(+ .pricing-buttons) {
    border-radius: 0 0 0 20px;
    overflow: hidden;
}


.pricing .std-breadcrumbs {
    position: relative;
    margin-bottom: 42px;
}
.pricing__info-text{
    margin-top: 30px;
}

@media screen and (max-width: 1199.98px) {
    .pricing__items-tarif-item,
    .pricing__items-sidebar-item,
    .pricing__items-tarif-btn {
        flex-basis: 135px;
    }

}

@media screen and (min-width: 992px) {
    .pricing__mobile {
        display: none;
    }

    /* Клон заголовка живе окремо в <body>, тому медіа-запит вище на
       нього не діє — ховаємо його тут окремо, про всяк випадок
       (основна логіка в JS вже не показує його на десктопі). */
    .pricing__mobile-row--header-floating {
        display: none !important;
    }
}

@media screen and (max-width: 991.98px) {

    .pricing__item-wrapper {
        display: none;
    }

    .pricing__heading {
        margin-bottom: 30px;
    }

    /* ==========================================================
       МОБІЛЬНА ТАБЛИЦЯ ПОРІВНЯННЯ (у стилі Rozetka/Comfy)
       Структура на кожен "рядок послуги":
         .pricing__mobile-label   — підпис, на всю ширину, НЕ скролиться
         .pricing__mobile-row     — рядок з колонками тарифів, скролиться
                                     горизонтально (синхронно з іншими
                                     .pricing__mobile-row через невеликий
                                     inline-скрипт у pricing-block.php)
       ========================================================== */

    .pricing__mobile {
        display: flex;
        flex-direction: column;
        /* overflow: hidden навмисно НЕ використовуємо тут — він ламає
           position: sticky на заголовку нижче. Кути заокруглюємо точково. */
    }

    .pricing__mobile-scroll-area {
        display: flex;
        flex-direction: column;
    }

    .pricing__mobile-row {
        display: flex;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
    }

    .pricing__mobile-row::-webkit-scrollbar {
        display: none; /* Chrome/Safari */
    }

    .pricing__mobile-cell {
        flex-basis: calc(100% / 4);
        min-width: 140px;
        flex-shrink: 0;
        padding: 10px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        border: 1px solid #FFF;
        min-height: 50px;
    }

    .pricing__mobile-row--header .pricing__mobile-cell {
        border-top: 0;
    }

    .pricing__mobile-row--header .pricing__mobile-cell:first-child {
        border-top-left-radius: 20px;
    }

    .pricing__mobile-row--header .pricing__mobile-cell:last-child {
        border-top-right-radius: 20px;
    }


    .pricing__mobile-row--header-floating {
        position: fixed;
        display: none;
        box-shadow: 0 4px 12px rgba(0, 0, 0, .18);
    }

    .pricing__mobile-row--header-floating .pricing__mobile-cell:first-child,
    .pricing__mobile-row--header-floating .pricing__mobile-cell:last-child {
        border-radius: 0;
    }

    .pricing__mobile-cell--header {
        font-weight: 700;
        font-size: 16px;
        line-height: 1.3;
    }

    .pricing__mobile-cell-title {
        display: block;
    }

    .pricing__mobile-cell-subheading {
        display: block;
        margin-top: 4px;
        font-weight: 400;
        font-size: 12px;
        opacity: .8;
    }

    /* Кольори колонок — ті самі, що й у десктопній таблиці */
    .pricing__mobile-cell-1 { background: #EEFFE5; }
    .pricing__mobile-cell-2 { background: #FFFDD6; }
    .pricing__mobile-cell-3 { background: #FFF3DC; }
    .pricing__mobile-cell-4 { background: #FFEAEA; }

    .pricing__mobile-cell-1.pricing__mobile-cell--header,
    .pricing__mobile-cell-1 .pricing__mobile-cell-text { color: #256A00; }

    .pricing__mobile-cell-2.pricing__mobile-cell--header,
    .pricing__mobile-cell-2 .pricing__mobile-cell-text { color: #666202; }

    .pricing__mobile-cell-3.pricing__mobile-cell--header,
    .pricing__mobile-cell-3 .pricing__mobile-cell-text { color: #7B5100; }

    .pricing__mobile-cell-4.pricing__mobile-cell--header,
    .pricing__mobile-cell-4 .pricing__mobile-cell-text { color: #AC0101; }

    .pricing__mobile-cell-text {
        margin: 0;
        font-size: 14px;
        font-weight: 400;
        color: #000;
    }

    .pricing__mobile-cell.pricing-item-checked svg {
        width: 17px;
        height: 16px;
        display: block;
    }

    /* Підпис послуги — на всю ширину, без горизонтального скролу */
    .pricing__mobile-label {
        width: 100%;
        padding: 10px 4px;
        font-weight: 600;
        font-size: 13px;
        line-height: 1.4;
        color: #000000;
        background: #FFFFFF;
        text-align: center;
    }

    .pricing__mobile-label--price {
        font-weight: 700;
    }

    /* Рядок з ціною */
    .pricing__mobile-cell--price .pricing__mobile-cell-text {
        font-weight: 700;
        font-size: 16px;
    }

    /* Рядок кнопок */
    .pricing__mobile-row--buttons {

    }

    .pricing__mobile-row--buttons .pricing__items-tarif-btn,
    .pricing__mobile-row--buttons .empty-cell {
        flex-basis: calc(100% / 4);
        min-width: 140px;
        flex-shrink: 0;
        justify-content: center;
    }
}
@media screen and (max-width: 768px){
    .pricing__mobile{
        margin-left: -15px;
        margin-right: -15px;
    }
}