.weather-subscriptions {
    margin: 1.5rem 0;
    padding: 1.25rem;
    border: 1px solid #d8e4f2;
    border-radius: 18px;
    background: linear-gradient(145deg, #f7fbff, #edf6ff);
    color: #17324d;
    box-shadow: 0 12px 30px rgba(31, 92, 153, 0.08);
}

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

.weather-subscriptions__heading h2 {
    margin: 0 0 0.3rem;
    text-align: left;
    font-size: 1.2rem;
    line-height: 1.25;
}

.weather-subscriptions__heading p {
    margin: 0;
    color: #526b84;
    line-height: 1.45;
}

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

.weather-subscriptions__notice {
    margin: 1rem 0 0;
    padding: 0.75rem 0.85rem;
    border-radius: 10px;
    background: #fff4df;
    color: #805313;
    line-height: 1.4;
}

.weather-subscriptions__notice a {
    color: inherit;
    font-weight: 700;
    text-decoration: underline;
}

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

.weather-subscriptions__promo-link {
    display: inline-flex;
    margin-top: 1rem;
    text-decoration: none;
}

.weather-subscriptions__form fieldset {
    margin: 0;
    padding: 0;
    border: 0;
}

.weather-subscriptions__form fieldset:disabled {
    opacity: 0.58;
}

.weather-subscriptions__form legend {
    margin-bottom: 0.6rem;
    font-weight: 800;
}

.weather-subscriptions__delivery {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.3rem 0.75rem;
    align-items: center;
    margin-bottom: 0.8rem;
    padding: 0.85rem;
    border: 1px solid #cddbea;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.72);
}

.weather-subscriptions__delivery label {
    font-weight: 700;
}

.weather-subscriptions__delivery select {
    grid-row: span 2;
    min-width: 7rem;
    padding: 0.6rem 2rem 0.6rem 0.7rem;
    border: 1px solid #bdcde0;
    border-radius: 9px;
    background-color: #fff;
    color: #17324d;
    font: inherit;
    font-weight: 700;
}

.weather-subscriptions__delivery span {
    color: #526b84;
    font-size: 0.82rem;
}

.weather-subscriptions__resorts {
    display: grid;
    gap: 0.8rem;
}

.weather-subscriptions__resort-card {
    padding: 1rem;
    border: 1px solid #cddbea;
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.72);
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.weather-subscriptions__resort-card.is-enabled {
    border-color: #74afe7;
    background: #fff;
    box-shadow: 0 8px 20px rgba(31, 92, 153, 0.08);
}

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

.weather-subscriptions__resort-header h3 {
    margin: 0;
    text-align: left;
    font-size: 1.05rem;
    line-height: 1.3;
}

.weather-subscriptions__toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: #526b84;
    font-size: 0.88rem;
    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 38px;
    width: 38px;
    height: 22px;
    border-radius: 999px;
    background: #aebdcb;
    transition: background 160ms ease;
}

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

.weather-subscriptions__toggle input[type="checkbox"]:checked + .weather-subscriptions__toggle-control {
    background: #1670cc;
}

.weather-subscriptions__toggle input[type="checkbox"]:checked + .weather-subscriptions__toggle-control::before {
    transform: translateX(16px);
}

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

.weather-subscriptions__resort-settings {
    margin-top: 0.9rem;
    padding-top: 0.85rem;
    border-top: 1px solid #e0e8f1;
}

.weather-subscriptions__resort-settings[hidden],
.weather-subscriptions__dates[hidden] {
    display: none;
}

.weather-subscriptions__modes label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.weather-subscriptions input[type="checkbox"],
.weather-subscriptions input[type="radio"] {
    accent-color: #1670cc;
}

.weather-subscriptions__modes {
    display: grid;
    gap: 0.55rem;
}

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

.weather-subscriptions__dates label {
    display: grid;
    gap: 0.3rem;
    color: #526b84;
    font-size: 0.9rem;
}

.weather-subscriptions__dates input {
    width: 100%;
    min-width: 0;
    padding: 0.65rem 0.7rem;
    border: 1px solid #bdcde0;
    border-radius: 9px;
    background: #fff;
    color: #17324d;
    font: inherit;
}

.weather-subscriptions__submit {
    width: 100%;
    margin-top: 1rem;
}

.weather-subscriptions__status {
    min-height: 1.35em;
    margin: 0.75rem 0 0;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.35;
}

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

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

.weather-subscriptions__empty {
    margin: 0;
    color: #526b84;
}

body.dark .weather-subscriptions {
    border-color: #2c405a;
    background: linear-gradient(145deg, #172235, #111a2a);
    color: #edf5ff;
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.32);
}

body.dark .weather-subscriptions__heading p,
body.dark .weather-subscriptions__dates label,
body.dark .weather-subscriptions__delivery span,
body.dark .weather-subscriptions__empty,
body.dark .weather-subscriptions__toggle {
    color: #aabdd2;
}

body.dark .weather-subscriptions__icon {
    background: #203d5d;
    color: #7fc0ff;
}

body.dark .weather-subscriptions__resort-card {
    border-color: #304761;
    background: rgba(13, 23, 37, 0.58);
}

body.dark .weather-subscriptions__delivery {
    border-color: #304761;
    background: rgba(13, 23, 37, 0.58);
}

body.dark .weather-subscriptions__delivery select {
    border-color: #3b526f;
    background-color: #0d1725;
    color: #edf5ff;
}

body.dark .weather-subscriptions__resort-card.is-enabled {
    border-color: #477eaf;
    background: #111d2d;
}

body.dark .weather-subscriptions__resort-settings {
    border-color: #2c405a;
}

body.dark .weather-subscriptions__dates input {
    border-color: #3b526f;
    background: #0d1725;
    color: #edf5ff;
}

body.dark .weather-subscriptions__notice {
    background: #40331e;
    color: #ffd991;
}

body.dark .weather-subscriptions__status.is-success {
    color: #70d493;
}

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

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

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

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

    .weather-subscriptions__delivery select {
        grid-row: auto;
        width: 100%;
    }
}
