/* =========================================
   LOJA: janela "Finalizar compra" (Pix e Mercado Pago)
   ========================================= */
body.loja-aberta {
    overflow: hidden;
}

.loja-formas {
    margin: 30px auto 0;
    max-width: 640px;
    text-align: center;
    color: #bbb;
    font-size: 1.05rem;
}

.loja-formas strong {
    color: #fff;
}

.loja-modal {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
}

.loja-modal[hidden] {
    display: none;
}

.loja-caixa {
    width: 100%;
    max-width: 400px;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    background: #17181b;
    border: 1px solid #2c2f36;
    border-top: 3px solid var(--rust-red);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
    font-family: 'Rajdhani', sans-serif;
    color: #e0e0e0;
}

.loja-topo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #2c2f36;
}

.loja-topo h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Black Ops One', cursive;
    font-size: 1.25rem;
    font-weight: normal;
    letter-spacing: 1px;
    color: #fff;
}

.loja-topo svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: var(--rust-red);
    stroke-width: 2;
}

.loja-fechar {
    background: none;
    border: none;
    color: #9aa3b2;
    font-size: 1.9rem;
    line-height: 1;
    cursor: pointer;
}

.loja-fechar:hover {
    color: #fff;
}

.loja-tela {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 20px;
}

.loja-tela[hidden] {
    display: none;
}

.loja-item {
    padding: 16px;
    background: #1e2530;
    border: 1px solid #2f3a4a;
}

.loja-item small,
.loja-dados span,
.loja-rotulo,
.loja-total span,
.loja-linha span,
.loja-status span {
    color: #8d97a8;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.loja-item strong {
    display: block;
    margin: 4px 0 12px;
    font-family: 'Black Ops One', cursive;
    font-size: 1.35rem;
    color: #fff;
    text-transform: uppercase;
}

.loja-linha {
    display: flex;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid #2f3a4a;
}

.loja-linha b {
    color: #fff;
}

.loja-dados {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 12px;
}

.loja-dados label {
    display: grid;
    gap: 6px;
}

.loja-dados input,
.loja-copia input {
    width: 100%;
    padding: 10px 12px;
    background: #0f1013;
    border: 1px solid #2c2f36;
    color: #fff;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
}

.loja-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 16px;
    background: #121316;
    border: 1px solid #2c2f36;
}

.loja-total strong {
    font-family: 'Black Ops One', cursive;
    font-size: 1.7rem;
    color: #2ecc71;
}

.loja-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 16px;
    border: none;
    cursor: pointer;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    transition: transform 0.15s, filter 0.15s;
}

.loja-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
}

.loja-btn-pix {
    background: #0e9a6a;
    color: #fff;
    box-shadow: 4px 4px 0 #076045;
}

.loja-btn-pix svg {
    width: 22px;
    height: 22px;
    fill: #fff;
}

.loja-btn-mp {
    flex-direction: column;
    gap: 2px;
    background: #ffe600;
    color: #1a2b6d;
}

.loja-mp-logo {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    text-transform: lowercase;
}

.loja-btn-mp small {
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.loja-seguro {
    margin-top: -8px;
    text-align: center;
    color: #6f86c9;
    font-size: 0.85rem;
}

.loja-erro {
    padding: 10px 12px;
    background: rgba(205, 65, 43, 0.15);
    border-left: 3px solid var(--rust-red);
    color: #ffb4a6;
    font-weight: 600;
}

.loja-voltar {
    width: 100%;
    padding: 12px;
    background: none;
    border: 1px solid #2c2f36;
    color: #9aa3b2;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    cursor: pointer;
}

.loja-voltar:hover {
    color: #fff;
    border-color: #4a4f58;
}

/* Pix */
.loja-qr {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #141a17;
    border: 1px solid #0e9a6a;
}

.loja-qr span {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #2ecc71;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.loja-qr span svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: #2ecc71;
    stroke-width: 2;
}

.loja-qr img {
    width: 200px;
    height: 200px;
    padding: 8px;
    background: #fff;
    image-rendering: pixelated;
}

.loja-rotulo {
    text-align: center;
    margin-bottom: -6px;
}

.loja-copia {
    display: flex;
}

.loja-copia input {
    flex: 1;
    min-width: 0;
    font-family: Consolas, monospace;
    font-size: 0.85rem;
}

.loja-copia button {
    padding: 0 14px;
    background: #2f3a4a;
    border: none;
    color: #fff;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
}

.loja-copia button:hover {
    background: #3d4b60;
}

.loja-status {
    display: grid;
    gap: 10px;
    padding: 14px 16px;
    background: #1e2530;
    border: 1px solid #2f3a4a;
}

.loja-status div {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.loja-status b {
    color: #fff;
    letter-spacing: 1px;
}

.loja-status b.aguardando {
    color: #f0a020;
}

.loja-status b.aguardando::before {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-right: 8px;
    border: 2px solid #f0a020;
    border-right-color: transparent;
    border-radius: 50%;
    vertical-align: -1px;
    animation: loja-gira 1s linear infinite;
}

.loja-status b.aprovado {
    color: #2ecc71;
}

.loja-status b.falhou {
    color: var(--rust-red);
}

.loja-nota,
.loja-texto {
    color: #aab2c0;
    text-align: center;
    font-size: 0.95rem;
}

.loja-entrar {
    justify-content: center;
}

.loja-girando {
    width: 46px;
    height: 46px;
    margin: 20px auto 0;
    border: 4px solid #2c2f36;
    border-top-color: var(--rust-red);
    border-radius: 50%;
    animation: loja-gira 0.9s linear infinite;
}

@keyframes loja-gira {
    to {
        transform: rotate(360deg);
    }
}

/* Página de retorno do cartão */
.loja-pedido-status {
    margin-top: 16px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.04);
    border-left: 3px solid #2ecc71;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
}

.loja-pedido .conta-rodape {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Últimas compras no perfil */
.perfil-compras {
    display: grid;
    gap: 10px;
    margin-top: 10px;
}

.perfil-compra {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.04);
    border-left: 3px solid #555;
}

.perfil-compra.status-entregue,
.perfil-compra.status-pago {
    border-left-color: #2ecc71;
}

.perfil-compra.status-recusado,
.perfil-compra.status-estornado,
.perfil-compra.status-divergente {
    border-left-color: var(--rust-red);
}

.perfil-compra strong {
    display: block;
    color: #fff;
}

.perfil-compra small {
    color: #8d97a8;
}

.perfil-compra span {
    color: #fff;
    font-weight: 700;
    white-space: nowrap;
}

@media (max-width: 480px) {
    .loja-dados {
        grid-template-columns: 1fr;
    }
}
