/* Importação de fontes */
@import url('https://fonts.googleapis.com/css2?family=OpenSans:wght@200..700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@200..700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@200..700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200..700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@200..700&display=swap');

/* Variáveis globais */
:root {
    --primary-color: #F97316;
    --secondary-color: #FFA45B;
    --background-color: #FFF5EB;
    --text-color: #333333;
    --accent-color: #28a745;
}

/* Estilos gerais */
*,
*::before,
*::after {
    box-sizing: border-box;
}

.hidden {
    display: none;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.0)), url('../images/bgteste3.png') no-repeat center center fixed;
    background-size: cover;
    color: var(--text-color);
    min-height: 100vh;
    max-width: 100vw;
}

.container {
    background-color: rgba(255, 245, 235, 0.95);
    border-radius: 15px;
    padding: 2rem 0rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    margin-top: 2rem;
    margin-bottom: 2rem;
    max-width: 48rem;
}

/* Cabeçalho do cardápio */
.cardapio-header-background {
    padding: 0.5rem 0;
    text-align: center;
    border-radius: 10px 10px 0 0;
    position: relative;
    z-index: 2;
}

h1 {
    font-family: 'Oswald';
    font-weight: 500;
    font-size: 3.5em;
    color: var(--primary-color);
    text-wrap: nowrap;
    text-align: center;
    text-transform: uppercase;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.horario-funcionamento {
    font-size: 1.25em;
    font-weight: 200;
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 0.2rem; /* Ajuste o valor para diminuir o espaço */
}

.horario-funcionamento-marmitex {
    font-size: 1em;
    font-weight: 200;
    color: var(--secondary-color);
    text-align: center;
    margin-top: 0.2rem; /* Ajuste o valor para diminuir o espaço */
}

.data-atual {
    font-size: 1.3em;
    font-weight: 200;
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 1rem;
}

/* Estilos das categorias */
.categoria {
    background-color: var(--primary-color);
    color: white;
    padding: 0.5rem;
    border-radius: 10px 10px 0 0;
    font-weight: 600;
    letter-spacing: 1px;
}

.categoria-header {
    font-family: 'Montserrat';
    font-size: 1.1rem;
    font-weight: 500;
    text-align: center;
    margin-top: 0.5rem;
}

/* Estilos dos itens */
.itens {
    background-color: white;
    border-radius: 0 0 10px 10px;
    padding: 0.5rem;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.2rem 0;
    transition: background-color 0.3s ease;
    flex-wrap: wrap;
    gap: 0.5rem;
    max-width: 100%; /* Garante que não ultrapasse a largura do container */
}

.item-extra {
    display: block;
    font-size: 0.9rem;
    color: #ff5722; /* Cor de destaque para o bônus */
    margin-left: 1rem;
}

.item-descricao {
    display: block;
    font-size: 0.7rem;
    color: #ff5722; /* Cor de destaque para o bônus */
    margin-left: 1rem;
    margin-bottom: 0.5rem;
}

#item-descricao-icon {
    font-size: 0.8rem;
}

.item-divider {
    display: flex;
    width: 100%;
    height: 2px;
    background-color: #eee;
    margin-top: 10px;
}

.item:hover {
    background-color: #f8f8f8;
}

.item:last-child {
    border-bottom: none;
}

.item-nome {
    font-size: 1.7rem;
    font-weight: 500;
    color: var(--primary-color);
    padding: 0rem 1rem;
    word-break: normal; /* Remove a quebra forçada de palavras */
    overflow-wrap: break-word; /* Quebra palavras apenas quando necessário */
    flex: 1;
    min-width: 0;
    max-width: calc(100% - 120px);
    line-height: 1.2; /* Reduz o espaçamento entre linhas */
    margin-bottom: 0.2rem; /* Reduz o espaço abaixo do nome */
}

@media (max-width: 768px) {
    .item-nome {
        font-size: 1.25rem;
        max-width: calc(100% - 100px);
        line-height: 1.1; /* Reduz ainda mais o espaçamento em telas menores */
    }
    
    .item {
        padding: 0.1rem 0; /* Reduz o padding vertical em telas menores */
    }
}

#item-switch {
    min-width: 100px; /* Largura mínima para os botões */
    margin-left: auto; /* Alinha à direita */
}

.item-preco {
    width: 100%;
    text-align: left;
    margin-top: 0.2rem; /* Reduz o espaço acima do preço */
    text-wrap: nowrap;
    padding: 0rem 1rem;
}

