/* Основные стили */
.pricing-configurator {
    font-family: 'Inter', sans-serif;
    background: #FFFFFF;
    color: #18181B;
    line-height: 1.5;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Шапка и прогресс-бар */
.header-center {
    max-width: 86rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 5.4rem;
    gap: 2.4rem;
}

.header-center h1 {
    color: #020617;
    font-size: 4rem;
    font-weight: 700;
    line-height: 5rem;
    text-align: center;
}

.progress-steps {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 3.2rem;
}

.step {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: .8rem;
}

.step:first-child:hover {
    cursor: pointer;
}

.step-number {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0.8rem 1.2rem;
    width: 2.5rem;
    height: 2.5rem;
    background: #EFF6FF;
    border-radius: 20.5px;
    font-weight: 600;
    font-size: 1.8rem;
    line-height: 100%;
    text-align: center;
    color: #020617;
}

.step.active .step-number {
    background: #020617;
    color: #FFFFFF;
}

.step-text {
    flex: 0 0 auto;

    font-weight: 400;
    font-size: 1.8rem;
    line-height: 100%;
    text-align: center;
    color: #020617;
}
.step.active .step-text {
    font-weight: 600;
}

.configurator_block__button {
    text-align: center;
    margin-top: 5.2rem;
}

.configurator_block__button .btn_minimal.second_hero__btn {
    color: #020617;
}

.configurator_block__button .btn_minimal.second_hero__btn:hover {
    color: #020617;
}

.configurator_content.section {
    padding-top: 0;
    padding-bottom: 0;
}

@media (max-width: 1024px) {
    .progress-steps {
        gap: 1.6rem;
    }
    .configurator_content.section {
        padding-left: 0;
        padding-right: 0;
    }

    .configurator_block__button {
        margin-top: 2.4rem;
    }

    .configurator_block__button .btn_minimal.second_hero__btn {
        margin-top: 0 !important;
    }

    .header-center h1 {
        font-size: 2.8rem;
        line-height: 120%;
    }
}
@media (max-width: 768px) {
    .step-text {
        display: none;
    }
    .step-text.active {
        display: block;
    }
}

.separator {
    font-weight: 400;
    font-size: 1.8rem;
    line-height: 100%;
    text-align: center;
    color: #18181B;
}

.full-width {
    width: 100%;
}

/* Сетка планов */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 48px;
}

.plan-card {
    display: flex;
    width: 100%;
    height: 100%;
    padding: 3.2rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 3.2rem;

    border-radius: 1.2rem;
    border: 1px solid #E4E4E7;
    background: #FFF;
    box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.05);

    cursor: pointer;
    transition: all 0.3s ease;
}

.plan-card.popular,
.plan-card:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);

    border-radius: 12px;
    border: 1px solid #CBD5E1;
    background: linear-gradient(0deg, rgba(255, 255, 255, 0.50) 0%, rgba(255, 255, 255, 0.50) 100%), #EFF6FF;
}

.plan-card.selected {
    /* border-color: #FF4E32; */
    /* background: #F7F7F7; */
}

.plan-card h2 {
    color: #020617;

    font-size: 2rem;
    font-weight: 700;
    line-height: 100%; /* 20px */
}

.plan-card-header {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2.4rem;
}

.plan-card-header-title {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    width: 100%;

}

.plan-card-header-widget {
    border-radius: 4px;
    background: #60A5FA;
    color: #FFF;
    padding: .2rem .8rem;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.6rem;
    text-transform: uppercase;
}

.plan-price {
    display: flex;
    align-items: flex-end;
    gap: 2px;
}

.price-amount {
    color: #020617;
    font-size: 3.6rem;
    font-weight: 700;
    line-height: 40px;
    letter-spacing: -1.44px;
}

.price-amount sup {
    font-size: 2rem;
}

.price-period {
    color: #475569;
    font-size: 1.6rem;
    font-weight: 400;
    line-height: 2.4rem;

    display: block;
    margin-bottom: 3px;
}
.plan-header .price-period {
    display: block;
    margin-bottom: -3px;
}
.plan-description-card,
.plan-description {
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: #71717A;
}

