/**
* Module blancmouchonCamionFreez - CSS
*
* @author    blancmouchon
* @copyright 2025 blancmouchon
*/

.bmcf-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 9998;
}

#bmcf-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    z-index: 9999;
    max-width: 500px;
    width: 90%;
    animation: bmcfModalFadeIn 0.3s;
}

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

.bmcf-modal-content {
    text-align: center;
}

.bmcf-modal-content h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.5em;
    border-bottom: 2px solid #2fb5d2;
    padding-bottom: 10px;
}

.bmcf-modal-content p {
    margin-bottom: 20px;
    color: #666;
    line-height: 1.5;
}

.bmcf-buttons {
    margin: 25px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.bmcf-modal-content .btn {
    margin: 5px;
    padding: 15px 25px;
    min-width: 200px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1em;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-transform: uppercase;
}

.bmcf-modal-content .btn-primary {
    background: #2fb5d2;
    color: white;
}

.bmcf-modal-content .btn-primary:hover {
    background: #2593ab;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(47, 181, 210, 0.3);
}

.bmcf-modal-content .btn-secondary {
    background: #6c868e;
    color: white;
}

.bmcf-modal-content .btn-secondary:hover {
    background: #546a71;
    transform: translateY(-2px);
}

.bmcf-modal-content .btn-warning {
    background: #ffc107;
    color: #212529;
}

.bmcf-modal-content .btn-warning:hover {
    background: #e0a800;
    transform: translateY(-2px);
}

.bmcf-modal-content .btn-danger {
    background: #dc3545;
    color: white;
}

.bmcf-modal-content .btn-danger:hover {
    background: #c82333;
    transform: translateY(-2px);
}

.bmcf-modal-content input[type="text"] {
    padding: 15px;
    margin: 15px 0;
    width: 150px;
    text-align: center;
    font-size: 28px;
    font-weight: bold;
    border: 3px solid #ddd;
    border-radius: 10px;
    transition: border-color 0.3s;
}

.bmcf-modal-content input[type="text"]:focus {
    outline: none;
    border-color: #2fb5d2;
    box-shadow: 0 0 10px rgba(47, 181, 210, 0.2);
}

.bmcf-help {
    font-size: 0.9em;
    color: #7f8c8d;
    margin: 15px 0;
    background: #f8f9fa;
    padding: 10px;
    border-radius: 5px;
}

.bmcf-cart-warning {
    background: #fff3cd;
    border: 2px solid #ffeeba;
    color: #856404;
    padding: 15px;
    margin: 15px 0;
    border-radius: 10px;
}

.bmcf-cart-warning .btn-warning {
    background: #ffc107;
    color: #212529;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.bmcf-cart-warning .btn-warning:hover {
    background: #e0a800;
    transform: translateY(-2px);
}

.bmcf-change-choice {
    margin: 20px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: center;
    border: 1px dashed #dc3545;
}

.material-icons {
    font-size: 24px;
    vertical-align: middle;
}

@media (max-width: 768px) {
    .bmcf-cart-warning > div {
        flex-direction: column;
        align-items: flex-start !important;
    }
    
    .bmcf-cart-warning .btn-warning {
        width: 100%;
    }
}

@media (max-width: 480px) {
    #bmcf-modal {
        padding: 20px;
        width: 95%;
    }
    
    .bmcf-modal-content .btn {
        min-width: 100%;
        margin: 5px 0;
        padding: 12px 20px;
        font-size: 0.9em;
    }
    
    .bmcf-buttons {
        flex-direction: column;
        gap: 5px;
    }
    
    .bmcf-modal-content input[type="text"] {
        width: 120px;
        font-size: 24px;
    }
}