.escc-calculator {
    padding: 24px;
    border: 1px solid #dbe3ea;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.escc-group + .escc-group {
    margin-top: 20px;
}

.escc-grid-3 {
    display: grid;
    grid-template-columns: minmax(280px, 1.35fr) minmax(240px, 1fr) auto;
    gap: 24px;
    align-items: start;
    margin: 40px 0px;
}

.escc-grid-3 .escc-group {
    margin-top: 0 !important;
}

.escc-grid-3 .escc-group-web {
    justify-self: end;
    width: max-content;
    max-width: 100%;
}

.escc-group-title {
    display: block;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 10px;
}


.escc-service-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.escc-service-main {
    flex: 1 1 auto;
    min-width: 0;
}

.escc-options-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.escc-radio-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    cursor: pointer;
}

.escc-radio-label input[type="radio"] {
    accent-color: #024F94;
}

.escc-select,
.escc-input {
    width: 100%;
    min-height: 48px;
    border: 1px solid #cfd8e3 !important;
    border-radius: 10px !important;
    padding: 10px 14px;
    font-size: 15px;
    background: #fff;
}

input.escc-input.escc-connections {
    border-color: #cfd8e3;
    border-radius: 10px;
}
.escc-total-box.escc-total-box-mobile-bottom {
    margin-top: 40px;
}

.escc-select:focus,
.escc-input:focus {
    outline: none;
    border-color: #024F94;
    box-shadow: 0 0 0 3px rgba(2, 79, 148, 0.12);
}

.escc-desc {
    margin-top: 8px;
    font-size: 13px;
    color: #6b7280;
    line-height: 1.5;
}

.escc-switch {
    position: relative;
    display: inline-block;
    width: 120px;
    height: 48px;
    cursor: pointer;
}

.escc-switch input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.escc-switch-slider {
    position: absolute;
    inset: 0;
    background: #d7dce2;
    border-radius: 999px;
    transition: background-color 0.25s ease, box-shadow 0.25s ease;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.08);
}

.escc-switch-slider::before {
    content: "";
    position: absolute;
    width: 42px;
    height: 42px;
    left: 3px;
    top: 3px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
    transition: transform 0.25s ease;
}

.escc-switch input:checked + .escc-switch-slider {
    background: #024F94;
}

.escc-switch input:checked + .escc-switch-slider::before {
    transform: translateX(72px);
}

.escc-reports-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 10px;
}

.escc-reports-header .escc-group-title {
    margin-bottom: 0;
}

.escc-total-box {
    margin-top: 0px;
    padding: 0px 10px;
    border: 2px solid #0f766e;
    border-radius: 14px;
    background: #0f766e;
    max-width: 180px;
    margin-left: auto;
    width: 100%;
    flex: 0 0 180px;
    align-self: flex-start;
}

.escc-total-label {
    font-size: 12px;
    color: #ffffff;
    margin-bottom: 0px;
    opacity: 0.9;
}

.escc-total-value {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
    color: #ffffff;
}

@media (max-width: 1024px) {
    .escc-grid-3 {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .escc-grid-3 .escc-group-web {
        justify-self: start;
        width: auto;
    }

    .escc-service-row {
        flex-direction: column;
        align-items: stretch;
    }

    .escc-total-box {
        max-width: 100%;
        width: 100%;
        flex-basis: auto;
        margin-left: 0;
    }
}

@media (max-width: 767px) {
    .escc-calculator {
        padding: 18px;
    }

    
.escc-service-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.escc-service-main {
    flex: 1 1 auto;
    min-width: 0;
}

.escc-options-inline {
        flex-direction: column;
        gap: 10px;
    }

    .escc-total-value {
        font-size: 24px;
    }

    .escc-switch {
        width: 100px;
        height: 50px;
    }

    .escc-switch-slider::before {
        width: 44px;
        height: 44px;
    }

    .escc-switch input:checked + .escc-switch-slider::before {
        transform: translateX(50px);
    }
}
