/* checkout Pix modernizado, responsivo e integrado à identidade visual do site. */
.pix-checkout-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.pix-checkout-page .site-header,
.pix-checkout-page .site-footer {
    flex: 0 0 auto;
}

.pix-checkout-area {
    /* distribui o espaço vertical de forma equilibrada entre site-header e site-footer. */
    display: flex;
    align-items: center;
    flex: 1 0 auto;
    min-height: 0;
    padding: clamp(38px, 5vw, 72px) 0;
    background:
        radial-gradient(circle at 10% 8%, rgba(255, 112, 16, .12), transparent 28%),
        radial-gradient(circle at 92% 80%, rgba(40, 120, 235, .08), transparent 25%),
        #f7f8fc;
}

.pix-checkout-area > .container {
    width: 100%;
}

/* cartão externo sem borda ou fundo e com raio padronizado aos botões. */
.pix-checkout-card {
    display: grid;
    grid-template-areas:
        "summary checkout"
        "benefits checkout";
    grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
    grid-template-rows: auto 1fr;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 28px 80px rgba(27, 33, 47, .15);
}

.pix-product-summary,
.pix-benefits,
.pix-checkout-panel {
    min-width: 0;
}

.pix-product-summary {
    position: relative;
    z-index: 0;
    grid-area: summary;
    padding: 44px 44px 24px;
    color: #d9deea;
    background:
        radial-gradient(circle at 100% 0, rgba(255, 112, 16, .24), transparent 42%),
        linear-gradient(145deg, #242c3d 0%, #1b212f 72%);
}

.pix-product-summary::after {
    position: absolute;
    right: -72px;
    bottom: -82px;
    z-index: -1;
    width: 210px;
    height: 210px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 50%;
    content: "";
}

.pix-eyebrow {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--atube-orange-dark);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.pix-product-summary .pix-eyebrow {
    color: #ff9c5a;
}

.pix-product-summary h1 {
    margin: 0 0 14px;
    color: #fff;
    font-size: clamp(2.2rem, 3vw, 3.25rem);
    line-height: 1.05;
    letter-spacing: -.045em;
}

.pix-product-summary h1 strong {
    display: block;
    color: #ff8a3d;
}

.pix-product-summary > p {
    max-width: 430px;
    margin: 0;
    color: #c3cad8;
    font-size: .98rem;
    line-height: 1.65;
}

.pix-price {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-top: 28px;
    padding: 18px 20px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 16px;
    background: rgba(255, 255, 255, .07);
}

.pix-price small,
.pix-price strong {
    display: block;
}

.pix-price small {
    color: #bfc6d4;
    font-size: 12px;
    font-weight: 700;
}

.pix-price strong {
    color: #fff;
    font-size: 2rem;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    white-space: nowrap;
}

.pix-product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.pix-product-tags span {
    padding: 6px 10px;
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: 999px;
    color: #d6dbe5;
    background: rgba(255, 255, 255, .05);
    font-size: 11px;
    font-weight: 700;
}

.pix-benefits {
    grid-area: benefits;
    padding: 24px 44px 42px;
    color: #d9deea;
    background: #1b212f;
}

.pix-benefits h2 {
    margin: 0 0 18px;
    color: #fff;
    font-size: 1.08rem;
    letter-spacing: -.015em;
}

.pix-benefits ul {
    display: grid;
    gap: 12px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.pix-benefits li {
    display: grid;
    grid-template-columns: 25px minmax(0, 1fr);
    align-items: start;
    gap: 10px;
    color: #d3d8e3;
    font-size: .88rem;
    line-height: 1.45;
}

.pix-benefit-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 23px;
    height: 23px;
    border-radius: 50%;
    color: #fff;
    background: var(--atube-orange);
    font-size: 12px;
    font-weight: 900;
}

.pix-access-note {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 22px 0 0;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, .1);
    color: #aeb6c6;
    font-size: 12px;
    line-height: 1.5;
}

