/* General popup styling */
#demo-expiration-popup, #demo-expiration-popup-expired {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    max-width: 90%; /* Make popup responsive */
    background-color: #ffffff; /* White background */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); /* Smooth shadow */
    border-radius: 12px; /* Rounded corners */
    padding: 30px;
    z-index: 10001; /* Ensure popups are on top */
    font-family: 'Poppins', sans-serif;
    display: none; /* Initially hidden */
    text-align: center; /* Center the content */
}

/* Close button styling */
.close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #e74c3c; /* Red close button */
    color: white;
    font-size: 18px;
    font-weight: bold;
    border-radius: 50%; /* Round button */
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2); /* Slight shadow for depth */
}

/* Expiration and after-expiry messages */
#demo-expiration-message, #demo-expiration-after-message {
    font-size: 16px;
    color: #333; /* Dark text color */
    line-height: 1.5;
    margin-bottom: 20px; /* Space between message and timer */
}

/* Timer styling */
#demo-expiration-timer, #demo-expiration-popup-timer {
    font-size: 20px;
    color: #e74c3c; /* Red timer text */
    font-weight: bold;
    margin-bottom: 20px; /* Space between timer and buttons */
}

/* Button styling */
#demo-expiration-popup button {
    background-color: #3498db; /* Blue button */
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1); /* Slight shadow for depth */
}

/* Button hover effect */
#demo-expiration-popup button:hover {
    background-color: #2980b9;
}

/* Full-screen overlay to block interactions when the expired popup is shown */
#demo-expiration-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent black */
    z-index: 10000; /* Ensure the overlay is just behind the popup */
    display: none; /* Initially hidden */
}

/* Ensure that the overlay covers the whole screen when visible */
#demo-expiration-popup-expired.show + #demo-expiration-overlay {
    display: block;
}