@media (max-width: 1024px) {
    .plan-card {
        padding: 2.4rem;
    }

    .price-period {
        margin-bottom: 1px;
    }

    .plan-header .price-period {
        margin-bottom: -1px;
    }

    .plan-header .plan-title {
        max-width: 49%;
    }
}

/* Основной контент */
.main-content {
    display: flex;
    gap: 4.8rem;
    margin-top: 4.8rem;
    /* margin-bottom: 100px; */
    position: relative;
}

.left-column {
    flex: 1;
    width: 100%;
}

.right-column {
    width: 100%;
    max-width: 39rem;
    flex-shrink: 0;
    position: relative;
    align-self: flex-start;
}

/* 2 Step */
.customize-section {
    border-radius: .8rem;
    border: 1px solid #E2E8F0;
    background: #F8FAFC;
    padding: 2.4rem;
}

.configurator-options {
    display: flex;
    flex-direction: column;
    gap: 2.4rem;
}

.icon-circle {
    display: flex;
}

.section-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: .8rem;
    margin-bottom: 2rem;
}

.section-title {
    color: #020617;
    font-size: 2.4rem;
    font-weight: 600;
    line-height: 3.2rem;
    letter-spacing: -0.4px;
}

.section-description p {
    color: #020617;
    font-size: 1.6rem;
    font-weight: 400;
    line-height: 132%; 
    margin-bottom: 2rem;
}

.configuration__top-text {
    color: #020617;
    font-size: 2.4rem;
    font-weight: 600;
    line-height: 3.2rem;
    letter-spacing: -0.4px;
    margin-bottom: 2rem;

    display: none;
}

/* Options */
.option-card {
    border-radius: 12px;
    border: 1px solid #E2E8F0;
    background: #FFF;

    display: flex;
    padding: 2.4rem;
    flex-direction: column;
    align-items: flex-start;
    /* gap: 1.2rem; */
    align-self: stretch;
}

.option-card:not(:last-child) {
    margin-bottom: 2.4rem;
}

.option-list {
    width: 100%;
    gap: 1.2rem;
    margin-top: 1rem;
}

.option-item {
    border-radius: .8rem;
    border: 1px solid #E2E8F0;

    display: flex;
    width: 100%;
    gap: 1.2rem;
    /* height: 5.4rem; */
    padding: 1.6rem 1.2rem;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 1.2rem;
    transition: all 0.3s ease;
}

.option-item:hover {
    cursor: pointer;
    border-radius: 8px;
    border: 1px solid #CBD5E1;
    background: #EFF6FF;
}

.option-item.selected {
    border-color: #CBD5E1;
    background: #EFF6FF;
}

.option-title {
    color: #020617;
    font-size: 1.8rem;
    font-weight: 600;
    line-height: 2.8rem;
    margin-bottom: .4rem;
}

.option-header {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: .8rem;
}

/* .option-header:not(:last-child) {
    margin-bottom: 1rem;
} */

.option-label {
    color: #020617;
    font-size: 1.4rem;
    font-weight: 400;
    line-height: 2rem;
}

.option-price {
    color: #020617;
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 100%;
}

.option-bottom {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 2.4rem;
    align-self: stretch;
}

.option-description {
    flex: 1 1 100%;

    color: #64748B;
    font-size: 1.2rem;
    font-weight: 400;
    line-height: 132%;
}

.option-description ul {
    margin: 0;
    padding-left: 20px;
    list-style: disc;
}

.option-description li {
    margin-top: 5px;
    list-style: disc;
}

.option-name {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: .8rem;
}

.radio {
    width: 1.6rem;
    height: 1.6rem;
    min-width: 1.6rem;
    min-height: 1.6rem;
    border-radius: 100%;
    border: 1px solid #020617;
    background: #FFF;

    position: relative;
}

.option-item.selected .radio {  
    border-color: #2563EB;
}

.option-item.selected .radio::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1.1rem;
    height: 1.1rem;
    border-radius: 100%;
    background: #2563EB;
}

