.weather-widget {
    margin: 12px 0 30px;
    color: #233746;
    font-family: inherit;
}

.weather-panel {
    overflow: hidden;
    border: 1px solid #d7e2e8;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(29, 61, 79, 0.1);
}

.weather-current {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    padding: 24px;
    background: #edf6fa;
    background: linear-gradient(135deg, #edf6fa 0%, #f8fbfc 100%);
}

.weather-current-main {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    min-width: 280px;
    -webkit-box-flex: 1;
    -ms-flex: 1 1 55%;
    flex: 1 1 55%;
}

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

.weather-eyebrow {
    margin-bottom: 2px;
    color: #557484;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.weather-location {
    margin: 0;
    color: #164f72;
    font-size: 25px;
    font-weight: 700;
    line-height: 1.2;
}

.weather-current-value {
    margin-top: 5px;
    color: #15384b;
    font-size: 42px;
    font-weight: 300;
    line-height: 1;
}

.weather-current-label {
    margin-top: 5px;
    font-size: 16px;
}

.weather-current-details {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-box-flex: 1;
    -ms-flex: 1 1 300px;
    flex: 1 1 300px;
    margin: -5px;
}

.weather-metric {
    -webkit-box-flex: 1;
    -ms-flex: 1 1 95px;
    flex: 1 1 95px;
    margin: 5px;
    padding: 10px 12px;
    border: 1px solid rgba(81, 119, 139, 0.18);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.72);
}

.weather-metric-label {
    display: block;
    margin-bottom: 2px;
    color: #607987;
    font-size: 12px;
}

.weather-metric-value {
    display: block;
    color: #23495e;
    font-size: 16px;
    font-weight: 700;
}

.weather-forecast {
    padding: 20px 18px 18px;
}

.weather-forecast-title {
    margin: 0 6px 14px;
    color: #23495e;
    font-size: 18px;
}

.weather-days {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    margin: -5px;
}

.weather-day {
    min-width: 145px;
    -webkit-box-flex: 1;
    -ms-flex: 1 1 18%;
    flex: 1 1 18%;
    margin: 5px;
    padding: 14px 12px;
    border: 1px solid #e0e8ec;
    border-radius: 10px;
    background: #fff;
    text-align: center;
}

.weather-day:first-child {
    border-color: #9fc6da;
    background: #f4fafc;
}

.weather-day-name {
    color: #214f68;
    font-size: 16px;
    font-weight: 700;
}

.weather-day-date {
    min-height: 18px;
    margin-top: 1px;
    color: #728691;
    font-size: 12px;
}

.weather-day-label {
    min-height: 36px;
    margin-top: 3px;
    color: #455d69;
    font-size: 13px;
    line-height: 1.35;
}

.weather-day-temperature {
    margin-top: 7px;
    color: #183e53;
    font-size: 19px;
    font-weight: 700;
}

.weather-day-temperature span {
    color: #718792;
    font-size: 15px;
    font-weight: 400;
}

.weather-day-detail {
    margin-top: 5px;
    color: #516c79;
    font-size: 12px;
    line-height: 1.4;
}

.weather-footer {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    padding: 11px 24px;
    border-top: 1px solid #e4ecef;
    background: #fafcfd;
    color: #667d89;
    font-size: 12px;
}

.weather-footer a {
    color: #316e8e;
    text-decoration: underline;
}

.weather-stale {
    color: #8a5b10;
    font-weight: 700;
}

.weather-icon {
    display: inline-block;
    width: 58px;
    height: 58px;
    margin: 5px auto 0;
    vertical-align: middle;
}

.weather-current .weather-icon {
    -ms-flex: 0 0 auto;
    flex: 0 0 auto;
    width: 88px;
    height: 88px;
    margin: 0 18px 0 0;
}

.weather-icon svg {
    display: block;
    width: 100%;
    height: 100%;
}

.weather-loading,
.weather-error {
    padding: 24px;
    border: 1px solid #d7e2e8;
    border-radius: 12px;
    background: #f7fafb;
}

.weather-loading {
    color: #526d7b;
}

.weather-error h3 {
    margin: 0 0 7px;
    color: #714d18;
    font-size: 18px;
}

.weather-error p {
    margin: 0 0 10px;
}

.weather-official-warning {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    margin: 10px 0 28px;
    padding: 18px 20px;
    border: 1px solid #e3d49d;
    border-left: 5px solid #d5a229;
    border-radius: 10px;
    background: #fffaf0;
}

.weather-official-warning-icon {
    -ms-flex: 0 0 auto;
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    margin-right: 15px;
    border-radius: 50%;
    background: #d5a229;
    color: #fff;
    font-size: 27px;
    font-weight: 700;
    line-height: 42px;
    text-align: center;
}

.weather-official-warning p {
    margin: 2px 0 9px;
}

.weather-official-warning a {
    display: inline-block;
    padding: 7px 11px;
    border-radius: 4px;
    background: #265a88;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

.weather-official-warning a:hover,
.weather-official-warning a:focus {
    background: #173f62;
    color: #fff;
    text-decoration: underline;
}

.weather-station-link {
    margin: 8px 0 28px;
    padding: 17px 19px;
    border: 1px solid #d7e2e8;
    border-radius: 10px;
    background: #f7fafb;
}

.weather-station-link p {
    margin: 3px 0 9px;
}

.weather-station-link a {
    font-weight: 700;
}

@media (max-width: 700px) {
    .weather-current {
        padding: 18px;
    }

    .weather-current-details {
        margin-top: 12px;
    }

    .weather-forecast {
        padding: 17px 13px 13px;
    }

    .weather-day {
        -ms-flex-preferred-size: 42%;
        flex-basis: 42%;
    }

    .weather-footer {
        display: block;
        padding: 10px 18px;
    }

    .weather-footer span {
        display: block;
        margin-top: 3px;
    }
}

@media (max-width: 420px) {
    .weather-current-main {
        min-width: 100%;
    }

    .weather-current .weather-icon {
        width: 72px;
        height: 72px;
        margin-right: 12px;
    }

    .weather-location {
        font-size: 21px;
    }

    .weather-current-value {
        font-size: 36px;
    }

    .weather-day {
        min-width: 120px;
    }

    .weather-official-warning {
        -webkit-box-align: start;
        -ms-flex-align: start;
        align-items: flex-start;
        padding: 15px;
    }
}
