﻿/* Modal overlay - full screen dim background */
.custom-modal-mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.3);
    align-items: center; /* Vertical centering */
    justify-content: center; /* Horizontal centering */
    z-index: 2000;
}

/* Show modal when triggered */
.custom-modal-mask.show {
    display: flex;
}

/* Modal wrapper - responsive, centered */
.custom-modal-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    padding: 40px 70px 40px 70px;
    min-width: 320px;
    max-width: 600px;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: modalPopIn 0.2s cubic-bezier(0.32,1.25,0.32,1) 1;
    border: 2px solid red;
}

/* Error message styling */
.custom-modal-title-cancel {
    color: black; 
    font-size: clamp(1rem, 1.2rem + 0.3vw, 1.5rem);
    text-align: center;
    margin-bottom: 50px;
    word-break: break-word;
}

/* Action button container */
.custom-modal-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    width: 100%;
}

/* Button */
.custom-modal-btn {
    background: green;
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-size: clamp(0.9rem, 1rem, 1.2rem);
    cursor: pointer;
    transition: background 0.2s;
    min-width: 100px;
}

.custom-modal-btn:hover {
    background: green;
}

/* Small screen adjustment */
@media (max-width: 480px) {
    .custom-modal-actions .custom-modal-btn {
        width: 100%; /* Buttons stretch full width on mobile */
    }
}
