/* ================================
   MODAL STYLES
=================================*/
.mlf-overlay {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85); /* dark background */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px; /* space for small screens */
    overflow-y: auto; /* allow scrolling if content is too tall */
}

.mlf-modal {
    background: #fff;
    border-radius: 8px;
    width: 100%;
    max-width: 800px; 
    max-height: 90vh; /* use viewport height for responsiveness */
    overflow-y: auto;
    position: relative;
    padding: 20px;
    box-sizing: border-box;
    box-shadow: 0 5px 25px rgba(0,0,0,0.5);
}

.mlf-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    cursor: pointer;
}

/* Responsive modal */
/* Tablet */
@media (max-width: 1024px) {
    .mlf-modal {
        max-width: 90%;
        max-height: 85vh;
    }
}

/* Mobile */
@media (max-width: 600px) {
    .mlf-modal {
        max-width: 95%;
        max-height: 90vh;
        padding: 15px;
    }
}


/* ================================
   FLOATING BUTTON STYLES
=================================*/
.mlf-floating-button {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(134, 58, 71, 0.85); /* semi-transparent wine red */
    color: white;
    padding: 14px 10px;
    border-radius: 16px; /* rectangle with soft corners */
    cursor: pointer;
    z-index: 9998;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 1px;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    outline: none;
    backdrop-filter: blur(6px); /* glassy effect */
}

.mlf-floating-button:hover {
    transform: translateY(-50%) translateX(-5px);
    box-shadow: 0 6px 22px rgba(0,0,0,0.3);
    background: rgba(242, 174, 76, 0.9); /* amber hover */
}

.mlf-floating-text {
    text-transform: uppercase;
    user-select: none;
}

/* Floating button responsive styles */
@media (max-width: 768px) {
    .mlf-floating-button {
        right: 15px;
        padding: 12px 8px;
        min-height: 100px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .mlf-floating-button {
        right: 10px;
        padding: 10px 6px;
        min-height: 80px;
        font-size: 12px;
        border-radius: 12px;
    }
}