/* Base alert wrapper */
.ct-alert {
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    position: relative;
    
    color: #fff;
    padding: 16px 24px;
    font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    display: flex;
    justify-content: center;
}

.ct-alert-content {
    width: 100%;
    max-width: 1200px;
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 16px;
    align-items: center;
}

/* Color variant*/
.ct-alert-red {
    background: #b13c36;
}

.ct-alert-orange {
    background: #ffab37;
}

.ct-alert-yellow {
    background: #ffdd57;
}

.ct-alert-blue {
    background: #3578e5;
}

.ct-alert-orange .ct-alert-content .ct-alert-heading,
.ct-alert-orange .ct-alert-content .ct-alert-brief {
    color: #414141;
}

.ct-alert-yellow .ct-alert-content .ct-alert-heading,
.ct-alert-yellow .ct-alert-content .ct-alert-brief {
    color: #414141;
}

.ct-alert-heading {
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 4px;
}

.ct-alert-brief {
    font-size: 14px;
    line-height: 1.4;
    margin: 0;
}

.ct-alert-brief p {
    margin: 0;
    font-weight: 400;
}

.ct-alert-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 18px;
    background: #ffffff;
    color: #000;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid transparent;
    transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

.ct-alert-button:hover,
.ct-alert-button:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

.ct-alert-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    padding: 0px;
    transition: opacity 120ms ease;

    position: absolute;
    top: 10px;
    right: 15px;
}

.ct-alert-close:hover,
.ct-alert-close:focus-visible {
    opacity: 0.75;
}

@media (max-width: 768px) {
    .ct-alert-content {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .ct-alert-read-more,
    .ct-alert-close {
        justify-self: flex-start;
    }

    .ct-alert-close {
        margin-left: -6px;
    }
}
