/* AstanaNews Currency + Weather widget */
.ancw,
.ancw * {
    box-sizing: border-box;
}

.ancw {
    --ancw-blue: #1671ad;
    --ancw-dark: #172b3b;
    --ancw-muted: #6d7c89;
    --ancw-line: #e4eaf0;
    --ancw-soft: #f5f8fb;
    width: 100%;
    min-width: 0;
    border: 1px solid var(--ancw-line);
    border-radius: 12px;
    background: #fff;
    color: var(--ancw-dark);
    padding: 16px;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.4;
}

.ancw__header {
    padding-bottom: 11px;
    margin-bottom: 13px;
    border-bottom: 2px solid var(--ancw-blue);
}

.ancw__brand {
    display: block;
    color: var(--ancw-blue);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .14em;
}

.ancw .ancw__title {
    margin: 4px 0 0 !important;
    padding: 0 !important;
    border: 0 !important;
    color: var(--ancw-dark) !important;
    font-size: 20px !important;
    line-height: 1.25 !important;
    font-weight: 800 !important;
}

.ancw__section + .ancw__section {
    margin-top: 16px;
    padding-top: 15px;
    border-top: 1px solid var(--ancw-line);
}

.ancw__section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.ancw__section-head h4 {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    color: var(--ancw-dark) !important;
    font-size: 14px !important;
    line-height: 1.3 !important;
    font-weight: 800 !important;
}

.ancw__section-head > span {
    color: var(--ancw-muted);
    font-size: 10px;
    white-space: nowrap;
}

/* Currency */
.ancw__rates {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.ancw__rate {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
    padding: 10px;
    border: 1px solid var(--ancw-line);
    border-radius: 9px;
    background: linear-gradient(145deg, #fff, #f7fafd);
}

.ancw__rate-main {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.ancw__rate-symbol {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 27px;
    height: 27px;
    border-radius: 7px;
    background: #e9f3fa;
    color: var(--ancw-blue);
    font-size: 16px;
    font-weight: 850;
    line-height: 1;
}

.ancw__rate-code {
    color: var(--ancw-dark);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .035em;
}

.ancw__rate strong {
    flex: 0 0 auto;
    color: var(--ancw-dark);
    font-size: 15px;
    font-weight: 850;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.ancw__rate strong small {
    color: var(--ancw-muted);
    font-size: 10px;
    font-weight: 650;
}

/* Weather */
.ancw__cities {
    border-top: 1px solid var(--ancw-line);
}

.ancw__city {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
    padding: 10px 1px;
    border-bottom: 1px solid var(--ancw-line);
}

.ancw__city-left {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
}

.ancw__weather-icon {
    flex: 0 0 27px;
    width: 27px;
    text-align: center;
    font-size: 19px;
    line-height: 1;
}

.ancw__city-name {
    min-width: 0;
}

.ancw__city-name strong {
    display: block;
    color: var(--ancw-dark);
    font-size: 13px;
    font-weight: 780;
    line-height: 1.3;
    white-space: normal;
    overflow-wrap: anywhere;
}

.ancw__city-name span {
    display: block;
    margin-top: 2px;
    color: var(--ancw-muted);
    font-size: 10px;
    line-height: 1.25;
}

.ancw__city-temp {
    flex: 0 0 auto;
    min-width: 44px;
    color: var(--ancw-dark);
    font-size: 20px;
    line-height: 1;
    font-weight: 850;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.ancw__source {
    display: flex;
    justify-content: space-between;
    gap: 5px 10px;
    flex-wrap: wrap;
    margin-top: 9px;
    color: var(--ancw-muted);
    font-size: 9px;
    line-height: 1.4;
}

.ancw__source a {
    color: var(--ancw-blue) !important;
    text-decoration: underline !important;
}

.ancw__empty {
    margin: 0;
    padding: 9px 10px;
    border-radius: 8px;
    background: var(--ancw-soft);
    color: var(--ancw-muted);
    font-size: 12px;
}

@media (max-width: 360px) {
    .ancw {
        padding: 13px;
    }

    .ancw__rates {
        grid-template-columns: 1fr;
    }

    .ancw__rate strong {
        font-size: 16px;
    }
}