/* Hide price content for selected items */
.option-item[data-value*="Number of employees"] .option-price,
.option-item.selected .option-price {
    color: transparent;
    font-size: 0;
    line-height: 0;
}

.option-item[data-value*="Number of employees"] .option-price::before,
.option-item.selected .option-price::before {
    content: "\00A0"; /* Non-breaking space */
    color: transparent;
    font-size: 1.4rem;
    line-height: 100%;
}

.option-item:not(:last-child) {
    margin-bottom: 1.2rem;
}

/* Сайдбар с итогами */
.summary-box {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: fit-content;
    border: 1px solid #E4E4E7;
    border-radius: 8px;
    background: #FFFFFF;
    overflow: hidden;
    position: sticky;
    top: 30px;
    /* transition: top 0.3s ease; */
}

.summary-header {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    background: var(--tailwind-colors-slate-50, #F8FAFC);
}

.summary-title {
    padding: 2.4rem;
    color: #020617;
    font-size: 18px;
    font-weight: 600;
    line-height: 28px;
    letter-spacing: -0.4px;
}

.summary-content {
    display: flex;
    flex-direction: column;    
    padding: 2.4rem;
    gap: 1.2rem;
    width: 100%;
    background: #FFF;
    box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.05);
}

.tabs {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    padding: 4px;
    width: 100%;
    height: 4rem;
    background: #F8FAFC;
    border-radius: 6px;
    margin-bottom: .4rem;
}

.tab {
    /* flex: 1; */ 
    padding: .6rem 1.2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 3.2rem;
    font-weight: 500;
    font-size: 1.4rem;
    line-height: 2rem;
    color: #64748B;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab.active {
    background: #FFFFFF;
    color: #3B82F6;
    border-radius: 4px;
    box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.05);
}

.tab.inactive {
    color: #71717A;
}

.summary-section-title {
    color: #020617;
    font-size: 1.6rem;
    font-weight: 600;
    line-height: 2.0rem;
    margin-bottom: 0.8rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 0.8rem;
}

.summary-label {
    color: #020617;
    font-size: 1.6rem;
    font-weight: 600;
    line-height: 2.4rem;
}

.summary-value {
    font-size: 1.6rem;
    font-weight: 500;
    line-height: 2.0rem;
    color: #18181B;
}

/* Стили для разделительной линии */
.separator-line {
    width: 100%;
    height: 1px;
    background: #E4E4E7;
    margin: .8rem 0;
}

.total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-top: 0.8rem;
}

.tab.active[data-period="monthly"] .total-annually-discount-block {
    display: none;
}

.total-annually-discount-block {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: .2rem;
}


.total-discount-block,
.total-annually-block {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 2.4rem;
}

.total-annually-label,
.total-annually-value,
.total-discount-label,
.total-discount-value {
    font-size: 1.4rem;
    font-weight: 400;
    line-height: 2rem;
}

.total-annually-label,
.total-annually-value {
    color: #020617;
}

.total-discount-label,
.total-discount-value {
    color: #2563EB;
}

.total-label {
    color: #020617;
    font-size: 1.6rem;
    font-weight: 600;
    line-height: 2.0rem;
}

.total-value {
    color: #020617;
    font-size: 1.6rem;
    font-weight: 600;
    line-height: 2.0rem;
}

.total-value-subtext {
    display: flex;
    justify-content: flex-end;
    margin-top: -0.8rem;
    margin-bottom: -1rem;
}
.total-value-subtext.mobile {
    margin-top: .4rem;
    margin-bottom: 0rem;
}

.total-value-subtext-label {
    color: #64748B;
    font-size: 1.4rem;
    font-weight: 400;
    line-height: 2rem;
}

/* Кнопки навигации */
.navigation-buttons {
    width: 100%;
    display: flex;
    justify-content: space-between;
    gap: .8rem;
    margin-top: 1rem;
}

