#modal-overlay-qualla,
#modal-qualla {
    display: none;
}

#modal-overlay-qualla {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

#modal-qualla {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    width: 400px;
    max-width: 90%;
    text-align: center;
    cursor: default; /* Prevent inheriting pointer cursor from overlay */
}

/* Close button styles */
#modal-qualla .modal-close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    border-radius: 50%;
    transition: all 0.3s ease;
}

#modal-qualla .modal-close-btn:hover {
    color: #333;
    background-color: #f5f5f5;
}

#modal-qualla p {
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.5;
    padding-right: 10px; /* Add some padding to prevent text from being too close to X button */
    padding-left: 10px;
}

#modal-qualla button {
    padding: 0 0 0 0 !important;
    min-width: auto;
    background-color: #c9475f;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
    display: block !important;
    margin-right: auto !important;
    margin-left: auto !important;
    width: 140px;
    line-height: 1;
    height: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;
}

#modal-qualla button:hover {
    background-color: #AE273F;
}