/* Reset padrões do navegador */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;

    font-size: 16px;
    font-family: 'Inter', sans-serif;
}

/* Estilização geral do body */
body {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;

    background: #f3f4f6;
}

/* Estilização de todas as fontes h2 */
h2 {
    font-size: 18px;
    font-weight: 600;
}



















/*1. Estilização cabeçalho da fatura */

.screen-stack-invoice {
    width: 100vw;
    max-width: 1100px;

    margin: 20px;
    border-radius: 15px 15px 0 0;

    background-color: white;

    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.cabecalho-fatura {
    border-radius: 18px 18px 0 0;
    padding: 28px;

    background-color: #7fb18f;
}

.cabecalho-fatura img {
    width: 200px;
    height: 200px;
}

.cabecalho-fatura .linha-superior {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.cabecalho-fatura .linha-superior div {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

h1 {
    font-size: 22px;
}

.cabecalho-fatura .linha-inferior {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    ;
}

.cabecalho-fatura .linha-inferior article {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.cabecalho-fatura .linha-inferior .info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cabecalho-fatura .linha-inferior .box-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    padding: 14px;
    border-radius: 10px;

    background-color: rgb(95, 143, 108);
}

.cabecalho-fatura .linha-inferior .box-icon svg {
    width: 22px;
    height: 22px;
    stroke-width: 1.8;

    color: white;
}













/* 2. Estilização Resumo do pagamento */

/* 2.1 Parte principal que ressalta do fundo */
.resumo-pagamento {
    display: flex;
    flex-direction: column;
    gap: 20px;

    margin: 30px;
    border-radius: 10px;
    padding: 28px;

    background-color: #ffffff;


    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.resumo-pagamento .linha-media {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 20px 0;

    border-bottom: 1px solid rgba(134, 133, 133, 0.322);
    border-top: 1px solid rgba(134, 133, 133, 0.322);

}

.resumo-pagamento .info-plano,
.resumo-pagamento .linha-inferior {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}


/* 2.2 Estilização das fontes */

.linha-media span {
    color: #6b7280;
}

.resumo-pagamento strong {
    color: #111827;
    font-weight: 600;
}

.resumo-pagamento .linha-inferior span {
    font-size: 20px;
    font-weight: 500;
}

.resumo-pagamento .linha-inferior strong {
    font-size: 20px;
    font-weight: 700;
    color: #059669;
}

















/* 3. Estilização cupom de desconto */

.cupom {
    display: flex;
    flex-direction: column;
    gap: 20px;

    margin: 30px;
    border-radius: 10px;
    padding: 28px;

    background-color: #ffffff;

    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.inserir-cupom {
    display: flex;
    flex-direction: row;
    gap: 10px;
}

.cupom input {
    width: 100%;
    border-radius: 5px;
    padding: 10px 12px;

    border: 1px solid #d1d5db;
    outline: none;
}

.cupom button {
    padding: 10px 18px;
    border-radius: 5px;

    border: 1px solid #d1d5db;

    cursor: pointer;
}

.cupom button:hover {
    background-color: rgb(95, 143, 108);
    color: white;

    transform: translateY(-2px);

    box-shadow: 0 6px 14px rgba(95, 143, 108, 0.35);

    transition: all 0.18s ease;
}

.cupom button:active {
    transform: translateY(0) scale(0.96);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}













/* 2. Estilização métodos de pagamento */

.metodos-pagamentos {
    margin: 30px;
}

.box-metodos-pagamento div {
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: center;
    align-items: center;
    text-align: center;

    border-radius: 10px;
    padding: 28px;
    gap: 25px;

    background-color: #ffffff;

    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.metodos-pagamentos h2 {
    margin-bottom: 30px;
}

.box-metodos-pagamento {
    display: flex;
    justify-content: center;

    width: 100%;
    gap: 30px;
}

.metodos-pagamentos svg {
    max-width: 80px;
    max-height: 80px;
}

.box-metodos-pagamento span {
    font-size: 16px;
    font-weight: 600;
}

.box-metodos-pagamento strong {
    color: #6b7280;
}

.box-metodos-pagamento div:hover {
    transform: translateY(-6px);
    box-shadow:
        0 12px 28px rgba(0, 0, 0, 0.12);
    transition: 300ms;
}

.box-metodos-pagamento div:active {
    transform: scale(0.97);
}









/* Adaptações para celular */

@media (max-width: 480px) {

    .cabecalho-fatura {
        margin: 15px;
    }

    .cabecalho-fatura img {
        width: 200px;
        height: 200px;
    }

    /* resetar class, ela não é útil para cell */
    .screen-stack-invoice {
        width: 100%;
        max-width: 100%;
        margin: 0;
        background-color: #ffffff60;
        border-radius: 0;
        box-shadow: none;
    }

    .box-metodos-pagamento {
        gap: 10px;
    }

    .box-metodos-pagamento span {
        font-size: 12px;
    }

    .box-metodos-pagamento strong {
        font-size: 10px;
    }

    .metodos-pagamentos svg {
        max-width: 30px;
        max-height: 30px;
    }

    .box-metodos-pagamento div {
        padding: 7px;
        gap: 6px;
    }
}






/* Tela de loading fatura */
.screen-stack-loading {
    min-height: 100vh;

    display: flex;
    justify-content: center;
    align-items: center;
}

.screen-loading {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;

    width: 90%;
    max-width: 500px;

    text-align: center;
}

.loading-spinner {
    width: 60px;
    height: 60px;

    border: 5px solid #e5e7eb;
    border-top: 5px solid #059669;

    border-radius: 50%;

    animation: girar 0.8s linear infinite;
}

@keyframes girar {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Tela de fatura não encontrada */
.screen-stack-error {
    min-height: 100vh;
    width: 80vw;

    display: flex;
    justify-content: center;
    align-items: center;
}

.screen-error {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;

    border-radius: 12px;
    padding: 30px;
    gap: 30px;

    background-color: #ffffffce;

    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.screen-error svg {
    width: 150px;
    height: 150px;
    stroke-width: 2;
}

.screen-error h2 {
    font-size: 26px;
    font-weight: 700;
}

.screen-error p {
    font-size: 16px;
    font-weight: 500;
    color: #2e2f30;
}

.screen-error .btn-suporte {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 8px;

    font-size: 15px;
    font-weight: 600;
    color: white;

    background-color: rgba(0, 128, 0, 0.685);

    border: 1px solid rgba(32, 2, 2, 0.233);
}

.screen-error button svg {
    width: 30px;
    height: 30px;
}

.screen-error button:hover {
    transform: translateY(-2px);
    box-shadow:
        0 12px 28px rgba(0, 0, 0, 0.12);
    transition: 300ms;
}

.screen-error button:active {
    transform: scale(0.97);
}

/* Tela de pagamento confirmado */
.screen-paid {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 90vw;
    height: 100vh;
    font-size: 22px;
}

.paid-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;

    width: 500px;
    height: 700px;

    border-radius: 10px;

    margin-top: 100px;

    background-color: rgba(9, 196, 9, 0.1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.paid-card .logo {
    position: absolute;
    top: -100px;
    width: 200px;
    height: 200px;

    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.paid-card .titulo {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 120px 0 0 0;
}

.paid-card img {
    width: 25px;
    height: 25px;
}

.paid-card .resumo-card {

    padding: 25px 15px 15px 15px;
    border-radius: 12px;
    background-color: rgba(33, 74, 40, 0.93);
    color: rgba(246, 232, 232, 1);

    width: 80%;
    height: 70%;

    display: flex;
    flex-direction: column;
    gap: 20px
}

.paid-card .info {
    display: flex;
    justify-content: space-between;
}

.resumo-card section {
    display: flex;
    flex-direction: column;
    gap: 10px
}

.paid-card header {
    display: flex;
    flex-direction: column;
    align-items: center;

    margin-bottom: 25px;
}

.resumo-card hr {
    border: none;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
}

.resumo-card .suporte {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;

    margin-top: auto;
}

.resumo-card button {
    border: none;
    display: flex;
    align-items: center;
    gap: 5px;

    border-radius: 12px;
    padding: 5px;
    background-color: rgba(255, 255, 255, 0.88);

    cursor: pointer;
}

.resumo-card button:hover {
    background-color: #e5e7eb;
    transform: translateY(-1px);
}

.resumo-card button:active {
    transform: translateY(0) scale(0.96);
    background-color: #d1d5db;
}

.resumo-card h2 {
    margin: 10px 0;
    font-size: 26px;
}

.resumo-card span {
    font-size: 16px;
    font-weight: 400;
    color: rgba(246, 232, 232, 1);
}

.resumo-card strong {
    font-size: 16px;
    font-weight: 600;
    color: rgba(246, 232, 232, 1);
}
















.whatsapp-flutuante {
    position: fixed;
    bottom: 20px;
    right: 20px;

    width: 75px;
    height: 75px;

    background-color: #25D366;
    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    box-shadow: 0 6px 15px rgba(0,0,0,0.25);

    animation: pulsar 1.6s infinite;

    z-index: 9999;
}

@keyframes pulsar {

    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.12);
    }

    100% {
        transform: scale(1);
    }

}

.whatsapp-flutuante img {
    width: 55px;
    height: 55px;
}

.whatsapp-flutuante:hover {
    transform: scale(1.08);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.3);
}

.whatsapp-flutuante:active {
    transform: scale(0.96);
}

@media (max-width: 480px) {

    .whatsapp-flutuante {
        left: 20px;
        width: 35px;
        height: 35px;
        border-radius: 50%;
    }

    .whatsapp-flutuante img {
        width: 25px;
        height: 25px;
    }

}

/* Ocultar uma TAG*/
.hidden {
    display: none;
}