@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');

/* Estilo para centralizar a logo */
body.carregando .logo img{
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    max-width: 200px;
}

body.carregando .container {
    display: none; /* Oculta o conteúdo principal durante o carregamento */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

body {
    background-color: black;
}

li div {
    width: 90%;
}

body.dados-carregados .logo img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    padding-top: 20px;
    max-width: 300px;
}

body.dados-carregados .container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    border-radius: 8px;
    color: white;
}

.order-details {
    width: 45%;
    padding: 20px 0px;
    color: #d8d0ee;
}

.order-status {
    width: 45%;
}

.order-details h2 {
    margin-bottom: 10px;
}

.order-details p {
    margin-bottom: 10px;
}

.order-items .item, .payment-item .item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 10px 0;
    font-size: 15px;
}

/* Para o título de pagamento, agora substituído por uma linha */
.divider {
    border: none;
    border-top: 1px solid #d8d0ee; /* Linha simples para separar as seções */
    margin: 15px 0;
}

.item p {
    max-width: 330px;
}

.return-btn {
    background-color: white;
    color: black;
    border: none;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
}

#navButtons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px;
}

.material-icons {
    font-size: 30px !important;
}

.navbtn {
    background-color: transparent;
    border: none;
    cursor: pointer;
    color: white;
}

.navbtn:focus {
    outline: none;
}

.navbtn:hover {
    color: black;
}

.head-details {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.order-status ul {
    list-style: none;
    padding: 0;
}

/* Estilo padrão para o li */
.order-status li {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    background-color: #5d3fd360;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    flex-wrap: wrap;
}


.status-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-right: 10px;
    background-color: #6e6e6e;
}

/* Estilo para quando .status-icon-gray está presente dentro do li */
.order-status li:has(.status-icon-gray) {
    background-color: #a08ee92c; /* Altere para a cor de fundo desejada */
    color:#6e6e6e
}
.status-icon.not-delivered {
    background-color: #FFD400;
}

.head-status.not-delivered h4 {
    color: #FFD400;
}

.status-icon.concluido {
    background-color: #b2a1e2;
}

.head-status.concluido h4 {
    color: #b2a1e2;
}

.status-icon.canceled {
    background-color: #be4747;
}

.head-status.canceled h4 {
    color: #be4747;
}

.head-status {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.order-status h4 {
    margin-bottom: 5px;
}

.order-status li:has(.status-icon-gray) h4 {
    margin-bottom: 0px;
}

.btn {
    background-color: white;
    color: black;
    padding: 5px 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 5px;
}

/* Estilo atualizado para o popup */
.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.popup.active {
    display: flex;
}

.popup-content {
    position: relative;
    z-index: 1; /* Um valor menor que o do header */
    padding-top: 50px; /* Ajuste se necessário */
    max-height: 90vh; 
    overflow-y: auto;  
    scrollbar-width: none; 
    -ms-overflow-style: none; 
    background-color: #1E1E2F;
    color: white;
    padding: 0px 25px 25px 25px;
    border-radius: 10px;
    width: 90%;
    max-width: 550px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    text-align: left;
    font-family: 'Montserrat', sans-serif;
}

.popup-content h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    text-align: center;
    margin: 0px;
}

.popup-content ul {
    list-style: none;
    padding: 5px;
}

.popup-content li {
    text-align: left;
    margin-bottom: 15px;
    padding: 15px;
    background-color: #402a986f;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.popup-content li p {
    margin: 0;
    font-weight: 700;
}

.popup-content li small {
    display: block;
    margin-top: 5px;
    color: #ddd;
}

/* Fixa a previsão de entrega no topo */
.popup-content .header {
    display: flex;
    background-color: #1E1E2F; /* Cor de fundo para coincidir com o popup */
    padding: 15px 20px; /* Ajuste do padding para melhor espaçamento */
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
}

/* Estilização do botão de fechar como ícone */
.close-btn {
    background-color: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-left: auto; /* Garante que o botão esteja no extremo direito */
}

.close-btn .material-icons {
    font-size: 24px;
    color: white;
}

.close-btn:hover .material-icons {
    color: #d32f2f; /* Cor ao passar o mouse */
}


@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    .order-details,
    .order-status {
        width: 100%;
    }

    .btn {
        margin-top: 10px;
    }
    
    .return-btn {
     display: none !important;
    }

    .mobile {
        background-color: white;
        color: black;
        border: none;
        padding: 10px;
        cursor: pointer;
        margin-top: 10px;
        width: 100%;
        font-size: 16px;
        border-radius: 5px;
        text-align: center;
        cursor: pointer;
    }
}

@media (min-width: 768px) {
    .mobile {
        display: none !important;
    }
}