.sem-doces {
    text-align: center;
    font-style: italic;
    color: #888;
    padding: 10px 0;
}

.aviso-estoque {
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    padding: 5px 10px;
    margin-top: 5px;
    font-size: 0.9em;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.aviso-estoque::before {
    content: "\f071";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 5px;
}

/* Remova o padding-bottom padrão do item */
.item {
    position: relative;
}

@media (max-width: 768px) {
    .aviso-estoque {
        font-size: 0.8em;
        padding: 3px 8px;
        margin-top: 3px;
    }

    .aviso-estoque::before {
        font-size: 0.9em;
    }

    /* Ajuste o padding-bottom para telas menores apenas quando o aviso estiver presente */
    .item:has(.aviso-estoque) {
        padding-bottom: 30px;
    }

    .item .aviso-estoque {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        margin: 0 10px;
    }
}

@media (max-width: 320px) {
    .aviso-estoque {
        font-size: 0.7em;
        padding: 2px 5px;
    }

    /* Ajuste o padding-bottom para telas muito pequenas apenas quando o aviso estiver presente */
    .item:has(.aviso-estoque) {
        padding-bottom: 35px;
    }
}

/* Estilos dos switches/checkboxes */
.custom-switch .form-check-input {
    width: 5em;
    height: 2em;
    margin-left: 1em;
    margin-top: 1.2rem;
    background-color: #e0e0e0;
    border-color: #ccc;
    position: relative;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    outline: none;
    cursor: pointer;
    border-radius: 1em;
    transition: background-color 0.3s, border-color 0.3s;
}

.custom-switch .form-check-input::before {
    content: '';
    position: absolute;
    width: 1.9em;
    height: 1.9em;
    border-radius: 50%;
    background-color: var(--primary-color);
    transition: transform 0.3s;
}

.custom-switch .form-check-input:checked {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.custom-switch .form-check-input:checked::before {
    transform: translateX(3em);
}

/* Estilos do seletor de quantidade */
.quantity-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.quantity-selector input[type="number"] {
    max-width: 50px;
    text-align: center;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 5px;
}

.quantity-modify {
    background-color: var(--primary-color);
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 1.2em;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.quantity-modify:hover {
    background-color: var(--secondary-color);
    transform: scale(1.1);
}

.quantity-modify i {
    justify-content: center;
    align-items: center;
}

.quantity-modify.minus {
    background-color: #dc3545;
    color: white;
}

.quantity-modify.plus {
    background-color: #198754;
    color: white;
}

.quantity-input {
    width: 40px;
    text-align: center;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 5px;
    box-sizing: border-box;
    appearance: textfield;
    -webkit-appearance: none;
    -moz-appearance: textfield;
}

.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Estilos de botões */
#adicionarAoCarrinhoBtn {
    background-color: var(--primary-color);
    font-size: 1rem;
    font-weight: 700;
    transition: background-color 0.3s, transform 0.2s;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 25px;
    color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#adicionarAoCarrinhoBtn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

#adicionarAoCarrinhoBtn:active {
    transform: translateY(1px);
}

/* Estilos do campo de observação */
#observacao {
    font-size: 1em;
    width: 100%;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #ccc;
    margin-bottom: 20px;
    transition: border-color 0.3s;
}

#observacao:focus {
    border-color: var(--primary-color);
    outline: none;
}

/* Estilos do carrinho */
.carrinho-info {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px 30px;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    border-radius: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.carrinho-info:hover {
    background-color: var(--secondary-color);
    transform: translateX(-50%) translateY(-5px);
}

#valorCarrinho {
    font-weight: bold;
    font-size: 1.2em;
}

/* Estilos dos modais */
#confirmationModalHeader, #carrinho-modal-header {
    background-color: #F97316;
    color: white;
    border-bottom: none;
    padding: 1.5rem;
}

#carrinho-modal-title {
    font-family: 'Montserrat', 'sans-serif';
    font-size: 1.25rem;
    font-weight: 600;
    margin-left: 2%;
    text-align: center !important;
}

#carrinho-modal-content {
    width: 100%;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-close {
    color: white !important;
    opacity: 1;
}

.btn {
    padding: 0.75rem 0.2rem;
    font-weight: 500;
    border-radius: 15px;
    transition: all 0.2s;
}

#addAnotherItemButton {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

#addAnotherItemButton, #advanceButton {
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
}

#addAnotherItemButton:hover, #advanceButton:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

#noButton, #yesButton {
    width: 7rem;
}

