.cw-news-frontend {
    color: #03135f;
    font-family: Lato, Arial, sans-serif;
    margin: 0 auto;
    max-width: 1160px;
    width: 100%;
}

.cw-news-frontend section.cw-news-section {
    margin: 0 0 46px;
}

.cw-news-frontend header.cw-news-section__header {
    align-items: center;
    display: flex;
    gap: 28px;
    margin: 0 0 24px;
}

.cw-news-frontend h2.cw-news-section__title {
    color: #707486;
    flex: 0 0 auto;
    font-size: 16px;
    font-weight: 900;
    letter-spacing: 2px;
    line-height: 1.2;
    margin: 0;
    text-transform: uppercase;
}

.cw-news-frontend span.cw-news-section__rule {
    background: #d8dee7;
    display: block;
    flex: 1 1 auto;
    height: 1px;
    min-width: 48px;
}

.cw-news-frontend div.cw-news-grid {
    display: grid;
    gap: 22px 28px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    transition: opacity 180ms ease;
}

.cw-news-frontend section.cw-news-section.is-loading div.cw-news-grid {
    opacity: 0.55;
}

.cw-news-frontend article.cw-news-card {
    animation-duration: 260ms;
    animation-fill-mode: both;
    animation-timing-function: ease;
    background: #fff;
    border: 1px solid #d8dee7;
    border-radius: 4px;
    box-shadow: 0 1px 2px rgba(2, 12, 53, 0.04);
    min-width: 0;
    overflow: hidden;
    padding: 0;
}

.cw-news-frontend article.cw-news-card.cw-news-card--enter {
    animation-name: cwNewsFadeUp;
}

.cw-news-frontend article.cw-news-card > a.cw-news-card__trigger,
.cw-news-frontend article.cw-news-card > button.cw-news-card__trigger {
    appearance: none !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
    color: inherit !important;
    cursor: pointer;
    display: block !important;
    filter: none !important;
    font: inherit;
    height: auto !important;
    line-height: 0 !important;
    margin: 0 !important;
    min-height: 0 !important;
    min-width: 0 !important;
    outline-offset: 3px;
    overflow: hidden;
    padding: 0 !important;
    text-align: left;
    text-decoration: none !important;
    text-shadow: none !important;
    transform: none !important;
    vertical-align: top;
    width: 100% !important;
}

.cw-news-frontend article.cw-news-card > a.cw-news-card__trigger::before,
.cw-news-frontend article.cw-news-card > a.cw-news-card__trigger::after,
.cw-news-frontend article.cw-news-card > button.cw-news-card__trigger::before,
.cw-news-frontend article.cw-news-card > button.cw-news-card__trigger::after {
    content: none !important;
    display: none !important;
}

.cw-news-frontend article.cw-news-card > a.cw-news-card__trigger:focus-visible,
.cw-news-frontend article.cw-news-card > button.cw-news-card__trigger:focus-visible {
    outline: 3px solid #81a8ff;
}

.cw-news-frontend span.cw-news-card__image-wrap {
    background: #eef2f6;
    display: block !important;
    line-height: 0 !important;
    margin: 0 !important;
    overflow: hidden;
    position: relative;
    top: 0;
    width: 100%;
}

.cw-news-frontend span.cw-news-card__image-wrap::before {
    content: "";
    display: block;
    padding-top: 53%;
}

.cw-news-frontend img.cw-news-card__image,
.cw-news-frontend span.cw-news-card__image-placeholder {
    border: 0;
    display: block;
    height: 100%;
    inset: 0;
    margin: 0;
    max-width: none;
    object-fit: cover;
    object-position: top center;
    position: absolute;
    transform: none;
    vertical-align: top;
    width: 100%;
}