.pix-access-note strong {
    color: #fff;
}

.pix-checkout-panel {
    grid-area: checkout;
    padding: 44px;
    background: #fff;
}

.pix-checkout-heading {
    margin-bottom: 28px;
}

.pix-checkout-heading h2 {
    margin: 0 0 9px;
    color: #1b212f;
    font-size: clamp(1.75rem, 2.4vw, 2.25rem);
    line-height: 1.16;
    letter-spacing: -.035em;
}

.pix-checkout-heading p {
    margin: 0;
    color: #697282;
    font-size: .92rem;
    line-height: 1.6;
}

.pix-checkout-panel .alert {
    margin-bottom: 24px;
    border: 0;
    border-radius: 12px;
    font-size: .9rem;
    line-height: 1.5;
}

.pix-customer-form fieldset {
    min-width: 0;
    padding: 0;
    margin: 0;
    border: 0;
}

.pix-customer-form .form-group {
    margin-bottom: 18px;
}

.pix-customer-form label,
.pix-instructions label {
    display: inline-block;
    margin-bottom: 7px;
    color: #303746;
    font-size: .84rem;
    font-weight: 800;
}

.pix-customer-form .form-control {
    width: 100%;
    min-height: 54px;
    padding: 12px 15px;
    border: 1px solid #d7dce4;
    border-radius: 11px;
    color: #252c37;
    background: #fbfcfd;
    box-shadow: none;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.pix-customer-form .form-control::placeholder {
    color: #6b7280;
    opacity: 1;
}

.pix-customer-form .form-control:hover {
    border-color: #b9c0cb;
    background: #fff;
}

.pix-customer-form .form-control:focus,
.pix-instructions .form-control:focus {
    border-color: var(--atube-orange);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(255, 112, 16, .13);
}

.pix-customer-form .help-block {
    margin-top: 7px;
    color: #6b7280;
    font-size: .75rem;
    line-height: 1.45;
}

.pix-submit-button,
.pix-download-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 58px;
    padding: 13px 22px;
    margin-top: 4px;
    border: 2px solid var(--atube-orange);
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, var(--atube-orange) 0%, var(--atube-orange-dark) 100%);
    box-shadow: 0 13px 28px rgba(231, 82, 27, .22);
    font-weight: 800;
    line-height: 1.3;
    text-align: center;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.pix-submit-button:hover,
.pix-submit-button:focus,
.pix-download-button:hover,
.pix-download-button:focus {
    border-color: var(--atube-orange-dark);
    color: #fff;
    background: var(--atube-orange-dark);
    box-shadow: 0 15px 30px rgba(231, 82, 27, .28);
    transform: translateY(-1px);
}

.pix-submit-button[disabled] {
    cursor: not-allowed;
    box-shadow: none;
    opacity: .55;
    transform: none;
}

.pix-legal-note {
    margin: 15px 0 0;
    color: #6b7280;
    font-size: 11px;
    line-height: 1.55;
    text-align: center;
}

.pix-legal-note a {
    font-weight: 700;
}

.pix-security-note {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    align-items: start;
    gap: 11px;
    margin-top: 24px;
    padding: 14px 15px;
    border: 1px solid #e7eaf0;
    border-radius: 12px;
    color: #697281;
    background: #f8f9fb;
    font-size: 12px;
    line-height: 1.55;
}

.pix-security-note strong {
    color: #394150;
}

.pix-lock-icon {
    position: relative;
    width: 17px;
    height: 14px;
    margin: 7px 0 0 2px;
    border: 2px solid #2f9d62;
    border-radius: 3px;
}

.pix-lock-icon::before {
    position: absolute;
    top: -9px;
    left: 2px;
    width: 9px;
    height: 9px;
    border: 2px solid #2f9d62;
    border-bottom: 0;
    border-radius: 8px 8px 0 0;
    content: "";
}

.pix-status-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 24px;
    padding: 14px 16px;
    border: 1px solid #e7eaf0;
    border-radius: 12px;
    background: #f8f9fb;
}

