/* Marketing Banners CSS (v2.35.0) */

:root {
    --pg-banner-bg: linear-gradient(90deg, #0056b3 0%, #007bff 100%);
    --pg-banner-text: #ffffff;
    --pg-coupon-bg: #fff3cd;
    --pg-coupon-border: #ffeeba;
    --pg-coupon-text: #856404;
}

/* Top Banner */
.pg-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    padding: 12px 20px;
    background: var(--pg-banner-bg);
    color: var(--pg-banner-text);
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    font-family: inherit;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease;
}

.pg-banner-content {
    max-width: 1200px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    font-size: 15px;
}

.pg-banner-text strong {
    background: rgba(255,255,255,0.2);
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.pg-banner-cta {
    background: #ffffff;
    color: #0056b3;
    padding: 6px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    transition: transform 0.2s;
    white-space: nowrap;
}

.pg-banner-cta:hover {
    transform: scale(1.05);
    background: #f8f9fa;
}

.pg-banner-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    opacity: 0.7;
    padding: 0 10px;
}

.pg-banner-close:hover {
    opacity: 1;
}

/* Push body down when banner is active */
body.pg-has-banner {
    padding-top: 50px; /* Adjust based on banner height */
}

/* Exit Intent Popup */
.pg-modal.pg-exit-intent {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.pg-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
}

.pg-modal-container {
    position: relative;
    background: white;
    width: 90%;
    max-width: 500px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    animation: pg-pop-in 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes pg-pop-in {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.pg-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    z-index: 10;
}

.pg-modal-content {
    padding: 40px;
    text-align: center;
}

.pg-exit-header h2 {
    margin: 15px 0 10px;
    color: #333;
}

.pg-exit-header p {
    color: #666;
    line-height: 1.5;
}

.pg-exit-emoji {
    font-size: 50px;
}

.pg-exit-coupon-box {
    background: var(--pg-coupon-bg);
    border: 2px dashed var(--pg-coupon-border);
    border-radius: 12px;
    padding: 20px;
    margin: 25px 0;
}

.pg-coupon-label {
    display: block;
    font-size: 13px;
    color: var(--pg-coupon-text);
    margin-bottom: 8px;
    text-transform: uppercase;
    font-weight: bold;
}

.pg-coupon-code {
    font-size: 32px;
    font-weight: 900;
    color: #000;
    letter-spacing: 2px;
    margin: 10px 0;
}

.pg-coupon-note {
    font-size: 12px;
    color: #777;
    margin: 0;
}

.pg-exit-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pg-btn {
    padding: 14px 25px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    border: none;
    font-size: 16px;
    transition: all 0.2s;
}

.pg-btn-primary {
    background: #007bff;
    color: white;
}

.pg-btn-primary:hover {
    background: #0056b3;
}

.pg-btn-link {
    background: none;
    color: #999;
    font-size: 14px;
}

.pg-btn-link:hover {
    color: #666;
}

@media (max-width: 600px) {
    .pg-banner-content {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    .pg-banner-close {
        position: absolute;
        right: 5px;
        top: 50%;
        transform: translateY(-50%);
    }
}