.prev-step-btn,
.next-step-btn {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 8px 16px;
    gap: 8px;
    height: 40px;
    background: #18181B;
    border-radius: 6px;
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    color: #FAFAFA;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.prev-step-btn:hover,
.next-step-btn:hover {
    background-color: #2A2A2A;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .tabs {
        max-width: max-content;
        margin: 0 auto;
    }
    .main-content {
        flex-direction: column;
    }
    
    .right-column {
        width: 100%;
        max-width: 100%;
        height: auto;
        margin-top: 2rem;
    }
    
    .summary-box {
        position: relative;
        top: 0;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    .plans-grid {
        grid-template-columns: 1fr;
    }
    
    .progress-steps {
        flex-wrap: wrap;
        justify-content: center;
    }

    .option-card,
    .customize-section {
        padding: 1rem;
    }
}

/* План в конфигураторе */
.configuration__plan-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
    align-self: stretch;
    margin-bottom: 3.2rem;

    border-radius: .8rem;
    padding: 2.4rem;
    border: 1px solid #E2E8F0;
    background: #F8FAFC;

}

.selected-plan-info {
    width: 100%;

    display: flex;
    flex-direction: column;
    /* gap: 2rem; */
}

.plan-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* margin-bottom: 2rem; */
}

.plan-title {
    color: #020617;
    font-size: 2.4rem;
    font-weight: 600;
    line-height: 3.2rem;
}

.plan-price {
    color: #020617;
    font-size: 1.8rem;
    font-weight: 600;
    line-height: 100%;
}

/* .price-period {
    color: #64748B;
    font-size: 1.6rem;
    font-weight: 400;
    line-height: 2.4rem;
    margin-left: 5px;
} */

.plan-description-container {
    position: relative;
    display: flex;
    align-items: flex-end;
    gap: 1.2rem;
    align-self: stretch;
}

.plan-description-card,
.plan-description {
    overflow: hidden;
    color: #64748B;
    text-overflow: ellipsis;
    font-size: 1.4rem;
    font-weight: 400;
    line-height: 2rem;
    margin: 0;
}

.plan-description-card.opened {
    margin-top: 2rem;
}

.plan-description-container .plan-description {
    margin-top: 2rem;
}

.descripton_block {
    display: block;
}

.descripton_block h3 {
    color: #020617;
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 2rem;
    margin-bottom: 1.2rem;
}

.descripton_block p {
    color: #327DF6;
    font-size: 1.2rem;
    font-weight: 400;
    line-height: 2rem; /* 166.667% */

    margin-top: .8rem;
}

.descripton_block li {
    position: relative;
    padding-left: 2.8rem;

    color: #020617;
    font-size: 1.4rem;
    font-weight: 400;
    line-height: 2rem; /* 142.857% */
}

.descripton_block li:not(:last-child) {
    margin-bottom: .8rem;
}

.descripton_block li::before {
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M16.6668 5L7.50016 14.1667L3.3335 10' stroke='%23020617' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    position: absolute;
    left: 0;
}

.descripton_block li strong {
    font-weight: 700;
}

.descripton_block:not(:last-child) {
    margin-bottom: 2.4rem;
}

.plan-description.truncated {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 3em;
}

.read-more {
    flex: 0 0 auto;
    color: #FF4E32;
    font-size: 1.4rem;
    font-weight: 500;
    line-height: 2rem;
    cursor: pointer;
}

.read-more:hover {
    text-decoration: none;
}

/* Старая цена */
.plan-price-old,
.option-price-old {
    color: #64748B;
    font-size: 10px;
    font-weight: 500;
    line-height: 100%;
    text-decoration-line: line-through;
}

/* Стили для формы оформления заказа на третьем шаге */
.checkout-form-container {
    max-width: 90rem;
    margin: 0 auto;
    padding: 2.4rem;
    margin-top: 5rem;

    display: flex;
    gap: 2rem;
    justify-content: space-between;

    border-radius: 8px;
    border: 1px solid #E2E8F0;
    background: #F8FAFC;
}

.checkout-title {
    color: #020617;
    font-size: 3.2rem;
    font-weight: 700;
    line-height: 120%; 
    margin-bottom: 2rem;
}

