.wp-calc-wrapper {
    max-width: 480px;
    width: 100%;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 28px;
    padding: 1.8rem 1.6rem 1.4rem;
    box-shadow: 0 12px 32px rgba(0, 20, 30, 0.08), 0 4px 8px rgba(0, 0, 0, 0.03);
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    color: #0b2b3b;
    box-sizing: border-box;
}

.wp-calc-wrapper * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.wp-calc-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 600;
    color: #0b2b3b;
    margin-bottom: 0.2rem;
}

.wp-calc-header span:first-child {
    font-size: 1.7rem;
}

.wp-calc-sub {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #2f566b;
    border-bottom: 2px solid #e9edf2;
    padding-bottom: 0.6rem;
    margin-bottom: 1.6rem;
    flex-wrap: wrap;
    gap: 0.3rem;
}

.wp-calc-sub .badge {
    background: #eef3f7;
    padding: 0.15rem 0.9rem;
    border-radius: 30px;
    font-weight: 500;
    color: #135f7a;
    font-size: 0.8rem;
    letter-spacing: 0.2px;
}

/* Слайдер */
.wp-slider-block {
    margin: 1.4rem 0 1rem;
}

.wp-slider-label {
    display: flex;
    justify-content: space-between;
    font-weight: 500;
    font-size: 1rem;
    color: #1b3f4f;
    margin-bottom: 0.4rem;
}

.wp-slider-label .wp-area-value {
    background: #d5e2eb;
    padding: 0.1rem 1.1rem;
    border-radius: 40px;
    font-size: 1.05rem;
    font-weight: 600;
    color: #003049;
    min-width: 70px;
    text-align: center;
}

.wp-calc-wrapper input[type="range"] {
    width: 100%;
    height: 7px;
    -webkit-appearance: none;
    appearance: none;
    background: linear-gradient(90deg, #2c7da0 0%, #61b3d6 100%);
    border-radius: 12px;
    outline: none;
    transition: background 0.2s;
    margin: 6px 0 2px;
}

.wp-calc-wrapper input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #0d3b4f;
    cursor: pointer;
    box-shadow: 0 3px 8px rgba(0, 30, 40, 0.2);
    border: 3px solid white;
    transition: 0.1s;
}

.wp-calc-wrapper input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.06);
    background: #1a5a74;
}

.wp-calc-wrapper input[type="range"]::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #0d3b4f;
    cursor: pointer;
    border: 3px solid white;
    box-shadow: 0 3px 8px rgba(0, 30, 40, 0.2);
}

.wp-range-limits {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #3d6277;
    font-weight: 500;
    padding: 0 3px;
    margin-top: 2px;
}

/* Блок с ценами */
.wp-price-breakdown {
    background: #f2f7fb;
    border-radius: 22px;
    padding: 1.2rem 1.2rem 0.9rem;
    margin: 1.4rem 0 0.8rem;
}

.wp-total-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 1.5rem;
    font-weight: 700;
    color: #003049;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    gap: 0.2rem;
}

.wp-total-row .wp-total-price {
    background: #ffffff;
    padding: 0.1rem 1.2rem;
    border-radius: 60px;
    font-size: 1.8rem;
    color: #075a78;
    box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.02);
}

.wp-detail-grid {
    display: flex;
    justify-content: space-between;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-top: 0.6rem;
}

.wp-detail-item {
    background: white;
    border-radius: 40px;
    padding: 0.3rem 1.1rem 0.3rem 1rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 4px;
    border: 1px solid #e1eaf1;
    flex: 1 1 auto;
    min-width: 110px;
}

.wp-detail-item .wp-label {
    color: #3a5f72;
    font-weight: 450;
}

.wp-detail-item .wp-value {
    font-weight: 600;
    color: #003049;
    margin-left: auto;
    padding-left: 6px;
}

.wp-detail-item .wp-value.work-clr {
    color: #1f6d4c;
}

.wp-detail-item .wp-value.material-clr {
    color: #9b6b2b;
}

.wp-footnote {
    font-size: 0.75rem;
    color: #4b6e82;
    text-align: center;
    margin-top: 1.2rem;
    border-top: 1px dashed #cddce7;
    padding-top: 1rem;
    letter-spacing: 0.2px;
}

.wp-footnote i {
    font-style: normal;
    background: #e3ecf3;
    padding: 0.05rem 0.6rem;
    border-radius: 30px;
}

/* Адаптив */
@media (max-width: 460px) {
    .wp-calc-wrapper {
        padding: 1.2rem 0.9rem;
    }

    .wp-total-row {
        font-size: 1.2rem;
    }

    .wp-total-row .wp-total-price {
        font-size: 1.4rem;
        padding: 0.1rem 0.8rem;
    }

    .wp-detail-grid {
        flex-direction: column;
        gap: 0.4rem;
    }

    .wp-detail-item {
        padding: 0.2rem 0.9rem;
    }

    .wp-calc-header {
        font-size: 1.2rem;
    }
}

/* 

1. Add your custom Css styles below
2. Place the this code in your template: 

 <link href="css/custom.css" rel="stylesheet">

*/


@media (max-width: 960px) {
    .mobile-table {
            font-size: calc(100vw/40);
        }
    .vertical-text {
        writing-mode: sideways-lr;
    }

    .table td,
    .table th {
        
        padding: 0.1rem;
        border-top: 0.5px solid #dee2e6
    }

    .table {
        margin-left: -20px !important;
        /* margin-right: 5px !important; */
        padding-right: 0 !important;
        
    }
}

