#content {
    margin: 0 auto;
    padding: 0 15px;
}  

#paypix {
    background: white;
    position: fixed;
    width: 320px;
    max-width: 320px;
    top: 50%;
    left: 50%;
    border: 2px solid #000;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 0 20px -8px rgba(0, 0, 0, 0.7);
    transform: translate(-50%, -50%);
    overflow: hidden;
    z-index: 20000;
    transition: all 0.5s ease;
    opacity: 0;  /* começa invisível */
    pointer-events: none;
}

.openpop #paypix {
    opacity: 1;
    pointer-events: auto;
    transition: all 0.5s ease;
}  

#pay-vip_close {
    background: none;
    position: absolute;
    top: 10px;
    right: 12px;
    padding: 0;
    border: 0;
    font-size: 25px;
    cursor: pointer;
}    

.section_pix {
    display: flex;
    align-items: center;
    flex-direction: column;
}  

.titlePIX {
    display: flex;
    margin: 0;
    padding: 1rem;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    color: black;
    flex-direction: column;
}

#title_confirm {
    display: flex;
    margin: 2rem;
    flex-direction: column;
    align-items: center;
}

#title_confirm span {
    padding: 1rem 0 0;
    font-size: 15px;
    font-weight: 700;
    color: var(--c2);
    text-align: center;
    text-transform: uppercase;
}

#title_confirm span p {
    font-size: 15px;
    font-weight: 500;
    color: black;
    text-transform: math-auto;
}

#title_confirm img {
    width: 100%;
    height: 100%;
    max-width: 100px;
}

#qrcode, #qrcode img {
    width: 300px;
    height: 300px;
    image-rendering: pixelated; /* evita blur no QR */
    margin: 15px 0;
}

#qrcode_text {
    display: none;
    word-break: break-word;
    font-size: 13px;
    font-weight: 400;
    color: black;
    line-height: 22px;
}

.info_pix {
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    align-items: flex-start;
}

.copy_code {
    background: none;
    display: block;
    margin: 0 auto 1rem;
    padding: 10px 20px;
    font-size: 15px;
    font-weight: 600;
    color: black;
    border: 2px solid;
    border-radius: var(--brb);
    transition: all 1s ease;
    cursor: pointer;
}

.copy_code:hover {
    background-color: #f0f0f0;
    transition: all 1s ease;
}

.pix_footer {
    background: black;
    display: flex;
    padding: 16px;
    font-size: 15px;
    font-weight: 600;
    color: white;
    justify-content: space-between;
}

#timer {
    margin-left: 10px;
    color: red;
}

body.openpop main::after {
    content: '';
    position: fixed;
    background: linear-gradient(45deg, #00b8ff21, #8500ff29);
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    backdrop-filter: blur(6px);
}   

#totalPriceFooter {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

/* Estilos do contêiner */
.quantity-container {
    display: flex;
    align-items: center;
    margin-top: 20px;
}

.quantity-container label {
    margin-right: 10px;
    font-weight: 500;
    font-size: 14px;
    color: #ffffff;
}

.quantity-container select {
    width: 200px;
}

.qtyBuy {
    display: flex;
    padding: 15px 0 0;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.qtyBuyBox {
    display: flex;
    align-items: center;
}

.qtyBuyBox button, .qtyBuyBox select {
    margin: 0 8px;
}

/* Animação de carregamento */
.loading-placeholder {
    background-color: #f0f0f0;
    background-image: linear-gradient(90deg, #f0f0f0 0%, #e0e0e0 50%, #f0f0f0 100%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 4px;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Estilo para o placeholder do QR Code */
#qrcode.loading-placeholder {
    width: 200px;
    height: 200px;
}

/* Estilo para o placeholder do texto */
#qrcode_text.loading-placeholder {
    width: 100%;
    height: 20px;
    margin-top: 10px;
}

/* Responsividade */
@media (max-width: 768px) {
    #paypix {
        width: 90%;
        max-width: 320px;
    }
    .section_pix {
        flex-wrap: wrap;
    }
    #qrcode, #qrcode img {
        width: 100%;
        max-width: 180px;
        height: auto;
        margin: 10px auto;
    }
    .info_pix {
        flex-direction: column;
        text-align: justify;
        align-items: stretch;
    }
    .copy_code {
        font-size: 12px;
        font-weight: 800;
    }
}
