/* Estilos para o Modal de Finalização */
#modalFinalizacao {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-content-finalizacao {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    margin: auto;
    padding: 0;
}

#modalFinalizacao.open {
    display: flex;
}

/* Estilos para o header do modal */
.modal-header-carrinho {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #dee2e6;
    padding: 20px;
    margin-bottom: 0;
}

.modal-header-carrinho h4 {
    margin: 0;
    color: #333;
    font-size: 1.25rem;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-btn:hover {
    color: #ff0000;
    background-color: #f8f9fa;
}

/* Estilos para o corpo do modal */
.carrinho-body {
    padding: 20px;
    flex: 1;
}

/* Estilos para o footer do modal */
.carrinho-footer {
    border-top: 1px solid #dee2e6;
    padding: 20px;
    margin-top: 0;
}

/* Estilos para o formulário */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    font-size: 1rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Estilos para o botão de confirmação */
.btn-success {
    background-color: #28a745;
    border-color: #28a745;
    color: white;
    padding: 12px 20px;
    border-radius: 5px;
    font-size: 16px;
    width: 100%;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-success:hover {
    background-color: #218838;
    border-color: #1e7e34;
    transform: translateY(-1px);
}

.btn-success:disabled {
    background-color: #6c757d;
    border-color: #6c757d;
    cursor: not-allowed;
    opacity: 0.65;
}

/* Estilos para texto pequeno */
.text-muted {
    color: #6c757d;
    font-size: 0.875rem;
}

/* Responsividade */
@media (max-width: 600px) {
    .modal-content-finalizacao {
        margin: 10px;
        max-width: calc(100% - 20px);
    }
    
    .modal-header-carrinho,
    .carrinho-body,
    .carrinho-footer {
        padding: 15px;
    }
    
    .modal-header-carrinho h4 {
        font-size: 1.1rem;
    }
}

