.weather-subscriptions {
    margin: 2rem 0;
    padding: 1.5rem 0;
    border-top: 1px solid #dce5ef;
    border-bottom: 1px solid #dce5ef;
    color: #172033;
}

.weather-subscriptions__heading {
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
}

.weather-subscriptions__heading h2 {
    margin: 0 0 0.35rem;
    color: #172033;
    text-align: left;
    font-size: 1.35rem;
    line-height: 1.3;
}

.weather-subscriptions__heading p {
    max-width: 52rem;
    margin: 0;
    color: #66758a;
    font-size: 1rem;
    line-height: 1.55;
}

.weather-subscriptions__icon {
    display: grid;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 0.9rem;
    background: #e8f3ff;
    color: #1670cc;
    font-size: 1.2rem;
}

.weather-subscriptions__promo-link {
    display: inline-flex;
    margin-top: 1.1rem;
    font-size: 0.95rem;
    text-decoration: none;
}

.weather-subscriptions__notice {
    margin: 1.1rem 0 0;
    padding: 0.9rem 1rem;
    border-radius: 1rem;
    background: #fff3d6;
    color: #684b05;
    font-size: 1rem;
    line-height: 1.5;
}

.weather-subscriptions__notice a {
    margin-left: 0.25rem;
    color: #795500;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.weather-subscriptions__form {
    margin-top: 1.35rem;
}

