#tapopup-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.7);
    font-family: Arial, sans-serif;
}

#tapopup-box {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    max-width: 90%;
    width: 600px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    text-align: center;
    animation: fadeIn 0.3s ease-in-out;
}

#tapopup-box div {
    font-size: 14px;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.6;
    word-wrap: break-word;
}

/* Flex container for buttons */
#tapopup-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Button styling */
#tapopup-accept,
#tapopup-decline {
    flex: 1;
    min-width: 120px;
    padding: 14px;
    font-size: 15px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    color: white;
    transition: background 0.3s ease;
}

#tapopup-accept {
    background-color: #2791b2;
}

#tapopup-accept:hover {
    background-color: #cf4f54;
}

#tapopup-decline {
    background-color: #cf4f54;
}

#tapopup-decline:hover {
    background-color: #2791b2;
}



@keyframes fadeIn {
    from { opacity: 0; transform: translate(-50%, -60%); }
    to { opacity: 1; transform: translate(-50%, -50%); }
}

/* Mobile Enhancements */
@media (max-width: 480px) {
    #tapopup-box {
        width: 90%;
        padding: 15px;
    }

    #tapopup-box div {
        font-size: 15px;
    }

    #tapopup-accept,
    #tapopup-decline {
        font-size: 15px;
        padding: 12px;

    }
 #tapopup-buttons {
        flex-direction: column;
    }

}

