/**
 * Elex Custom Modal Enhancements CSS
 */

/* Modal container */
.elex-custom-modal-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.elex-custom-modal-container.active {
    opacity: 1;
    visibility: visible;
}

/* Modal overlay */
.elex-custom-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
}

/* Modal content */
.elex-custom-modal {
    position: relative;
    width: 90%;
    max-width: 900px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transform: translateY(20px);
    transition: transform 0.3s ease, height 0.3s ease;
}

.elex-custom-modal.fixed-height {
    height: 560px; /* Match the height of the two-column upsell modal */
}

.elex-custom-modal-container.active .elex-custom-modal {
    transform: translateY(0);
}

/* Splash screen */
.elex-splash-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
    height: 100%;
    transition: opacity 0.3s ease;
}

.elex-splash-screen.flex-center {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.elex-splash-screen.hide {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    pointer-events: none;
}

.elex-splash-product-name {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.elex-splash-message {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 30px;
    color: #0077C2;
}

/* Checkmark animation */
.elex-splash-animation {
    position: relative;
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
}

.elex-checkmark {
    width: 80px;
    height: 80px;
}

.elex-checkmark-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 2;
    stroke-miterlimit: 10;
    stroke: #0077C2;
    fill: none;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.elex-checkmark-check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    stroke-width: 3;
    stroke: #0077C2;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes stroke {
    100% {
        stroke-dashoffset: 0;
    }
}

/* Loading dots animation */
.elex-loading-dots {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.elex-loading-dots div {
    width: 10px;
    height: 10px;
    margin: 0 5px;
    background-color: #0077C2;
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out both;
}

.elex-loading-dots div:nth-child(1) {
    animation-delay: -0.32s;
}

.elex-loading-dots div:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes bounce {
    0%, 80%, 100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1);
    }
}

/* Modal body content - 2 column layout */
.elex-custom-modal-body {
    padding: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: row;
}

.elex-custom-modal-body.show {
    opacity: 1;
    display: flex;
    flex-direction: row;
}

@media only screen and (max-width:600px) {
	.elex-custom-modal-body.show {
    opacity: 1;
    display: flex;
    flex-direction: column;
}
	
	.elex-modal-left-column, .elex-modal-close-btn {
        padding: 30px 20px;
        display: none !important;
    }
}
}

/* Close button */
/* 
 * 
 * 
.elex-modal-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    color: #333333;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.elex-modal-close-btn:hover {
    opacity: 1;
}
*
*
*/

.elex-modal-close-btn {
    display: none !important;
}

/* Left Column - Offer highlight */
.elex-modal-left-column {
    flex: 1;
    background: linear-gradient(to bottom right, #0077C2, #c8ffff);
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    color: white !important;
    text-align: center;
    font-family: 'Space Grotesk', sans-serif;
}

.elex-limited-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: #00619a;
    color: white;
    padding: 5px 12px;
    font-weight: 700;
    font-size: 14px;
    border-radius: 999px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 97, 154, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(0, 97, 154, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 97, 154, 0);
    }
}

.elex-price-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.elex-regular-price {
    font-size: 24px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: line-through;
    margin-bottom: 5px;
    font-weight: 500;
}

.elex-price-amount {
    font-size: 60px;
    font-weight: 800;
    margin: 0 0 10px 0;
}

.elex-price-note {
    font-size: 16px;
    opacity: 0.9;
}

/* Right Column - Benefits */
.elex-modal-right-column {
    flex: 1.5;
    background-color: #f5f5f5;
    padding: 30px;
}

.elex-bundle-title {
    font-size: 32px !important;
    font-weight: 800;
    color: #333333;
    margin-bottom: 15px;
}

.elex-bundle-description {
    font-size: 16px;
    color: #333333;
    margin-bottom: 25px;
}

/* Benefits styling */
.elex-benefits-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.elex-benefit-item {
    display: flex;
    gap: 15px;
}

.elex-benefit-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    background-color: #0077C2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 3px;
}

.elex-benefit-icon i {
    color: white;
    font-size: 12px;
}

.elex-benefit-text {
    font-size: 14px !important;
    line-height: 1.5;
    color: #333333;
}

.elex-benefit-highlight {
    font-weight: 700;
    color: #0077C2;
}

/* Extensions list styling */
.elex-extensions-list {
    display: flex;
    flex-direction: column;
    margin: 10px 0 0 2px;
    gap: 8px;
}

.elex-extension-item {
    position: relative;
    padding-left: 18px;
    font-size: 15px;
    color: #333333;
    line-height: 1.4;
    display: flex;
    align-items: flex-start;
}

.elex-extension-item::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0;
    color: #0077C2;
    font-weight: bold;
    font-size: 16px;
}

/* Right column footer */
.elex-right-footer {
    display: flex;
    gap: 10px;
    margin-top: 30px;
    justify-content: space-between;
}

.elex-proceed-to-checkout {
    background-color: #fff;
    color: #333;
    border: 1px solid #333;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Space Grotesk', sans-serif;
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 0 1 auto;
    margin: 0;
    white-space: nowrap;
    box-shadow: 0 2px 0 #333;
}

.elex-proceed-to-checkout:hover {
    background-color: #f5f5f5;
}

.elex-get-all-access {
    background-color: #0077C2;
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Space Grotesk', sans-serif;
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1 1 auto;
    margin: 0;
    box-shadow: 0 2px 0 #00619a;
}

.elex-get-all-access:hover {
    background-color: #00619a;
}

/* Hide the old footer */
.elex-custom-modal-footer {
    display: none;
}

/* Responsive styles */
@media (max-width: 768px) {
    .elex-custom-modal-body {
        flex-direction: column;
    }
    
    .elex-custom-modal {
        max-width: 500px;
    }
    
    .elex-modal-left-column {
        padding: 30px 20px;
    }
    
    .elex-lifetime-title {
        font-size: 24px;
        margin-bottom: 20px;
    }
    
    .elex-price-amount {
        font-size: 50px;
    }
    
    .elex-bundle-title {
        font-size: 22px;
    }
    
    .elex-right-footer {
        flex-direction: column;
    }
    
    .elex-proceed-to-checkout,
    .elex-get-all-access {
        width: 100%;
        margin: 5px 0;
    }
    
    .elex-get-all-access {
        order: -1;
    }
    
    .elex-regular-price {
        font-size: 20px;
    }
    
    .elex-limited-badge {
        font-size: 12px;
        padding: 4px 10px;
    }
    
    .elex-custom-modal.fixed-height {
        height: auto;
        min-height: 400px;
    }
}

.elex-lifetime-title {
    font-size: 32px !important;
    font-weight: 800;
    margin-bottom: 30px;
    color: white !important;
    margin-top: 0 !important;
}

.elex-price-label {
    font-size: 14px;
    font-weight: bold;
    background: #c8ffff;
    color: #0077c2;
    padding: 3px 15px;
    border-radius: 100px;
    margin-bottom: 5px;
}

/* Price highlight in button */
.elex-price-highlight {
    background: #c8ffff;
    color: #0077c2;
    padding: 3px 15px;
    border-radius: 100px;
    display: inline-block;
    margin: 0 3px;
    font-weight: bold;
} 