.checkout-description {
    color: #475569;
    font-size: 1.6rem;
    font-weight: 400;
    line-height: 2.4rem;

    margin-bottom: 4rem;
}

.checkout__form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form__field label {
    color: #020617;
    font-size: 1.4rem;
    font-weight: 500;
    line-height: 100%; /* 14px */
    margin-bottom: .8rem;
}

.form__field input {
    width: 100%;
    border-radius: .6rem;
    border: 1px solid #E2E8F0;
    background: #FFF;

    display: flex;
    height: 4rem;
    padding: .8rem 1.2rem;
    align-items: center;
    gap: .4rem;
    align-self: stretch;
}

.form__field::placeholder {
    color: #64748B;
    overflow: hidden;
    text-overflow: ellipsis;

    font-size: 1.4rem;
    font-weight: 400;
    line-height: 2rem; 
}

.order-details .remove-icon {
    display: none;
}

.order-details .separator-line {
    margin: 2rem 0;
}

.order-details .summary-row {
    margin-bottom: -1rem;
}
.order-details .total-row {
    margin-top: -1rem;
}

.checkout-content {
    display: flex;
    gap: 48px;
    flex-wrap: wrap;
}

.checkout-left-column {
    flex: 1;
    min-width: 320px;
}

.checkout-right-column {
    width: 100%;
    max-width: 39rem;
    flex-shrink: 0;
}

.checkout-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 32px;
    color: #18181B;
}

.form-section {
    margin-bottom: 32px;
    padding: 24px;
    background: #FFFFFF;
    border: 1px solid #E4E4E7;
    border-radius: 8px;
}

.form-section-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 24px;
    color: #18181B;
}

.form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.form-group {
    flex: 1;
    min-width: 250px;
}

.form-group.full-width {
    width: 100%;
    flex-basis: 100%;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: #18181B;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
    width: 100%;
    padding: 12px;
    background: #FFFFFF;
    border: 1px solid #E4E4E7;
    border-radius: 6px;
    font-size: 14px;
    line-height: 20px;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #18181B;
    outline: none;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 8px;
}

.checkbox-group input[type="checkbox"] {
    margin-top: 3px;
}

.checkbox-group label {
    margin-bottom: 0;
    font-weight: 400;
}

.checkbox-group label a {
    color: #18181B;
    text-decoration: underline;
}

@media (max-width: 1024px) {
    .configuration__plan-block {
        padding: 0.8rem;
    }

    .plan-price,
    .plan-title {
        font-size: 1.6rem;
        font-weight: 600;
        line-height: 2.4rem;
        letter-spacing: -0.03rem;
    }
}

/* Стили для сводки заказа */
.order-summary {
    background: #FFFFFF;
    border: 1px solid #E4E4E7;
    border-radius: 8px;
    padding: 24px;
}

.order-summary-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 24px;
    color: #18181B;
}

.order-details {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

#checkout-addon-list {
    display: flex;
    flex-direction: column;
    gap: .4rem;
}

.billing-period {
    font-weight: 500;
    font-size: 1.4rem;
    color: #64748B;
    display: block;
    overflow: hidden;
    margin-top: .4rem;
    text-align: right;
}

/* Адаптивность для формы */
@media (max-width: 1024px) {
    .checkout-content {
        flex-direction: column;
    }
    
    .checkout-right-column {
        max-width: 100%;
    }
}


/* Стили для блока с ссылкой редактирования */
.edit-link-box {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    width: 90%;
    max-width: 600px;
    padding: 20px;
    background-color: #F8FAFC;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #3B82F6;
    opacity: 0;
    transition: transform 0.3s, opacity 0.3s;
    z-index: 9999;
}

.edit-link-box.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.edit-link-box p {
    margin: 0 0 10px 0;
    color: #374151;
    line-height: 1.6;
}

.edit-link {
    display: block;
    padding: 10px;
    background-color: #F1F5F9;
    border-radius: 4px;
    color: #2563EB;
    font-weight: 500;
    text-decoration: none;
    word-break: break-all;
    text-align: center;
}

.edit-link:hover {
    background-color: #E2E8F0;
    text-decoration: underline;
}

