/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Mona Sans', sans-serif;
    background-color: #f5f5f5;
   
}

/* Main page content */
.main-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.main-content h1 {
    color: #333;
    margin-bottom: 16px;
}

.main-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 16px;
}

/* Exit Intent Overlay */
.exit-intent-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 16px;
}

.exit-intent-overlay.show {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Exit Intent Container */
.exit-intent-container {
    background: #ffffff;
    border-radius: 8px;
    position: relative;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Exit Intent Close Button */
.exit-intent-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    color: #010100;
    z-index: 10001;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.exit-intent-close-btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
    transform: scale(1.1);
}

.exit-intent-close-btn svg {
    width: 20px;
    height: 20px;
}

.exit-intent-close-btn:hover {
    opacity: 0.8;
}

/* Exit Intent Main Content Layout */
.exit-intent-main-content {
    display: flex;
    padding: 16px;
    gap: 16px;
    min-height: 500px;
    background: #002485; /*added in scc bg*/
}

/* Left Panel - Image Container */
.exit-intent-image-wrapper {
    width: 328px;
    min-height: 400px;
    background: none;
    border-radius: 8px 8px 8px 8px;
    position: relative;
    flex-shrink: 0;
}

/* Right panel - Offer content */
.exit-intent-offer-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 40px;
    padding: 20px;
    color: #fafafa;
}

.exit-intent-offer-details {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.exit-intent-heading-area {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.exit-intent-main-title {
    font-family: 'Mona Sans', 'Inter', sans-serif;
    font-size: 40px;
    font-weight: 400;
    line-height: 48px;
    color: #ffffff; /* changed in SCC */
}

.exit-intent-discount-text {
    font-family: 'Mona Sans', 'Inter', sans-serif;
    font-size: 56px;
    font-weight: 700;
    line-height: 64px;
    color: #FFCB00;
}

.exit-intent-description-area {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 20px;
    line-height: 24px;
    color: #ffffff; /* changed in SCC */
}

/* Exit Intent Button Container */
.exit-intent-button-area {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

/* Exit Intent Primary Button */
.exit-intent-primary-btn {
    background-color: #F4D330;
    color: #000000;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
    cursor: pointer;
    white-space: nowrap;
    min-width: 277px;
    text-align: center;
}

.exit-intent-primary-btn:hover {
    background-color: #1d4ed8;
}

/* Exit Intent Secondary Button */
.exit-intent-secondary-btn {
    background: transparent;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
    cursor: pointer;
    white-space: nowrap;
}

.exit-intent-secondary-btn:hover {
    background-color: rgba(30, 64, 175, 0.05);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .exit-intent-main-content {
        flex-direction: column;
        padding: 12px;
    }
    
    .exit-intent-image-wrapper {
        width: 100%;
        height: 200px;
    }
    
    .exit-intent-main-title {
        font-size: 28px;
        line-height: 34px;
    }
    
    .exit-intent-discount-text {
        font-size: 40px;
        line-height: 48px;
    }
    
    .exit-intent-description-area {
        font-size: 16px;
        line-height: 20px;
    }
    
    .exit-intent-button-area {
        flex-direction: column;
    }
    
    .exit-intent-primary-btn {
        min-width: auto;
        width: 100%;
    }
    
    .exit-intent-secondary-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .exit-intent-container {
        margin: 10px;
        max-height: 95vh;
    }
    
    .exit-intent-main-title {
        font-size: 24px;
        line-height: 30px;
    }
    
    .exit-intent-discount-text {
        font-size: 32px;
        line-height: 38px;
    }
}

@media (max-width: 768px) {
    .exit-intent-image-wrapper {
        display: none;
    }
}
@keyframes slowBounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

.exit-intent-primary-btn {
  animation: slowBounce 1.2s ease-in-out infinite;
}

/* Debug class to test popup visibility */
.exit-intent-overlay.debug-show {
    display: flex !important;
}

/* Force show popup with maximum priority - aggressive overrides */
#exit-intent-modal-overlay.show { 
    display: flex !important; 
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 2147483647 !important; /* Maximum z-index value */
    background-color: rgba(0, 0, 0, 0.8) !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Ensure popup container is properly displayed */
#exit-intent-modal-overlay.show .exit-intent-container {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    background: white !important;
    border-radius: 8px !important;
    max-width: 900px !important;
    width: 100% !important;
    margin: auto !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1) !important;
}

#exit-intent-modal-overlay.show .exit-intent-main-content {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Force close button to be visible */
#exit-intent-modal-overlay.show #exitIntentCloseBtn,
#exit-intent-modal-overlay.show .exit-intent-close-btn {
    display: flex !important;
    position: absolute !important;
    top: 1rem !important;
    right: 1rem !important;
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid #ccc !important;
    cursor: pointer !important;
    padding: 0.5rem !important;
    color: #fff !important;
    z-index: 10001 !important;
    border-radius: 50% !important;
    width: 32px !important;
    height: 32px !important;
    align-items: center !important;
    justify-content: center !important;
    visibility: visible !important;
    opacity: 1 !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

#exit-intent-modal-overlay.show #exitIntentCloseBtn:hover,
#exit-intent-modal-overlay.show .exit-intent-close-btn:hover {
    background: rgba(255, 255, 255, 1) !important;
    transform: scale(1.1) !important;
}

/* Debug styling to make popup very obvious */
#exit-intent-modal-overlay.show {
    animation: popupFlash 0.5s ease-in-out !important;
}

@keyframes popupFlash {
    0% { background-color: rgba(255, 0, 0, 0.9); }
    50% { background-color: rgba(0, 255, 0, 0.9); }
    100% { background-color: rgba(0, 0, 0, 0.8); }
}