#loginButtonModal, #advanceButton, #registerButtonModal {
    background-color: #198754;
    color: white;
    border-color: #198754;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
}

#advanceButton {
    width: 35%;
}

/* Estilos do botão de remover item */
.remove-item {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background-color: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
    z-index: 10; /* Garante que o botão fique acima do conteúdo */
}

.remove-item:hover {
    background-color: #C82333;
}

/* Estilos do modal de resumo do pedido */
#orderSummaryModal .modal-dialog {
    max-height: 90vh;
    display: flex;
    margin: 0.5rem auto;
}

#orderSummaryModal .modal-content {
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

#orderSummaryModal .modal-body {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 1rem;
}

#orderSummaryModal .modal-header {
    background-color: var(--primary-color);
    color: white;
    border-radius: 15px 15px 0 0;
}

#orderSummaryModal .modal-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.5rem;
}

#orderSummaryModal .modal-footer {
    padding-top: 1rem;
    border-top: 1px solid #dee2e6;
    background-color: #fff;
}

#orderDetails {
    display: grid;
    /*grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); */
    gap: 10px;
    padding: 10px;
}

#pedido-numero {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.pedido-resumo {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 0.5rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    position: relative;
    width: 100%;
    height: 100%;
    font-size: 0.75rem;
    display: flex;
    flex-direction: column;
}

.pedido-resumo:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.valor-total {
    background-color: #f8f9fa;
    border-top: 2px solid #e9ecef;
    padding: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
    margin-top: 1rem;
}

#modal-escolha .modal-content {
    border-radius: 15px;
    overflow: hidden;
}

#modal-escolha .modal-header {
    background-color: var(--primary-color);
    color: white;
    border-bottom: none;
    padding: 1.5rem;
    text-align: center;
}

#modal-escolha .modal-title {
    font-size: 1.3rem;
    font-weight: 600;
    text-align: center;
}

#modal-escolha .modal-body {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

#modal-escolha #modalEscolhaDescricao {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    #modal-escolha #modalEscolhaDescricao {
        font-size: 1rem;
    }
}

#modal-escolha .escolha-section {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

#modal-escolha .escolha-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

#modal-escolha .escolha-title i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

#modal-escolha .form-check {
    margin-bottom: 0.5rem;
}

#modal-escolha .form-check-input {
    margin-right: 0.5rem;
}

#modal-escolha .form-check-label {
    font-size: 1rem;
}

#modal-escolha .modal-footer {
    border-top: none;
    padding: 1.5rem;
}

#modal-escolha #confirmarEscolhaBtn {
    background-color: var(--primary-color);
    border: none;
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 25px;
}

#modal-escolha #confirmarEscolhaBtn:hover {
    background-color: darken(var(--primary-color), 10%);
}

/* Estilos do formulário de login */
#loginInput, #loginSenhaInput {
    font-family: 'Roboto', sans-serif;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 1px solid #ced4da;
    border-radius: 0.5rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    position: relative;
}

#loginInputMarmitex, #loginSenhaInputMarmitex {
    font-family: 'Roboto', sans-serif;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 1px solid #ced4da;
    border-radius: 0.5rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    position: relative;
}

#loginInput:focus, #loginSenhaInput:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(249, 115, 22, 0.25);
}

#p-2 {
    text-align: center;
}

.input-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    z-index: 100;
}

#registerFormMarmitex > div.mb-3.row > div.col-3.position-relative > i {
    margin-left: 0.8rem;
}

#registerFormMarmitex {
    margin-bottom: 2.5rem;
}

/* Estilos do modal de login para usuários tentando pedir Marmitex */
#loginModal .modal-header {
    background-color: var(--primary-color);
    color: white;
    border-bottom: none;
    padding: 1rem;
    text-align: center;
}

#loginModal .modal-dialog {
    top: 20%;
}

@media (max-width: 768px) {
    #loginModal .modal-dialog {
        top: 5%;
    }
    #loginModal .modal-body {
        max-height: 80vh;
    }
}

#loginModal .form-control {
    padding: .375rem .75rem;
    padding-left: 2rem;
    width: 100%;
}

#loginButtonMarmitexModal, #switchToRegisterMarmitex {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

#loginButtonMarmitexModal {
    background-color: #1e7e34;
    border-color: #1e7e34;
}

#loginButtonMarmitexModal:hover, #switchToRegisterMarmitex:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Nova classe para ajustar a posição do modal */
.modal-dialog-top-adjusted {
    top: 0% !important; /* Ajuste o valor conforme necessário */
}