#addon-list {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;

    width: 100%;
    transition: all 0.3s ease;
}

/* Скрываем блок, если он пустой */
#addon-list:empty {
    display: none;
    margin: 0;
    padding: 0;
    height: 0;
    overflow: hidden;
}

/* Скрываем первый разделитель, если он первый дочерний элемент */
#addon-list > .separator-line:first-child {
    margin-top: 0;
}

.summary-addon-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    width: 100%;
}

.addon-name {
    flex: 1;
    margin-right: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0rem;
}

.addon-calculation-details,
.addon-title {
    font-weight: 400;
    font-size: 1.4rem;
    color: #64748B;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
}

.addon-quantity {
    font-weight: 400;
    font-size: 1.4rem;
    color: #64748B;
}

.addon-price-wrapper {
    display: flex;
    align-items: center;
    /* gap: 0.8rem; */
    white-space: nowrap;
}

.addon-price {
    font-size: 1.4rem;
    font-weight: 400;
    color: #020617;
    display: flex;
    align-items: center;
}

.remove-icon {
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M12 4L4 12M4 4L12 12' stroke='%2371717A' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
    margin-left: 0.8rem;
    display: inline-block;
}

.remove-icon:hover {
    opacity: 1;
}

.proceed-to-checkout-btn {
    display: block;
    width: 100%;
    margin-top: 20px;
    padding: 14px 20px;
    background-color: #2563EB;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s;
}

.proceed-to-checkout-btn:hover {
    background-color: #1D4ED8;
}

/* Стили для блока plan-include */
.plan-include-content {
    display: flex;
    flex-direction: column;
    gap: 3.2rem;
    align-self: stretch;
    padding: 1.2rem;

    border-radius: 1.2rem;
    border: 1px solid #E2E8F0;
    background: #FFF;
}

.plan-include-wrapper {
    color: #64748B;
    font-size: 1.4rem;
    font-weight: 400;
    line-height: 2rem;
}

.plan-include-wrapper h3 {
    color: #020617;

    font-size: 1.8rem;
    font-weight: 600;
    line-height: 2.8rem;
    margin-bottom: 1.2rem;
}

.plan-include-wrapper ul {
    margin: 0;
    padding-left: 20px;
    list-style: disc;
}

.plan-include-wrapper li {
    margin-bottom: 5px;
    list-style: disc;
}

.plan-include-wrapper p {
    margin-bottom: 10px;
}

.plan-include-wrapper strong {
    font-weight: 600;
    color: #020617;
}

.plan-include-wrapper a {
    color: #2563EB;
    text-decoration: none;
}

.plan-include-wrapper a:hover {
    text-decoration: underline;
}


/* Блок бронирования */
.booking-block {
    display: flex;
    padding: 1.2rem;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.2rem;
    align-self: stretch;

    border-radius: 1.2rem;
    border: 1px solid #CBD5E1;
    background: #F8FAFC;
}

.booking-title {
    color: #020617;
    text-align: center;
    max-width: 22rem;
    margin: 0 auto;
    
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 20px; /* 142.857% */
}

.booking-btn {
    display: flex;
    margin: 0 auto;
    max-width: 21rem;
    height: 40px;
    padding: .8rem 1.2rem;
    justify-content: center;
    align-items: center;
    gap: .8rem;
    border-radius: 4px;
    border: 1px solid #020617;
    background: #FFF;

    color: #0F172A;
    font-size: 1.4rem;
    font-weight: 500;
    line-height: 20px; /* 142.857% */
    cursor: pointer;
    transition: all 0.3s ease;
}

.booking-btn:hover {
    background: rgba(255, 255, 255, 0.00);
    text-decoration: none;
}

.booking-btn svg {
    flex-shrink: 0;
}

/* Стили для счетчика */
.counter-wrapper {
   margin-right: .8rem;
}

.counter-text {
    color: #64748B;
    font-size: 1.4rem;
    font-weight: 400;
    line-height: 2rem;
    margin-bottom: 0.8rem;
}

