.block-tariff-card .element-benefits ul {
    list-style: none;
    padding: 0px;
}

.block-tariff-card .element-benefits ul li {
    margin: 12px auto;
    font-weight: 400;
    color: black;
}

.block-tariff-card .element-benefits ul li:before {
    content: url(/wp-content/plugins/e2e4-api-forms/assets/media/Vector.svg);
    padding-right: 12px;
}

.block-tariff-card .element-benefits {
    width: 83%;
}

.block-tariff-card .element-benefits ul li {
    display: flex;
}

.tariffs-card-message {
    color: black;
    font-size: 20px;
    padding-bottom: 50px;
}

.tariffs-card__wrapper {
    width: 100%;
    display: flex;
    gap: 30px;
    align-items: flex-end;
    justify-content: center;
    flex-wrap: wrap;
}

#availability-check_tariffs-card__wrapper{
    display: none;
}

.fancybox__content {
    max-width: 1440px;
    width: 80%;
    padding: 20px;
}

.popup {
    max-width: 620px;
}

.popup__tariffs-card {
    max-width: 1300px;
    padding: 60px 90px;
}

.block-tariff-card {
    position: relative!important;
    width: 100%!important;
    height: 100%!important;
    max-width: 406px!important;
    border-bottom-left-radius: 16px!important;
    border-bottom-right-radius: 16px!important;
    display: flex!important;
    flex-direction: column!important;
    align-items: center!important;
    background:white!important;
}

.card-wrapper {
    width: 31%;
    max-width: 400px;
    position: relative;
}

.tariff-highlight-badge {
    text-align: center;
    color: white;
    font-weight: 700;
    font-size: 16px;
    background: #1a1a1a;
    border-radius: 16px 16px 0px 0px;
    padding: 8px 16px;
}

.tariff-highlight-badge .highlight-star {
    color: #d4a843;
    font-size: 18px;
}

.card-wrapper--highlighted .text-above-tariff-card {
    border-radius: 0;
}

h3.text-above-tariff-card {
    text-align: center;
    color: var(--brand-on-primary);
    font-weight: 700;
    font-size: 20px;
    width: 100%;
    background: var(--brand-primary);
    border-radius: 16px 16px 0px 0px;
    border: 2px solid var(--brand-primary);
    margin: 0;
    padding: 8px 0;
    line-height: 1.3;
}

.block-tariff-card:nth-child(2):before {
    all: unset !important;
}

.card-wrapper:nth-child(2) .block-tariff-card {
    background:white;
}

.block-tariff-card .element-h4 {
    width: 85%;
    text-align: left;
}

.block-tariff-card .element-month-price {
    width: 85%;
    text-align: center;
    margin-top: 20px;
}

.block-tariff-card .element-h4 {
    font-weight: 700;
    font-size: 22px;
    line-height: 130%;
    margin-top: 30px;
    min-height: 100px;
}

.block-tariff-card:nth-child(2) .element-h4 {
    margin-top: 65px;
}

.block-tariff-card .element-month-price {
    color: var(--brand-primary);
    font-weight: 700;
    font-size: 48px;
    line-height: 100%;
    margin-bottom: 10px;
}

.block-tariff-card .element-span {
    font-weight: 600;
    font-size: 16px;
    position: relative;
    text-align: center;
    width: 85%;
}

.block-button {
    height: 51px!important;
    background: var(--brand-accent)!important;
    border-radius: 16px!important;
    color: white!important;
    font-size: 16px!important;
    line-height: 120%!important;
    letter-spacing: 0.03em!important;
    border: none!important;
    font-weight: unset!important;
}

/*.block-button:hover {*/
/*    border: 2px solid black;*/
/*    background: white;*/
/*    color: black;*/
/*}*/

.block-tariff-card .element-button {
    max-width: 342px;
    width: 90%;
    text-align: center;
    min-height: 51px;
}

