/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 20px;
    box-sizing: border-box;
}

.modal-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    padding: 24px 24px 16px;
    border-bottom: 1px solid #e9ecef;
    text-align: center;
}

.modal-header h3 {
    margin: 0;
    color: var(--cor-primaria);
    font-size: 1.5rem;
    font-weight: 600;
}

.modal-body {
    padding: 24px;
    text-align: center;
}

.confirmacao-icon {
    margin-bottom: 20px;
}

.confirmacao-icon i {
    font-size: 4rem;
    color: #28a745;
}

.modal-body p {
    margin: 16px 0;
    color: #6c757d;
    line-height: 1.5;
}

.pedido-detalhes {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    text-align: left;
}

.pedido-detalhes p {
    margin: 8px 0;
    color: #495057;
}

.pedido-detalhes strong {
    color: var(--cor-primaria);
}

.mensagem-agradecimento {
    font-weight: 500;
    color: var(--cor-primaria) !important;
    font-size: 1.1rem;
}

.modal-footer {
    padding: 16px 24px 24px;
    text-align: center;
}

.modal-footer .btn-primary {
    min-width: 120px;
    padding: 12px 24px;
}

/* Responsividade para telas pequenas */
@media (max-width: 768px) {
    .modal {
        padding: 15px;
    }
    
    .modal-content {
        max-width: 100%;
        margin: 0;
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .modal-header h3 {
        font-size: 1.3rem;
    }
    
    .confirmacao-icon i {
        font-size: 3rem;
    }
}

@media (max-width: 400px) {
    .modal {
        padding: 10px;
    }
    
    .modal-content {
        border-radius: 8px;
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding-left: 16px;
        padding-right: 16px;
    }
    
    .modal-header {
        padding-top: 20px;
        padding-bottom: 12px;
    }
    
    .modal-body {
        padding-top: 20px;
        padding-bottom: 20px;
    }
    
    .modal-footer {
        padding-top: 12px;
        padding-bottom: 20px;
    }
    
    .modal-header h3 {
        font-size: 1.2rem;
    }
    
    .confirmacao-icon i {
        font-size: 2.5rem;
    }
    
    .pedido-detalhes {
        padding: 16px;
        margin: 16px 0;
    }
    
    .modal-footer .btn-primary {
        width: 100%;
        padding: 14px 20px;
        font-size: 1rem;
    }
}