/* ChefMate Serving Adjuster - Minimal CSS (Rest from Elementor) */

/* Wrapper */
.chefmate-serving-btn-wrap {
    display: flex;
    width: 100%;
}

/* Button */
.chefmate-serving-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 8px;
    padding: 12px 24px;
}

.chefmate-serving-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Modal Overlay */
.chefmate-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Modal Content */
.chefmate-modal-content {
    background: #ffffff;
    border-radius: 12px;
    max-width: 420px;
    width: 100%;
    padding: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: chefmateModalIn 0.3s ease;
}

@keyframes chefmateModalIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Modal Header */
.chefmate-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.chefmate-modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
}

.chefmate-modal-close {
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #94a3b8;
    transition: color 0.3s;
}

.chefmate-modal-close:hover {
    color: #ef4444;
}

/* Modal Body */
.chefmate-modal-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chefmate-modal-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
    background: #f8fafc;
    color: #1e293b;
    box-sizing: border-box;
}

.chefmate-modal-input:focus {
    outline: none;
    border-color: #e67e22;
    box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.1);
}

.chefmate-modal-btn {
    width: 100%;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.chefmate-modal-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.chefmate-modal-error {
    font-size: 14px;
    color: #ef4444;
    margin-top: 8px;
    padding: 8px 12px;
    background: #fef2f2;
    border-radius: 6px;
    border: 1px solid #fecaca;
}

/* Responsive */
@media (max-width: 768px) {
    .chefmate-modal-content {
        padding: 20px;
        max-width: 340px;
    }
    
    .chefmate-modal-title {
        font-size: 16px;
    }
    
    .chefmate-modal-input {
        font-size: 14px;
        padding: 10px 14px;
    }
    
    .chefmate-modal-btn {
        font-size: 14px;
        padding: 10px 16px;
    }
}

@media (max-width: 480px) {
    .chefmate-modal-content {
        padding: 16px;
        max-width: 300px;
    }
    
    .chefmate-serving-btn {
        font-size: 12px;
        padding: 10px 16px;
    }
}