.lww-weather-card {
    width: 100%;
    max-width: 100%;
    height: 95px;
    max-height: 95px;
    box-sizing: border-box;
    padding: 14px 18px;
    border-radius: 18px;
    background: linear-gradient(135deg, #0c283f, #0978b3);
    color: #ffffff;
    font-family: inherit;
    box-shadow: 0 10px 24px rgba(12, 40, 63, 0.18);
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    overflow: visible;
}

.lww-weather-loading,
.lww-weather-error {
    font-size: 15px;
    line-height: 1.35;
    font-weight: 700;
}

.lww-current {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
}

.lww-main-copy {
    min-width: 0;
}

.lww-label {
    font-size: 12px;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    opacity: 0.82;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lww-condition {
    font-size: 20px;
    line-height: 1.15;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lww-temp {
    flex: 0 0 auto;
    font-size: 48px;
    font-weight: 800;
    line-height: 1;
}

.lww-forecast-open {
    flex: 0 0 auto;
    border: 0;
    border-radius: 999px;
    padding: 10px 13px;
    background: rgba(234, 239, 249, 0.18);
    color: #ffffff;
    cursor: pointer;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    font-family: inherit;
    font-size: 13px;
    line-height: 1;
    font-weight: 800;
    white-space: nowrap;
    user-select: none;
}

.lww-forecast-open:hover,
.lww-forecast-open:focus-visible {
    background: rgba(234, 239, 249, 0.28);
    outline: none;
}

.lww-forecast-open span {
    font-size: 18px;
    line-height: 1;
}

.lww-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 2147483647 !important;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(12, 40, 63, 0.58);
    box-sizing: border-box;
}

.lww-modal-overlay.is-open {
    display: flex !important;
}

body.lww-modal-open {
    overflow: hidden;
}

.lww-forecast-panel {
    width: min(500px, 100%);
    max-height: calc(100vh - 40px);
    overflow: auto;
    padding: 16px;
    border-radius: 18px;
    background: linear-gradient(135deg, #0c283f, #0978b3);
    color: #ffffff;
    box-shadow: 0 18px 44px rgba(12, 40, 63, 0.38);
    box-sizing: border-box;
}

.lww-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.lww-modal-header strong {
    font-size: 18px;
    line-height: 1.2;
}

.lww-modal-close {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 999px;
    background: rgba(234, 239, 249, 0.18);
    color: #ffffff;
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.lww-modal-close:hover,
.lww-modal-close:focus-visible {
    background: rgba(234, 239, 249, 0.28);
    outline: none;
}

.lww-forecast {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
}

.lww-day {
    background: rgba(234, 239, 249, 0.14);
    border-radius: 12px;
    padding: 12px 7px;
    text-align: center;
}

.lww-day strong,
.lww-day span,
.lww-day small {
    display: block;
}

.lww-day strong {
    font-size: 13px;
    line-height: 1;
    margin-bottom: 6px;
}

.lww-day span {
    font-size: 14px;
    line-height: 1.1;
    font-weight: 800;
}

.lww-day small {
    font-size: 11px;
    line-height: 1.1;
    opacity: 0.82;
    margin-top: 5px;
}

@media (max-width: 520px) {
    .lww-weather-card {
        max-width: 100%;
        padding: 12px 14px;
        gap: 10px;
    }

    .lww-condition {
        font-size: 17px;
    }

    .lww-temp {
        font-size: 38px;
    }

    .lww-forecast-open {
        padding: 9px 11px;
        font-size: 12px;
    }

    .lww-forecast {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}