.counter-control {
    display: flex;
    align-items: center;
    max-width: 14.4rem;
    width: 100%;
    gap: .6rem;
    flex-wrap: nowrap;
}

.counter-btn {
    display: flex;
    width: 4rem;
    height: 4rem;
    padding: .8rem 1.6rem;
    justify-content: center;
    align-items: center;
    gap: .8rem;
    aspect-ratio: 1/1;
    cursor: pointer;

    border-radius: 4.179px;
    border: 0.647px solid #E2E8F0;
    opacity: 0.5;
    background: #FFF;

    transition: all 0.2s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.counter-btn:hover {
    background: #F1F5F9;
    border-color: #020617;
}

.counter-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.counter-input {
    display: flex;
    width: 6.1rem;
    height: 4rem;
    padding: .4rem 1rem;
    justify-content: center;
    align-items: center;
    gap: .4rem;
    aspect-ratio: 61/40;

    border-radius: 4px;
    border: 1px solid #E2E8F0;
    background: #FFF;
    text-align: center;
}

.counter-input:focus {
    outline: none;
    border-color: #020617;
}

.configurator__mobile-sidebar {
    display: none;

    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #FFF;
    padding: 1.2rem 1.6rem 3.2rem 1.6rem;

    border-radius: 1.2rem 1.2rem 0px 0px;
    border: 1px solid #E2E8F0;
}

.section-header-block {
    display: flex;
    justify-content: space-between;
    align-items: self-start;
}

/* Form CF7 */
.wpcf7-spinner {
    display: none !important;
}

[data-form-submitted=true] .checkout-title, 
[data-form-submitted=true] .checkout-description, 
[data-form-submitted=true] .checkout-right-column {
    display: none;
}

[data-form-submitted=true] .checkout-content {
    width: 100%;
}

.wpcf7-not-valid-tip {
    display: none !important;
    /* font-size: 1.2rem !important; */
}

.wpcf7-not-valid {
    border-color: #DC2626 !important;
}


@media (min-width: 1024px) {
    .section-header__mob-btn,
    .plan-block__mobile {
        display: none;
    }

    .plan-chevron {
        display: none !important;
    }
      
    .plan-description-container {
        max-height: none !important;
        opacity: 1 !important;
        overflow: visible !important;
        pointer-events: auto !important;
        transition: none !important;
    }
      
    .plan-description.truncated {
        max-height: 3em;
        overflow: hidden;
    }
}

@media (max-width: 1023px) {
    .plan-block__desktop {
        display: none;
    }

    .plan-description-card {
      max-height: 0;
      opacity: 0;
      overflow: hidden;
      transition: all 0.3s ease;
    }
    
    .plan-description-card.opened {
      max-height: 500px;
      opacity: 1;
    }
    
    .plan-chevron {
      /* display: inline-flex; */
      margin-top: -3px;
      align-items: center;
      background: none;
      border: none;
      padding: 0;
      cursor: pointer;
      transform: rotate(180deg);
    }
    
    .plan-chevron svg {
      transition: transform 0.3s ease;
    }


    /* Стили для мобильной версии секций конфигуратора */

    .customize-section .section-header {
        margin-bottom: 0;
    }
    .customize-section.active .section-header {
        margin-bottom: 2rem;
    }
    .section-title {
        font-size: 1.8rem;
    }

    .customize-section .section-description,
    .customize-section .option-card {
        display: none !important;
    }

    /* .customize-section:first-child .section-description,
    .customize-section:first-child .option-card {
        display: block !important;
    } */

    .customize-section:first-child .section-header__mob-btn svg {
        transform: rotate(180deg);
    }

    .customize-section.active .section-description,
    .customize-section.active .option-card {
        display: block !important;
    }

    .customize-section.active .section-header__mob-btn svg {
        transform: rotate(0deg);
    }

    .section-header__mob-btn {
        cursor: pointer;
        transition: transform 0.3s ease;
        margin-top: 0.8rem;
    }

    .section-header__mob-btn svg {
        transition: transform 0.3s ease;
    }
  }
  

@media (max-width: 768px) {
    .mobile_sidebar {
        display: block;
    }
    .checkout-form-container .checkout-right-column {
        display: none;
    }
    .option-bottom {
        flex-direction: column;
        align-items: flex-end;
        gap: 1rem;
    }
    .option-name {
        max-width: 19rem;
    }
    .checkout-form-container,
    .option-item {
        padding: 1.6rem 1.2rem;
    }
    .option-item:last-child {
        margin-bottom: 0;
    }
    .option-description {
        width: 100%;
    }
    .option-price {
        white-space: nowrap;
    }
    .navigation-buttons button,
    .navigation-buttons input {
        width: 50%;
    }
    .navigation-buttons .back-btn {
        height: 4.4rem;
    }
}

/* Стили для сообщений CF7 */
.wpcf7-response-output {
    margin: 20px 0;
    padding: 15px;
    border-radius: 4px;
    display: none;
}

.wpcf7-response-output.wpcf7-mail-sent-ok {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.wpcf7-response-output.wpcf7-validation-errors {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.submit-order-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .form-fields .form-row {
        flex-direction: column;
        gap: 10px;
    }
}

/* VAT Switch Styles */
.vat-switch-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  gap: 1rem;
}
.vat-switch-input {
  display: none;
}
.vat-switch-slider {
  position: relative;
  width: 3.6rem;
  height: 2rem;
  background: #E5E7EB;
  border-radius: 1rem;
  transition: background 0.3s;
  box-sizing: border-box;
}
.vat-switch-slider:before {
  content: '';
  position: absolute;
  left: 0.2rem;
  top: 0.2rem;
  width: 1.6rem;
  height: 1.6rem;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  transition: transform 0.3s;
}
.vat-switch-input:checked + .vat-switch-slider {
  background: #2563EB;
}
.vat-switch-input:checked + .vat-switch-slider:before {
  transform: translateX(1.6rem);
}
.vat-switch-text {
  font-size: 1.6rem;
  color: #18181B;
  font-weight: 500;
}

.vat-checkbox-switch-wrapper.active {
    background: #F0F6FF;
    border-radius: 1.2rem;
    transition: background 0.2s;
}

.option-card.vat.vat-hidden {
    display: none !important;
}

.option-card.vat_checkbox .option-price {
    display: none !important;
}
.option-card.vat_checkbox .option-item {
    pointer-events: none;
}
.option-card.vat_checkbox .option-item .vat-checkbox-switch-wrapper {
    pointer-events: all;
}

/* Styles for booking popup */
.booking-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    z-index: 999999;
    display: none;
    justify-content: center;
    align-items: center;
}

