* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    background: #f7f7f7;
    color: #222;
}

main {
    max-width: 450px;
    margin: auto;
    padding: 25px;
}

.botao-voltar {
    color: #111;
    position: fixed;

    top: 20px;
    left: 20px;

    width: 48px;
    height: 48px;

    border: none;

    border-radius: 50%;

    background: white;

    box-shadow: 0 6px 18px rgba(0, 0, 0, .12);

    display: flex;
    justify-content: center;
    align-items: center;

    font-size: 22px;

    cursor: pointer;

    transition: .2s;

    z-index: 999;

}


.botao-voltar:hover {

    transform: translateY(-2px);

}

.botao-voltar:active {

    transform: scale(.95);

}

.logo {
    text-align: center;
    margin: 35px 0;
}

.logo img {
    max-height: 200px;
    max-width: 150px;
}

h2 {
    margin-bottom: 18px;
    font-size: 1.15rem;
}

p {
    color: #666;
    margin-bottom: 25px;
    line-height: 1.4;
}

a {
    text-decoration: none;
    color: #f7f7f7;
}

.opcoes {
    display: grid;
    gap: 14px;
    margin-bottom: 40px;
}

.card {
    background: white;
    border: 2px solid #e5e5e5;
    border-radius: 18px;
    padding: 18px;
    text-align: center;
    font-size: 1.05rem;
    cursor: pointer;
    transition: .25s;
    user-select: none;
}

.card:hover {
    transform: translateY(-2px);
    border-color: #111;
}

.card.selecionado {
    background: #111;
    color: white;
    border-color: #111;
}

.card-img {
    width: 100%;
    max-height: 300px;
    margin: 10px 0px;
}

.card-img>img {
    display: inline-block;
    width: 90px;
    max-height: 100px;
    border-radius: 10px;
    margin: auto;
}

