/**
 * Cigars Age Gate - Styles
 *
 * Styling for the age verification modal
 * Based on the original Cigars Galaxy design
 */

/* Overlay - Full screen background */
.cigars-age-gate-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    animation: cigarsAgeGateFadeIn 0.3s ease-in-out forwards;
}

@keyframes cigarsAgeGateFadeIn {
    to {
        opacity: 1;
    }
}

/* Modal container */
.cigars-age-gate-modal {
    background: #ffffff;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    text-align: center;
    position: relative;
    animation: cigarsAgeGateSlideUp 0.4s ease-out 0.2s backwards;
}

@keyframes cigarsAgeGateSlideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Logo */
.cigars-age-gate-logo {
    margin-bottom: 30px;
}

.cigars-age-gate-logo img {
    max-width: 200px;
    height: auto;
}

/* Error message */
.cigars-age-gate-error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.cigars-age-gate-error p {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
}

/* Message content */
.cigars-age-gate-message {
    margin-bottom: 30px;
}

.cigars-age-gate-message p {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    margin: 0;
}

/* Buttons container */
.cigars-age-gate-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Button base styles */
.cigars-age-gate-btn {
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Yes button - Primary (Gold) */
.cigars-age-gate-btn-yes {
    background-color: #b09e66;
    color: #ffffff;
}

.cigars-age-gate-btn-yes:hover {
    background-color: #9a8a56;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(176, 158, 102, 0.4);
}

.cigars-age-gate-btn-yes:active {
    transform: translateY(0);
}

/* No button - Secondary (Gray) */
.cigars-age-gate-btn-no {
    background-color: #6c757d;
    color: #ffffff;
}

.cigars-age-gate-btn-no:hover {
    background-color: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(108, 117, 125, 0.4);
}

.cigars-age-gate-btn-no:active {
    transform: translateY(0);
}

/* Loading state for buttons */
.cigars-age-gate-btn.loading {
    opacity: 0.7;
    cursor: not-allowed;
    pointer-events: none;
}

.cigars-age-gate-btn.loading::after {
    content: "...";
    animation: cigarsAgeGateDots 1s infinite;
}

@keyframes cigarsAgeGateDots {
    0%, 20% {
        content: ".";
    }
    40% {
        content: "..";
    }
    60%, 100% {
        content: "...";
    }
}

/* Responsive adjustments */
@media (min-width: 768px) {
    .cigars-age-gate-buttons {
        flex-direction: row;
        justify-content: center;
    }

    .cigars-age-gate-btn {
        flex: 1;
        max-width: 250px;
    }
}

@media (max-width: 767px) {
    .cigars-age-gate-modal {
        padding: 30px 20px;
    }

    .cigars-age-gate-message p {
        font-size: 14px;
    }

    .cigars-age-gate-btn {
        padding: 12px 20px;
        font-size: 14px;
    }
}

/* Prevent body scroll when modal is open */
body.cigars-age-gate-active {
    overflow: hidden;
}