.em-calc-wrapper {
    max-width: 480px;
    width: 100%;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 28px;
    padding: 1.8rem 1.6rem 1.4rem;
    box-shadow: 0 12px 32px rgba(0, 20, 30, 0.08), 0 4px 8px rgba(0, 0, 0, 0.03);
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    color: #0b2b3b;
    box-sizing: border-box;
}

.em-calc-wrapper * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.em-calc-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 600;
    color: #0b2b3b;
    margin-bottom: 0.2rem;
}

.em-calc-header span:first-child {
    font-size: 1.7rem;
}

.em-calc-sub {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #2f566b;
    border-bottom: 2px solid #e9edf2;
    padding-bottom: 0.6rem;
    margin-bottom: 1.6rem;
    flex-wrap: wrap;
    gap: 0.3rem;
}

.em-calc-sub .badge {
    background: #eef3f7;
    padding: 0.15rem 0.9rem;
    border-radius: 30px;
    font-weight: 500;
    color: #135f7a;
    font-size: 0.8rem;
    letter-spacing: 0.2px;
}

.em-calc-sub .badge.ot {
    background: #fef3e0;
    color: #a8691a;
    font-weight: 600;
}

/* Слайдер */
.em-slider-block {
    margin: 1.4rem 0 1rem;
}

.em-slider-label {
    display: flex;
    justify-content: space-between;
    font-weight: 500;
    font-size: 1rem;
    color: #1b3f4f;
    margin-bottom: 0.4rem;
}

.em-slider-label .em-area-value {
    background: #d5e2eb;
    padding: 0.1rem 1.1rem;
    border-radius: 40px;
    font-size: 1.05rem;
    font-weight: 600;
    color: #003049;
    min-width: 70px;
    text-align: center;
}

.em-calc-wrapper input[type="range"] {
    width: 100%;
    height: 7px;
    -webkit-appearance: none;
    appearance: none;
    background: linear-gradient(90deg, #c27a2c 0%, #e8a84c 100%);
    border-radius: 12px;
    outline: none;
    transition: background 0.2s;
    margin: 6px 0 2px;
}

.em-calc-wrapper input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #8b4e0e;
    cursor: pointer;
    box-shadow: 0 3px 8px rgba(0, 30, 40, 0.2);
    border: 3px solid white;
    transition: 0.1s;
}

.em-calc-wrapper input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.06);
    background: #a86214;
}

.em-calc-wrapper input[type="range"]::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #8b4e0e;
    cursor: pointer;
    border: 3px solid white;
    box-shadow: 0 3px 8px rgba(0, 30, 40, 0.2);
}

.em-range-limits {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #3d6277;
    font-weight: 500;
    padding: 0 3px;
    margin-top: 2px;
}

/* Блок с ценами */
.em-price-breakdown {
    background: #f9f5ee;
    border-radius: 22px;
    padding: 1.2rem 1.2rem 0.9rem;
    margin: 1.4rem 0 0.8rem;
}

.em-total-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 1.5rem;
    font-weight: 700;
    color: #003049;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    gap: 0.2rem;
}

.em-total-row .em-total-price {
    background: #ffffff;
    padding: 0.1rem 1.2rem;
    border-radius: 60px;
    font-size: 1.8rem;
    color: #8b4e0e;
    box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.02);
}

.em-detail-grid {
    display: flex;
    justify-content: space-between;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-top: 0.6rem;
}

.em-detail-item {
    background: white;
    border-radius: 40px;
    padding: 0.3rem 1.1rem 0.3rem 1rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 4px;
    border: 1px solid #e8ddd0;
    flex: 1 1 auto;
    min-width: 110px;
}

.em-detail-item .em-label {
    color: #3a5f72;
    font-weight: 450;
}

.em-detail-item .em-value {
    font-weight: 600;
    color: #003049;
    margin-left: auto;
    padding-left: 6px;
}

.em-detail-item .em-value.work-clr {
    color: #1f6d4c;
}

.em-detail-item .em-value.material-clr {
    color: #9b6b2b;
}

.em-footnote {
    font-size: 0.75rem;
    color: #4b6e82;
    text-align: center;
    margin-top: 1.2rem;
    border-top: 1px dashed #cddce7;
    padding-top: 1rem;
    letter-spacing: 0.2px;
}

.em-footnote i {
    font-style: normal;
    background: #e3ecf3;
    padding: 0.05rem 0.6rem;
    border-radius: 30px;
}

.em-footnote .ot-tag {
    background: #fef3e0;
    color: #8b4e0e;
    font-weight: 600;
    padding: 0.05rem 0.6rem;
    border-radius: 30px;
}

/* Адаптив */
@media (max-width: 460px) {
    .em-calc-wrapper {
        padding: 1.2rem 0.9rem;
    }

    .em-total-row {
        font-size: 1.2rem;
    }

    .em-total-row .em-total-price {
        font-size: 1.4rem;
        padding: 0.1rem 0.8rem;
    }

    .em-detail-grid {
        flex-direction: column;
        gap: 0.4rem;
    }

    .em-detail-item {
        padding: 0.2rem 0.9rem;
    }

    .em-calc-header {
        font-size: 1.2rem;
    }
}