﻿/* =========================================
   Alerts / Notifications Overlay
   ========================================= */

#alerts-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(180deg, var(--cb-bg-gradient-top, #5CE65C), var(--cb-bg, #2E9E2E));
    z-index: 1200;
}

    #alerts-overlay.hidden {
        display: none !important;
    }

    #alerts-overlay .modal-inner,
    #alerts-overlay .cb-alert-sheet {
        width: min(92vw, 460px);
        max-height: min(80vh, 720px);
        overflow-y: auto;
        background: #f8f8f4 !important;
        color: #1f2330;
        border-radius: 24px;
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.22);
    }

    /* Header */
    #alerts-overlay .settings-header {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 68px;
        padding: 20px 24px 16px;
        background: transparent !important;
        color: #1f2330 !important;
        border-bottom: 1px solid rgba(31, 35, 48, 0.08);
        text-align: center;
    }

    #alerts-overlay .settings-title,
    #alerts-title {
        margin: 0;
        width: 100%;
        text-align: center;
        color: #1f2330 !important;
        font-size: 22px;
        line-height: 1.2;
    }

    /* Content */
    #alerts-overlay .settings-content,
    .cb-alert-content {
        background: transparent !important;
        color: #1f2330 !important;
        padding: 20px 24px 24px;
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

.cb-alert-message {
    margin: 0;
    padding: 0 2px;
    color: #1f2330;
    font-size: 15px;
    line-height: 1.5;
    text-align: center;
}

.cb-alert-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

    .cb-alert-items.hidden {
        display: none !important;
    }

.cb-alert-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid rgba(31, 35, 48, 0.08);
}

.cb-alert-item-icon {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #ffffff;
    color: #1f2330;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    overflow: hidden;
    font-size: 20px;
}

    .cb-alert-item-icon img {
        width: 24px;
        height: 24px;
        object-fit: contain;
        display: block;
    }

.cb-alert-item-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.cb-alert-item-title {
    color: #1f2330;
    font-weight: 700;
    font-size: 14px;
    line-height: 1.2;
}

.cb-alert-item-subtitle {
    color: #5f6675;
    font-size: 13px;
    line-height: 1.35;
    margin-top: 2px;
}

/* Actions */
.cb-alert-actions {
    display: flex;
    justify-content: center;
    padding-top: 4px;
}

    .cb-alert-actions .cb-btn-primary {
        min-width: 140px;
    }


.cb-alert-dye-bottle {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

    .cb-alert-dye-bottle .cb-avatar-dye-bottle-empty {
        width: 100%;
        height: 100%;
        object-fit: contain;
        display: block;
    }

    .cb-alert-dye-bottle .cb-avatar-dye-bottle-fill {
        transform: scale(0.92);
    }
