.slopes-calc {
    --sc-border: var(--bs-border-color, #dee2e6);
    --sc-light: var(--bs-light, #f8f9fa);
    --sc-primary: var(--bs-primary, #0d6efd);
    --sc-radius: var(--bs-border-radius, .375rem);
    color: var(--bs-body-color, #212529);
}

.slopes-calc [hidden] {
    display: none !important;
}

.slopes-calc .sc-panel,
.slopes-calc .sc-result {
    padding: 1.5rem;
    border: 0;
    border-radius: var(--sc-radius);
    background: var(--bs-body-bg, #fff);
    box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .075);
}

.slopes-calc .sc-kicker {
    display: block;
    margin-bottom: .5rem;
    color: var(--sc-primary);
    font-size: .875rem;
    font-weight: 600;
}

.slopes-calc .sc-group {
    min-width: 0;
    padding: 1.25rem;
    margin: 0 0 1.25rem;
    border: 1px solid var(--sc-border);
    border-radius: var(--sc-radius);
    background: var(--sc-light);
}

.slopes-calc .sc-group-heading {
    float: none;
    width: auto;
    max-width: 100%;
    padding: 0 .5rem;
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.slopes-calc label.form-label {
    display: block;
    width: 100%;
    font-size: .875rem;
    font-weight: 600;
}

.slopes-calc .form-text {
    line-height: 1.6;
    font-weight: 400;
}

.slopes-calc .sc-group-result {
    padding: 1rem;
    border: 1px solid var(--sc-border);
    border-radius: var(--sc-radius);
    background: var(--bs-body-bg, #fff);
}

.slopes-calc .sc-result {
    position: sticky;
    top: 1.5rem;
    border-top: 3px solid var(--sc-primary);
}

.slopes-calc .sc-result-label {
    color: var(--bs-secondary-color, #6c757d);
    font-size: .875rem;
}

.slopes-calc .sc-result-number {
    margin: .5rem 0 1.25rem;
    color: var(--sc-primary);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.slopes-calc .sc-result-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    padding: .75rem 0;
    border-bottom: 1px solid var(--sc-border);
    font-size: .875rem;
}

.slopes-calc .sc-result-row > span {
    min-width: 0;
}

.slopes-calc .sc-result-row strong {
    flex-shrink: 0;
    white-space: nowrap;
    font-weight: 600;
}

.slopes-calc .sc-reserve {
    max-width: 420px;
}

.slopes-calc .table th {
    font-weight: 600;
}

.slopes-calc .table td,
.slopes-calc .table th {
    padding: .75rem;
}

.slopes-calc .table td:first-child {
    overflow-wrap: anywhere;
}

.slopes-calc .table td:not(:first-child) {
    white-space: nowrap;
}

@media (max-width: 991.98px) {
    .slopes-calc .sc-result {
        position: static;
    }
}

@media (max-width: 575.98px) {
    .slopes-calc .sc-panel,
    .slopes-calc .sc-result {
        padding: 1rem;
    }

    .slopes-calc .sc-group {
        padding: 1rem;
    }

    .slopes-calc .sc-result-row {
        flex-wrap: wrap;
        gap: .25rem;
    }
}