#switchToRegisterMarmitex {
    background-color: #F97316;
    border-color: #F97316;
    border-radius: 1rem;
    font-size: 1.3rem;
    font-weight: bold;
    color: white;
    margin-bottom: 1rem;
    text-decoration: none;
}

#switchToRegisterMarmitex:hover {
    background-color: #E76200;
    transform: translateY(-2px);
}

#switchToRegisterMarmitex:active {
    background-color: #c05621;
    transform: translateY(1px);
}
/* Estilos do modal de login para usuários não logados que estão tentando pedir comum */
#loginButtonModal, #switchToRegister {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}


#loginButtonModal:hover, #switchToRegister:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#loginButtonModal:active {
    background-color: #1e7e34;
    transform: translateY(1px);
}

#loginButtonMarmitexModal:active {
    background-color: #1e7e34;
    transform: translateY(1px);
}

#switchToRegister {
    background-color: #F97316;
    border-color: #F97316;
    border-radius: 1rem;
    font-size: 1.3rem;
    font-weight: bold;
    color: white;
    margin-bottom: 1rem;
    text-decoration: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
}


#switchToRegister:hover {
    background-color: #E76200;
    transform: translateY(-2px);
}

#switchToRegister:active {
    background-color: #c05621;
    transform: translateY(1px);
}

#registerDDDInput {
    min-width: 20%;
}

@media (max-width: 768px) {
    #registerDDDInput {
        padding-left: 1.9rem;
        width: 5.2rem;
    }
}

/* Estilos para o modal de aviso Marmitex */
#marmitexAvisoModal .modal-content {
    border-radius: 15px;
    overflow: hidden;
}

#marmitexAvisoModal .modal-header {
    background-color: var(--primary-color);
    color: white;
    border-bottom: none;
}

#marmitexAvisoModal .modal-title {
    width: 100%;
    text-align: center;
}

#marmitexAvisoModal .modal-body {
    font-family: 'Montserrat', sans-serif;
    padding: 1.5rem;
    font-size: 1.1rem;
    text-align: center;
}

#marmitexAvisoModal > div > div > div.modal-footer {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 0.5rem;
}

#marmitexAvisoModal .btn-success {
    background-color: #25D366;
    border-color: #25D366;
}

#marmitexAvisoModal .btn-success:hover {
    background-color: #128C7E;
    border-color: #128C7E;
}

#btnFecharMarmitexAvisoModal {
    background-color: #ffb000;
    padding: 0.75rem 2rem;
}

/* Estilos para o modal de login */
#loginModalContent {
    padding: 0rem;
}

#loginIntroText, #registerIntroText {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 15px;
}

#registerIntroText {
    text-align: center;
}

@media (max-width: 768px) {
    #loginIntroText, #registerIntroText {
        font-size: 1.2rem;
    }
}

.login-input {
    padding-left: 30px;
}

#loginButtonModal, #switchToRegister {
    font-weight: bold;
}

/* Estilos para o modal de Endereço e Pagamento */
#addressFieldsContainer {
    display: none;
    border: 1px solid #e9ecef;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-top: 1rem;
}

#addressFieldsContainer.active {
    display: block;
}

#addressFieldsContainer > h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.modal-subtitle {
    font-family: 'Montserrat';
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
    border: 1px solid #cfcfcf;
    border-radius: 5px;
    padding: 1rem 0.75rem;
}

.form-label {
    font-size: 1.1rem;
    font-weight: 500;
    color: #555;
    margin-bottom: 0.5rem;
}

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

.form-select:focus, .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(249, 115, 22, 0.25);
}

#addAddressButton {
    background-color: #f97316;
    color: white;
    border: none;
    padding: 0.15rem 0.25rem;
    font-size: 1rem;
    border-radius: 0.25rem;
    transition: background-color 0.3s;
}

#addAddressButton:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Estilos do modal de Endereço e Pagamento */
#enderecoPagamentoModal .modal-dialog {
    max-width: 95%;
    margin: 0.5rem auto;
}

#enderecoPagamentoModal .modal-content {
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: none;
    background-color: #f8f9fa;
}

#enderecoPagamentoModal .modal-header {
    background-color: #f97316;
    color: white;
    border-bottom: none;
    border-radius: 15px 15px 0 0;
    padding: 1rem;
}

#enderecoPagamentoModal .modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    width: 100%;
    text-align: center;
}

#enderecoPagamentoModal .modal-body {
    padding: 1rem;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
}

