/**
 * CU Rocket Core - Client-specific styles
 *
 * This file is for client-unique CSS. Global/universal styles
 * live in the child theme.
 */

/* ==========================================================================
   Alerts Module
   ========================================================================== */

.cu-rocket-alerts {
    display: flex;
    flex-direction: column;
    font-size: 14px;
    line-height: 1.5;
}

.cu-rocket-alert {
    padding: 1rem 1.25rem;
}

.cu-rocket-alert__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
    position: relative;
}

.cu-rocket-alert__text {
    flex: 1 1 auto;
    min-width: 0;
}

.cu-rocket-alert__link {
    flex-shrink: 0;
    padding: 0.5rem 1rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.9);
    color: inherit;
    transition: background 0.2s, opacity 0.2s;
}

.cu-rocket-alert__link:hover {
    background: #fff;
}

.cu-rocket-alert__close {
    flex-shrink: 0;
    padding: 0.25rem;
    margin: -0.25rem -0.25rem -0.25rem 0;
    border: none;
    background: transparent;
    color: inherit;
    cursor: pointer;
    opacity: 0.85;
}

.cu-rocket-alert__close:hover {
    opacity: 1;
}

/* Alert type variants – Customizer: Appearance → Customize → CU Rocket: Alerts */
.cu-rocket-alert--information {
    background: var(--cu-rocket-alert-info-bg, #0ea5e9);
    color: var(--cu-rocket-alert-info-text, #fff);
}

.cu-rocket-alert--alert {
    background: var(--cu-rocket-alert-alert-bg, #eab308);
    color: var(--cu-rocket-alert-alert-text, #1c1917);
}

.cu-rocket-alert--danger {
    background: var(--cu-rocket-alert-danger-bg, #dc2626);
    color: var(--cu-rocket-alert-danger-text, #fff);
}

.cu-rocket-alert--success {
    background: var(--cu-rocket-alert-success-bg, #16a34a);
    color: var(--cu-rocket-alert-success-text, #fff);
}

.cu-rocket-alert__icon {
    flex-shrink: 0;
    display: inline-flex;
    width: 1.25rem;
    height: 1.25rem;
}

.cu-rocket-alert__icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}