.cw-news-frontend span.cw-news-card__image-placeholder {
    background: linear-gradient(135deg, #dde7f2 0%, #f7f9fc 100%);
}

.cw-news-frontend span.cw-news-card__title {
    color: #03136e;
    display: block;
    font-size: 17px;
    font-weight: 900;
    line-height: 1.35;
    min-height: 92px;
    padding: 16px 14px 18px;
}

.cw-news-frontend div.cw-news-section__actions {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.cw-news-frontend button.cw-news-load-more {
    appearance: none;
    background: #fff;
    border: 1px solid #9fb0c7;
    border-radius: 3px;
    box-shadow: none;
    color: #03136e;
    cursor: pointer;
    filter: none;
    font-size: 13px;
    font-weight: 700;
    min-width: 138px;
    padding: 8px 22px;
    text-shadow: none;
}

.cw-news-frontend button.cw-news-load-more:hover,
.cw-news-frontend button.cw-news-load-more:focus-visible {
    background: #f5f8ff;
    border-color: #6983aa;
    box-shadow: none;
    filter: none;
    text-shadow: none;
}

.cw-news-frontend button.cw-news-load-more:active {
    box-shadow: none;
    filter: none;
    transform: none;
}

.cw-news-frontend button.cw-news-load-more:disabled {
    cursor: progress;
    opacity: 0.72;
}

.cw-news-frontend p.cw-news-section__empty {
    grid-column: 1 / -1;
    margin: 0;
}

.cw-news-frontend div.cw-news-modal[hidden] {
    display: none;
}

.cw-news-frontend div.cw-news-modal {
    inset: 0;
    position: fixed;
    z-index: 99999;
}

.cw-news-frontend div.cw-news-modal__backdrop {
    background: rgba(1, 7, 38, 0.66);
    inset: 0;
    position: absolute;
}

.cw-news-frontend div.cw-news-modal__panel {
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
    box-sizing: border-box;
    left: 50%;
    max-height: min(760px, calc(100vh - 48px));
    max-width: 760px;
    overflow: auto;
    padding: 34px;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: calc(100vw - 40px);
}

.cw-news-frontend button.cw-news-modal__close {
    align-items: center;
    appearance: none;
    background: #fff;
    border: 1px solid #cbd4e1;
    border-radius: 50%;
    box-shadow: none;
    color: #03136e;
    cursor: pointer;
    display: flex;
    filter: none;
    font-size: 28px;
    height: 38px;
    justify-content: center;
    line-height: 1;
    padding: 0;
    position: absolute;
    right: 14px;
    top: 14px;
    width: 38px;
}

.cw-news-frontend button.cw-news-modal__close:hover,
.cw-news-frontend button.cw-news-modal__close:focus-visible,
.cw-news-frontend button.cw-news-modal__close:active {
    background: #fff;
    box-shadow: none;
    filter: none;
    text-shadow: none;
    transform: none;
}

.cw-news-frontend h2.cw-news-modal__title {
    color: #03136e;
    font-size: 28px;
    font-weight: 900;
    line-height: 1.2;
    margin: 0 46px 18px 0;
}

.cw-news-frontend div.cw-news-modal__body,
.cw-news-frontend p.cw-news-modal__loading,
.cw-news-frontend p.cw-news-modal__error {
    color: #1f2a44;
    font-size: 16px;
    line-height: 1.65;
}

.cw-news-frontend div.cw-news-modal__body > :first-child {
    margin-top: 0;
}

.cw-news-frontend div.cw-news-modal__body > :last-child {
    margin-bottom: 0;
}

body.cw-news-modal-open {
    overflow: hidden;
}

@keyframes cwNewsFadeUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 900px) {
    .cw-news-frontend div.cw-news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .cw-news-frontend header.cw-news-section__header {
        gap: 16px;
    }

    .cw-news-frontend div.cw-news-grid {
        grid-template-columns: 1fr;
    }

    .cw-news-frontend span.cw-news-card__title {
        min-height: 0;
    }

    .cw-news-frontend div.cw-news-modal__panel {
        padding: 28px 20px;
        width: calc(100vw - 24px);
    }
}
