/* Estilos gerais */
body {
    font-family: 'Roboto', sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    color: #333;
    position: relative;
    overflow: hidden;
}

.background-img {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    object-fit: cover;
    z-index: 1;
}

/* Estilos do overlay de CPF - Formulário inicial */
.cpf-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.87);
    display: flex; /* Começa visível */
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* Estilos do overlay do popup - Inicialmente fechado */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.87);
    display: none; /* Começa oculto */
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* Conteúdo comum para ambos os overlays */
.cpf-content, .popup-content {
    background: #ffffff;
    border-radius: 10px;
    padding: 25px;
    width: 350px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 10000;
    animation: fadeIn 0.5s ease-in-out;
    max-height: 80vh;
    overflow-y: auto;
}

/* Estilização da barra de rolagem */
.popup-content::-webkit-scrollbar {
    width: 6px;
}

.popup-content::-webkit-scrollbar-track {
    background: #f4f4f4;
    border-radius: 10px;
}

.popup-content::-webkit-scrollbar-thumb {
    background: #f44336;
    border-radius: 10px;
    transition: background 0.3s;
}

.popup-content::-webkit-scrollbar-thumb:hover {
    background: #d32f2f;
}

/* Animação de entrada */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Estilos do formulário inicial */
.cpf-header {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #000;
}

.cpf-info {
    font-size: 16px;
    color: #555555;
    margin-bottom: 15px;
}

.cpf-input {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box;
}

.cpf-button {
    background: #1976D2;
    color: #ffffff;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    transition: background 0.3s ease;
    display: inline-block;
}

.cpf-button:hover {
    background: #1565C0;
}

/* Estilos do popup */
.popup-header {
    background-color: #D32F2F;
    color: #ffffff;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    padding: 15px;
    width: calc(100% + 50px);
    margin: 0 -25px;
    box-sizing: border-box;
}

.popup-greeting {
    font-size: 18px;
    color: #1976D2;
    margin-bottom: 15px;
    font-weight: 600;
}

.order-info {
    font-size: 16px;
    font-weight: 700;
    color: #000;
    margin-bottom: 15px;
    margin-top: 20px;
    text-align: left;
    max-width: 90%;
}

.order-info p {
    margin: 5px 0;
}

#nome {
    text-transform: capitalize;
}

endereco {
    text-transform: capitalize;
}

.popup-warning-logo {
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
    position: relative;
}

.popup-warning {
    font-size: 14px;
    color: #D32F2F;
    margin-bottom: 15px;
    line-height: 1.5;
}

.popup-taxes ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.popup-taxes li {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #ddd;
    font-size: 14px;
    color: #555555;
}

.tax-name {
    flex: 1;
    text-align: left;
}

.tax-amount {
    flex: 0 0 auto;
    font-weight: 700;
}

.popup-total {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 25px;
    color: #D32F2F;
}

.popup-total span {
    font-size: 18px;
    margin-bottom: 25px;
    color: #4f4e4e;
    font-weight: 100;
}

.popup-button {
    background: #1da351;
    color: #ffffff;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    transition: background 0.3s ease;
    display: inline-block;
    text-decoration: none;
    width: 100%;
    box-sizing: border-box;
}

.popup-button:hover {
    background: #158f43;
}

/* Estilos do timer e localização */
.order-location {
    display: flex;
    align-items: center;
    font-size: 11px;
    color: #333;
    margin-top: 10px;
}

.icon {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: radial-gradient(circle, #ff0000, #ffcc00);
    margin-right: 8px;
    animation: blink 1s infinite;
}

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.timer-alert {
    font-size: 14px;
    color: #D32F2F;
    font-weight: bold;
    text-align: center;
    margin-top: 20px;
}

.timer-text {
    font-weight: normal;
    font-size: 16px;
    color: #898181;
}

#timer {
    font-size: 18px;
    color: #000;
    font-weight: bold;
}

.timer-warning {
    font-size: 12px;
    display: block;
    color: #867e7e;
}

.emails {
    color: #867e7e;
    font-size: 10px;
}

.atenc {
    color: black;
}

.cleantext {
    color: #898181;
}

.receitass {
    filter: grayscale(100%);
    opacity: 0.5;
}