.qtd {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.numero {
    background: white;
    border: 2px solid #ddd;
    border-radius: 15px;
    padding: 18px 0;
    text-align: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: .25s;
}

.numero.selecionado {
    background: #111;
    color: white;
    border-color: #111;
}

.modal-alerta {

    position: fixed;

    inset: 0;

    background: rgba(0, 0, 0, .45);

    display: flex;

    justify-content: center;

    align-items: center;

    opacity: 0;

    visibility: hidden;

    transition: .25s;

    z-index: 99999;

    backdrop-filter: blur(5px);

}

.modal-alerta.ativo {

    opacity: 1;

    visibility: visible;

}

.alerta-card {

    width: 420px;

    max-width: 92%;

    background: white;

    border-radius: 28px;

    padding: 35px;

    text-align: center;

    animation: subir .25s;

    box-shadow: 0 30px 60px rgba(0, 0, 0, .18);

}

@keyframes subir {

    from {

        transform: translateY(30px);

        opacity: 0;

    }

    to {

        transform: none;

        opacity: 1;

    }

}

.alerta-icone {

    width: 95px;

    height: 95px;

    margin: auto;

    border-radius: 50%;

    display: flex;

    justify-content: center;

    align-items: center;

    font-size: 50px;

    background: #fff5d7;

    margin-bottom: 20px;

}

.alerta-card h2 {

    margin-bottom: 10px;

    font-size: 27px;

    color: #222;

}

.alerta-card p {

    color: #666;

    line-height: 1.6;

    margin-bottom: 28px;

}

.alerta-botoes {

    display: flex;

    justify-content: center;

}

.alerta-botoes button {

    border: none;

    background: #5B7CFA;

    color: white;

    border-radius: 14px;

    padding: 14px 35px;

    cursor: pointer;

    font-size: 16px;

    transition: .2s;

}

.alerta-botoes button:hover {

    transform: translateY(-2px);

    box-shadow: 0 10px 20px rgba(91, 124, 250, .25);

}

@keyframes modalEntrada {

    from {

        opacity: 0;

        transform: translateY(20px) scale(.95);

    }

    to {

        opacity: 1;

        transform: translateY(0) scale(1);

    }

}

button {

    width: 100%;

    border: none;
    border-radius: 16px;

    background: #111;
    /* color: white; */

    font-size: 1.05rem;
    cursor: pointer;

    transition: .25s;
}

button:hover {
    opacity: .92;
}

button:disabled {
    opacity: .45;
    cursor: not-allowed;
}

.upload {

    width: 100%;
    height: 180px;

    border: 2px dashed #d5d5d5;
    border-radius: 22px;

    background: white;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    cursor: pointer;

    transition: .25s;

}

.upload:hover {

    border-color: #111;

}

.upload span:first-child {

    font-size: 3rem;

}

.upload span:last-child {

    margin-top: 12px;
    font-size: 1rem;
    color: #666;

}

.preview {

    margin-top: 30px;

    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 15px;

}

.foto {

    position: relative;

    overflow: hidden;

    border-radius: 20px;

    background: white;

    box-shadow: 0 12px 30px rgba(0, 0, 0, .08);

    transition: .25s;

}

.foto:hover {

    transform: translateY(-4px);

    box-shadow: 0 20px 45px rgba(0, 0, 0, .12);

}

.foto img {

    display: block;

    width: 100%;

    aspect-ratio: 3/4;

    object-fit: cover;

}

.badge-edicao {

    position: absolute;

    top: 12px;

    left: 12px;

    padding: 6px 12px;

    border-radius: 999px;

    background: rgba(255, 255, 255, .96);

    color: #8b5cf6;

    font-size: 12px;

    font-weight: 700;

    backdrop-filter: blur(10px);

    box-shadow: 0 5px 15px rgba(0, 0, 0, .1);

    z-index: 10;

}

.remover {

    position: absolute;

    top: 12px;

    right: 12px;

    width: 38px;

    height: 38px;

    border: none;

    border-radius: 50%;

    background: #ff4b4b;

    color: white;

    font-size: 22px;

    cursor: pointer;

    transition: .2s;

    z-index: 10;

}

.remover:hover {

    transform: scale(1.08);

}

.acoes-preview {

    position: absolute;

    left: 0;

    right: 0;

    bottom: 0;

    display: flex;

    gap: 5px;

    justify-content: center;

    align-items: center;

    padding: 14px;

    background: linear-gradient(transparent,

            rgba(0, 0, 0, .65));

    opacity: 0;

    transition: .25s;

    backdrop-filter: blur(18px);

    background: rgba(255, 255, 255, .15);

}

.foto:hover .acoes-preview {

    opacity: 1;

}

.acoes-preview button {

    display: flex;

    align-items: center;

    border: none;

    border-radius: 12px;

    /* padding:5px 11px; */

    padding: 7px;

    background: rgba(255, 255, 255, .92);

    cursor: pointer;

    font-weight: 600;

    font-size: 0.7em;

    transition: .2s;

}

.acoes-preview button:hover {

    transform: translateY(-2px);

    background: white;

}

@media (hover:none) {

    .acoes-preview {

        opacity: 1;

    }

}

.galeria {

    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 18px;

    margin-top: 25px;

    margin-bottom: 120px;

}

.galeria>.adicionar {
    order: 999;
}

.foto {

    position: relative;

    aspect-ratio: 1;

    overflow: hidden;

    border-radius: 22px;

    background: #ececec;

    box-shadow: 0 10px 22px rgba(0, 0, 0, .08);

    transition: .25s;

}

.foto:hover {

    transform: translateY(-3px);

}

.foto img {

    width: 100%;

    height: 100%;

    object-fit: cover;

    display: block;

}

.foto.removendo {

    animation: removerFoto .22s ease forwards;

}

@keyframes removerFoto {

    from {

        opacity: 1;
        transform: scale(1);

    }

    to {

        opacity: 0;
        transform: scale(.85) translateY(-10px);

    }

}

.adicionar {

    aspect-ratio: 1;

    border: 2px dashed #d8d8d8;

    border-radius: 22px;

    background: white;

    display: flex;

    flex-direction: column;

    justify-content: center;

    align-items: center;

    cursor: pointer;

    transition: .25s;

}

.adicionar:hover {

    border-color: #111;

    transform: translateY(-3px);

}

.mais {

    width: 60px;

    height: 60px;

    border-radius: 50%;

    background: #111;

    color: white;

    display: flex;

    justify-content: center;

    align-items: center;

    font-size: 2rem;

    margin-bottom: 14px;

}

.adicionar span {

    color: #555;

    text-align: center;

    line-height: 1.4;

    font-size: .95rem;

}

.foto {

    animation: aparecer .25s ease;

}

@keyframes aparecer {

    from {

        opacity: 0;

        transform: scale(.85);

    }

    to {

        opacity: 1;

        transform: scale(1);

    }

}

.foto:active {

    transform: scale(.97);

}

.resumo-compra {

    position: fixed;

    left: 0;
    right: 0;
    bottom: 0;

    background: #fff;

    padding: 16px 20px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    box-shadow: 0 -8px 25px rgba(0, 0, 0, .08);

    border-top: 1px solid #ececec;

    z-index: 999;

}

.informacoes {

    display: flex;
    flex-direction: column;

}

.informacoes .titulo {

    font-size: .85rem;

    color: #777;

}

.informacoes .preco {

    font-size: 1.55rem;

    font-weight: 700;

    color: #111;

}

.btn-continuar {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);

    width: 70%;

    border: none;
    background: #111;
    color: #fff;

    padding: 15px 28px;
    border-radius: 14px;

    font-size: 1rem;
    font-weight: 600;

    cursor: pointer;
    transition: .25s;

    z-index: 9999;
}

