/* Centralized Checkout Sender — Front-end styles */

/* Redirect overlay */
#ccc-redirect-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,0.92);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s ease;
}

#ccc-redirect-overlay.visible {
    opacity: 1;
}

.ccc-redirect-inner {
    text-align: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.ccc-redirect-inner p {
    margin-top: 16px;
    font-size: 1.1rem;
    color: #333;
}

/* Spinner */
.ccc-spinner {
    width: 44px;
    height: 44px;
    border: 4px solid #e0e0e0;
    border-top-color: #0073aa;
    border-radius: 50%;
    animation: ccc-spin 0.8s linear infinite;
    margin: 0 auto;
}

@keyframes ccc-spin {
    to { transform: rotate(360deg); }
}

/* Buy Now button */
.ccc-buy-now-btn {
    display: inline-block;
    padding: 12px 28px;
    background: #0073aa;
    color: #fff !important;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s;
}

.ccc-buy-now-btn:hover {
    background: #005d8c;
    color: #fff !important;
}

.ccc-buy-now-btn.loading {
    opacity: 0.7;
    pointer-events: none;
}
