/* =========================================================
   A Company of Thieves - Checkout & Pre-Order Modal Styling
   ========================================================= */

:root {
    --cot-gold: #d0b13f;
    --cot-gold-hover: #e5c34f;
    --cot-gold-glow: rgba(208, 177, 63, 0.35);
    --cot-dark-bg: #121212;
    --cot-card-bg: rgba(22, 22, 22, 0.95);
    --cot-border: rgba(208, 177, 63, 0.3);
    --cot-text-muted: #aaa;
}

/* Modal Overlay */
.cot-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    padding: 1rem;
    box-sizing: border-box;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cot-modal-overlay.active {
    display: flex;
    opacity: 1;
}

/* Modal Window */
.cot-checkout-modal {
    background: var(--cot-card-bg);
    border: 1px solid var(--cot-border);
    border-radius: 12px;
    width: 100%;
    max-width: 650px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.9), 0 0 20px var(--cot-gold-glow);
    color: #fff;
    font-family: 'Georgia', serif;
    position: relative;
    animation: cotModalSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes cotModalSlideIn {
    from {
        transform: translateY(20px) scale(0.97);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

/* Modal Header */
.cot-modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(208, 177, 63, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.4);
}

.cot-modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--cot-gold);
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

.cot-modal-close {
    background: none;
    border: none;
    color: var(--cot-text-muted);
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s, transform 0.2s;
}

.cot-modal-close:hover {
    color: #fff;
    transform: scale(1.1);
}

/* Modal Body */
.cot-modal-body {
    padding: 2rem;
}

/* Item Summary Banner */
.cot-order-summary {
    display: flex;
    gap: 1.2rem;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    align-items: center;
}

.cot-summary-img {
    width: 65px;
    height: 90px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid rgba(208, 177, 63, 0.3);
}

.cot-summary-details {
    flex: 1;
}

.cot-summary-title {
    font-size: 1.1rem;
    font-weight: bold;
    color: #fff;
    margin-bottom: 0.3rem;
}

.cot-summary-badge {
    display: inline-block;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(208, 177, 63, 0.2);
    color: var(--cot-gold);
    border: 1px solid var(--cot-gold);
    margin-bottom: 0.4rem;
}

.cot-summary-price {
    font-size: 1.2rem;
    color: var(--cot-gold);
    font-weight: bold;
}

/* Forms */
.cot-form-section-title {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--cot-gold);
    margin: 1.5rem 0 0.8rem 0;
    border-bottom: 1px solid rgba(208, 177, 63, 0.2);
    padding-bottom: 0.3rem;
}

.cot-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.cot-form-group.full-width {
    grid-column: span 2;
}

.cot-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.cot-form-group label {
    font-size: 0.85rem;
    color: #bbb;
}

.cot-form-group input,
.cot-form-group select,
.cot-form-group textarea {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    padding: 0.75rem 1rem;
    color: #fff;
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.cot-form-group input:focus,
.cot-form-group select:focus,
.cot-form-group textarea:focus {
    outline: none;
    border-color: var(--cot-gold);
    box-shadow: 0 0 8px var(--cot-gold-glow);
}

.cot-form-group select option {
    background: #1a1a1a;
    color: #fff;
}

/* Inscription Box */
.cot-inscription-card {
    background: rgba(208, 177, 63, 0.06);
    border: 1px dashed var(--cot-gold);
    border-radius: 8px;
    padding: 1rem;
    margin: 1.2rem 0;
}

.cot-inscription-card p {
    margin: 0 0 0.5rem 0;
    font-size: 0.85rem;
    color: #ddd;
    line-height: 1.4;
}

/* Payment Selector Tabs */
.cot-payment-tabs {
    display: flex;
    gap: 1rem;
    margin: 1.5rem 0 1rem 0;
}

.cot-payment-tab-btn {
    flex: 1;
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    color: #ccc;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.cot-payment-tab-btn.active {
    background: rgba(208, 177, 63, 0.15);
    border-color: var(--cot-gold);
    color: var(--cot-gold);
    box-shadow: 0 0 10px var(--cot-gold-glow);
}

.cot-payment-panel {
    display: none;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 1rem;
}

.cot-payment-panel.active {
    display: block;
}

/* Monzo Container */
.cot-monzo-container {
    text-align: center;
}

.cot-monzo-container p {
    color: #ccc;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1.2rem;
}

.cot-btn-monzo {
    background: #00a4a6;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 0.9rem 1.8rem;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s, transform 0.2s;
    width: 100%;
}

.cot-btn-monzo:hover {
    background: #00c4c6;
    transform: translateY(-2px);
}

/* Success Screen */
.cot-success-screen {
    display: none;
    text-align: center;
    padding: 2rem 1rem;
}

.cot-success-screen.active {
    display: block;
}

.cot-success-icon {
    font-size: 3.5rem;
    color: var(--cot-gold);
    margin-bottom: 1rem;
}

.cot-success-ref {
    font-size: 1.4rem;
    color: var(--cot-gold);
    font-weight: bold;
    padding: 0.6rem 1.2rem;
    background: rgba(208, 177, 63, 0.1);
    border: 1px solid var(--cot-gold);
    display: inline-block;
    border-radius: 6px;
    margin: 1rem 0;
}

/* Error Notice */
.cot-error-notice {
    background: rgba(235, 77, 75, 0.2);
    border: 1px solid #eb4d4b;
    color: #ffb8b8;
    padding: 0.8rem 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    display: none;
}

/* Mobile responsive */
@media (max-width: 600px) {
    .cot-form-grid {
        grid-template-columns: 1fr;
    }
    .cot-form-group.full-width {
        grid-column: span 1;
    }
    .cot-modal-body {
        padding: 1.2rem;
    }
    .cot-payment-tabs {
        flex-direction: column;
    }
}
