/* --- CSS para os Modais de Checkout e Sucesso --- */

.checkout-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Fundo um pouco mais escuro */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1001; /* Acima do modal da sacola */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.checkout-modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.checkout-modal-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 450px; /* Largura padrão para os modais */
    text-align: center;
    transform: translateY(-20px); /* Começa um pouco acima para deslizar para baixo */
    transition: transform 0.3s ease;
    box-sizing: border-box;
}

.checkout-modal-overlay.show .checkout-modal-content {
    transform: translateY(0); /* Desliza para a posição final */
}

.checkout-modal-title {
    font-size: 28px;
    color: #333;
    margin-bottom: 10px;
    font-weight: bold;
}

.checkout-modal-description {
    font-size: 16px;
    color: #666;
    margin-bottom: 25px;
}

/* Estilo para campos de entrada */
.checkout-input-group {
    margin-bottom: 20px;
    text-align: left;
}

.checkout-input-group label {
    display: block;
    font-size: 15px;
    color: #444;
    margin-bottom: 8px;
    font-weight: 500;
}

.checkout-input-group input[type="text"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    color: #333;
    box-sizing: border-box; /* Garante que padding não aumente a largura */
}

.checkout-input-group input[type="text"]::placeholder {
    color: #bbb;
}

.checkout-input-group input[type="text"]:focus {
    outline: none;
    border-color: #FFC72C; /* Cor de destaque ao focar */
    box-shadow: 0 0 0 3px rgba(255, 199, 44, 0.2);
}

/* Botões de Ação */
.checkout-modal-actions {
    display: flex;
    justify-content: center; /* Centraliza os botões */
    gap: 15px; /* Espaçamento entre os botões */
    margin-top: 30px;
}

.checkout-button {
    padding: 12px 25px;
    border: none;
    border-radius: 25px; /* Botões mais arredondados */
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-grow: 1; /* Permite que os botões cresçam para preencher o espaço */
    max-width: 150px; /* Limita a largura para botões em linha */
}

.checkout-button.cancel {
    background-color: #e0e0e0;
    color: #555;
}

.checkout-button.cancel:hover {
    background-color: #d0d0d0;
}

.checkout-button.confirm {
    background-color: #FFC72C; /* Amarelo do tema */
    color: #fff;
}

.checkout-button.confirm:hover {
    background-color: #e0b000;
}

.checkout-button.primary { /* Para o botão 'Continuar' */
    background-color: #FFC72C;
    color: #fff;
}

.checkout-button.primary:hover {
    background-color: #e0b000;
}

.checkout-button.secondary { /* Para o botão 'Ver pedidos' */
    background-color: #f0f0f0;
    color: #333;
    border: 1px solid #ddd;
}

.checkout-button.secondary:hover {
    background-color: #e5e5e5;
}

/* Estilo para o Modal de Sucesso */
.checkout-modal-content.success-content {
    padding-top: 40px; /* Mais espaço no topo para o ícone */
}

.success-icon {
    font-size: 60px;
    color: #4CAF50; /* Verde de sucesso */
    margin-bottom: 20px;
    display: block; /* Garante que o ícone ocupe sua própria linha */
}

/* Media Queries para ajuste em telas menores */
@media (max-width: 550px) {
    .checkout-modal-content {
        padding: 20px;
        max-width: 95%;
    }

    .checkout-modal-title {
        font-size: 24px;
    }

    .checkout-modal-description {
        font-size: 15px;
    }

    .checkout-button {
        padding: 10px 20px;
        font-size: 15px;
        flex-grow: 1;
        max-width: none; /* Permite que os botões ocupem mais espaço em telas pequenas */
    }

    .checkout-modal-actions {
        flex-direction: column; /* Botões um abaixo do outro em telas muito pequenas */
        gap: 10px;
    }
}