/* Fundo escuro (Overlay) */
.popup {
    display: none; /* Oculto por padrão, o JS vai mudar para flex */
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    backdrop-filter: blur(2px);
}

/* A Caixa Branca */
.popup-content {
    background-color: white;
    padding: 50px 30px 30px 30px; /* Espaço extra no topo pro ícone */
    border-radius: 15px;
    text-align: center;
    width: 90%;
    max-width: 400px;
    position: relative;
    overflow: visible;  /* O SEGREDO: permite o ícone sair da caixa */
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
    font-family: 'Segoe UI', sans-serif;
    animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
    from {transform: scale(0.8); opacity: 0;}
    to {transform: scale(1); opacity: 1;}
}

/* O Ícone Flutuante Vermelho */
.floating-badge {
    width: 80px;
    height: 80px;
    background-color: #c0392b; /* Vermelho escuro */
    border-radius: 50%;
    position: absolute;
    top: -40px; /* Sobe metade da altura */
    left: 50%;
    transform: translateX(-50%); /* Centraliza */
    display: flex;
    justify-content: center;
    align-items: center;
    border: 5px solid white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.pizza-icon {
    font-size: 40px;
    animation: rotatePizza 10s infinite linear;
}

@keyframes rotatePizza {
    from {transform: rotate(0deg);}
    to {transform: rotate(360deg);}
}

/* Títulos */
.popup-title {
    color: #c0392b;
    font-size: 24px;
    margin-bottom: 10px;
    font-weight: 800;
}

.popup-subtitle {
    color: #555;
    font-size: 15px;
    line-height: 1.4;
    margin-bottom: 25px;
}

/* Barra de Progresso */
.progress-track {
    background-color: #ecf0f1;
    height: 12px;
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    width: 100%;
}

.progress-fill {
    height: 100%;
    width: 45%;
    background-color: #27ae60; /* Verde */
    border-radius: 10px;
    background-image: linear-gradient(45deg,rgba(255,255,255,.2) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.2) 50%,rgba(255,255,255,.2) 75%,transparent 75%,transparent);
    background-size: 20px 20px;
    animation: moveStripes 1s linear infinite;
}

@keyframes moveStripes {
    from {background-position: 20px 0;}
    to {background-position: 0 0;}
}

/* Status */
.status-text {
    font-weight: bold;
    color: #333;
    font-size: 16px;
    margin: 5px 0;
}

.time-estimate {
    font-size: 13px;
    color: #888;
}

/* Botão Laranja */
.btn-popup-action {
    background-color: #e65100;
    color: white;
    border: none;
    padding: 14px 0;
    width: 100%;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s;
    margin-top: 15px;
    box-shadow: 0 4px 6px rgba(230, 81, 0, 0.3);
}

.btn-popup-action:hover {
    background-color: #ef6c00;
    transform: translateY(-2px);
}

/* Estilo para o texto em negrito dentro do subtítulo */
.popup-subtitle strong {
    font-weight: 900; /* Garante um negrito bem forte */
    color: #000000;   /* Vermelho (o mesmo do ícone da pizza) */
}