/* ===============================
   Custom Modal Styling
   =============================== */

/* Modal Overlay */
#Compatibility-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
    overflow-y: auto;
}

/* Modal Content Box */
#Compatibility-modal-content {
    background-color: #fff;
    max-width: 700px;
    width: 90%;
    margin: 2rem auto;
    padding: 30px 40px;
    border-radius: 6px;
    position: relative;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 0.3s ease-out;
}

/* Modal Close Button */
#Compatibility-modal-close {
    position: absolute;
    top: 0px;
    right: 20px;
    width: 40px;
    height: 40px;
    font-size: 28px;
    color: #B4B4B4;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: transparent;
    user-select: none;
    z-index: 10000;
}
#Compatibility-modal-close:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

/* Prevent background scroll when modal is open */
body.modal-open {
    overflow: hidden;
}

/* Fade-in animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive modal padding */
@media (max-width: 768px) {
    #Compatibility-modal-content {
        padding: 20px;
    }
}

/* ===============================
   Button Containers
   =============================== */

/* Container for WhatsApp button inside modal */
#compatibility-button-container {
    margin-top: 0px;
    text-align: center;
    padding-left: 10px;
    padding-right: 10px;
    padding-bottom:20px;
    background-color: #F2F2F2;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius:10px;
}

/* ===============================
   Buttons Styling
   =============================== */

/* Primary "Verify Compatibility" button (above Add to Cart) */
/*note this css was placed in theme customizer so as to load quickly*/
/*.custom-summary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 20px;
    background-color: #23929B;
    color: #ffffff;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
}
.custom-summary-button:hover {
    background-color: #1d7a82;
    color: #ffffff;
}
.custom-summary-button i {
    font-size: 1.2em;
} */

/* Secondary WhatsApp button (inside modal) */
.custom-summary-button-two {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 15px;
    background-color: #25D366;
    color: #FFFFFF;
    width: 100%;
    text-align: center;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
}
.custom-summary-button-two:hover {
    background-color: #26A454 !important;
    color: #ffffff !important;
}

/* WhatsApp Icon inside modal button */
.custom-summary-button-two i {
    color: #ffffff;
    font-size: 1.8em;
}

/* ===============================
   WhatsApp Redirect Overlay
   =============================== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.85);
    display: none; /* Hidden by default */
    justify-content: center;
    align-items: center;
    z-index: 10001; /* Higher than modal */
    font-size: 1.2rem;
    color: #000000;
    pointer-events: all;
    transition: opacity 0.3s ease;
}

/* Spinner */
.spinner {
    border: 5px solid #23929b;
    border-top: 5px solid #d14182;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===============================
   Dynamic Title Styling
   =============================== */
.dynamic-title-target {
    color: #D14182;
}