.pix-status-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-right: 8px;
    border-radius: 50%;
    background: #e0a319;
    box-shadow: 0 0 0 5px rgba(224, 163, 25, .12);
}

.pix-status-dot.is-paid {
    background: #2f9d62;
    box-shadow: 0 0 0 5px rgba(47, 157, 98, .12);
}

.pix-status-dot.is-error {
    background: #c94444;
    box-shadow: 0 0 0 5px rgba(201, 68, 68, .12);
}

.pix-countdown {
    color: #6d7680;
    font-size: 12px;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.pix-qr-layout {
    display: grid;
    grid-template-columns: minmax(160px, 210px) minmax(0, 1fr);
    align-items: center;
    gap: 24px;
}

.pix-qr-image {
    padding: 10px;
    border: 1px solid #e4e8ee;
    border-radius: 16px;
    background: #fff;
}

.pix-qr-image img {
    display: block;
    width: 100%;
    height: auto;
}

.pix-instructions {
    min-width: 0;
}

.pix-instructions h3,
.pix-paid-content h3 {
    margin: 0 0 14px;
    color: #252c37;
    font-size: 1.2rem;
    line-height: 1.35;
}

.pix-instructions ol {
    padding-left: 19px;
    margin: 0 0 18px;
    color: #626b79;
    font-size: .85rem;
    line-height: 1.55;
}

.pix-instructions textarea.form-control {
    min-height: 94px;
    border-color: #d7dce4;
    border-radius: 10px;
    background: #fbfcfd;
    box-shadow: none;
    font-family: Consolas, monospace;
    font-size: 11px;
    overflow-wrap: anywhere;
    resize: vertical;
}

.pix-copy-button {
    width: 100%;
    margin-top: 10px;
    padding: 10px 16px;
    border: 0;
    border-radius: 9px;
    color: #fff;
    background: #303842;
    font-weight: 700;
}

.pix-copy-button:hover,
.pix-copy-button:focus {
    color: #fff;
    background: #1f252b;
}

.pix-paid-content {
    padding: 24px 0 6px;
    text-align: center;
}

.pix-success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin-bottom: 17px;
    border-radius: 50%;
    color: #fff;
    background: #2f9d62;
    font-size: 31px;
    font-weight: 900;
}

.pix-paid-content p {
    margin-bottom: 20px;
    color: #66717c;
}

.pix-payment-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    padding: 0;
    margin: 18px 0 0;
    overflow: hidden;
    border: 1px solid #e4e7ed;
    border-radius: 16px;
    background: #e4e7ed;
    box-shadow: 0 10px 28px rgba(27, 33, 47, .06);
    list-style: none;
}

.pix-payment-steps li {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 16px 18px;
    background: rgba(255, 255, 255, .94);
}

.pix-payment-steps li > span {
    display: inline-flex;
    flex: 0 0 30px;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    color: var(--atube-orange-dark);
    background: #fff0e7;
    font-size: 12px;
    font-weight: 900;
}

.pix-payment-steps div {
    min-width: 0;
}

.pix-payment-steps strong,
.pix-payment-steps small {
    display: block;
}

.pix-payment-steps strong {
    color: #303746;
    font-size: .8rem;
    line-height: 1.35;
}

.pix-payment-steps small {
    margin-top: 2px;
    color: #6b7280;
    font-size: .68rem;
    line-height: 1.35;
}

.is-hidden {
    display: none !important;
}

.pix-simple-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    margin: 0;
    background: #f4f6f8;
}

.pix-message-card {
    width: 100%;
    max-width: 560px;
    padding: 36px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 12px 35px rgba(20, 32, 45, .12);
    text-align: center;
}

.pix-message-card h1 {
    margin: 0 0 14px;
    font-size: 28px;
}

/* aproxima a ação principal da primeira dobra em notebooks e janelas horizontais. */
@media (min-width: 900px) and (max-height: 800px) {
    .pix-checkout-area {
        padding: 28px 0 40px;
    }
}