a.block-button {
    display: flex;
    align-items: center;
    justify-content: center;
}

.block-button a {
    color: white;
}

.block-tariff-card .element-extra-info {
    width: 83%;
    margin-top: 16px;
}

.block-tariff-card .element-extra-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.block-tariff-card .element-extra-info ul li {
    margin: 6px auto;
    font-weight: 400;
    color: #555;
    font-size: 13px;
    display: flex;
}

.block-tariff-card .element-extra-info ul li:before {
    content: url(/wp-content/plugins/e2e4-api-forms/assets/media/Vector.svg);
    padding-right: 8px;
    transform: scale(0.85);
}

.block-tariff-card .element-links {
    display: flex;
    margin: 30px 0;
    flex-direction: column;
    align-items: center;
}

.block-tariff-card .element-a {
    font-weight: 400;
    font-size: 14px;
    line-height: 150%;
    text-decoration-line: underline;
}

.block-tariff-card .popup__element-h4 {
    width: 100%;
    margin: 0px 0px 10px;
    text-align: left;
    font-weight: 700;
    font-size: 22px;
    line-height: 130%;
}

.popup__description {
    font-weight: 400;
}

@media screen and (max-width: 1300px) {

    .tariffs-card__wrapper .card-wrapper {
        width: 30%;
    }

    .block-tariff-card .element-h4 {
        width: 90%;
        margin: 40px 0 20px 0px;
        min-height: 11%;
    }

    .block-tariff-card:nth-child(2) .element-h4 {
        margin-top: 55px;
    }

    .block-tariff-card .element-month-price {
        font-size: 30px;
        height: 30px;
        width: 85%;
    }

    .fancybox__content {
        width: 92%;
    }

}

/* Hide dots on desktop */
.tc-carousel-dots {
    display: none;
}

@media screen and (max-width: 767px) {

    /* Mobile Carousel */
    .tariffs-card__wrapper {
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        justify-content: flex-start;
        align-items: stretch;
        gap: 0;
        padding-bottom: 10px;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .tariffs-card__wrapper::-webkit-scrollbar {
        display: none;
    }

     .tariffs-card__wrapper .card-wrapper {
        flex: 0 0 90%;
        scroll-snap-align: center;
        width: 90%;
        margin: 0 5%;
        margin-bottom: auto;
    }

    .tariffs-card__wrapper .card-wrapper:first-child {
        margin-left: 5%;
    }

    .tariffs-card__wrapper .card-wrapper:last-child {
        margin-right: 5%;
    }

    /* Carousel Dots */
    .tc-carousel-dots {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 10px;
        margin-top: 20px;
        padding: 10px 0;
    }

    .tc-carousel-dots .tc-dot {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: #ccc;
        border: none;
        padding: 0;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .tc-carousel-dots .tc-dot.active {
        background: var(--brand-primary);
        width: 12px;
        height: 12px;
    }

    .tc-carousel-dots .tc-dot:hover {
        background: #888;
    }

    .block-tariff-card {
        width: 100%;
    }

    .block-tariff-card .element-h4 {
        font-size: 18px;
        margin: 24px 0px 10px 0px;
        width: 90%;
    }
    

    .block-tariff-card .element-month-price {
        font-size: 36px;
        height: 100%;
        margin-bottom: 10px;
    }

    .block-tariff-card .element-benefits ul li:before {
        content: url(/wp-content/plugins/e2e4-api-forms/assets/media/Vector-2.svg);
    }

    .block-tariff-card .element-benefits {
        height: 100%;
    }

    .block-tariff-card .element-benefits ul li {
        font-size: 16px;
    }

    .block-tariff-card:nth-child(2) .element-h4 {
        margin-top: 55px;
    }

    .block-tariff-card .element-extra-info ul li:before {
        content: url(/wp-content/plugins/e2e4-api-forms/assets/media/Vector-2.svg);
        transform: scale(0.85);
    }

}
