/* Overlay */
.iy-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    z-index: 9999;

    animation: iyPopupShow 0s linear forwards;
    animation-delay: 10s; /* CHANGE to 5–10s here */
}

/* Popup Box */
.iy-popup {
    background: #fff;
    max-width: 520px;
    width: 90%;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.25);
}

/* Close buttons */
.iy-popup-close,
.iy-popup-close-overlay {
    cursor: pointer;
}

.iy-popup-close {
    position: absolute;
    top: 10px;
    right: 14px;
    font-size: 24px;
}

/* Image */
.iy-popup-image img {
    width: 100%;
    display: block;
}

/* Content */
.iy-popup-content {
    padding: 24px;
    text-align: center;
}

.iy-popup-content h2 {
    font-size: 22px;
    margin-bottom: 10px;
}

.iy-popup-content p {
    font-size: 15px;
    color: #555;
    margin-bottom: 20px;
}

/* Buttons */
.iy-popup-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.iy-btn {
    padding: 10px 18px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
}

.iy-btn-primary {
    background: #e07a2f;   /* orange */
    color: #ffffff;
}

.iy-btn-primary:hover {
    background: #6b7846;   /* teal */
    color: #ffffff;
}

.iy-btn-secondary {
    background: #e07a2f;   /* orange */
    color: #ffffff;
    border: 1px solid #e07a2f;
}

.iy-btn-secondary:hover {
    background: #6b7846;   /* teal */
    color: #ffffff;
    border-color: #6b7846;
}

/* Animation */
@keyframes iyPopupShow {
    to {
        opacity: 1;
        pointer-events: auto;
    }
}

/* Close logic */
#iy-popup-toggle:checked ~ .iy-popup-overlay {
    display: none;
}