#enderecoPagamentoModal .modal-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

@media (max-width: 576px) {
    #enderecoPagamentoModal .modal-subtitle {
        font-size: 1rem;
    }
}

#enderecoPagamentoModal .fas {
    margin-right: 0.75rem;
}

#enderecoPagamentoModal .form-group {
    margin-bottom: 1.5rem;
}

@media (max-width: 576px) {
    #enderecoPagamentoModal .form-group {
        padding: 0.5rem 0.75rem;
    }
}

#enderecoPagamentoModal .form-label {
    font-family: 'Oswald';
    font-size: 1rem;
    font-weight: 500;
    color: #555;
    margin-bottom: 0.5rem;
    display: block;
}

#enderecoPagamentoModal .form-select,
#enderecoPagamentoModal .form-control {
    height: 40px;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    border: 1px solid #ced4da;
    border-radius: 0.5rem;
    background-color: #fff;
}

#enderecoPagamentoModal #enderecoInputGroup {
    position: relative;
    margin-bottom: 0.15rem !important;
}

#enderecoPagamentoModal .input-group-text {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: none;
    border: none;
    color: #6c757d;
}

#enderecoPagamentoModal #taxaEntrega {
    background-color: #e9ecef;
    border: 1px solid #ced4da;
    border-radius: 0.5rem;
    padding: 0.25rem;
    margin-top: 0.75rem;
    font-size: 1rem;
    color: #495057;
    text-align: center;
    width: 45%;
}

#enderecoPagamentoModal #addAddressButton {
    background-color: #f97316;
    color: white;
    border: none;
    padding: 0.75rem;
    font-size: 1rem;
    border-radius: 0.5rem;
    transition: background-color 0.3s;
    margin-top: 1rem;
}

#enderecoPagamentoModal #addAddressButton:hover {
    background-color: #ea580c;
}

@media (max-width: 576px) {
    #enderecoPagamentoModal #addAddressButton {
        font-size: 0.8rem;
        margin-top: 0rem;
        padding: 0.5rem;
    }
}

#enderecoPagamentoModal #trocoParaGroup {
    border: none;
}

#enderecoPagamentoModal #confirmEnderecoPagamentoButton {
    background-color: #22c55e;
    border: none;
    color: white;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    margin-top: 1rem;
    position: sticky;
    bottom: -1rem;
    z-index: 1000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
}

#enderecoPagamentoModal #confirmEnderecoPagamentoButton:hover {
    background-color: #16a34a;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Estilos para o formulário de novo endereço */
#enderecoPagamentoModal #addressFieldsContainer {
    background-color: #fff;
    border: 1px solid #e9ecef;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-top: 1rem;
}

#enderecoPagamentoModal #addressFieldsContainer h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

#enderecoPagamentoModal #addressFieldsContainer .form-control,
#enderecoPagamentoModal #addressFieldsContainer .form-select {
    height: 45px;
    padding-left: 2.5rem;
}

#enderecoPagamentoModal #addressFieldsContainer .register-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    z-index: 10;
}

#enderecoPagamentoModal #confirmNewAddressButton {
    background-color: #3b82f6;
    color: white;
    border: none;
    padding: 0.75rem;
    font-size: 1rem;
    border-radius: 0.5rem;
    transition: background-color 0.3s;
    margin-top: 1rem;
    width: 100%;
}

#enderecoPagamentoModal #confirmNewAddressButton:hover {
    background-color: #2563eb;
}

#tipoEntrega {
    margin-bottom: 0rem;
}

#enderecoGroup.hidden {
    display: none;
}

@media (max-width: 576px) {
    #tipoEntrega {
        font-size: 0.95rem;
    }
}

/* Media queries para responsividade */
@media (max-width: 576px) {
    #enderecoPagamentoModal .modal-dialog {
        margin: 0.5rem;
        max-width: 95%;
    }

    #enderecoPagamentoModal .modal-content {
        border-radius: 10px;
    }

    #enderecoPagamentoModal .modal-body {
        padding: 0.15rem !important;
    }

    #enderecoPagamentoModal .form-select,
    #enderecoPagamentoModal .form-control {
        font-size: 0.95rem;
    }

    #enderecoPagamentoModal #enderecoInputGroup {
        position: relative;
        margin-bottom: 0.15rem !important;
    }

    #enderecoPagamentoModal #taxaEntrega {
        padding: 0.25rem;
        width: 100%;
        font-size: 0.7rem;
    }

    #enderecoPagamentoModal > div:nth-child(2) > div.input-group {
        margin-bottom: 0.15rem !important;
    }

    #enderecoPagamentoModal #confirmEnderecoPagamentoButton {
        font-size: 1rem;
        padding: 0.75rem;
    }
}