@media (max-width: 899px) {
    .pix-checkout-card {
        grid-template-areas:
            "summary"
            "checkout"
            "benefits";
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto;
    }

    .pix-product-summary {
        padding: 34px 36px 30px;
    }

    .pix-product-summary h1 strong {
        display: inline;
    }

    .pix-product-summary > p {
        max-width: 620px;
    }

    .pix-price {
        max-width: 420px;
    }

    .pix-benefits {
        padding: 30px 36px 36px;
    }

    .pix-benefits ul {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pix-checkout-panel {
        padding: 36px;
    }
}

@media (max-width: 575px) {
    .pix-checkout-area {
        min-height: 0;
        padding: 24px 0 34px;
    }

    .pix-checkout-area > .container {
        padding-right: 16px;
        padding-left: 16px;
    }

    /* neutraliza as margens negativas da grade apenas no checkout móvel. */
    .pix-checkout-area .row {
        margin-right: 0;
        margin-left: 0;
    }

    .pix-checkout-area .row > [class*="col-"] {
        padding-right: 0;
        padding-left: 0;
    }

    .pix-checkout-card {
        border-radius: 18px;
        box-shadow: 0 18px 48px rgba(27, 33, 47, .13);
    }

    .pix-checkout-panel,
    .pix-benefits {
        padding: 24px 22px;
    }

    /* resumo compacto mantém produto e preço visíveis sem afastar o formulário da primeira dobra. */
    .pix-product-summary {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        column-gap: 12px;
        padding: 21px 20px;
    }

    .pix-product-summary .pix-eyebrow {
        grid-column: 1 / -1;
        margin-bottom: 5px;
    }

    .pix-product-summary h1 {
        align-self: center;
        grid-column: 1;
        grid-row: 2;
        margin: 0;
        font-size: 1.72rem;
        line-height: 1.08;
    }

    .pix-product-summary > p {
        grid-column: 1 / -1;
        grid-row: 3;
        margin-top: 12px;
        font-size: .8rem;
        line-height: 1.48;
    }

    .pix-price {
        align-items: flex-end;
        align-self: center;
        flex-direction: column;
        gap: 3px;
        grid-column: 2;
        grid-row: 2;
        min-width: 94px;
        padding: 10px 11px;
        margin: 0;
    }

    .pix-price strong {
        font-size: 1.35rem;
    }

    .pix-price small {
        font-size: 9px;
    }

    .pix-product-tags {
        /* detalhes repetidos ficam na seção de vantagens para manter a ação visível no celular. */
        display: none;
        grid-column: 1 / -1;
        grid-row: 4;
        margin-top: 11px;
    }

    .pix-checkout-heading {
        margin-bottom: 18px;
    }

    .pix-checkout-heading h2 {
        font-size: 1.55rem;
    }

    .pix-checkout-heading p {
        font-size: .84rem;
        line-height: 1.5;
    }

    .pix-customer-form .form-group {
        margin-bottom: 14px;
    }

    .pix-customer-form .form-control {
        min-height: 48px;
    }

    .pix-benefits ul {
        grid-template-columns: minmax(0, 1fr);
    }

    .pix-qr-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .pix-qr-image {
        width: min(100%, 250px);
        margin: 0 auto;
    }

    .pix-status-line {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .pix-payment-steps {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        margin-top: 12px;
        border-radius: 13px;
    }

    .pix-payment-steps li {
        align-items: flex-start;
        flex-direction: column;
        gap: 7px;
        padding: 12px 9px;
    }

    .pix-payment-steps li > span {
        flex-basis: 26px;
        width: 26px;
        height: 26px;
    }

    .pix-payment-steps strong {
        font-size: .68rem;
    }

    .pix-payment-steps small {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pix-submit-button,
    .pix-download-button,
    .pix-customer-form .form-control {
        transition: none;
    }
}