.booking-popup iframe {
    width: 90%;
    height: 90%;
    max-width: 1280px;
    max-height: 800px;
    border: none;
    border-radius: 12px;
    background: white;
}

/* Loading Animation Styles */
.configurator-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.configurator-loading-overlay.show {
    opacity: 1;
    visibility: visible;
}

.configurator-loading-spinner {
    width: 60px;
    height: 60px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid #2563EB;
    border-radius: 50%;
    animation: configurator-spin 1s linear infinite;
}

.configurator-loading-text {
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 500;
    margin-top: 20px;
    text-align: center;
    opacity: 0.9;
}

@keyframes configurator-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Pricing Page Specific Loading Animation */
.pricing-page-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.pricing-page-loading-overlay.show {
    opacity: 1;
    visibility: visible;
}

.pricing-page-loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

.pricing-page-loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid #E5E7EB;
    border-top: 3px solid #2563EB;
    border-radius: 50%;
    animation: pricing-spin 1.2s linear infinite;
}

.pricing-page-loading-text {
    color: #374151;
    font-size: 18px;
    font-weight: 600;
    margin-top: 24px;
    text-align: center;
    max-width: 300px;
    line-height: 1.4;
}

.pricing-page-loading-subtext {
    color: #6B7280;
    font-size: 14px;
    font-weight: 400;
    margin-top: 8px;
    text-align: center;
    max-width: 300px;
    line-height: 1.3;
}

@keyframes pricing-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}