/* Estilos para o modal de cadastro */
#registerModalContent {
    padding: 0rem;
}

#preencher-dados {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #495057;
}

.register-container, #addressFieldsContainer {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
}

.register-container .input-group,
#addressFieldsContainer .input-group {
    position: relative;
    margin-bottom: 1rem;
    width: 100%;
}

.register-input,
#addressFieldsContainer .form-control,
#addressFieldsContainer .form-select {
    font-family: 'Roboto', sans-serif;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 1px solid #ced4da;
    border-radius: 0.5rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    width: 100%;
}

.register-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(249, 115, 22, 0.25);
}

.ddd-input {
    width: 33%;
    padding-left: 1.85rem;
    border-radius: 0px 7px 7px 0px;
}

.telefone-input {
    flex-grow: 1;
    width: 75%;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.input-group-telefone .fas {
    left: 10px;
    z-index: 10;
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.input-group-telefone {
    display: flex;
    gap: 0.5rem;
    flex-wrap: nowrap;
}

.input-group .fas {
    position: absolute;
    left: 10px;
    color: #6c757d;
    z-index: 10;
}

.input-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.input-row .input-group:first-child {
    flex: 7;
}

.input-row .input-group:last-child {
    flex: 3;
}

#registerModalContent > div.register-container > div:nth-child(3) {
    flex-wrap: nowrap;
}

.register-icon,
#addressFieldsContainer .input-group-text {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    z-index: 10;
    background-color: transparent;
    border: none;
}

#addressFieldsContainer .register-icon {
    position: absolute;
    left: 1rem !important;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    color: #6c757d;
}

#registerTelefoneInput {
    max-width: 79%;
}

#addressFieldsContainer .form-select {
    padding-right: 2rem;
}

#registerButtonModal {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 1rem;
}

#registerButtonModal:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background-color: darken(var(--primary-color), 10%);
}

/* Estilos para o modal de horário de funcionamento */
#horarioFuncionamentoModal .modal-content {
    border-radius: 15px;
    overflow: hidden;
}

#horarioFuncionamentoModal .modal-header {
    background-color: var(--primary-color);
    color: white;
    border-bottom: none;
    padding: 1rem;
    text-align: center;
}

#horarioFuncionamentoModal .modal-title {
    font-size: 1.2rem;
    font-weight: 600;
    width: 100%;
    margin: 0;
}

#horarioFuncionamentoModal .modal-body {
    padding: 1.5rem;
}

#restaurante-fechado {
    font-size: 1rem !important;
    font-weight: 600;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 1.5rem !important;
    text-wrap: nowrap;
}

@media (min-width: 768px) {
    #restaurante-fechado {
        font-size: 1.5rem !important;
    }
}

#horarioFuncionamentoModal .horario-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1rem;
    text-align: center;
}

#horarioFuncionamentoModal .horario-item p {
    font-size: 1rem;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: baseline;
}

#horarioFuncionamentoModal .horario-item i {
    min-width: 20px;
}

#horarioFuncionamentoModal .horario {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    text-align: center;
    margin-top: 0.25rem;
}

#horarioFuncionamentoModal .btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    font-size: 1rem;
    padding: 0.5rem 2rem;
    border-radius: 25px;
    width: 100%;
}

#horarioFuncionamentoModal .modal-footer {
    border-top: none;
    padding: 1rem;
}

/* Animação para o modal */
.modal.fade .modal-dialog {
    transition: transform 0.3s ease-out;
    transform: scale(0.9);
}

.modal.show .modal-dialog {
    transform: scale(1);
}

/* Estilos para validação de formulários */
.is-invalid {
    border-color: #dc3545;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.invalid-feedback {
    display: none;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 80%;
    color: #dc3545;
}

.is-invalid ~ .invalid-feedback {
    display: block;
}

/* Ajustes gerais */
#registerModalContent .input-group {
    position: relative;
    margin-bottom: 1.5rem; /* Aumenta o espaço entre os campos para acomodar as mensagens de erro */
}

#registerModalContent .register-input {
    height: 50px;
    font-size: 16px;
    padding-left: 40px;
}

#registerModalContent .input-group-telefone {
    display: flex;
    gap: 5px;
}

