/* =========================================================
   MistWhip Age & Terms Gate — Frontend Styles
   ========================================================= */

/* Lock scrolling while the gate is active */
html.mwag-locked,
html.mwag-locked body {
    overflow: hidden !important;
    height: 100% !important;
}

/* --- Full Screen Overlay --- */
.mwag-overlay {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background:
        radial-gradient(circle at 20% 20%, rgba(201, 162, 39, 0.20), transparent 45%),
        radial-gradient(circle at 80% 75%, rgba(255, 227, 153, 0.18), transparent 40%),
        rgba(17, 17, 17, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2147483600;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.mwag-overlay.mwag-hide {
    opacity: 0;
    pointer-events: none;
}

/* --- Modal Box --- */
.mwag-modal {
    background: linear-gradient(160deg, #fffef8 0%, #fff9e8 100%);
    width: 90%;
    max-width: 440px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    border-radius: 20px;
    border: 1px solid rgba(201, 162, 39, 0.35);
    box-shadow: 0 26px 56px rgba(0, 0, 0, 0.40);
}

.mwag-inner {
    padding: 36px 30px 30px;
    text-align: center;
    box-sizing: border-box;
}

/* --- Site Logo --- */
.mwag-logo {
    display: block;
    width: auto;
    max-width: 180px;
    max-height: 70px;
    height: auto;
    margin: 0 auto 18px;
    object-fit: contain;
}

.mwag-inner h2 {
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    color: #1a1a1a;
    margin: 0 0 12px;
    letter-spacing: 0.01em;
}

.mwag-message {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #5f5a4f;
    line-height: 1.55;
    margin: 0 0 24px;
}

.mwag-message a {
    color: #8f6914;
    font-weight: 700;
    text-decoration: underline;
}

/* --- Action Buttons --- */
.mwag-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.mwag-btn {
    -webkit-appearance: none;
    appearance: none;
    min-height: 50px;
    padding: 0 18px;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
    border: none;
    transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
    touch-action: manipulation;
}

.mwag-agree {
    background: linear-gradient(135deg, #ba8d1f 0%, #d8b249 100%);
    color: #fffef8;
    box-shadow: 0 10px 22px rgba(153, 116, 22, 0.28);
}

.mwag-agree:hover {
    filter: brightness(1.04);
    transform: translateY(-1px);
}

.mwag-disagree {
    background: transparent;
    color: #7a5710;
    border: 1.5px solid rgba(201, 162, 39, 0.55);
}

.mwag-disagree:hover {
    background: rgba(201, 162, 39, 0.08);
    border-color: #c9a227;
}

/* --- Blocked (disagree) message --- */
.mwag-blocked {
    margin-top: 22px;
    padding: 16px 18px;
    border: 1.5px solid #f1b5b5;
    border-radius: 12px;
    background: #fdeaea;
    color: #c0271f;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.5;
}

.mwag-blocked p {
    margin: 0;
    color: #c0271f;
}

@media (max-width: 480px) {
    .mwag-inner {
        padding: 26px 18px 22px;
    }
    .mwag-inner h2 {
        font-size: 23px;
    }
    .mwag-actions {
        grid-template-columns: 1fr;
    }
}
