/* ========== frontend.css ========== */
#ccr-loader-overlay,
#ccr-dialog-overlay {
    position: fixed; inset: 0;
    background: rgba(0, 0, 0, .5);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
}

#ccr-loader-box,
#ccr-dialog-box {
    background: #fff;
    border-radius: 6px;
    padding: 28px 36px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, .2);
}

#ccr-loader-box p {
    margin: 12px 0 0;
    font-size: .95rem;
    color: #444;
}

.ccr-spinner {
    width: 36px; height: 36px;
    margin: 0 auto;
    border: 4px solid #e0e0e0;
    border-top-color: #333;
    border-radius: 50%;
    animation: ccrSpin .7s linear infinite;
}

@keyframes ccrSpin {
    to { transform: rotate(360deg); }
}

#ccr-dialog-box {
    max-width: 460px;
    width: 90%;
    animation: ccrFadeIn .18s ease-out;
}

#ccr-dialog-msg {
    font-size: 1rem;
    margin-bottom: 20px;
    line-height: 1.5;
}

#ccr-dialog-msg small {
    display: block;
    margin-top: 8px;
    color: #555;
    font-size: .85rem;
}

.ccr-dialog-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.ccr-dialog-buttons button {
    min-width: 140px;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: .95rem;
    border: 1px solid #ccc;
    background: #f7f7f7;
}

.ccr-dialog-buttons button.ccr-btn-primary {
    background: #333;
    color: #fff;
    border-color: #333;
}

@keyframes ccrFadeIn {
    from { opacity: 0; transform: scale(.96); }
    to   { opacity: 1; transform: scale(1); }
}