/* Ajuste para o campo DDD */
#registerModalContent .ddd-input {
    width: 60px;
}

#registerModalContent .telefone-input {
    flex-grow: 1;
    width: 75%;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

/* Ícones dentro dos campos */
#registerModalContent .register-icon {
    transform: translateY(-50%);
    position: absolute;
    left: 10px;
    top: 20px; /* Ajuste fixo em vez de usar transform */
    z-index: 10;
}

#registerModalContent .register-input {
    padding-left: 2rem;
    height: 40px; /* Altura fixa para todos os inputs */
}

#registerModalContent .register-input-DDD-marmitex {
    min-width: 7rem;
}

@media (max-width: 768px) {
    #registerModalContent .register-input-DDD-marmitex {
        min-width: 5rem;
    }
}

#registerModalContent .register-input-telefone-marmitex {
    min-width: 100%;
}

/* Mensagens de erro */
.invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 80%;
    color: #dc3545;
    position: absolute;
    bottom: -1.30rem /* Posiciona a mensagem abaixo do input */
}

.is-invalid {
    border-color: #dc3545;
}

.register-input.is-valid,
.was-validated .register-input:valid {
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: center right calc(0.375em + 0.1875rem);
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.register-input.is-invalid,
.was-validated .register-input:invalid {
    border-color: #dc3545;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23dc3545' viewBox='-2 -2 7 7'%3e%3cpath stroke='%23dc3545' d='M0 0l3 3m0-3L0 3'/%3e%3ccircle r='.5'/%3e%3ccircle cx='3' r='.5'/%3e%3ccircle cy='3' r='.5'/%3e%3ccircle cx='3' cy='3' r='.5'/%3e%3c/svg%3E");
    background-repeat: no-repeat;
    background-position: center right calc(0.375em + 0.1875rem);
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.invalid-feedback {
    display: none;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 80%;
    color: #dc3545;
}

.is-invalid ~ .invalid-feedback,
.is-invalid ~ .invalid-tooltip,
.was-validated :invalid ~ .invalid-feedback,
.was-validated :invalid ~ .invalid-tooltip {
    display: block;
}

.register-input.is-valid,
.register-input.is-valid:focus-visible {
    border-color: #28a745 !important;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25) !important;
}

.register-input.is-invalid,
.register-input.is-invalid:focus-visible {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

.register-input:focus {
    outline: none !important;
}

#addressFieldsContainer .input-group {
    margin-bottom: 1rem;
}

#addressFieldsContainer .form-select {
    height: auto;
}

/* Estilo do dropdown */
select.register-input {
    appearance: none;
    background-image: url("data:image/svg+xml,...");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 10px;
}

/* Botão de cadastro */
#registerButtonModal {
    height: 50px;
    font-size: 18px;
    font-weight: bold;
}

/* Modal de reinicio de pedido */
#naoQuerReiniciarPedido {
    font-size: 12px;
}

/* Ajuste para telas menores */
@media (max-width: 768px) {
    .register-input {
        font-size: 14px;
    }

    .invalid-feedback {
        font-size: 12px;
    }
}

/* Media Queries */
@media (min-width: 768px) {
    body {
        margin-top: 17rem;
        margin-bottom: 7rem;
    }

    .form-container {
        padding: 2rem 3rem;
    }

    #addAnotherItemButton, #advanceButton {
        width: 35%;
    }

    #carrinho-modal-body {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        padding: 1rem 2rem;
        gap: 10px;
    }

    #carrinho-modal-footer {
        padding: 1rem 1.5rem;
        background-color: #f9f9fa;
        border-top: 1px solid #e5e5e5;
        display: flex;
        justify-content: space-between;
    }

    .ddd-input {
        padding-left: 2.5rem;
    }
}