.weather-subscriptions__fieldset,
.weather-subscriptions__option-group {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.weather-subscriptions__fieldset:disabled {
    opacity: 0.58;
}

.weather-subscriptions__fieldset > legend {
    margin: 0 0 0.55rem;
    color: #172033;
    font-size: 1rem;
    font-weight: 700;
}

.weather-subscriptions__resorts {
    border-top: 1px solid #dce5ef;
}

.weather-subscriptions__resort {
    padding: 1.15rem 0;
    border-bottom: 1px solid #dce5ef;
}

.weather-subscriptions__resort-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.weather-subscriptions__resort-copy {
    min-width: 0;
}

.weather-subscriptions__resort-copy h3 {
    margin: 0;
    color: #172033;
    text-align: left;
    font-size: 1.1rem;
    line-height: 1.4;
}

.weather-subscriptions__resort-copy p {
    margin: 0.25rem 0 0;
    color: #66758a;
    font-size: 0.9rem;
    line-height: 1.45;
}

.weather-subscriptions__toggle {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 0.5rem;
    color: #53657a;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
}

.weather-subscriptions__toggle input[type="checkbox"] {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.weather-subscriptions__toggle-control {
    position: relative;
    display: inline-block;
    flex: 0 0 40px;
    width: 40px;
    height: 23px;
    border-radius: 999px;
    background: #aebdcb;
    transition: background 160ms ease;
}

.weather-subscriptions__toggle-control::before {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 4px rgba(23, 32, 51, 0.25);
    transition: transform 160ms ease;
}

.weather-subscriptions__toggle input:checked + .weather-subscriptions__toggle-control {
    background: #1670cc;
}

.weather-subscriptions__toggle input:checked + .weather-subscriptions__toggle-control::before {
    transform: translateX(17px);
}

.weather-subscriptions__toggle input:focus-visible + .weather-subscriptions__toggle-control {
    outline: 3px solid rgba(22, 112, 204, 0.28);
    outline-offset: 2px;
}

.weather-subscriptions__settings {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    margin-top: 1rem;
    padding: 1rem 0 0;
    border-top: 1px solid #edf1f6;
}

.weather-subscriptions__settings[hidden],
.weather-subscriptions__hour[hidden],
.weather-subscriptions__dates[hidden],
.weather-subscriptions__instant-hours[hidden] {
    display: none;
}

.weather-subscriptions__option-group {
    padding: 0 1.1rem;
    border-left: 1px solid #edf1f6;
}

.weather-subscriptions__option-group:first-child {
    padding-left: 0;
    border-left: 0;
}

.weather-subscriptions__option-group:last-child {
    padding-right: 0;
}

.weather-subscriptions__option-group > legend {
    margin-bottom: 0.65rem;
    color: #172033;
    font-size: 0.95rem;
    font-weight: 700;
}

.weather-subscriptions__choice {
    display: flex;
    gap: 0.55rem;
    align-items: flex-start;
    margin-top: 0.65rem;
    color: #172033;
    font-size: 0.95rem;
    line-height: 1.4;
    cursor: pointer;
}

.weather-subscriptions__choice:first-of-type {
    margin-top: 0;
}

.weather-subscriptions__choice input {
    flex: 0 0 auto;
    margin: 0.2rem 0 0;
    accent-color: #1670cc;
}

.weather-subscriptions__choice > span {
    display: grid;
    gap: 0.15rem;
}

.weather-subscriptions__choice strong {
    font-size: 0.95rem;
    font-weight: 700;
}

.weather-subscriptions__choice small,
.weather-subscriptions__hint {
    color: #66758a;
    font-size: 0.9rem;
    line-height: 1.45;
}

.weather-subscriptions__instant-hours {
    margin: 0.55rem 0 0 1.55rem;
}

.weather-subscriptions__hour {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.3rem 0.55rem;
    align-items: center;
    margin: 0.7rem 0 0 1.55rem;
    color: #53657a;
    font-size: 0.95rem;
}

.weather-subscriptions__hour select {
    min-width: 6.4rem;
    padding: 0.55rem 1.8rem 0.55rem 0.65rem;
    border: 1px solid #c6d2df;
    border-radius: 0.75rem;
    background-color: #fff;
    color: #172033;
    font: inherit;
    font-size: 1rem;
}

.weather-subscriptions__hour small {
    grid-column: 1 / -1;
    color: #66758a;
    font-size: 0.9rem;
}

.weather-subscriptions__dates {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
    margin-top: 0.8rem;
}

.weather-subscriptions__dates label {
    display: grid;
    gap: 0.3rem;
    color: #53657a;
    font-size: 0.95rem;
}

.weather-subscriptions__dates input {
    width: 100%;
    min-width: 0;
    padding: 0.6rem 0.65rem;
    border: 1px solid #c6d2df;
    border-radius: 0.75rem;
    background: #fff;
    color: #172033;
    font: inherit;
    font-size: 1rem;
}

.weather-subscriptions__submit {
    min-width: 14rem;
    margin-top: 1.15rem;
    font-size: 0.95rem;
}

.weather-subscriptions__status {
    min-height: 1.4em;
    margin: 0.75rem 0 0;
    color: #66758a;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.4;
}

.weather-subscriptions__status.is-success {
    color: #19733a;
}

.weather-subscriptions__status.is-error {
    color: #b3261e;
}

.weather-subscriptions__empty {
    margin: 0;
    color: #66758a;
    font-size: 1rem;
}

body.dark .weather-subscriptions {
    border-color: #3b4654;
    color: #edf4fb;
}

body.dark .weather-subscriptions__heading h2,
body.dark .weather-subscriptions__fieldset > legend,
body.dark .weather-subscriptions__resort-copy h3,
body.dark .weather-subscriptions__option-group > legend,
body.dark .weather-subscriptions__choice {
    color: #edf4fb;
}

body.dark .weather-subscriptions__heading p,
body.dark .weather-subscriptions__resort-copy p,
body.dark .weather-subscriptions__toggle,
body.dark .weather-subscriptions__choice small,
body.dark .weather-subscriptions__hint,
body.dark .weather-subscriptions__hour,
body.dark .weather-subscriptions__hour small,
body.dark .weather-subscriptions__dates label,
body.dark .weather-subscriptions__empty {
    color: #b6c3d2;
}

body.dark .weather-subscriptions__icon {
    background: #293747;
    color: #83c0ff;
}

body.dark .weather-subscriptions__resorts,
body.dark .weather-subscriptions__resort {
    border-color: #3b4654;
}

body.dark .weather-subscriptions__settings,
body.dark .weather-subscriptions__option-group {
    border-color: #35404d;
}

body.dark .weather-subscriptions__hour select,
body.dark .weather-subscriptions__dates input {
    border-color: #526071;
    background: #29323d;
    color: #edf4fb;
}

body.dark .weather-subscriptions__notice {
    background: #4a3d20;
    color: #ffe5a3;
}

body.dark .weather-subscriptions__notice a {
    color: #ffd568;
}

body.dark .weather-subscriptions__status.is-success {
    color: #7ed99d;
}

body.dark .weather-subscriptions__status.is-error {
    color: #ff9b95;
}

@media (max-width: 860px) {
    .weather-subscriptions__settings {
        grid-template-columns: 1fr;
    }

    .weather-subscriptions__option-group,
    .weather-subscriptions__option-group:first-child,
    .weather-subscriptions__option-group:last-child {
        margin-top: 1rem;
        padding: 1rem 0 0;
        border-top: 1px solid #edf1f6;
        border-left: 0;
    }

    .weather-subscriptions__option-group:first-child {
        margin-top: 0;
        padding-top: 0;
        border-top: 0;
    }

    body.dark .weather-subscriptions__option-group {
        border-color: #35404d;
    }
}

@media (max-width: 560px) {
    .weather-subscriptions {
        padding: 1.25rem 0;
    }

    .weather-subscriptions__heading {
        gap: 0.7rem;
    }

    .weather-subscriptions__icon {
        flex-basis: 40px;
        width: 40px;
        height: 40px;
    }

    .weather-subscriptions__resort-header {
        flex-direction: column;
    }

    .weather-subscriptions__toggle {
        width: 100%;
    }

    .weather-subscriptions__dates {
        grid-template-columns: 1fr;
    }

    .weather-subscriptions__submit {
        width: 100%;
        min-width: 0;
    }
}
