/* Alleba Directory – Checkout Modal */

#alleba-checkout-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
}

#alleba-checkout-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(3px);
}

#alleba-checkout-window {
    position: relative;
    z-index: 1;
    background: #f5f0e8;
    border: 2px solid #000;
    border-radius: 0;
    width: min(680px, 96vw);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 6px 6px 0 rgba(0,0,0,0.25);
}

#alleba-checkout-titlebar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    height: 36px;
    background: #2a4a2a;
    border-bottom: 2px solid #000;
    flex-shrink: 0;
}

#alleba-checkout-title {
    font-family: 'Courier New', monospace;
    font-size: 11px;
    font-weight: bold;
    color: #c8f0c8;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

#alleba-checkout-close {
    background: #F5726A;
    border: 1px solid rgba(0,0,0,0.4);
    border-radius: 50%;
    width: 16px;
    height: 16px;
    cursor: pointer;
    font-size: 9px;
    line-height: 1;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: opacity 0.15s;
}

#alleba-checkout-close:hover { opacity: 0.8; }

#alleba-checkout-body {
    position: relative;
    flex: 1;
    min-height: 500px;
}

#alleba-checkout-iframe {
    width: 100%;
    height: 100%;
    min-height: 500px;
    border: 0;
    display: block;
}

#alleba-checkout-loading {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-family: 'Courier New', monospace;
    font-size: 11px;
    color: #555;
    background: #f5f0e8;
}

.alleba-spinner {
    width: 28px;
    height: 28px;
    border: 3px solid #ccc;
    border-top-color: #2a4a2a;
    border-radius: 50%;
    animation: alleba-spin 0.7s linear infinite;
}

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

/* Trigger button */
.alleba-checkout-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    background: #2a4a2a;
    color: #c8f0c8;
    border: 2px solid #000;
    font-family: 'Courier New', monospace;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: filter 0.15s;
}

.alleba-checkout-btn:hover { filter: brightness(1.15); }