.btn-continuar:disabled {

    opacity: .45;

    cursor: not-allowed;

    box-shadow: none;

}

.revisao {

    max-width: 480px;

    margin: auto;

    padding: 24px 18px 140px;

}

.topo {

    display: flex;

    align-items: center;

    gap: 16px;

}

.voltar {

    width: 46px;

    height: 46px;

    border: none;

    border-radius: 50%;

    background: white;

    box-shadow: 0 8px 20px rgba(0, 0, 0, .08);

    cursor: pointer;

    color: #111;

}

.topo h1 {

    font-size: 1.4rem;

}

.topo span {

    color: #888;

}

.progresso {

    height: 8px;

    background: #e7e7e7;

    border-radius: 999px;

    margin: 28px 0;

}

.barra {

    width: 75%;

    height: 100%;

    background: #111;

    border-radius: 999px;

}

.resumo {

    display: flex;

    justify-content: space-between;

    background: white;

    border-radius: 22px;

    padding: 22px;

    margin-bottom: 28px;

    box-shadow: 0 8px 25px rgba(0, 0, 0, .06);

}

.resumo span {

    color: #888;

    display: block;

    margin-bottom: 5px;

}

.pedido {

    margin-top: 35px;

    background: white;

    border-radius: 22px;

    padding: 22px;

    box-shadow: 0 8px 25px rgba(0, 0, 0, .06);

}

.pedido div {

    display: flex;

    justify-content: space-between;

    align-items: center;

}

.pedido strong {

    font-size: 1.5rem;

}

.metodos {

    display: flex;

    flex-direction: column;

    gap: 18px;

    margin: 30px 0;

}

.metodo {

    display: flex;

    align-items: center;

    gap: 18px;

    padding: 20px;

    border-radius: 20px;

    border: none;

    background: white;

    cursor: pointer;

    box-shadow: 0 8px 20px rgba(0, 0, 0, .08);

    transition: .2s;

}

.metodo:hover {

    transform: translateY(-2px);

}

.metodo.selecionado {

    border: 2px solid #111;

}

.icone {

    font-size: 2rem;

}

.info {

    flex: 1;

    text-align: center;

}

.info p {

    color: #888;

    margin-top: 4px;

}

.info strong {

    color: #888;

}

.check {

    width: 28px;

    height: 28px;

    border-radius: 50%;

    background: #111;

    color: white;

    display: flex;

    justify-content: center;

    align-items: center;

}

.pix {

    max-width: 430px;

    margin: auto;

    padding: 25px 20px 60px;

}

.voltar {

    width: 46px;

    height: 46px;

    border: none;

    border-radius: 50%;

    background: white;

    box-shadow: 0 8px 18px rgba(0, 0, 0, .08);

    cursor: pointer;

}

.valor {

    text-align: center;

    margin-bottom: 30px;

}

.valor span {

    color: #888;

}

.valor h2 {

    font-size: 2.6rem;

    margin-top: 5px;

}

.qr {

    text-align: center;

}

.qr-box {

    width: 250px;

    height: 250px;

    margin: 20px auto;

    background: white;

    border-radius: 22px;

    display: flex;

    justify-content: center;

    align-items: center;

    box-shadow: 0 12px 25px rgba(0, 0, 0, .08);

}

.qr-box img {

    width: 88%;

}

.divisor {

    text-align: center;

    margin: 30px 0;

    color: #999;

}

.pix-copia {

    display: flex;

    flex-direction: column;

    gap: 15px;

}

.codigo {

    display: flex;

    gap: 10px;

}

.toast {

    position: fixed;

    bottom: 35px;

    left: 50%;

    transform: translateX(-50%) translateY(40px);

    background: #222;

    color: white;

    padding: 14px 22px;

    border-radius: 14px;

    font-size: 16px;

    opacity: 0;

    transition: .35s;

    pointer-events: none;

    z-index: 99999;

}

.toast.mostrar {

    opacity: 1;

    transform: translateX(-50%) translateY(0);

}

.codigo input {

    flex: 1;

    border: none;

    border-radius: 16px;

    background: white;

    padding: 15px;

    box-shadow: 0 6px 18px rgba(0, 0, 0, .06);

    text-overflow: ellipsis;

}

.codigo button {

    width: 55px;

    border: none;

    border-radius: 16px;

    background: #111;

    color: white;

    cursor: pointer;

}

.copiar {

    height: 52px;

    border: none;

    border-radius: 16px;

    background: #111;

    color: white;

    font-weight: 600;

    cursor: pointer;

    transition: .2s;

}

.copiar:hover {

    transform: translateY(-2px);

}

.tempo {

    margin-top: 40px;

    text-align: center;

}

.icone {

    font-size: 2rem;

}

.tempo h2 {

    font-size: 2rem;

    margin: 10px 0;

}

.tempo span {

    color: #666;

}