@media (max-width: 768px) {
    body {
        margin-top: 6rem;
    }

    .container {
        max-width: 95%;
        margin-top: 1rem;
        margin-bottom: 8rem;
        padding: 20px;
    }

    h1 {
        font-size: 2.5rem;
        letter-spacing: 1px;
    }

    .data-atual {
        font-size: 1.25rem;
        font-weight: 600;
    }

    .horario-funcionamento {
        font-size: 0.9em;
        font-weight: 600;
    }

    .horario-funcionamento-marmitex {
        font-size: 0.8em;
        font-weight: 600;
    }

    .categoria-header {
        margin-top: 0.25rem;
        font-size: 1em;
    }

    .categoria {
        padding: 0.75rem 0.5rem;
    }

    .carrinho-info {
        width: 90%;
        bottom: 10px;
        padding: 10px 20px;
        min-width: 350px;
        min-height: 100px;
    }

    .valor-total {
        font-size: 0.9rem;
    }

    .pedido-resumo {
        font-size: 0.7rem;
        max-width: 100%; /* Ocupa toda a largura em telas menores */
    }

    #orderDetails {
        flex-direction: column;
        align-items: center;
    }

    .modal-body {
        flex-direction: column;
        max-height: 70vh;
        overflow-y: auto;
        padding: 0.5rem 1rem;
    }

    #addressFieldsContainer {
        flex-direction: column;
        width: 100%;
    }

    #loginModal .form-control {
        padding: .375rem .75rem;
        padding-left: 2rem;
        width: 100%;
    }

    #modal-title {
        margin-left: 4%;
        text-align: center !important;
    }

    .modal-dialog {
        margin: 0.5rem;
    }

    .modal-content {
        margin-left: 0rem;
        width: 100%;
    }

    .modal-footer {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .remove-item {
        position: absolute;
        top: 0.5rem;
        right: 0.5rem;
    }

    #horarioFuncionamentoModal .modal-dialog {
        margin: 0.5rem;
    }

    #horarioFuncionamentoModal .modal-content {
        width: 100%;
    }

    #horarioFuncionamentoModal .modal-body p {
        font-size: 1rem;
    }

    #horarioFuncionamentoModal .horario {
        font-size: 1rem;
    }

    .modal-subtitle {
        font-size: 1rem;
    }

    #confirmEnderecoPagamentoButton {
        font-size: 1rem;
        padding: 1.25rem 1rem;
    }

    .modal-dialog {
        max-width: 98% !important;
    }
}

/* Media query para telas muito pequenas */
@media (max-width: 320px) {
    #orderDetails {
        grid-template-columns: 1fr;
    }

    .pedido-resumo {
        font-size: 0.7rem;
    }

    #addAnotherItemButton, #advanceButton {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}


@media (max-width: 768px) {
    .pedido-resumo {
        background-color: #f8f9fa;
        border: 1px solid #e9ecef;
        border-radius: 10px;
        padding: 0.5rem;
        box-shadow: 0 2px 5px rgba(0,0,0,0.05);
        transition: all 0.3s ease;
        position: relative;
        width: 100%;
        margin-bottom: 1rem;
    }

    .pedido-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        cursor: pointer;
        padding: 0.5rem;
    }

    .pedido-header h5 {
        margin: 0;
        font-size: 1rem;
    }

    .fa-chevron-down {
        transition: transform 0.3s ease;
    }
    
    .fa-chevron-down.rotated {
        transform: rotate(180deg);
    }

    .pedido-header i.fa-chevron-down {
        transition: transform 0.3s ease;
        position: absolute;
        right: 9.2rem;
        top: 90%;
        transform: translateY(-50%);
    }

    .pedido-header[aria-expanded="true"] i.fa-chevron-down,
    .pedido-header i.fa-chevron-down.rotated {
        transform: translateY(-50%) rotate(180deg);
    }

    .pedido-conteudo {
        display: none;
    }

    #pedido-numero {
        margin: 0;
        font-size: 1rem;
    }

    .collapse {
        font-size: 0.9rem;
    }

    .remove-item {
        position: absolute;
        top: 0.5rem;
        right: 0.5rem;
        z-index: 10;
    }
}

/* Ajuste para telas de computadores grandes (1920x1080 ou maior) */
@media (min-width: 1366px) and (min-height: 900px) {
    body {
        margin-top: 17rem;
    }
}

/* Ajuste para telas de computadores médios (1360x768 até 1920x1080) */
@media (min-width: 1024px) and (max-width: 1366px) and (max-height: 900px) {
    body {
        margin-top: 10rem;
    }
}

/* Ajuste para telas menores, como tablets ou pequenos laptops (768px até 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
    body {
        margin-top: 8rem;
    }
}

/* Ajuste para telas de celular (até 768px de largura) */
@media (max-width: 768px) {
    body {
        margin-top: 6rem;
    }
}

/* Controle de visibilidade */
.pedido-conteudo.collapsed {
    display: none;
}

.pedido-conteudo.expanded {
    display: block;
}

/* Animação de rotação da seta */
.pedido-header i.fa-chevron-down {
    transition: transform 0.3s ease;
}

.pedido-header i.fa-chevron-down.rotated {
    transform: rotate(180deg);
}

