/*
 * ==========================================================================
 * ADAPTAÇÃO AO DESIGN DO SITE LUSOPAY (apps/web/src/app/globals.css)
 * ==========================================================================
 * Esta folha era azul + cinzento-escuro (marca antiga). O site principal da
 * Lusopay usa "Institutional Tech": dourado (#c9a227) como cor principal
 * (botões, links, chamadas para ação) sobre um fundo quente off-white, com
 * navy escuro só no cabeçalho/rodapé — nunca azul.
 *
 * Os tokens abaixo (--lp-*) espelham 1:1 as variáveis do tema CLARO do site
 * principal (globals.css :root, não .dark — esta página de pagamento é
 * sempre clara, como já era). Todas as cores "de marca" antigas (azuis,
 * barras cinzento-escuras #1f2937/#111827/#333) foram substituídas por
 * estes tokens em todo o ficheiro — o resto (medidas, layout, animações,
 * acessibilidade) manteve-se intacto.
 *
 * Tipo de letra: o corpo passa a Inter primeiro (o mesmo do site principal),
 * caindo no Montserrat já auto-hospedado aqui (nunca falha, mesmo sem os
 * ficheiros do Inter); títulos continuam em Montserrat, tal como no site
 * principal (--font-display). Para um match perfeito, acrescentar os
 * ficheiros do Inter e um @font-face próprio, tal como já existe abaixo
 * para o Montserrat.
 *
 * Não corrigido aqui (fora do alcance de CSS): o logótipo "lusopay" a azul
 * é uma imagem (<img>), não uma cor CSS — substituir o ficheiro de imagem
 * pelo logótipo dourado/navy atual do site principal.
 * ==========================================================================
 */
:root,
html[data-theme="dark"] {
    /* DARK é o tema por defeito: preto + #141820 + dourado */
    --lp-bg: #000000;
    --lp-surface: #141820;
    --lp-surface-2: #0d1016;
    --lp-foreground: #ffffff;
    --lp-muted-foreground: #c7cbd1;
    --lp-border: rgba(201, 153, 63, .34);
    --lp-primary: #c9a227;
    --lp-primary-hover: #dfb45d;
    --lp-primary-active: #efd087;
    --lp-primary-foreground: #0b0b0b;
    --lp-gold-tint: #211b0f;
    --lp-gold-tint-strong: #5f4921;
    --lp-navy: #0e1f30;
    --lp-navy-dark: #070f1a;
    --lp-destructive: #ff7777;
    --lp-success: #6cc97a;
    --lp-radius-card: 1rem;
    --lp-radius-control: 10px;

    --lp-container-bg: #141820;
    --lp-input-bg: #090b0f;
    --lp-control-bg: #141820;
    --lp-header-bg: #141820;
    --lp-payinfo-head-bg: #c9a227;
    --lp-payinfo-head-fg: #0b0b0b;
}

html[data-theme="light"] {
    --lp-bg: #fbf9f8;
    --lp-surface: #ffffff;
    --lp-surface-2: #f6f3f2;
    --lp-foreground: #1b1c1c;
    --lp-muted-foreground: #414750;
    --lp-border: #e2e8f0;
    --lp-primary: #c9a227;
    --lp-primary-hover: #b7862e;
    --lp-primary-active: #8a641f;
    --lp-primary-foreground: #1a1305;
    --lp-gold-tint: #f6f0e2;
    --lp-gold-tint-strong: #e6cf99;
    --lp-navy: #0e1f30;
    --lp-navy-dark: #070f1a;
    --lp-destructive: #ba1a1a;
    --lp-success: #2f8f3e;
    --lp-radius-card: 1rem;
    --lp-radius-control: 10px;

    --lp-container-bg: rgba(255, 255, 255, .62);
    --lp-input-bg: rgba(255, 255, 255, .85);
    --lp-control-bg: #ffffff;
    --lp-header-bg: #0e1f30;
    --lp-payinfo-head-bg: #0e1f30;
    --lp-payinfo-head-fg: #ffffff;
}

html[data-theme="dark"] {
    color-scheme: dark;
}

html[data-theme="light"] {
    color-scheme: light;
}

/* Títulos com Montserrat, tal como no site principal (--font-display). */
h1,
h2,
h3,
.pf-section-title,
.pf-payinfo__title,
.pf-dialog__title,
.pf-popover__title {
    font-family: Montserrat, "Inter", sans-serif;
}

:root {


    --pf-payinfo-bg: var(--lp-navy);
    /* WCAG compliant */
}

#toggleSecondary,
.secure-link-btn {
    -webkit-tap-highlight-color: transparent
}

.pf-hidden {
    display: none !important;
}

[hidden] {
    display: none !important;
}

#customAlert #alertMessage,
#customAlert.alert {
    white-space: normal !important;
    word-break: break-word !important
}

.mb-receipt__table,
.receipt__table {
    border-collapse: collapse;
    table-layout: fixed
}

.pf-dialog__panel,
body,
html {
    font-family: "Inter", Montserrat, sans-serif
}

.pf-btn,
.pf-open-cancel {
    appearance: none
}

.pf-dialog__close {
    place-items: center;
    place-items: center
}

#alertBlocker,
#moreMethodsModal,
#moreMethodsModal .pf-modal__overlay,
.pf-a11y-backdrop,
.pf-blocking-overlay,
.pf-dialog,
.pf-dialog__overlay,
.pf-processing-overlay {
    inset: 0;
    inset: 0;
    inset: 0
}

html.pf-a11y-reduce-motion *,
html.pf-a11y-reduce-motion ::after,
html.pf-a11y-reduce-motion ::before {
    scroll-behavior: auto !important;
    scroll-behavior: auto !important;
    scroll-behavior: auto !important;
    scroll-behavior: auto !important
}

@font-face {
    font-family: Montserrat;
    src: url('/paybylink_test/v3/fonts/Montserrat-VariableFont_wght.woff2') format('woff2-variations'),
         url('/paybylink_test/v3/fonts/Montserrat-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap
}

@font-face {
    font-family: Montserrat;
    src: url('/paybylink_test/v3/fonts/Montserrat-Italic-VariableFont_wght.woff2') format('woff2-variations'),
         url('/paybylink_test/v3/fonts/Montserrat-Italic-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: italic;
    font-display: swap
}

a:hover {
    color: var(--lp-primary-active)
}

body,
html {
    margin: 0;
    padding: 0;
    color: var(--lp-foreground);
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
    background: var(--lp-bg);
    overflow-x: hidden
}

body.pf-final-page .centered h1,
body.pf-final-page .centered h2,
body.pf-final-page .centered h3,
body.pf-final-page .centered p,
h1,
h2,
h3 {
    margin: 10px 0
}

header nav ul {
    list-style-type: none;
    padding: 10px;
    margin: 0;
    display: flex;
    justify-content: flex-end;
    background: var(--lp-navy)
}

.content,
.form-group {
    flex-direction: column
}

header nav ul li {
    margin: 0 10px
}

header nav ul li a {
    color: #fff;
    text-decoration: none;
    padding: 10px
}

.content {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 20pxs
}

/* 1) Por defeito: SEM blur (mais rápido para LCP) */
.container {
    padding: 20px;
    width: 100%;
    max-width: 800px;
    box-sizing: border-box;
    padding-left: max(20px, env(safe-area-inset-left));
    padding-right: max(20px, env(safe-area-inset-right));
    background: rgba(255, 255, 255, .62);
    border: 1px solid rgba(255, 255, 255, .45);
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .1), inset 0 1px 0 rgba(255, 255, 255, .6);
    backdrop-filter: blur(16px) saturate(115%);
    -webkit-backdrop-filter: blur(16px) saturate(115%);
}



.pf-payinfo__left,
.pf-payinfo__sub,
.pf-payinfo__title {
    text-align: left !important
}

header nav .lang-switch {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: var(--lp-navy);
    border: 0;
    box-shadow: none;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important
}

header nav .lang-switch .lang-btn {
    width: auto !important;
    padding: 7px 10px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .2px;
    background: 0 0;
    color: rgba(255, 255, 255, .85);
    border: 0;
    border-radius: 8px;
    box-shadow: none !important;
    outline: 0 !important;
    cursor: pointer
}

header nav .lang-switch .lang-btn:hover {
    background: rgba(255, 255, 255, .08);
    color: #fff
}

header nav .lang-switch .lang-btn[aria-pressed=true] {
    background: rgba(255, 255, 255, .14);
    color: #fff
}

header nav .lang-switch .lang-btn:focus-visible {
    outline: rgba(255, 255, 255, .35) solid 2px;
    outline-offset: 2px
}

.pf-a11y-btn-secondary,
body {
    background: var(--lp-bg)
}


@supports (-webkit-touch-callout:none) {
    .container {
        -webkit-backdrop-filter: blur(12px)
    }
}

.pf-id-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px
}

@media (max-width:768px) {

    .form-group input,
    select,
    textarea {
        font-size: 16px
    }

    .pf-id-grid {
        grid-template-columns: 1fr
    }
}

.pf-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 1.5rem 0 0.75rem;
    line-height: 1.3;
    text-align: center
}

#pfPayInfo td .input-amount,
.logo {
    margin-left: auto
}


.logo_container {
    text-align: center;
    margin-bottom: 20px
}

.logo {
    max-width: 100%;
    height: auto;
    display: block;
    margin-right: auto
}

.content-inner {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-left: 5px
}

.left-container,
.right-container {
    width: 48%;
    margin-left: 5px
}

h1,
h2,
h3 {
    text-align: center;
    font-weight: 700
}

.alert {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10000;
    width: min(520px, calc(100vw - 24px));
    background: rgba(248, 120, 130, .68);
    backdrop-filter: blur(14px) saturate(120%);
    -webkit-backdrop-filter: blur(14px) saturate(120%);
    color: #721c24;
    border: 1px solid rgba(255, 80, 90, .55);
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 16px 46px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .45), inset 0 -1px 0 rgba(255, 120, 120, .25)
}

@keyframes payPulse {
    0% {
        transform: scale(1);
        filter: brightness(1);
        box-shadow: 0 14px 34px rgba(0, 0, 0, .22), 0 0 0 0 rgba(201, 153, 63, .55)
    }

    50% {
        transform: scale(1.035);
        filter: brightness(1.12);
        box-shadow: 0 22px 46px rgba(0, 0, 0, .32), 0 0 0 12px rgba(201, 153, 63, .35)
    }

    100% {
        transform: scale(1);
        filter: brightness(1);
        box-shadow: 0 14px 34px rgba(0, 0, 0, .22), 0 0 0 0 rgba(201, 153, 63, 0)
    }
}

#payButton.is-ready:not(:disabled):not(:hover):not(:active) {
    animation: 1.4s cubic-bezier(.4, 0, .2, 1) infinite payPulse
}

.closebtn {
    background: 0 0;
    border: 0
}

.closebtn:hover {
    color: #000
}

.form-group {
    margin-bottom: 20px;
    display: flex
}

.form-group label {
    margin-bottom: 5px;
    font-weight: 700
}

.form-group input {
    width: 100%;
    padding: 12px 14px;
    font-size: 14px;
    color: var(--lp-foreground);
    background: rgba(255, 255, 255, .85);
    border: 1px solid rgba(0, 0, 0, .18);
    border-radius: 16px;
    box-sizing: border-box;
    transition: border-color .15s, box-shadow .15s, background-color .15s, transform .12s
}

.form-group input:focus {
    outline: 0;
    background: rgba(255, 255, 255, .95);
    border-color: var(--lp-primary);
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, .12), 0 0 0 3px rgba(201, 153, 63, .18), inset 0 1px 0 rgba(255, 255, 255, .6)
}

.form-group input.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, .18)
}

.form-group input.is-valid {
    border-color: #28a745;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, .18)
}

.form-group input:focus-visible {
    outline: 0
}

@media (prefers-reduced-motion:reduce) {
    #payButton.is-ready:not(:disabled) {
        animation: none
    }

    .form-group input {
        transform: none;
        transition: border-color .15s, box-shadow .15s
    }
}

.amount-group input {
    border: 1px solid #ccc;
    box-sizing: border-box;
    color: var(--lp-foreground);
    height: 30px
}

.form-group .required::after {
    content: '*';
    color: red;
    margin-left: 5px
}

.amount-container {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px
}

.amount-container .value-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px
}

.amount-container label,
html.pf-a11y-font-bold body {
    font-weight: 700
}

table td,
table th {
    text-align: left;
    padding: 5px;
    font-weight: 400
}

.footer {
    width: 100%;
    background-color: var(--lp-navy);
    color: #fff;
    padding: 12px 0
}

.footer_container {
    height: auto !important;
    display: block;
    max-width: 900px;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word
}

.footer_container a {
    color: #fff;
    text-decoration: underline
}

.payment-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 10px
}

.payment-methods .method[data-method] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 130px;
    padding: 18px 12px;
    background: rgba(255, 255, 255, .75);
    border: 1px solid rgba(0, 0, 0, .1);
    border-radius: 16px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .06);
    transition: transform .14s, box-shadow .14s, border-color .14s, background .14s, filter .14s
}

.payment-methods .method[data-method]:hover {
    transform: translateY(-3px);
    border-color: rgba(201, 153, 63, .45);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .18), 0 4px 10px rgba(0, 0, 0, .1);
    filter: brightness(1.02)
}

.payment-methods .method[data-method].is-selected {
    transform: translateY(-4px);
    background: linear-gradient(135deg, rgba(255, 255, 255, .85), rgba(240, 246, 255, .85));
    border-color: var(--lp-primary);
    box-shadow: 0 14px 34px rgba(0, 0, 0, .22), 0 6px 14px rgba(0, 0, 0, .12), 0 12px 28px rgba(201, 153, 63, .38), inset 0 1px 0 rgba(255, 255, 255, .45);
    filter: brightness(1.03)
}

.payment-methods .method[data-method]:active {
    transform: translateY(-2px)
}

.payment-methods .method[data-method]:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, .7), 0 0 0 6px rgba(201, 153, 63, .45), 0 14px 34px rgba(0, 0, 0, .22)
}

.payment-methods .method[data-method].is-disabled {
    opacity: .75;
    filter: grayscale(.85);
    background: rgba(255, 255, 255, .92);
    border-color: rgba(0, 0, 0, .1);
    transform: none;
    box-shadow: none
}

.payment-methods .method[data-method] img {
    max-width: 100px;
    height: auto;
    display: block;
    margin: 0 auto 8px
}

.method input[type=radio],
.payment-methods .method input[type=radio],
.pf-a11y-switch input {
    position: absolute;
    opacity: 0;
    pointer-events: none
}

.payment-methods .method.enabled {
    cursor: pointer;
    opacity: 1;
    filter: none;
    pointer-events: auto
}

.payment-methods .method.enabled:hover {
    border-color: var(--lp-gold-tint-strong);
    box-shadow: 0 2px 10px rgba(0, 0, 0, .08);
    transform: translateY(-1px);
    transform: scale(1.05)
}

.payment-methods .method.selected {
    border-color: var(--lp-primary);
    box-shadow: 0 0 0 2px rgba(201, 153, 63, .15);
    transform: scale(1.02)
}

#mbwayInputExtra {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 350px;
    margin: 0 auto
}

#mbwayInputExtra label {
    font-weight: 700;
    margin-bottom: 5px;
    text-align: center
}

.phone-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    gap: 10px;
    margin-top: 10px
}

#numeroTelemovel {
    width: 100% !important;
    max-width: none
}

label[for=numeroTelemovel] {
    display: block;
    margin-top: 12px;
    margin-bottom: 6px;
    font-weight: 600
}

.extra-field,
.hidden,
.input-group-addon,
input[type=radio] {
    display: none
}

.payment-method.mbway {
    padding: 18px
}

.payment-method.mbway .method-title,
.payment-method.mbway h3 {
    margin-bottom: 12px
}

#customAlert {
    margin-bottom: 16px;
    position: fixed;
    z-index: 30000 !important
}

table,
td,
th {
    padding: 0;
    margin: 0;
    border: none
}

.input-telefone,
.selec_mobile select {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #fff;
    font-size: 14px;
    width: 100%
}

.button-container {
    margin-top: 20px;
    width: 100%
}

#paymentForm button,
#paymentForm input[type=submit] {
    background-color: var(--lp-primary);
    border: none;
    /* Texto escuro sobre dourado — mesmo par verificado WCAG do site
       principal (--primary-foreground em globals.css), nunca branco. */
    color: var(--lp-primary-foreground);
    padding: 10px 20px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color .3s, color .3s;
    width: 100%
}

#payButton.is-disabled,
#payButton:disabled {
    background-color: #9a9a9a !important;
    cursor: not-allowed !important;
    opacity: .65
}

#payButton.is-disabled:active,
#payButton.is-disabled:focus,
#payButton.is-disabled:hover {
    background-color: #9a9a9a !important;
    color: #fff;
    box-shadow: none !important;
    outline: 0 !important
}

.button-container button {
    background-color: var(--lp-primary);
    color: var(--lp-primary-foreground);
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    transition: background-color .3s
}

.button-container button:hover {
    background-color: #0056b3
}

#customAlert.pf-alert-success,
.progress-bar div.active,
.progress-bar div.active::after,
.progress-bar div::after {
    background-color: #4caf50
}

.extra-field {
    margin-top: 15px
}

a {
    color: var(--lp-primary-hover)
}

.step.completed {
    background-color: green
}

.step-text.completed {
    color: green
}

.progress-text {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 14px;
    color: var(--lp-foreground)
}

.progress-text .step-text {
    flex: 1;
    text-align: center
}

.progress-bar {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px
}

.progress-bar div {
    flex: 1;
    height: 5px;
    background-color: #ccc;
    margin: 0 5px;
    position: relative
}

.progress-bar div::after {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #fff
}

#initialDialog {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .5);
    z-index: 999
}

#payButton,
body.pf-final-page #tentarNovamenteBtn {
    background: linear-gradient(135deg, var(--blue-main), var(--blue-dark));
    letter-spacing: .2px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, .22), 0 6px 14px rgba(0, 0, 0, .12), 0 0 0 1px rgba(201, 153, 63, .25), 0 10px 28px rgba(201, 153, 63, .35), inset 0 1px 0 rgba(255, 255, 255, .25);
    transition: transform .16s, box-shadow .16s, filter .16s
}

#initialDialog .dialog-content {
    background: #fff;
    width: 80%;
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, .2)
}

.method.disabled {
    opacity: .45;
    filter: grayscale(1)
}

.active,
nav ul li a.active {
    font-weight: 700;
    color: green
}

.loading-circle {
    display: none;
    text-align: center;
    padding: 20px;
    font-size: 18px;
    color: #666;
    border: 2px dashed #ccc;
    background: #f9f9f9
}

#loadingCircle {
    display: none;
    text-align: center;
    margin: 20px 0
}

.input-amount[readonly] {
    background-color: #f0f0f0;
    cursor: not-allowed
}

#pfPayInfo .input-amount {
    box-sizing: border-box;
    width: 180px;
    max-width: 100%;
    height: 38px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid #d0d6e0;
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    display: inline-block;
    vertical-align: middle
}

.identificacaoForm {
    margin-left: 5px
}

.apple-pay-container,
.copy-button {
    display: inline-flex;
    align-items: center
}

.apple-pay-mark {
    height: 40px;
    width: auto;
    margin: 20px
}

.metodo-pagamento-img {
    margin-bottom: 10px
}

#alerta_pagamento,
#payButton,
.pf-methods-placeholder,
html.pf-a11y-text-center body {
    text-align: center
}

.info-table {
    width: 100%;
    border-collapse: collapse
}

td,
th {
    padding: 8px;
    text-align: left
}

@media only screen and (max-width:768px) {

    .container_info table,
    .container_info table tr {
        display: block;
        width: 100%;
        margin: 0;
        padding: 0
    }

    .identificacaoForm {
        margin-left: 5px
    }

    .container_info table td,
    .container_info table th {
        display: block;
        width: 100%;
        text-align: left;
        margin: 0;
        padding: 2px 0
    }

    .container_info table th {
        font-weight: 700 !important;
        margin-bottom: 2px;
        margin-left: 5px
    }

    .container_info table td {
        margin-top: 2px;
        margin-bottom: 4px;
        margin-left: 5px
    }

    .info-table {
        display: block
    }

    .info-table tr {
        display: block;
        margin-bottom: 10px
    }

    .info-table td,
    .info-table th {
        display: block;
        width: 100%;
        text-align: left
    }

    .info-table th {
        background-color: #f4f4f4;
        font-weight: 400
    }

    .info-table td {
        padding: 5px 0
    }

    .info-table td:before {
        content: attr(data-label);
        font-weight: 700;
        display: block;
        margin-bottom: 5px
    }
}

#alerta_pagamento strong {
    display: inline-block;
    margin-right: .25rem
}

.dev_info {
    background-color: rgba(0, 0, 0, .5);
    padding: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, .1);
    width: 15%;
    color: #fff;
    max-width: 800px;
    flex: 1;
    position: fixed;
    top: 50px;
    left: 10px;
    z-index: 1000
}

input.invalid {
    border: 1px solid red
}

.error-message {
    color: red;
    font-size: .9em;
    margin-top: 5px
}

.phone-container_creditCard {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 10px;
    margin-top: 10px
}

.btn-link {
    border: none;
    padding: 0;
    text-decoration: underline;
    color: var(--lp-primary);
    cursor: pointer;
    background: 0 0 !important;
    font-size: 1em
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, .5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999
}

.alerta-erro,
.alerta-sucesso {
    padding: 20px 30px;
    border: 1px solid;
    border-radius: 8px;
    font-size: 18px;
    text-align: center;
    width: 80%;
    max-width: 500px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, .2);
    z-index: 10000;
    position: relative
}

.alerta-erro {
    background-color: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb
}

.alerta-sucesso {
    background-color: #d4edda;
    color: #155724;
    border-color: #c3e6cb
}

.closebtn {
    position: absolute;
    top: 10px;
    right: 15px;
    color: inherit;
    font-size: 24px;
    font-weight: 700;
    cursor: pointer
}

.closebtn:hover,
.pf-btn:disabled {
    opacity: .7
}

.main-content {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 40px;
    margin-top: 16px
}

.secure-link-wrapper {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center
}

.secure-link-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    background: 0 0;
    border: none;
    cursor: pointer;
    padding: 0;
    text-decoration: none
}

.secure-link-btn:active,
.secure-link-btn:focus {
    outline: 0;
    background-color: transparent !important;
    box-shadow: none
}

.secure-link-btn img {
    width: 32px;
    height: auto
}

.secure-link-btn span {
    margin-top: 4px;
    font-size: 12px;
    color: var(--lp-primary-hover)
}

.secure-link-btn:focus span,
.secure-link-btn:hover span {
    user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    text-decoration: underline
}

@media (max-width:400px) {
    .container {
        --container-max-w: 100vw
    }

    .secure-link-wrapper {
        left: -24px
    }
}

#methodPlusTile.pf-hidden,
#methodsSecondary #methodPlusTile.pf-hidden,
#moreMethodsModal #methodPlusTile.pf-hidden,
#moreMethodsModal.pf-hidden,
.pf-dialog.pf-hidden,
.pf-hidden,
.pf-processing-overlay.pf-hidden,
body.billing-disabled #billingInfo,
body.billing-disabled #billingInfo [data-i18n=billing_security_notice],
body.billing-disabled #billingInfo h2[data-i18n=billing_information] {
    display: none !important
}

#payButton {
    width: 100%;
    min-height: 54px;
    padding: 16px 18px;
    font-size: 22px;
    font-weight: 900;
    color: var(--lp-primary-foreground) !important;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 16px;
    cursor: pointer;
    margin-top: var(--sp-3) !important
}

:root {
    --blue-main: var(--lp-primary);
    --blue-dark: var(--lp-primary-hover);
    --sp-1: 8px;
    --sp-2: 12px;
    --sp-3: 16px;
    --sp-4: 24px;
    --sp-5: 32px;
    --sp-6: 40px;
    --pf-a11y-accent: var(--lp-primary);
    --pf-a11y-focus: rgba(201, 153, 63, 0.45)
}

#payButton:hover:not(:disabled),
body.pf-final-page #tentarNovamenteBtn:hover:not(:disabled) {
    transform: translateY(-2px);
    filter: brightness(1.06);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .26), 0 8px 18px rgba(0, 0, 0, .14), 0 14px 34px rgba(201, 153, 63, .45), inset 0 1px 0 rgba(255, 255, 255, .32)
}

#payButton:active:not(:disabled),
body.pf-final-page #tentarNovamenteBtn:active:not(:disabled) {
    transform: translateY(-1px);
    filter: brightness(1.02);
    box-shadow: 0 10px 22px rgba(0, 0, 0, .22), inset 0 1px 0 rgba(255, 255, 255, .25)
}

#payButton:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, .4), 0 0 0 6px rgba(201, 153, 63, .4), 0 14px 34px rgba(0, 0, 0, .22), inset 0 1px 0 rgba(255, 255, 255, .25)
}

#payButton:disabled {
    background: linear-gradient(135deg, #9aa3ad, #7f8892);
    border-color: rgba(255, 255, 255, .15);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2);
    filter: grayscale(.3)
}

.pf-method-notice {
    margin: 12px 0;
    padding: 10px 12px;
    border-radius: 10px;
    background: #fff4e5;
    border: 1px solid #ffd7a8;
    color: #7a3d00;
    font-size: 14px
}

.method.unavailable-amount {
    opacity: .55
}

.method.disabled,
.method.unavailable-amount {
    pointer-events: auto !important;
    cursor: not-allowed;
    opacity: .75;
    filter: grayscale(.85);
    background: rgba(255, 255, 255, .92);
    border-color: rgba(0, 0, 0, .1);
    pointer-events: auto !important
}

.method.disabled img,
.method.unavailable-amount img {
    opacity: .85
}

#customAlert .closebtn {
    display: block;
    cursor: pointer;
    pointer-events: auto;
    z-index: 2
}

#customAlert #alertMessage {
    font-weight: 700;
    color: #111
}

#customAlert.pf-alert-info {
    background-color: var(--lp-navy)
}

@property --a {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false
}

.pf-payinfo {
    background: #fff !important;
    border: 1px solid rgba(0, 0, 0, .08) !important;
    border-radius: 16px !important;
    overflow: hidden
}

.pf-payinfo.is-open {
    box-shadow: 0 12px 30px rgba(0, 0, 0, .1) !important
}

.pf-methods-placeholder {
    border: 2px dashed #d0d0d0;
    border-radius: 10px;
    padding: 24px 16px;
    color: #6f6f6f;
    font-size: 16px;
    margin: 16px 0 24px
}

.pf-payinfo__head {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 0 !important;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    color: #fff;
    /* Navy, não dourado: esta barra é informativa, não uma chamada para
       ação — o dourado fica reservado ao botão de pagar, para não competir
       com ele por atenção (ver nota no topo do ficheiro). */
    background-color: var(--lp-navy);
    border: 1px solid rgba(255, 255, 255, .22);
    box-shadow: 0 10px 26px rgba(0, 0, 0, .18), inset 0 1px 0 rgba(255, 255, 255, .22);
    transform: translateY(0);
    transition: transform .18s, box-shadow .18s, filter .18s;
}


.pf-payinfo__head:hover {
    filter: brightness(1.03);
    box-shadow: 0 16px 36px rgba(0, 0, 0, .24), inset 0 1px 0 rgba(255, 255, 255, .24)
}

.pf-payinfo__head:active {
    filter: brightness(1.01);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .2), inset 0 1px 0 rgba(255, 255, 255, .22)
}

.pf-payinfo__left {
    text-align: left;
    flex: 1;
    min-width: 0
}

.pf-payinfo__right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto
}

.pf-payinfo__amount {
    font-weight: 900;
    font-size: 22px;
    white-space: nowrap;
    line-height: 1
}

.pf-payinfo__chev {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 28px;
    line-height: 1;
    transition: transform 180ms;
    transform: rotate(0);
    transform-origin: 50% 50%
}

#customAlert.alert,
.tooltip-text {
    left: 50%;
    transform: translateX(-50%)
}

.pf-payinfo__chev svg {
    width: 18px;
    height: 18px;
    display: block
}

.pf-payinfo__head:hover {
    transform: translateY(-1px);
    filter: brightness(1.04)
}

.pf-payinfo__head:active {
    transform: translateY(0);
    filter: brightness(1.02)
}

.pf-payinfo.is-open .pf-payinfo__chev {
    transform: rotate(90deg)
}

.pf-payinfo__head:focus-visible {
    outline: 0
}

.pf-payinfo__title {
    font-weight: 800;
    font-size: 16px;
    line-height: 1.15
}

.pf-payinfo__sub {
    margin-top: 4px;
    font-size: 13px;
    opacity: .95;
    text-align: left
}

.pf-payinfo__body {
    background: 0 0 !important;
    border-top: 1px solid rgba(0, 0, 0, .06);
    padding: 14px 16px 16px !important
}

.pf-payinfo.is-open .pf-payinfo__body {
    max-height: 700px;
    padding: 14px 16px 16px;
    padding: var(--sp-3) var(--sp-3) var(--sp-3) !important
}

.pf-payinfo__body .container_info {
    background: 0 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important
}

.payment-methods {
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 1fr))
}

@media (max-width:768px) {

    .payment_methods_id,
    h1,
    h2,
    h3 {
        text-align: center
    }

    .content-inner {
        display: block
    }

    .left-container,
    .right-container {
        width: 100%
    }

    .left-container input,
    .right-container input {
        width: 90%;
        box-sizing: border-box
    }

    h1,
    h2,
    h3 {
        font-size: 1.4em;
        margin-left: 5px
    }

    .responsive-table {
        border: 0
    }

    .responsive-table tr {
        display: block;
        margin-bottom: 1rem
    }

    .responsive-table td,
    .responsive-table th {
        display: block;
        width: 100%;
        text-align: left;
        padding: 10px 0;
        word-wrap: break-word;
        white-space: normal
    }

    .responsive-table th {
        font-weight: 700
    }

    .payment-methods {
        grid-template-columns: 1fr
    }
}

.payment-methods--3cols {
    grid-template-columns: repeat(3, minmax(180px, 1fr))
}

@media (max-width:900px) {
    .payment-methods--3cols {
        grid-template-columns: repeat(2, minmax(180px, 1fr))
    }
}

@media (max-width:600px) {
    .secure-link-btn img {
        width: 32px
    }

    .secure-link-btn span {
        font-size: 14px;
        margin-top: 6px
    }

    .secure-link-wrapper {
        margin: 15px 0
    }

    .payment-methods--3cols {
        grid-template-columns: 1fr
    }
}

.method.enabled:hover {
    box-shadow: 0 2px 10px rgba(0, 0, 0, .08);
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, .08);
    border-color: rgba(201, 153, 63, .55)
}

.method.selected {
    border-color: rgba(201, 153, 63, .95);
    box-shadow: 0 10px 24px rgba(201, 153, 63, .18);
    transform: translateY(-1px)
}

.method.disabled span,
.method.unavailable-amount span {
    color: rgba(0, 0, 0, .55)
}

.method.disabled input,
.method.unavailable-amount input {
    pointer-events: none
}

#methodPlusTile {
    color: #111 !important;
    opacity: 1 !important;
    filter: none !important
}

#methodsSecondary #methodPlusTile.method-plus:not(.pf-hidden) {
    width: 100% !important;
    min-height: 130px !important;
    padding: 18px 12px !important;
    border-radius: 16px !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .05) !important;
    cursor: pointer;
    font-size: 14px !important;
    font-weight: 600 !important
}

#methodsSecondary #methodPlusTile .label {
    letter-spacing: .2px !important;
    opacity: .85
}

#methodsSecondary #methodPlusTile:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 0, 0, .28) !important;
    box-shadow: 0 10px 22px rgba(0, 0, 0, .08) !important
}

#methodsSecondary #methodPlusTile:active,
.save-button:hover {
    transform: translateY(-1px)
}

#methodsSecondary #methodPlusTile:focus,
#methodsSecondary #methodPlusTile:focus-visible {
    outline: 0 !important;
    box-shadow: 0 0 0 3px rgba(201, 153, 63, .18), 0 10px 22px rgba(0, 0, 0, .08) !important
}

.payment-methods--primary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr))
}

#methodsPrimary.pf-single-method {
    grid-template-columns: 1fr !important
}

@media (max-width:720px) {
    #methodsSecondary.payment-methods--3cols {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }
}

.method.pf-method--compact {
    border-radius: 14px;
    padding: 12px;
    min-height: 110px;
    opacity: .55
}

.method.pf-method--compact .payment-method {
    gap: 8px
}

.method.pf-method--compact img {
    max-width: 90px;
    height: auto;
    margin: 0 auto 6px;
    display: block
}

.method.pf-method--compact span {
    font-size: 13px;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden
}

#methodPlusTile .label,
#methodPlusTile .plus {
    opacity: 1 !important;
    visibility: visible !important
}

#methodPlusTile.method-plus {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    cursor: pointer
}

.pf-popover {
    position: fixed;
    z-index: 9999;
    width: min(520px, calc(100vw - 24px));
    max-height: min(520px, calc(100vh - 24px));
    overflow: auto;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .12);
    border-radius: 14px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .18);
    padding: 12px;
    display: none
}

#customAlert.alert.is-open+#alertBlocker,
#customAlert.alert.is-open~#alertBlocker,
.pf-popover.is-open {
    display: block
}

.pf-popover__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 4px 10px;
    border-bottom: 1px solid rgba(0, 0, 0, .06);
    margin-bottom: 10px
}

.pf-a11y-row-title,
.pf-popover__title,
html.pf-a11y-font-bold .pf-section-title,
html.pf-a11y-font-bold h1,
html.pf-a11y-font-bold h2,
html.pf-a11y-font-bold label {
    font-weight: 800
}

.pf-popover__close {
    border: 0;
    background: 0 0;
    cursor: pointer;
    font-size: 22px;
    line-height: 1
}

.pf-popover .payment-methods--3cols {
    grid-template-columns: repeat(2, minmax(180px, 1fr))
}

.payment-methods--primary {
    display: grid;
    grid-template-columns: repeat(2, minmax(240px, 1fr));
    gap: 16px
}

.pf-collapsible {
    margin-top: 10px
}

.method-plus {
    opacity: .95
}

.method-plus .plus {
    font-size: 44px;
    line-height: 1;
    font-weight: 900
}

.method-plus .label {
    margin-top: 6px;
    font-weight: 800
}

#moreMethodsModal {
    position: fixed;
    z-index: 20000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px
}

#moreMethodsModal .pf-modal__overlay {
    position: absolute;
    background: rgba(0, 0, 0, .22)
}

#moreMethodsModal .pf-modal__panel {
    position: relative;
    z-index: 1;
    margin: 0 !important;
    width: min(820px, calc(100vw - 24px));
    max-height: calc(100vh - 24px);
    overflow: auto;
    border-radius: 18px;
    background: rgba(255, 255, 255, .98);
    backdrop-filter: blur(4px) saturate(105%);
    -webkit-backdrop-filter: blur(4px) saturate(105%);
    border: 1px solid rgba(0, 0, 0, .08);
    box-shadow: 0 24px 64px rgba(0, 0, 0, .25), inset 0 1px 0 rgba(255, 255, 255, .9)
}

#customAlert.alert,
#moreMethodsModal:not(.pf-hidden)~#customAlert,
#moreMethodsModal:not(.pf-hidden)~.alert,
body.pf-modal-open #customAlert,
body.pf-modal-open .alert {
    z-index: 30000 !important
}

#moreMethodsModal .pf-modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    background: 0 0;
    border-bottom: 1px solid rgba(0, 0, 0, .06)
}

#moreMethodsModal .pf-modal__head h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 900;
    color: #111
}

#moreMethodsModal .pf-modal__close {
    min-width: 36px !important;
    width: 36px !important;
    height: 36px !important;

    padding: 0 !important;
    margin: 0 !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 50% !important;

    font-size: 22px !important;
    font-weight: 700 !important;
    color: #111 !important;
    cursor: pointer;
}

#moreMethodsModal .pf-modal__close:hover {
    background: rgba(0, 0, 0, 0.05) !important;
}

#moreMethodsModal .pf-modal__close:focus-visible {
    outline: 2px solid var(--lp-primary);
    outline-offset: 2px;
}

#moreMethodsModal #methodsModal {
    padding: 16px;
    background: 0 0
}

#methodsSecondary .method {
    min-height: 130px;
    padding: 18px 12px;
    margin: 10px;
    border-radius: 16px;
    box-sizing: border-box
}

#methodPlusTile.method-plus {
    min-height: 130px !important;
    padding: 18px 12px !important;
    margin: 10px !important;
    box-sizing: border-box !important
}

#methodPlusTile .plus {
    line-height: 1
}

#methodPlusTile .label {
    margin-top: 6px
}

#toggleSecondary:active {
    background: rgba(0, 0, 0, .03)
}

#toggleSecondary:focus {
    outline: 0
}

#toggleSecondary:focus-visible {
    outline: rgba(201, 153, 63, .25) solid 2px;
    outline-offset: 3px;
    border-radius: 12px
}

#paymentForm #toggleSecondary,
#paymentForm #toggleSecondary.pf-secondary-toggle {
    border: 0 !important;
    -webkit-tap-highlight-color: transparent;
    color: #111 !important;
    width: 100% !important;
    box-shadow: none !important
}

#methodsSecondary.payment-methods--3cols {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch
}

#methodPlusTile.method-plus {
    border: 1px dashed rgba(0, 0, 0, .25) !important;
    background: rgba(255, 255, 255, .75) !important
}

#paymentForm #toggleSecondary {
    background: 0 0 !important;
    padding: 12px 10px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    letter-spacing: .4px !important
}

#paymentForm #toggleSecondary:hover {
    background: rgba(0, 0, 0, .04) !important
}

#paymentForm #toggleSecondary.pf-secondary-toggle:active,
#paymentForm #toggleSecondary:active,
.pf-secondary.is-open #toggleSecondary {
    background: rgba(0, 0, 0, .03) !important
}

#paymentForm #toggleSecondary.pf-secondary-toggle:focus,
#paymentForm #toggleSecondary:focus {
    outline: 0 !important
}

#paymentForm #toggleSecondary:focus-visible {
    outline: rgba(201, 153, 63, .2) solid 2px !important;
    outline-offset: 3px;
    border-radius: 12px
}

@media (max-width:820px) {

    #methodsSecondary.payment-methods--3cols,
    #moreMethodsModal #methodsModal.payment-methods--3cols,
    #moreMethodsModal .payment-methods--3cols {
        grid-template-columns: 1fr !important;
        gap: 12px !important
    }

    #methodsPrimary>.method,
    #methodsSecondary>.method,
    #moreMethodsModal .method,
    .payment-methods .method[data-method] {
        min-width: 0 !important;
        width: 100% !important;
        margin: 0 !important;
        box-sizing: border-box !important;
        box-sizing: border-box !important
    }
}

.method .label,
.method .payment-method,
.method .payment-method *,
.method span,
.pf-method-notice {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word
}

.method {
    overflow: hidden
}

@media (max-width:420px) {

    #customAlert,
    #customAlert #alertMessage {
        white-space: normal !important;
        overflow-wrap: anywhere !important;
        word-break: break-word !important
    }

    #customAlert {
        top: 10px !important;
        left: 10px !important;
        right: 10px !important;
        transform: none !important;
        width: auto !important;
        max-width: none !important;
        padding: 12px !important;
        border-radius: 12px !important;
        overflow: visible !important
    }

    #customAlert #alertMessage {
        display: block !important;
        padding-right: 44px !important;
        line-height: 1.25 !important;
        font-size: 13px !important
    }

    #customAlert .closebtn {
        top: 8px !important;
        right: 10px !important;
        font-size: 20px !important;
        line-height: 1 !important
    }
}

#customAlert.alert {
    position: fixed;
    right: auto;
    top: 50%;
    left: 50%;
    right: auto;
    bottom: auto;
    transform: translate(-50%, -50%);
    width: min(560px, calc(100vw - 24px));
    max-height: calc(100vh - 24px);
    overflow: auto;
    box-sizing: border-box;
    overflow-wrap: anywhere !important
}

#customAlert #alertMessage {
    display: block;
    padding-right: 44px;
    line-height: 1.25;
    overflow-wrap: anywhere !important
}

#customAlert .closebtn {
    position: absolute;
    top: 8px;
    right: 10px;
    line-height: 1
}

.footer_container {
    max-width: min(980px, calc(100vw - 32px));
    margin: 0 auto;
    padding: 0 16px;
    text-align: center
}

@media (min-width:1024px) {
    .footer_container {
        max-width: min(1200px, calc(100vw - 64px));
        padding: 0 24px
    }
}

@media (min-width:1440px) {
    .footer_container {
        max-width: min(1400px, calc(100vw - 96px));
        padding: 0 32px
    }
}

.pf-payinfo__titles {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    flex: 1;
    min-width: 0;
    text-align: left
}

.pf-payinfo__subtitle {
    width: 100%;
    text-align: left;
    margin: 0;
    padding-top: 10px
}

body.pf-page--mbway .pf-mbway-card__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px
}

body.pf-page--mbway .pf-mbway-logo {
    width: min(320px, 90%);
    height: auto;
    display: block;
    margin-top: 6px
}

body.pf-page--mbway .pf-mbway-method {
    width: 110px;
    height: auto;
    display: block;
    margin-top: 2px;
    padding-top: 14px
}

body.pf-page--mbway .content {
    display: flex;
    flex-direction: column
}

body.pf-page--mbway main.pf-main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center
}

body.pf-page--mbway .container.pf-mbway-card {
    margin: 0;
    width: 100%;
    max-width: 420px;
    box-sizing: border-box
}

body.pf-page--mbway .pf-mbway-timer {
    font-weight: 500;
    font-size: clamp(48px, 12vw, 86px);
    line-height: 1;
    margin-top: 2px
}

body.pf-page--mbway .pf-mbway-msg {
    font-size: 14px;
    opacity: .9
}

body.pf-page--mbway .pf-mbway-table td,
body.pf-page--mbway .pf-mbway-table th {
    border: 1px solid rgba(0, 0, 0, .12);
    text-align: left
}

body.pf-page--mbway .pf-mbway-note {
    font-size: 14px;
    opacity: .75;
    margin: 6px 0 2px;
    max-width: 34ch;
    line-height: 1.45
}

@media (max-width:520px) {
    .pf-popover .payment-methods--3cols {
        grid-template-columns: 1fr
    }

    #customAlert.alert {
        left: 10px;
        right: 10px;
        transform: none;
        width: auto
    }

    body.pf-page--mbway .container.pf-mbway-card {
        width: min(100%, 380px);
        max-width: calc(100vw - 24px);
        margin: 12px auto;
        padding: 16px !important;
        border-radius: 16px
    }

    body.pf-page--mbway .pf-mbway-table,
    body.pf-page--mbway .pf-mbway-table tbody {
        display: table;
        width: 100%
    }

    body.pf-page--mbway .pf-mbway-table tbody {
        display: table-row-group
    }

    body.pf-page--mbway .pf-mbway-table tr {
        display: table-row;
        margin: 0;
        border: 0;
        border-radius: 0;
        overflow: visible;
        background: transparent
    }

    body.pf-page--mbway .pf-mbway-table td,
    body.pf-page--mbway .pf-mbway-table th {
        display: table-cell;
        border: 0 !important;
        padding: 10px 12px !important
    }

    body.pf-page--mbway .pf-mbway-logo {
        width: min(240px, 80%)
    }

    body.pf-page--mbway .pf-mbway-method {
        width: 96px;
        padding-top: 4px
    }

    body.pf-page--mbway .pf-mbway-card__inner {
        gap: 10px
    }
}

@media (max-width:768px) {
    .payment-methods--primary {
        grid-template-columns: 1fr
    }

    body.pf-page--mbway .info-table,
    body.pf-page--mbway .info-table td,
    body.pf-page--mbway .info-table th,
    body.pf-page--mbway .info-table tr {
        display: table !important;
        width: auto !important
    }

    body.pf-page--mbway .info-table tr {
        display: table-row !important
    }

    body.pf-page--mbway .info-table td,
    body.pf-page--mbway .info-table th {
        display: table-cell !important
    }

    body.pf-page--mbway .info-table td:before {
        content: none !important;
        display: none !important
    }
}

body.pf-page--mbway .pf-mbway-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 12px;
    font-size: 15px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, .1);
    border-radius: 12px;
    background: rgba(255, 255, 255, .85)
}

body.pf-page--mbway .pf-mbway-table tr+tr td,
body.pf-page--mbway .pf-mbway-table tr+tr th {
    border-top: 1px solid rgba(0, 0, 0, .08) !important
}

body.pf-page--mbway .pf-mbway-table td,
body.pf-page--mbway .pf-mbway-table th {
    border: 0 !important;
    padding: 12px;
    vertical-align: middle
}

body.pf-page--mbway .pf-mbway-table th {
    width: 42%;
    font-weight: 800;
    color: #111;
    background: rgba(0, 0, 0, .03) !important
}

body.pf-page--mbway .pf-mbway-table td {
    width: 58%;
    color: rgba(0, 0, 0, .75);
    overflow-wrap: anywhere
}

@media (max-width:420px) {
    body.pf-page--mbway main.pf-main {
        padding: 12px
    }

    body.pf-page--mbway .container.pf-mbway-card {
        max-width: calc(100vw - 20px);
        padding: 14px !important
    }

    body.pf-page--mbway .pf-mbway-timer {
        font-size: clamp(48px, 18vw, 68px)
    }

    body.pf-page--mbway .pf-mbway-table {
        font-size: 14px
    }

    body.pf-page--mbway .pf-mbway-table td,
    body.pf-page--mbway .pf-mbway-table th {
        padding: 10px !important
    }

    body.pf-page--mbway .pf-mbway-table th {
        width: 44%
    }

    body.pf-page--mbway .pf-mbway-table td {
        width: 56%
    }
}

#payButton.is-disabled,
#payButton[disabled],
#submitAllFormsBtn.is-disabled,
#submitAllFormsBtn[disabled] {
    pointer-events: none;
    cursor: not-allowed;
    opacity: .7
}

/* .pf-disabled: "parece" desactivado (formulário ainda incompleto),
   mas de propósito SEM pointer-events/disabled - ver pf_button_state.js.
   Fica clicável para o clique chegar ao submit e mostrar ao pagador o
   que falta preencher, em vez de um botão cinzento sem explicação. */
#payButton.pf-disabled,
#submitAllFormsBtn.pf-disabled {
    background-color: #9a9a9a !important;
    cursor: not-allowed !important;
    opacity: .7;
}

#payButton.pf-disabled:active,
#payButton.pf-disabled:focus,
#payButton.pf-disabled:hover,
#submitAllFormsBtn.pf-disabled:active,
#submitAllFormsBtn.pf-disabled:focus,
#submitAllFormsBtn.pf-disabled:hover {
    background-color: #9a9a9a !important;
    color: #fff;
    box-shadow: none !important;
    outline: 0 !important
}

body.pf-page--mbway {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow: hidden
}

body.pf-page--mbway .content {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0 !important;
    display: flex;
    flex-direction: column
}

body.pf-page--mbway main.pf-main {
    flex: 1 0 auto;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px
}

body.pf-page--mbway .footer {
    flex: 0 0 auto;
    margin-top: 0 !important
}

.content {
    padding: var(--sp-4) var(--sp-3) !important
}

.container {
    padding: var(--sp-4) !important
}

.form-group,
.logo_container {
    margin-bottom: var(--sp-4) !important
}

.logo {
    margin: 0 auto var(--sp-3) auto !important
}

h1 {
    margin: 0 0 var(--sp-4) 0 !important;
    line-height: 1.15
}

.pf-section-title,
h2,
h3 {
    margin: var(--sp-5) 0 var(--sp-3) 0 !important
}

h2,
h3 {
    line-height: 1.2
}

.pf-payinfo {
    margin: 0 0 var(--sp-5) 0 !important
}

.pf-payinfo__head {
    padding: var(--sp-3) var(--sp-3) !important
}

.pf-id-grid {
    padding: 0 !important;
    gap: var(--sp-4) !important;
    margin-top: var(--sp-3) !important
}

.form-group label {
    margin-bottom: var(--sp-2) !important
}

.payment-methods {
    margin-top: var(--sp-4) !important;
    gap: var(--sp-3) !important
}

.button-container {
    margin-top: var(--sp-5) !important
}

#paymentForm button,
#paymentForm input[type=submit] {
    margin-top: var(--sp-2)
}

.pf-block {
    margin-top: var(--sp-5)
}

.pf-secondary {
    transition: box-shadow .18s, border-color .18s;
    border: 1px solid rgba(0, 0, 0, .1) !important;
    border-radius: 16px !important;
    padding: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .06) !important;
    margin-top: 14px !important;
    box-shadow: none !important;
    background: rgba(255, 255, 255, .92) !important
}

.mb-receipt,
.receipt {
    box-shadow: 0 10px 30px rgba(0, 0, 0, .1);
    text-align: left
}

.pf-secondary.is-open {
    box-shadow: 0 10px 26px rgba(0, 0, 0, .08) !important;
    border-color: rgba(0, 0, 0, .14) !important
}

#paymentForm #toggleSecondary.pf-secondary-toggle {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    border-radius: 12px !important;
    margin: 0 !important
}

#paymentForm #toggleSecondary.pf-secondary-toggle:hover {
    border-color: rgba(0, 0, 0, .18) !important;
    background: rgba(0, 0, 0, .03) !important
}

#paymentForm #toggleSecondary.pf-secondary-toggle:focus-visible {
    outline: rgba(201, 153, 63, .2) solid 2px !important;
    outline-offset: 3px !important
}

#methodsSecondaryWrap {
    margin-top: 10px !important;
    padding: 0 !important;
    background: 0 0 !important;
    border: 0 !important;
    box-shadow: none !important
}

#methodsSecondary.payment-methods--3cols {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 14px !important;
    align-items: stretch !important;
    margin: 0 !important
}

@media (max-width:900px) {
    #methodsSecondary.payment-methods--3cols {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important
    }
}

@media (max-width:600px) {
    #methodsSecondary.payment-methods--3cols {
        grid-template-columns: 1fr !important
    }
}

#methodsSecondary.payment-methods--3cols>.method {
    box-sizing: border-box !important;
    margin: 0 !important;
    width: 100% !important;
    min-height: 124px !important;
    padding: 16px 12px !important;
    border-radius: 16px !important;
    box-sizing: border-box !important
}

#methodsSecondary .method.disabled,
#methodsSecondary .method.unavailable-amount {
    opacity: .7 !important;
    filter: grayscale(.7) !important
}

#methodsSecondary #methodPlusTile.method-plus:not(.pf-hidden) {
    background: rgba(255, 255, 255, .75) !important;
    border: 1px dashed rgba(0, 0, 0, .22) !important;
    color: #111 !important
}

#methodsSecondary #methodPlusTile .plus {
    margin: 0 !important;
    opacity: .85;
    font-size: 28px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    opacity: .9 !important
}

#methodsSecondary #methodPlusTile .label {
    margin-top: 8px !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    opacity: .9 !important
}

#paymentForm #toggleSecondary.pf-secondary-toggle {
    padding: 10px !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    background: 0 0 !important
}

#paymentForm #toggleSecondary.pf-secondary-toggle::after {
    content: "›";
    display: inline-block;
    margin-left: 10px;
    font-size: 22px;
    line-height: 1;
    opacity: .65;
    transform: rotate(0);
    transition: transform .18s, opacity .18s
}

#paymentForm #toggleSecondary.pf-secondary-toggle[aria-expanded=true]::after {
    transform: rotate(90deg);
    opacity: .95
}

.method.enabled.selected,
.method.selected {
    overflow: visible !important
}

.method[data-method=mb_way] #mbwayInputExtra {
    align-items: stretch !important
}

.method[data-method=mb_way] #mbwayInputExtra .phone-grid {
    grid-template-columns: minmax(140px, 180px) 1fr;
    gap: 12px;
    align-items: end;
    width: 100%
}

.method[data-method=mb_way] #mbwayInputExtra input[type=tel],
.method[data-method=mb_way] #mbwayInputExtra select {
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 14px !important;
    border-radius: 12px !important;
    border: 1px solid rgba(0, 0, 0, .18) !important;
    background: rgba(255, 255, 255, .95) !important;
    font-size: 15px !important;
    margin-top: 8px
}

.payment-methods {
    gap: 16px !important;
    margin-top: 16px !important
}

.payment-methods .method[data-method] {
    margin: 0 !important
}

@media (max-width:520px) {
    .content {
        padding: var(--sp-3) var(--sp-3) !important
    }

    .container {
        padding: var(--sp-3) !important
    }

    .method[data-method=mb_way] #mbwayInputExtra .phone-grid {
        grid-template-columns: 1fr
    }

    .payment-methods {
        gap: 14px !important
    }
}

.method[data-method=mb_way] #mbwayInputExtra {
    max-width: 520px !important;
    width: 100% !important;
    margin: 12px auto 0 !important;
    align-items: stretch !important;
    text-align: left !important
}

@media (min-width:769px) {
    .method[data-method=mb_way] #mbwayInputExtra .phone-grid {
        grid-template-columns: 190px 1fr !important;
        gap: 12px !important;
        align-items: center !important
    }
}

@media (min-width:768px) {
    .method[data-method=mb_way] #mbwayInputExtra .phone-grid {
        grid-template-columns: 240px 1fr !important;
        align-items: center !important
    }

    .method[data-method=mb_way] #mbwayInputExtra .selec_mobile {
        min-width: 240px !important
    }

    .method[data-method=mb_way] #mbwayInputExtra .selec_mobile select {
        width: 100% !important;
        min-width: 240px !important
    }
}

.mb-receipt {
    background: #fff;
    margin: 50px auto 10px;
    width: min(520px, 92vw);
    padding: 20px;
    border-radius: 16px
}

.mb-receipt__header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px
}

.mb-receipt__table {
    margin-top: 25px;
    font-size: 16px;
    width: 100%;
    max-width: 100%
}

.mb-receipt__table td,
.mb-receipt__table th {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left
}

.mb-receipt__table th {
    font-weight: 600
}

.mb-receipt__table td {
    font-weight: 400;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px
}

.save-button {
    background: var(--btn-primary, var(--lp-primary));
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center
}

.save-button:hover {
    background: var(--btn-primary-dark, var(--lp-primary))
}

@media (max-width:480px) {
    .phone-container {
        flex-direction: column
    }

    #pfPayInfo .input-amount {
        width: 100%;
        height: 42px;
        padding: 0 12px;
        font-size: 16px
    }

    .mb-receipt {
        padding: 16px;
        border-radius: 14px;
        overflow-x: hidden
    }

    .mb-receipt__table {
        font-size: 15px;
        width: 100%;
        table-layout: fixed
    }

    .save-button {
        width: 100%;
        height: 52px
    }

    .mb-receipt__table td,
    .mb-receipt__table th {
        white-space: normal !important;
        word-break: break-word;
        overflow-wrap: anywhere
    }

    .mb-receipt__table td {
        display: block !important
    }

    .mb-receipt__table td>span {
        display: block;
        margin-bottom: 8px
    }

    .copy-button {
        margin-left: 0;
        justify-content: flex-start
    }
}

.mb-receipt,
.mb-receipt *,
.receipt,
.receipt * {
    box-sizing: border-box
}

.mb-receipt__table td,
.mb-receipt__table th {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word
}

@media (max-width:768px) {
    .mb-receipt__table td {
        display: block !important;
        white-space: normal !important
    }

    .mb-receipt__table td>span {
        display: block;
        margin-bottom: 8px;
        min-width: 0
    }

    .copy-button {
        margin-left: 0
    }

    .save-button {
        width: 100%
    }
}

.receipt {
    background: #fff;
    margin: 50px auto 10px;
    width: min(520px, 92vw);
    padding: 20px;
    border-radius: 16px;
    --btn-primary: var(--lp-primary);
    --btn-primary-dark: var(--lp-primary-hover)
}

.receipt__header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center
}

.copy-button,
.save-button {
    display: inline-flex;
    cursor: pointer
}

.receipt__logo {
    width: 300px;
    height: auto;
    max-width: 100%
}

.receipt__brand {
    width: 80px;
    height: auto;
    max-width: 100%
}

.receipt__table {
    width: 100%;
    margin-top: 16px;
    font-size: 16px
}

.receipt__table td,
.receipt__table th {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
    vertical-align: middle;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word
}

.receipt__table th {
    font-weight: 600
}

.receipt__table td {
    font-weight: 400;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px
}

.receipt__note {
    margin-top: 16px;
    text-align: center;
    font-size: 12px
}

.copy-button {
    align-items: center;
    gap: 8px;
    background: 0 0;
    border: none;
    padding: 6px 10px;
    border-radius: 10px;
    position: relative
}

.copy-button:hover {
    background: rgba(201, 153, 63, .08)
}

.tooltip-text {
    visibility: hidden;
    position: absolute;
    bottom: 125%;
    background: #555;
    color: #fff;
    padding: 6px 8px;
    border-radius: 8px;
    font-size: 12px;
    opacity: 0;
    transition: opacity .2s;
    white-space: nowrap;
    z-index: 10
}

.copy-button:hover .tooltip-text {
    visibility: visible;
    opacity: 1
}

.save-button {
    margin-top: 16px;
    height: 48px;
    padding: 0 24px;
    border: none;
    border-radius: 14px;
    background: var(--btn-primary);
    color: var(--lp-primary-foreground);
    font-size: 16px;
    font-weight: 600;
    align-items: center;
    justify-content: center;
    transition: background-color .2s, box-shadow .2s, transform .1s
}

.save-button:hover {
    background: var(--btn-primary-dark);
    box-shadow: 0 8px 18px rgba(0, 0, 0, .12)
}

.save-button:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .1)
}

@media print {
    .no-print {
        display: none !important
    }
}

.pf-dialog,
.pf-dialog__actions,
body.pf-final-page {
    display: flex;
    display: flex
}

body.pf-final-page {
    flex-direction: column;
    overflow-x: hidden;
    overflow-y: hidden
}

body.pf-final-page .content {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding: 0 !important
}

body.pf-final-page .centered {
    margin: auto;
    width: min(720px, 92vw);
    text-align: center;
    padding: 24px 16px;
    box-sizing: border-box
}

body.pf-final-page .centered img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 12px
}

body.pf-final-page .footer {
    flex: 0 0 auto;
    width: 100vw;
    margin: 0;
    position: static !important;
    left: 0
}

body.pf-final-page .footer_container {
    max-width: min(1200px, calc(100vw - 32px));
    margin: 0 auto;
    padding: 0 16px;
    box-sizing: border-box
}

.pf-glass {
    background: rgba(248, 120, 130, .68);
    backdrop-filter: blur(14px) saturate(120%);
    -webkit-backdrop-filter: blur(14px) saturate(120%);
    border: 1px solid rgba(255, 80, 90, .55);
    border-radius: 14px;
    box-shadow: 0 16px 46px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .45), inset 0 -1px 0 rgba(255, 120, 120, .25)
}

.pf-open-cancel {
    border: 0;
    border-radius: 14px;
    padding: 12px 16px;
    background: rgba(0, 0, 0, .06);
    color: #111;
    font-weight: 800;
    cursor: pointer
}

.pf-open-cancel:hover {
    background: rgba(0, 0, 0, .1)
}

.pf-dialog {
    position: fixed;
    z-index: 40000;
    align-items: center;
    justify-content: center;
    padding: 16px
}

.pf-dialog__overlay {
    position: absolute;
    background: rgba(0, 0, 0, .45);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px)
}

.pf-dialog__panel {
    position: relative;
    z-index: 1;
    width: min(620px, calc(100vw - 24px));
    background: rgba(248, 120, 130, .68);
    border: 1px solid rgba(255, 80, 90, .55);
    border-radius: 12px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, .25);
    padding: 18px 18px 16px;
    backdrop-filter: blur(14px) saturate(120%);
    -webkit-backdrop-filter: blur(14px) saturate(120%);
    box-shadow: 0 16px 46px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .45), inset 0 -1px 0 rgba(255, 120, 120, .25)
}

.pf-dialog__body {
    padding: 8px 6px 14px
}

.pf-dialog__title {
    font-size: 18px;
    font-weight: 800;
    color: #111;
    text-align: center;
    padding: 0 32px
}

.pf-dialog__actions {
    gap: 12px;
    justify-content: center;
    align-items: center
}

@media (max-width:480px) {
    .receipt__table td {
        display: block
    }

    .save-button {
        width: 100%;
        height: 52px
    }

    .pf-dialog__actions {
        flex-direction: column-reverse
    }

    .pf-btn {
        width: 100%;
        min-width: 0
    }
}

.pf-dialog__actions {
    display: flex;
    justify-content: center;
    margin-top: 14px
}

.pf-btn {
    border: 0;
    border-radius: 14px;
    padding: 12px 18px;
    min-width: 140px;
    font-weight: 800;
    font-size: 14px;
    cursor: pointer;
    backdrop-filter: blur(10px) saturate(120%);
    -webkit-backdrop-filter: blur(10px) saturate(120%);
    transition: transform .12s, box-shadow .12s, background-color .12s, border-color .12s
}

.pf-btn:hover {
    box-shadow: 0 10px 28px rgba(0, 0, 0, .18)
}

.pf-btn:active {
    transform: translateY(0);
    box-shadow: 0 6px 16px rgba(0, 0, 0, .16)
}

.pf-btn:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, .35), 0 10px 28px rgba(0, 0, 0, .18)
}

.pf-btn--ghost {
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .22);
    color: #3a0c12;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28)
}

.pf-btn--ghost:hover {
    background: rgba(255, 255, 255, .18);
    border-color: rgba(255, 255, 255, .3)
}

.pf-btn--primary {
    border: 1px solid rgba(255, 255, 255, .28);
    box-shadow: 0 10px 28px rgba(0, 0, 0, .18), inset 0 1px 0 rgba(255, 255, 255, .55)
}

.pf-btn--primary:hover {
    background: rgba(255, 255, 255, .88)
}

@media (max-width:520px) {
    .pf-dialog__actions {
        flex-direction: column
    }

    .pf-btn {
        width: 100%;
        min-width: 0
    }

    .pf-btn,
    .pf-dialog button,
    .pf-modal button {
        width: min(320px, 92vw);
        min-width: unset
    }
}

.pf-dialog__close {
    display: grid;
    backdrop-filter: none;
    -webkit-backdrop-filter: none
}

.pf-dialog__close:focus-visible {
    outline: 0;
    background-color: rgba(0, 0, 0, .08)
}

#alertBlocker {
    position: fixed;
    z-index: 29990;
    background: rgba(0, 0, 0, .3);
    backdrop-filter: blur(6px) saturate(120%);
    -webkit-backdrop-filter: blur(6px) saturate(120%);
    display: none
}

body.pf-modal-open {
    overflow: hidden !important;
    touch-action: none
}

.pf-blocking-overlay {
    position: fixed;
    background: rgba(0, 0, 0, .45);
    z-index: 9998;
    pointer-events: auto
}

body.pf-modal-open #customAlert.alert {
    position: fixed;
    top: 50% !important;
    left: 50% !important;
    right: auto !important;
    bottom: auto !important;
    width: min(520px, calc(100vw - 40px)) !important;
    transform: translate(-50%, -50%) !important
}

.dialog-actions,
.pf-dialog__actions,
.pf-modal__actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap
}

.pf-btnn,
.pf-dialog button:not(.pf-dialog__close),
.pf-modal button:not(.pf-dialog__close):not(.pf-modal__close) {
    appearance: none;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 999px;
    padding: 12px 18px;
    min-width: 160px;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: .2px;
    background: rgba(255, 255, 255, .18);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    box-shadow: 0 10px 26px rgba(0, 0, 0, .16), inset 0 1px 0 rgba(255, 255, 255, .22);
    transition: transform 120ms, box-shadow 120ms, filter 120ms, background 120ms;
    cursor: pointer
}

.pf-btn:hover,
.pf-dialog button:hover,
.pf-modal button:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
    box-shadow: 0 14px 34px rgba(0, 0, 0, .18), inset 0 1px 0 rgba(255, 255, 255, .26)
}

.pf-btn:active,
.pf-dialog button:active,
.pf-modal button:active {
    transform: translateY(0) scale(.985);
    box-shadow: 0 8px 18px rgba(0, 0, 0, .14), inset 0 1px 0 rgba(255, 255, 255, .18)
}

.pf-btn:disabled,
.pf-dialog button:disabled,
.pf-modal button:disabled {
    opacity: .55;
    cursor: not-allowed;
    transform: none
}

.pf-btn--cancel,
.pf-btn-cancel,
button[data-action=cancel] {
    background: rgba(255, 255, 255, .16);
    color: rgba(0, 0, 0, .78)
}

.pf-btn--primary,
.pf-btn-primary,
button[data-action=confirm] {
    background: rgba(201, 153, 63, .78);
    border-color: rgba(255, 255, 255, .18);
    color: #fff;
    box-shadow: 0 16px 36px rgba(201, 153, 63, .22), 0 10px 26px rgba(0, 0, 0, .14), inset 0 1px 0 rgba(255, 255, 255, .2)
}

.pf-btn--primary:hover,
.pf-btn-primary:hover,
button[data-action=confirm]:hover {
    filter: brightness(1.06)
}

.pf-dialog__close {
    display: grid;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    min-width: 0;
    padding: 0;
    display: grid;
    font-size: 20px;
    line-height: 1;
    font-weight: 700;
    background: 0 0;
    border: 0;
    border-radius: 6px;
    color: rgba(0, 0, 0, .65);
    cursor: pointer;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none
}

.pf-dialog__close:hover {
    background: rgba(0, 0, 0, .06);
    color: rgba(0, 0, 0, .85)
}

body.pf-final-page {
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    background: var(--lp-bg)
}

.pf-final-page header {
    padding: 16px 24px
}

.pf-final-page .lang-switch,
body.pf-final-page .lang-switch {
    display: flex;
    justify-content: flex-end;
    gap: 8px
}

.pf-final-page .content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px
}

.pf-final-page .container {
    width: 100%;
    max-width: 520px;
    text-align: center;
    box-sizing: border-box
}

.pf-final-page img.logo {
    display: block;
    margin: 0 auto 16px;
    width: min(360px, 80vw);
    height: auto
}

.pf-final-page footer.footer {
    margin-top: auto
}



body.pf-final-page #tentarNovamenteBtn {
    width: 100%;
    max-width: 360px;
    min-height: 50px;
    padding: 14px 18px;
    color: var(--lp-primary-foreground) !important;
    font-family: inherit;
    font-size: 17px;
    font-weight: 800;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 14px;
    margin-bottom: 22px;
    cursor: pointer
}

body.pf-final-page #tentarNovamenteBtn:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, .4), 0 0 0 6px rgba(201, 153, 63, .4), 0 14px 34px rgba(0, 0, 0, .22), inset 0 1px 0 rgba(255, 255, 255, .25)
}

body.pf-final-page #tentarNovamenteBtn:disabled {
    background: linear-gradient(135deg, #9aa3ad, #7f8892);
    border-color: rgba(255, 255, 255, .15);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2);
    cursor: not-allowed;
    opacity: .7
}

body.pf-final-page .container {
    padding: 36px 28px;
    max-width: 520px
}

body.pf-final-page img.logo {
    margin: 0 auto 28px
}

body.pf-final-page h1 {
    font-size: 28px;
    font-weight: 800;
    margin: 0 0 26px;
    letter-spacing: .3px;
    color: #2d2d2d
}

body.pf-final-page p[data-i18n=erro_codigo] {
    margin-top: 4px;
    font-size: 14px;
    font-weight: 600;
    color: #6b7280
}

@media (max-width:520px) {
    body.pf-final-page .content {
        padding: 16px !important
    }

    body.pf-final-page .container {
        width: 100%;
        max-width: 100%;
        padding: 22px 18px;
        border-radius: 16px
    }

    body.pf-final-page img.logo {
        width: min(280px, 82vw);
        margin: 0 auto 18px
    }

    body.pf-final-page h1 {
        font-size: 22px;
        line-height: 1.15;
        margin: 0 0 16px
    }

    body.pf-final-page #tentarNovamenteBtn {
        width: 100%;
        max-width: 100%;
        min-height: 52px;
        padding: 14px 16px;
        font-size: 16px;
        border-radius: 14px;
        margin-bottom: 14px
    }

    body.pf-final-page p[data-i18n=erro_codigo] {
        font-size: 13px;
        margin: 0;
        opacity: .75
    }
}

@media (max-width:360px) {
    body.pf-final-page .container {
        padding: 18px 14px
    }

    body.pf-final-page h1 {
        font-size: 20px
    }

    body.pf-final-page img.logo {
        width: min(250px, 86vw)
    }
}

.pf-processing-overlay {
    position: fixed;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(10, 14, 20, .55);
    backdrop-filter: blur(6px)
}

.pf-processing-card {
    width: min(520px, 94%);
    padding: 26px 22px 22px;
    border-radius: 22px;
    background: rgba(255, 255, 255, .884);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, .28);
    box-shadow: 0 20px 70px rgba(0, 0, 0, .38);
    text-align: center
}

.pf-processing-spinner {
    width: 44px;
    height: 44px;
    margin: 6px auto 10px;
    border-radius: 50%;
    border: 4px solid rgba(0, 0, 0, .1);
    border-top-color: rgba(0, 0, 0, .55);
    animation: .9s linear infinite pfSpin
}

@keyframes pfSpin {
    to {
        transform: rotate(360deg)
    }
}

.pf-processing-title {
    font-size: 20px;
    font-weight: 650;
    color: #000;
    margin-top: 2px
}

.pf-processing-subtitle {
    font-size: 14px;
    color: rgba(0, 0, 0, .88);
    margin-top: 6px
}

.pf-processing-promo {
    margin: 6px auto 18px
}

.pf-processing-promo img {
    width: min(340px, 85%);
    height: auto;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 18px 28px rgba(0, 0, 0, .45));
    animation: 220ms ease-out pfPromoPop
}

.pf-processing-card {
    animation: 160ms ease-out pfPop
}

@keyframes pfPop {
    from {
        transform: translateY(6px) scale(.985);
        opacity: 0
    }

    to {
        transform: translateY(0) scale(1);
        opacity: 1
    }
}

@keyframes pfPromoPop {
    from {
        transform: translateY(6px) scale(.985);
        opacity: 0
    }

    to {
        transform: translateY(0) scale(1);
        opacity: 1
    }
}

.pf-header {
    display: flex;
    justify-content: flex-end;
    padding: 10px 14px;
    background: var(--lp-navy);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 3000
}

.pf-header nav {
    display: flex;
    justify-content: flex-end
}

.lang-dropdown {
    position: relative;
    display: inline-block
}

.lang-selected {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .18);
    color: rgba(255, 255, 255, .92);
    cursor: pointer;
    user-select: none;
    min-width: 150px
}

.lang-selected:hover {
    background: rgba(255, 255, 255, .14);
    border-color: rgba(255, 255, 255, .26)
}

.lang-selected:focus-visible {
    outline: rgba(255, 255, 255, .35) solid 2px;
    outline-offset: 2px
}

.lang-list .lang-flag,
.lang-selected .lang-flag {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    object-fit: cover
}

.lang-list {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 3500;
    background: var(--lp-navy-dark);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 12px;
    box-shadow: 0 18px 55px rgba(0, 0, 0, .45);
    list-style: none;
    margin: 0;
    padding: 6px 0;
    width: 220px;
    max-height: 320px;
    overflow-y: auto;
    display: none
}

.pf-a11y-fab,
.pf-a11y-switch input:checked+span {
    background: var(--pf-a11y-accent)
}

.lang-list li,
.pf-a11y-actions,
.pf-a11y-fab {
    display: flex;
    display: flex
}

.lang-list.show {
    display: block;
    animation: .14s ease-out pfFadeIn
}

.lang-list li {
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    cursor: pointer;
    color: rgba(255, 255, 255, .9)
}

.lang-list li:hover {
    background: rgba(255, 255, 255, .08)
}

body.pf-lang-open::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .55);
    z-index: 3400
}

@keyframes pfFadeIn {
    from {
        opacity: 0;
        transform: translateY(-6px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

@media (max-width:520px) {
    .lang-selected {
        min-width: 0;
        padding: 8px 10px
    }

    body.pf-lang-open::before {
        content: "";
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, .55);
        backdrop-filter: blur(2px);
        -webkit-backdrop-filter: blur(2px);
        z-index: 9998
    }

    .pf-header {
        position: sticky;
        top: 0;
        z-index: 9999
    }

    .lang-list {
        padding: 8px 0;
        position: fixed !important;
        left: 12px !important;
        right: 12px !important;
        top: 64px !important;
        width: auto !important;
        max-height: calc(100vh - 84px) !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
        z-index: 10000 !important;
        border-radius: 16px !important;
        box-shadow: 0 18px 50px rgba(0, 0, 0, .45) !important
    }

    .lang-list li {
        padding: 14px 16px !important;
        font-size: 16px !important
    }

    body.pf-lang-open #debugPanel {
        display: none !important
    }
}

:focus-visible {
    outline: currentColor solid 3px;
    outline-offset: 3px
}

html.pf-a11y-color-high input,
html.pf-a11y-color-high select,
html.pf-a11y-color-high textarea {
    background: #fff !important;
    color: #000 !important;
    border: 2px solid #000 !important
}

.pf-a11y-actions {
    justify-content: flex-end;
    gap: 10px
}

.pf-a11y-fab__icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
    pointer-events: none
}

.pf-a11y-fab:focus-visible {
    box-shadow: 0 0 0 4px rgba(201, 153, 63, .35), 0 10px 25px rgba(0, 0, 0, .18);
    box-shadow: 0 0 0 4px rgba(201, 153, 63, .35), 0 10px 25px rgba(0, 0, 0, .18)
}

html.pf-a11y-highlight-links a,
html.pf-a11y-highlight-links a:visited {
    text-decoration: underline !important;
    text-underline-offset: 0.18em;
    text-decoration-thickness: 0.12em
}

html.pf-a11y-reading body {
    line-height: 1.65 !important
}

html.pf-a11y-reading .pf-method-notice,
html.pf-a11y-reading .pf-payinfo__sub,
html.pf-a11y-reading li,
html.pf-a11y-reading p {
    line-height: 1.7 !important;
    margin-bottom: .65em !important
}

html.pf-a11y-reading .pf-section-title,
html.pf-a11y-reading h1,
html.pf-a11y-reading h2,
html.pf-a11y-reading h3 {
    line-height: 1.25 !important
}

html.pf-a11y-reading body,
html.pf-a11y-reading button,
html.pf-a11y-reading input,
html.pf-a11y-reading select,
html.pf-a11y-reading textarea {
    letter-spacing: .2px
}

html.pf-a11y-focus :focus-visible {
    outline: 3px solid var(--pf-a11y-focus) !important;
    outline-offset: 3px !important
}

html.pf-a11y-focus .form-group input:focus,
html.pf-a11y-focus select:focus,
html.pf-a11y-focus textarea:focus {
    box-shadow: 0 6px 14px rgba(0, 0, 0, .12), 0 0 0 4px rgba(201, 153, 63, .24), inset 0 1px 0 rgba(255, 255, 255, .6) !important
}

html.pf-a11y-color-high body {
    background: #fff !important;
    color: #000 !important
}

html.pf-a11y-color-high .container,
html.pf-a11y-color-high .mb-receipt,
html.pf-a11y-color-high .pf-payinfo,
html.pf-a11y-color-high .receipt {
    background: #fff !important;
    color: #000 !important;
    border: 2px solid #000 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important
}

html.pf-a11y-big-targets #payButton,
html.pf-a11y-big-targets #paymentForm button,
html.pf-a11y-big-targets #paymentForm input[type=submit] {
    min-height: 60px !important;
    padding: 18px !important
}

html.pf-a11y-big-targets .form-group input,
html.pf-a11y-big-targets select,
html.pf-a11y-big-targets textarea {
    min-height: 48px !important;
    padding: 14px !important;
    font-size: 16px !important
}

html.pf-a11y-big-targets .payment-methods .method[data-method] {
    min-height: 150px !important
}

html.pf-a11y-big-cursor body {
    cursor: default
}

.pf-a11y-btn,
.pf-a11y-close,
.pf-a11y-fab,
html.pf-a11y-big-cursor [role=button],
html.pf-a11y-big-cursor a,
html.pf-a11y-big-cursor button,
html.pf-a11y-big-cursor input,
html.pf-a11y-big-cursor select,
html.pf-a11y-big-cursor textarea {
    cursor: pointer
}

html.pf-a11y-simple .container {
    background: #fff !important;
    border: 1px solid rgba(0, 0, 0, .12) !important;
    box-shadow: 0 8px 18px rgba(0, 0, 0, .08) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important
}

html.pf-a11y-simple #moreMethodsModal .pf-modal__panel,
html.pf-a11y-simple .alert,
html.pf-a11y-simple .pf-processing-card {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important
}

html.pf-a11y-dim body {
    background: #e9edf2 !important
}

html.pf-a11y-dim .container {
    background: rgba(255, 255, 255, .95) !important
}

.pf-a11y-fab {
    align-items: center;
    justify-content: center;
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 9998;
    width: 56px;
    height: 56px;
    border-radius: 999px;
    border: 0;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .18)
}

.pf-a11y-fab:focus,
.pf-a11y-fab:focus-visible {
    outline: 0
}

/* =========================================================
   PAINEL DE ACESSIBILIDADE - identidade da marca (escuro + dourado),
   ancorado por baixo do botão que o abre (ver
   positionDialogNearButton() em pf_a11y.js), não um modal centrado.
   ========================================================= */

.pf-a11y-dialog {
    position: fixed;
    z-index: 9999;
    width: min(340px, calc(100vw - 16px));
    top: 0;
    right: 14px;
}

.pf-a11y-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    z-index: 9998
}

.pf-a11y-card {
    box-sizing: border-box;
    width: 100%;
    background: #171b22;
    color: #f4f1ea;
    border-radius: 20px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
    border: 1px solid rgba(201, 153, 63, .28);
    padding: 18px
}

.pf-a11y-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px
}

.pf-a11y-head h2 {
    font-size: 17px;
    font-weight: 700;
    margin: 0;
    color: #f4f1ea;
}

.pf-a11y-close {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: none;
    background: transparent;
    color: #b7bcc6;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

.pf-a11y-close:hover,
.pf-a11y-close:focus-visible {
    background: rgba(255, 255, 255, .08);
    color: #f4f1ea;
}

.pf-visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    margin: -1px;
    padding: 0;
    border: 0;
}

.pf-a11y-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 2px;
}

.pf-a11y-row-icon {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #c9993f;
}

.pf-a11y-row-label {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 14px;
    font-weight: 500;
    color: #f4f1ea;
}

.pf-a11y-row-sub {
    font-size: .85em;
    opacity: .7;
    margin-top: 2px
}

.pf-a11y-switch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.pf-a11y-switch span {
    width: 40px;
    height: 24px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .18);
    background: rgba(255, 255, 255, .14);
    position: relative;
    transition: background-color 160ms, border-color 160ms;
}

.pf-a11y-switch span::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 3px 8px rgba(0, 0, 0, .3);
    transition: transform 160ms
}

.pf-a11y-switch input:checked+span {
    background: #c9993f;
    border-color: #c9993f;
}

.pf-a11y-switch input:checked+span::after {
    transform: translateX(16px)
}

.pf-a11y-switch input:focus-visible+span {
    outline: 2px solid #c9993f;
    outline-offset: 2px;
}

.pf-a11y-row-stepper .pf-a11y-row-label {
    white-space: normal;
    word-break: break-word;
}

.pf-a11y-font-controls {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    flex-shrink: 0;
}

.pf-a11y-step-btn {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, .16);
    background: rgba(255, 255, 255, .06);
    color: #f4f1ea;
    border-radius: 8px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
}

.pf-a11y-step-btn svg {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

.pf-a11y-step-btn:hover,
.pf-a11y-step-btn:focus-visible {
    border-color: #c9993f;
    background: rgba(201, 153, 63, .15);
}

.pf-a11y-step-value {
    min-width: 34px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: #f4f1ea;
}

.pf-a11y-readaloud-btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
    padding: 11px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, .16);
    background: rgba(255, 255, 255, .06);
    color: #f4f1ea;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
}

.pf-a11y-readaloud-btn:hover,
.pf-a11y-readaloud-btn:focus-visible {
    border-color: #c9993f;
    background: rgba(201, 153, 63, .15);
}

.pf-a11y-readaloud-btn[aria-pressed="true"] {
    border-color: #c9993f;
    background: rgba(201, 153, 63, .22);
}

.pf-a11y-footnote {
    margin: 12px 0 4px;
    font-size: 11.5px;
    line-height: 1.4;
    color: #9098a5;
    text-align: center;
}

.pf-a11y-reset-link {
    display: block;
    width: 100%;
    text-align: center;
    background: transparent;
    border: none;
    color: #9098a5;
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
    padding: 4px 0 2px;
}

.pf-a11y-reset-link:hover,
.pf-a11y-reset-link:focus-visible {
    color: #c9993f;
}

.pf-a11y-btn-primary {
    background: var(--pf-a11y-accent);
    color: #fff;
    border-color: transparent
}

.pf-a11y-actions,
.pf-a11y-head {
    position: sticky;
    z-index: 2;
    background: inherit
}

html[data-pf-font-scale="100"] {
    font-size: 16px
}

html[data-pf-font-scale="112"] {
    font-size: 17.92px
}

html[data-pf-font-scale="125"] {
    font-size: 20px
}

html[data-pf-font-scale="140"] {
    font-size: 22.4px
}

html[data-pf-line-height="1.25"] body {
    line-height: 1.25
}

html[data-pf-line-height="1.4"] body {
    line-height: 1.4
}

html[data-pf-line-height="1.6"] body {
    line-height: 1.6
}

html[data-pf-line-height="1.8"] body {
    line-height: 1.8
}

html[data-pf-letter-spacing="0"] body {
    letter-spacing: 0
}

html[data-pf-letter-spacing="0.5"] body {
    letter-spacing: .5px
}

html[data-pf-letter-spacing="1"] body {
    letter-spacing: 1px
}

html[data-pf-letter-spacing="1.5"] body {
    letter-spacing: 1.5px
}

html.pf-a11y-readable-font body,
html.pf-a11y-readable-font button,
html.pf-a11y-readable-font input,
html.pf-a11y-readable-font select,
html.pf-a11y-readable-font textarea {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif !important
}

html.pf-a11y-text-center input,
html.pf-a11y-text-center select,
html.pf-a11y-text-center textarea {
    text-align: left
}

html.pf-a11y-big-cursor,
html.pf-a11y-big-cursor * {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M4 2l14 10-6 1 2 7-3 1-2-7-5 4z'/%3E%3C/svg%3E") 2 2, auto !important
}

html.pf-a11y-hide-images img,
html.pf-a11y-hide-images picture,
html.pf-a11y-hide-images svg,
html.pf-a11y-hide-images video {
    visibility: hidden !important
}

html.pf-a11y-highlight-content .container,
html.pf-a11y-highlight-content .mb-receipt,
html.pf-a11y-highlight-content .pf-payinfo,
html.pf-a11y-highlight-content .receipt {
    outline: rgba(0, 0, 0, .15) solid 2px;
    outline-offset: 6px
}

html.pf-a11y-highlight-links a {
    text-decoration: underline !important;
    text-underline-offset: 0.18em
}

html.pf-a11y-reduce-motion *,
html.pf-a11y-reduce-motion ::after,
html.pf-a11y-reduce-motion ::before {
    animation: none !important;
    transition: none !important
}

html.pf-a11y-color-light body {
    background: #fff !important;
    color: #111 !important
}

html.pf-a11y-color-light .container,
html.pf-a11y-color-light .pf-payinfo {
    background: #fff !important;
    box-shadow: none !important
}

/* Escala de cinzentos + inverter cores: filtro único composto em JS
   (ver applyToHtmlEarly() em pf_a11y.js) - "filter" não é aditivo entre
   regras CSS diferentes, por isso os dois têm de viver na mesma
   propriedade para poderem estar activos em simultâneo. Só aplicado
   quando pelo menos um está activo (classe pf-a11y-has-filter) - manter
   "filter" ausente no caso comum evita que a sua mera presença (mesmo
   como "none") altere o posicionamento de elementos fixed/sticky.
*/
html.pf-a11y-has-filter {
    filter: var(--pf-a11y-filter, none);
}

#pfReadingLine {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    height: 3px;
    background: rgba(201, 153, 63, .7);
    z-index: 999999;
    pointer-events: none
}

#pfReadingMaskBottom,
#pfReadingMaskTop {
    position: fixed;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, .45);
    z-index: 999998;
    pointer-events: none
}

#pfReadingMaskTop {
    top: 0;
    height: 0
}

#pfReadingMaskBottom {
    top: 0;
    bottom: 0
}

.pf-a11y-card {
    max-height: min(78vh, 720px);
    display: flex;
    flex-direction: column
}

.pf-a11y-card>.pf-a11y-desc {
    flex: 0 0 auto
}

.pf-a11y-card .pf-a11y-scroll {
    flex: 1 1 auto;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    padding-right: 6px
}

.pf-a11y-head {
    top: 0
}

.pf-a11y-actions {
    bottom: 0;
    padding-top: 10px
}

.pf-a11y-btn[aria-pressed=true] {
    border-color: var(--btn-primary, var(--lp-primary));
    background: rgba(201, 153, 63, .1);
    box-shadow: 0 0 0 3px rgba(201, 153, 63, .18);
    font-weight: 600
}

.pf-a11y-btn[aria-pressed=true]::after {
    content: "✓";
    margin-left: 8px;
    font-weight: 700
}

.pf-extra-section {
    min-height: 150px
}

#billingInfo {
    min-height: 200px
}

/* Garantir que o "pf-hidden" vence SEMPRE no tile "Ver mais" */
#methodPlusTile.pf-hidden,
#methodsSecondary #methodPlusTile.pf-hidden,
#methodsSecondary #methodPlusTile.method-plus.pf-hidden {
    display: none !important;
}

/* Repor header/nav no pf-final-page (override da regra destrutiva com !important) */
body.pf-final-page .pf-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 3000 !important;
    padding: 10px 14px !important;
    background: var(--pf-header-bg, var(--lp-navy)) !important;
    box-shadow: none !important;
    /* ou o que usas nas outras páginas */
}

body.pf-final-page .pf-header nav {
    background: transparent !important;
    position: static !important;
    padding: 0 !important;
}

/* =========================================================
   PATCH FINAL (autoridade final)
   - "Ver mais" só aparece quando NÃO estiver .pf-hidden
   - Header consistente no final-page
   - PayInfo head sem "pop" (halo só no ::after)
========================================================= */

/* ---------- 1) VER MAIS (tile +) ---------- */
/* Regra-base: se tiver .pf-hidden, é SEMPRE escondido */
#methodPlusTile.pf-hidden,
#methodsSecondary #methodPlusTile.pf-hidden,
#moreMethodsModal #methodPlusTile.pf-hidden {
    display: none !important;
}

/* Quando estiver visível (sem .pf-hidden), pode ter layout */
#methodPlusTile.method-plus {
    border: 1px dashed rgba(0, 0, 0, 0.22) !important;
    background: rgba(255, 255, 255, 0.75) !important;
    border-radius: 14px !important;
    min-height: 130px !important;
    padding: 18px 12px !important;
    box-sizing: border-box !important;
    cursor: pointer;
}

/* IMPORTANTÍSSIMO:
   Não forces display:flex com :not(.pf-hidden) espalhado pelo ficheiro.
   Aqui controlamos o display de forma simples: */
#methodPlusTile.method-plus:not(.pf-hidden) {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
}

#methodPlusTile .plus {
    font-size: 28px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    opacity: 0.9 !important;
}

#methodPlusTile .label {
    margin-top: 8px !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    opacity: 0.9 !important;
}


/* ---------- 2) HEADER no FINAL PAGE (sem guerras) ---------- */
/* Remove a dependência de “repor” depois de destruíres.
   Mantém sticky, limpo e consistente. */
body.pf-final-page .pf-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 3000 !important;
    padding: 10px 14px !important;
    background: var(--lp-navy) !important;
    box-shadow: none !important;
}

body.pf-final-page .pf-header nav {
    background: transparent !important;
    position: static !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Criar a animação de destaque */
@keyframes attentionPulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
        box-shadow: 0 10px 30px rgba(201, 153, 63, 0.4);
    }

    100% {
        transform: scale(1);
    }
}

/* Classe que será aplicada para o efeito */
.pf-pulse-highlight {
    animation: attentionPulse 0.8s ease-in-out 3;
    /* Pulsa 3 vezes e pára */
}

@keyframes brilhoSuaveRespira {
    0% {
        box-shadow: 0 10px 26px rgba(0, 0, 0, .12);
    }

    50% {
        box-shadow: 0 10px 30px rgba(201, 153, 63, .5), 0 0 15px rgba(255, 255, 255, .2);
    }

    100% {
        box-shadow: 0 10px 26px rgba(0, 0, 0, .12);
    }
}

.pf-glow-soft {
    /* Transição suave para evitar o efeito de "piscar" ao entrar/sair */
    transition: box-shadow 0.5s ease !important;

    /* Animação mais lenta (1.5 segundos) para parecer um pulsar orgânico */
    animation: brilhoSuaveRespira 1.5s cubic-bezier(0.4, 0, 0.2, 1) 2 !important;

    /* Garante que o texto não é afetado negativamente */
    -webkit-font-smoothing: antialiased;
}

/* === A11Y FIX: garantir labels visíveis (nome/email e restantes) === */
.form-group label {
    display: block !important;
    visibility: visible !important;
    position: static !important;
    height: auto !important;
    width: auto !important;
    clip: auto !important;
    clip-path: none !important;
    opacity: 1 !important;
    transform: none !important;
    margin: 0 0 var(--sp-2, 12px) 0 !important;
    line-height: 1.2;
    color: #111;
}

/* Se, por algum motivo, houver CSS “agressivo” por classes */
label.hidden,
label.extra-field {
    display: block !important;
    visibility: visible !important;
}

/* A11Y: texto apenas para leitores de ecrã */
.pf-sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* =========================================================
   PERF MOBILE (LCP / Speed Index)
   - reduzir custos de pintura (blur/box-shadow/filters)
   - evitar animações não-compositadas no carregamento
========================================================= */
@media (max-width: 768px) {

    /* Blur é caro em mobile: fica sólido para pintar rápido */
    .container,
    .alert,
    .pf-dialog__panel,
    .pf-processing-card,
    #moreMethodsModal .pf-modal__panel {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    .container {
        background: #fff !important;
        box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08) !important;
    }

    /* Reduz sombras "pesadas" nos elementos grandes acima da dobra */
    .pf-payinfo__head,
    #payButton {
        box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18) !important;
        filter: none !important;
    }

    /* Estas animações usam box-shadow/filter/background-color (paint-heavy) */
    #payButton.is-ready:not(:disabled):not(:hover):not(:active) {
        animation: none !important;
    }

    .pf-glow-soft,
    .pf-pulse-highlight {
        animation: none !important;
    }

    .metodo-pagamento-img {
        height: auto;
    }
}

/* =========================================================
   Tamanho consistente dos ícones de métodos (sem perder w/h)
========================================================= */
.metodo-pagamento-img {
    /* Tamanho “normal” (desktop e mobile) */
    width: clamp(160px, 45%, 240px);
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Ajustes por método (opcional, mas fica mais bonito) */
.method[data-method="mb_way"] .metodo-pagamento-img {
    width: clamp(180px, 55%, 280px);
    /* MB WAY costuma precisar de mais largura */
}

.method[data-method="apple_pay"] .metodo-pagamento-img,
.method[data-method="google_pay"] .metodo-pagamento-img {
    width: clamp(170px, 50%, 260px);
}

/* Em ecrãs pequenos, sobe um pouco (porque 45% pode parecer curto) */
@media (max-width: 520px) {
    .metodo-pagamento-img {
        width: clamp(170px, 55%, 280px);
    }
}

/* =========================
   A11Y: tamanho do painel em mobile
========================= */

@media (max-width: 520px) {

    /* painel/dialog */
    .pf-a11y-dialog .pf-a11y-card {
        /* width: min(92vw, 420px);*/
        max-height: 82vh;
        padding: 12px;
        border-radius: 16px;
        overflow: auto;
    }

    /* títulos e texto */
    .pf-a11y-dialog h1,
    .pf-a11y-dialog h2 {
        font-size: 18px;
        line-height: 1.2;
        margin: 0 0 10px 0;
    }

    .pf-a11y-dialog,
    .pf-a11y-dialog button,
    .pf-a11y-dialog label {
        font-size: 14px;
    }

    /* botões/controls para não ficarem “tijolos” */
    .pf-a11y-dialog .pf-btn,
    .pf-a11y-dialog button {
        padding: 10px 12px;
    }

    /* botão flutuante (FAB) */
    .pf-a11y-fab,
    .pf-cookie-fab {
        width: 44px;
        height: 44px;
    }

    .pf-a11y-fab img,
    .pf-a11y-fab__icon {
        width: 26px;
        height: 26px;
    }
}

/* =========================
   PF PayInfo table (desktop)
   ========================= */
#pfPayInfo .pf-payinfo__table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    /* estabiliza colunas e evita gaps “aleatórios” */
}

#pfPayInfo .pf-payinfo__table th,
#pfPayInfo .pf-payinfo__table td {
    padding: 8px 0;
    vertical-align: middle;
}

/* Controla a largura da 1.ª coluna (labels) */
#pfPayInfo .pf-payinfo__table th {
    width: 42%;
    max-width: 42%;
    font-weight: 700;
    /* se quiser as labels mais fortes */
    padding-right: 14px;
    /* espaço entre label e valor */
    white-space: normal;
    /* permite quebrar */
    overflow-wrap: anywhere;
    /* evita estourar layout com URLs */
}

/* A 2.ª coluna ocupa o resto */
#pfPayInfo .pf-payinfo__table td {
    width: 58%;
    max-width: 58%;
}

/* =========================================================
   PF PayInfo — mobile: converter tabela em lista (stack)
   ========================================================= */

@media (max-width: 520px) {
    #pfPayInfo .pf-payinfo__table {
        width: 100%;
        border-collapse: collapse;
        table-layout: auto;
        /* em mobile não precisamos de fixed */
    }

    /* “Desmonta” a tabela: cada <tr> vira um bloco */
    #pfPayInfo .pf-payinfo__table tr {
        display: block;
        padding: 14px 0;
        border-bottom: 1px solid rgba(0, 0, 0, .06);
    }

    #pfPayInfo .pf-payinfo__table tr:last-child {
        border-bottom: 0;
    }

    /* <th> e <td> em stack */
    #pfPayInfo .pf-payinfo__table th,
    #pfPayInfo .pf-payinfo__table td {
        display: block;
        width: 100%;
        max-width: 100%;
        padding: 0;
        text-align: left;
    }

    /* Label */
    #pfPayInfo .pf-payinfo__table th {
        font-weight: 700;
        margin-bottom: 6px;
        white-space: normal;
        overflow-wrap: anywhere;
        /* evita “explodir” com textos/urls */
    }

    /* Valor */
    #pfPayInfo .pf-payinfo__table td {
        opacity: .95;
        overflow-wrap: anywhere;
        /* URLs */
    }
}

/* =========================================================
   Alerts — mobile: toast no fundo + safe-area
   ========================================================= */

@media (max-width: 520px) {
    #customAlert {
        position: fixed !important;

        left: max(12px, env(safe-area-inset-left)) !important;
        right: max(12px, env(safe-area-inset-right)) !important;
        /* importante: limpa right */
        top: calc(14px + env(safe-area-inset-top)) !important;
        bottom: auto !important;

        transform: none !important;

        width: auto !important;
        max-width: none !important;
        max-height: calc(100dvh - 28px - env(safe-area-inset-top)) !important;

        margin: 0 !important;
        box-sizing: border-box !important;
        /* evita “empurrões” */
    }
}

@media (max-width: 520px) {

    .pf-header .pf-logo,
    .pf-header .pf-header__logo {
        height: 44px;
        /* ajusta aqui */
        width: auto;
    }
}

.hidden-recaptcha {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}


.pf-cookie-fab {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 9998;
    width: 56px;
    height: 56px;
    border: 0;
    border-radius: 999px;
    /*background: var(--lp-navy); */
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.20);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.pf-cookie-fab:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.24);
}

.pf-cookie-fab:focus-visible,
.pf-cookie-panel__close:focus-visible,
.pf-cookie-btn:focus-visible {
    outline: 3px solid var(--lp-navy-dark);
    outline-offset: 3px;
}

.pf-cookie-panel {
    position: fixed;
    left: 20px;
    bottom: 88px;
    z-index: 9999;
    width: min(420px, calc(100vw - 32px));
    background: #ffffff;
    color: var(--lp-navy-dark);
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
}

.pf-cookie-panel[hidden] {
    display: none !important;
}

.pf-cookie-panel__content {
    padding: 18px;
}

.pf-cookie-panel__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.pf-cookie-panel__title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.3;
}

.pf-cookie-panel__close {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 10px;
    background: var(--lp-bg);
    color: var(--lp-navy-dark);
    cursor: pointer;
    font-size: 1.35rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pf-cookie-panel__body {
    margin-bottom: 16px;
}

.pf-cookie-panel__text {
    margin: 0 0 10px;
    font-size: 0.95rem;
    line-height: 1.55;
    text-align: justify;
}


.pf-cookie-panel__text:last-child {
    margin-bottom: 0;
}

.pf-cookie-panel__actions {
    display: flex;
    justify-content: flex-end;
}

.pf-cookie-btn {
    min-height: 42px;
    padding: 0 16px;
    border: 0;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
}

.pf-cookie-btn--primary {
    background: var(--lp-navy-dark);
    color: #ffffff;
}

@media (max-width: 640px) {
    .pf-cookie-fab {
        left: 16px;
        bottom: 16px;
    }

    .pf-cookie-panel {
        left: 16px;
        right: 16px;
        bottom: 84px;
        width: auto;
    }
}

html.pf-a11y-reduce-motion .pf-cookie-fab,
html.pf-a11y-reduce-motion .pf-cookie-panel {
    transition: none !important;
    animation: none !important;
}

/* =========================================================
   COOKIE FAB — FUNDO POR TEMA
   ========================================================= */

/* LIGHT */
html[data-theme="light"] .pf-cookie-fab {
    background: #ffffff !important;
    color: var(--lp-navy-dark) !important;
}

/* DARK */
html[data-theme="dark"] .pf-cookie-fab {
    background: var(--lp-primary) !important;
    color: var(--lp-primary-foreground) !important;
}

/* =========================
   PIX - layout final
   ========================= */

.pf-page--pix .pf-main {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 32px 16px 48px;
}

.pf-page--pix .pf-pix-card {
    max-width: 560px;
}

.pf-page--pix .pf-pix-logo-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 14px;
    max-width: 100%;
    overflow: hidden;
}

.pf-page--pix .pf-pix-logo {
    display: block;
    width: auto;
    max-width: 260px;
    max-height: 82px;
    height: auto;
    object-fit: contain;
}

.pf-page--pix .pf-pix-method-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 4px auto 10px;
    width: 100%;
}

.pf-page--pix .pf-pix-method-logo {
    display: block;
    width: auto;
    max-width: 82px;
    max-height: 42px;
    height: auto;
    object-fit: contain;
}

.pf-page--pix .pf-pix-title {
    margin: 6px 0 8px;
    text-align: center;
    font-size: 1.65rem;
    font-weight: 700;
    color: #2b2b2b;
}

.pf-page--pix .pf-pix-note {
    margin: 0 auto 18px;
    max-width: 360px;
    text-align: center;
    font-size: 0.95rem;
}

.pf-page--pix .pf-pix-qr-wrap {
    display: flex;
    justify-content: center;
    margin: 14px 0 12px;
}

.pf-page--pix .pf-pix-qr-box {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 292px;
    min-height: 292px;
    padding: 16px;
    background: #ffffff;
    border: none;
    border-radius: 18px;
    box-shadow: none;
    box-sizing: border-box;
}

.pf-page--pix .pf-pix-qr-box img,
.pf-page--pix .pf-pix-qr-box canvas {
    display: block;
    width: 260px;
    height: 260px;
    max-width: 100%;
}

.pf-page--pix .pf-pix-status {
    display: block;
    width: 292px;
    margin: 0 auto 14px;
    padding: 9px 12px;
    border-radius: 999px;
    background: var(--lp-gold-tint);
    color: var(--lp-primary-hover);
    font-weight: 700;
    text-align: center;
    box-sizing: border-box;
}

.pf-page--pix .pf-pix-table {
    width: 292px;
    max-width: 292px;
    margin: 0 auto 16px;
    border-collapse: collapse;
    background: #ffffff;
    box-sizing: border-box;
}

.pf-page--pix .pf-pix-table th,
.pf-page--pix .pf-pix-table td {
    border: 1px solid #dcdcdc;
    padding: 9px 10px;
    font-size: 0.9rem;
    line-height: 1.25;
    background: #ffffff;
    box-sizing: border-box;
}

.pf-page--pix .pf-pix-table th {
    width: 38%;
    text-align: left;
    font-weight: 700;
    color: var(--lp-foreground);
}

.pf-page--pix .pf-pix-table td {
    text-align: left;
    color: var(--lp-foreground);
    word-break: break-word;
}

.pf-page--pix .pf-pix-copy-details {
    width: 292px;
    max-width: 292px;
    margin: 0 auto;
    text-align: left;
    border: 1px solid var(--lp-border);
    border-radius: 12px;
    background: var(--lp-bg);
    overflow: hidden;
    box-sizing: border-box;
}

.pf-page--pix .pf-pix-copy-details summary {
    cursor: pointer;
    list-style: none;
    padding: 12px 14px;
    font-weight: 700;
    color: var(--lp-primary-hover);
    background: var(--lp-gold-tint);
    text-align: center;
}

.pf-page--pix .pf-pix-copy-details summary::-webkit-details-marker {
    display: none;
}

.pf-page--pix .pf-pix-copy-details[open] summary {
    border-bottom: 1px solid var(--lp-border);
}

.pf-page--pix .pf-pix-copy {
    padding: 14px;
}

.pf-page--pix .pf-pix-copy__label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
}

.pf-page--pix .pf-pix-copy__textarea {
    width: 100%;
    min-height: 100px;
    resize: vertical;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    background: #ffffff;
    color: var(--lp-navy-dark);
    font-size: 0.85rem;
    line-height: 1.35;
    box-sizing: border-box;
}

.pf-page--pix .pf-pix-copy__button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 42px;
    margin-top: 12px;
    padding: 0 16px;
    border-radius: 10px;
    background: var(--lp-primary) !important;
    border: 1px solid var(--lp-primary) !important;
    color: var(--lp-primary-foreground) !important;
    font-weight: 700;
    text-decoration: none !important;
}

.pf-page--pix .pf-pix-copy__button:hover,
.pf-page--pix .pf-pix-copy__button:focus,
.pf-page--pix .pf-pix-copy__button:active {
    background: var(--lp-primary-hover) !important;
    border-color: var(--lp-primary-hover) !important;
    color: var(--lp-primary-foreground) !important;
    text-decoration: none !important;
}

.pf-page--pix .pf-pix-warning {
    width: 292px;
    margin: 0 auto 14px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #fff7ed;
    color: #9a3412;
    border: 1px solid #fdba74;
    text-align: center;
    box-sizing: border-box;
}

@media (max-width: 640px) {
    .pf-page--pix .pf-main {
        padding: 20px 10px 36px;
    }

    .pf-page--pix .pf-pix-card {
        max-width: 100%;
    }

    .pf-page--pix .pf-pix-logo {
        max-width: 220px;
        max-height: 72px;
    }

    .pf-page--pix .pf-pix-qr-box,
    .pf-page--pix .pf-pix-status,
    .pf-page--pix .pf-pix-table,
    .pf-page--pix .pf-pix-copy-details,
    .pf-page--pix .pf-pix-warning {
        width: 260px;
        max-width: 260px;
    }

    .pf-page--pix .pf-pix-qr-box {
        min-height: 260px;
        padding: 14px;
    }

    .pf-page--pix .pf-pix-qr-box img,
    .pf-page--pix .pf-pix-qr-box canvas {
        width: 230px;
        height: 230px;
    }
}

.pf-page--pix .pf-pix-qr-box img,
.pf-page--pix .pf-pix-qr-box canvas {
    display: block;
    width: 260px;
    height: 260px;
    max-width: 100%;
}

.pf-page--pix .pf-pix-test-transaction {
    width: 292px;
    max-width: 292px;
    margin: 0 auto 14px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #fff7ed;
    border: 1px solid #fdba74;
    color: #9a3412;
    font-size: 0.82rem;
    line-height: 1.35;
    text-align: left;
    box-sizing: border-box;
}

.pf-page--pix .pf-pix-test-transaction code {
    display: block;
    margin-top: 6px;
    word-break: break-all;
    color: #7c2d12;
}

/* ========================================================================== 
   THEME LAYER — DARK (default) / LIGHT
   - dark: preto + #141820 + dourado
   - light: mantém o visual claro existente
   - os modos de cor A11Y continuam a poder sobrepor o tema
   ========================================================================== */

/* Header + botões Lucide partilhados */
.pf-header {
    align-items: center;
    gap: 8px;
    background: var(--lp-header-bg) !important;
}

.pf-header-tools {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 6px;
    flex: 0 0 auto;
}

.pf-header-icon-btn {
    appearance: none;
    -webkit-appearance: none;
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    padding: 0;
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 1px solid rgba(201, 153, 63, .28);
    background: transparent;
    color: var(--lp-primary);
    box-shadow: none;
    cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease, transform .15s ease;
    -webkit-tap-highlight-color: transparent;
}

.pf-header-icon-btn:hover {
    background: rgba(201, 153, 63, .10);
    border-color: rgba(201, 153, 63, .55);
}

.pf-header-icon-btn:active {
    transform: translateY(1px);
}

.pf-header-icon-btn:focus-visible {
    outline: 2px solid var(--lp-primary) !important;
    outline-offset: 2px !important;
}

.pf-header-icon {
    width: 24px;
    height: 24px;
    display: block;
    pointer-events: none;
}

html[data-theme="dark"] .pf-theme-icon--sun,
html[data-theme="light"] .pf-theme-icon--moon {
    display: block;
}

html[data-theme="dark"] .pf-theme-icon--moon,
html[data-theme="light"] .pf-theme-icon--sun {
    display: none;
}

/* O antigo FAB de acessibilidade deixou de ser usado no header. */
.pf-a11y-header-btn {
    position: static;
}

/* Base dark: só quando um modo de cor A11Y não está a forçar claro/alto contraste. */
html[data-theme="dark"]:not(.pf-a11y-color-light):not(.pf-a11y-color-high) body,
html[data-theme="dark"]:not(.pf-a11y-color-light):not(.pf-a11y-color-high) {
    background: #000 !important;
    color: var(--lp-foreground) !important;
}

html[data-theme="dark"]:not(.pf-a11y-color-light):not(.pf-a11y-color-high) .container {
    background: #141820 !important;
    color: var(--lp-foreground) !important;
    border-color: var(--lp-border) !important;
    box-shadow: 0 14px 38px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(201, 153, 63, .08) !important;
}

html[data-theme="dark"]:not(.pf-a11y-color-light):not(.pf-a11y-color-high) .pf-payinfo,
html[data-theme="dark"]:not(.pf-a11y-color-light):not(.pf-a11y-color-high) .pf-secondary,
html[data-theme="dark"]:not(.pf-a11y-color-light):not(.pf-a11y-color-high) .receipt,
html[data-theme="dark"]:not(.pf-a11y-color-light):not(.pf-a11y-color-high) .mb-receipt,
html[data-theme="dark"]:not(.pf-a11y-color-light):not(.pf-a11y-color-high) .pf-popover,
html[data-theme="dark"]:not(.pf-a11y-color-light):not(.pf-a11y-color-high) #moreMethodsModal .pf-modal__panel,
html[data-theme="dark"]:not(.pf-a11y-color-light):not(.pf-a11y-color-high) .pf-dialog__panel,
html[data-theme="dark"]:not(.pf-a11y-color-light):not(.pf-a11y-color-high) .pf-processing-card,
html[data-theme="dark"]:not(.pf-a11y-color-light):not(.pf-a11y-color-high) .pf-cookie-panel {
    background: #141820 !important;
    color: var(--lp-foreground) !important;
    border-color: var(--lp-border) !important;
}

html[data-theme="dark"]:not(.pf-a11y-color-light):not(.pf-a11y-color-high) .pf-payinfo__head {
    background: var(--lp-payinfo-head-bg) !important;
    color: var(--lp-payinfo-head-fg) !important;
    border-color: rgba(201, 153, 63, .38) !important;
    box-shadow: 0 10px 26px rgba(0, 0, 0, .42), inset 0 1px 0 rgba(201, 153, 63, .08) !important;
}

html[data-theme="dark"]:not(.pf-a11y-color-light):not(.pf-a11y-color-high) .pf-payinfo__body {
    background: #141820 !important;
    color: var(--lp-foreground) !important;
    border-top-color: rgba(201, 153, 63, .22) !important;
}

html[data-theme="dark"]:not(.pf-a11y-color-light):not(.pf-a11y-color-high) h1,
html[data-theme="dark"]:not(.pf-a11y-color-light):not(.pf-a11y-color-high) h2,
html[data-theme="dark"]:not(.pf-a11y-color-light):not(.pf-a11y-color-high) h3,
html[data-theme="dark"]:not(.pf-a11y-color-light):not(.pf-a11y-color-high) .pf-section-title,
html[data-theme="dark"]:not(.pf-a11y-color-light):not(.pf-a11y-color-high) .pf-payinfo__title {
    color: var(--lp-foreground) !important;
}

html[data-theme="dark"]:not(.pf-a11y-color-light):not(.pf-a11y-color-high) .pf-payinfo__head .pf-payinfo__title,
html[data-theme="dark"]:not(.pf-a11y-color-light):not(.pf-a11y-color-high) .pf-payinfo__head .pf-payinfo__sub,
html[data-theme="dark"]:not(.pf-a11y-color-light):not(.pf-a11y-color-high) .pf-payinfo__head .pf-payinfo__amount,
html[data-theme="dark"]:not(.pf-a11y-color-light):not(.pf-a11y-color-high) .pf-payinfo__head .pf-payinfo__chev {
    color: var(--lp-payinfo-head-fg) !important;
}

html[data-theme="dark"]:not(.pf-a11y-color-light):not(.pf-a11y-color-high) label,
html[data-theme="dark"]:not(.pf-a11y-color-light):not(.pf-a11y-color-high) .progress-text,
html[data-theme="dark"]:not(.pf-a11y-color-light):not(.pf-a11y-color-high) .pf-payinfo__body,
html[data-theme="dark"]:not(.pf-a11y-color-light):not(.pf-a11y-color-high) .container_info {
    color: var(--lp-foreground) !important;
}

html[data-theme="dark"]:not(.pf-a11y-color-light):not(.pf-a11y-color-high) .pf-payinfo__sub,
html[data-theme="dark"]:not(.pf-a11y-color-light):not(.pf-a11y-color-high) .pf-a11y-row-sub,
html[data-theme="dark"]:not(.pf-a11y-color-light):not(.pf-a11y-color-high) .pf-cookie-panel__text {
    color: var(--lp-muted-foreground) !important;
}

html[data-theme="dark"]:not(.pf-a11y-color-light):not(.pf-a11y-color-high) .form-group input,
html[data-theme="dark"]:not(.pf-a11y-color-light):not(.pf-a11y-color-high) input[type="text"],
html[data-theme="dark"]:not(.pf-a11y-color-light):not(.pf-a11y-color-high) input[type="email"],
html[data-theme="dark"]:not(.pf-a11y-color-light):not(.pf-a11y-color-high) input[type="tel"],
html[data-theme="dark"]:not(.pf-a11y-color-light):not(.pf-a11y-color-high) input[type="number"],
html[data-theme="dark"]:not(.pf-a11y-color-light):not(.pf-a11y-color-high) select,
html[data-theme="dark"]:not(.pf-a11y-color-light):not(.pf-a11y-color-high) textarea,
html[data-theme="dark"]:not(.pf-a11y-color-light):not(.pf-a11y-color-high) .input-telefone,
html[data-theme="dark"]:not(.pf-a11y-color-light):not(.pf-a11y-color-high) .selec_mobile select {
    background: #090b0f !important;
    color: var(--lp-foreground) !important;
    border-color: rgba(201, 153, 63, .42) !important;
}

html[data-theme="dark"]:not(.pf-a11y-color-light):not(.pf-a11y-color-high) ::placeholder {
    color: #9f967f !important;
    opacity: 1;
}

html[data-theme="dark"]:not(.pf-a11y-color-light):not(.pf-a11y-color-high) .payment-methods .method[data-method],
html[data-theme="dark"]:not(.pf-a11y-color-light):not(.pf-a11y-color-high) #methodsSecondary .method,
html[data-theme="dark"]:not(.pf-a11y-color-light):not(.pf-a11y-color-high) #methodPlusTile.method-plus {
    background: #141820 !important;
    color: var(--lp-foreground) !important;
    border-color: rgba(201, 153, 63, .26) !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .30) !important;
}

html[data-theme="dark"]:not(.pf-a11y-color-light):not(.pf-a11y-color-high) .payment-methods .method[data-method]:hover,
html[data-theme="dark"]:not(.pf-a11y-color-light):not(.pf-a11y-color-high) .method.enabled:hover {
    border-color: rgba(201, 153, 63, .72) !important;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .42), 0 0 0 1px rgba(201, 153, 63, .18) !important;
}

html[data-theme="dark"]:not(.pf-a11y-color-light):not(.pf-a11y-color-high) .payment-methods .method[data-method].is-selected,
html[data-theme="dark"]:not(.pf-a11y-color-light):not(.pf-a11y-color-high) .method.selected {
    background: linear-gradient(135deg, #191b20, #211b0f) !important;
    border-color: var(--lp-primary) !important;
    box-shadow: 0 10px 26px rgba(0, 0, 0, .42), 0 0 0 2px rgba(201, 153, 63, .20) !important;
}

/* Dialog de acessibilidade acompanha o tema base. */
html[data-theme="dark"]:not(.pf-a11y-color-light):not(.pf-a11y-color-high) .pf-a11y-card {
    background: #141820 !important;
    color: var(--lp-foreground) !important;
    border-color: rgba(201, 153, 63, .34) !important;
    box-shadow: 0 22px 60px rgba(0, 0, 0, .65) !important;
}

html[data-theme="dark"]:not(.pf-a11y-color-light):not(.pf-a11y-color-high) .pf-a11y-close,
html[data-theme="dark"]:not(.pf-a11y-color-light):not(.pf-a11y-color-high) .pf-a11y-btn {
    background: #0b0d11 !important;
    color: var(--lp-foreground) !important;
    border-color: rgba(201, 153, 63, .30) !important;
}

html[data-theme="dark"]:not(.pf-a11y-color-light):not(.pf-a11y-color-high) .pf-a11y-btn[aria-pressed="true"],
html[data-theme="dark"]:not(.pf-a11y-color-light):not(.pf-a11y-color-high) .pf-a11y-btn-primary {
    background: var(--lp-primary) !important;
    color: var(--lp-primary-foreground) !important;
    border-color: var(--lp-primary) !important;
}

html[data-theme="dark"]:not(.pf-a11y-color-light):not(.pf-a11y-color-high) .pf-a11y-row {
    border-color: rgba(201, 153, 63, .18) !important;
}

html[data-theme="dark"]:not(.pf-a11y-color-light):not(.pf-a11y-color-high) .pf-a11y-switch input:not(:checked)+span {
    background: #090b0f;
    border-color: rgba(201, 153, 63, .35);
}

/* Modais/painéis internos em dark. */
html[data-theme="dark"]:not(.pf-a11y-color-light):not(.pf-a11y-color-high) #moreMethodsModal .pf-modal__head,
html[data-theme="dark"]:not(.pf-a11y-color-light):not(.pf-a11y-color-high) #moreMethodsModal #methodsModal,
html[data-theme="dark"]:not(.pf-a11y-color-light):not(.pf-a11y-color-high) .pf-popover__head,
html[data-theme="dark"]:not(.pf-a11y-color-light):not(.pf-a11y-color-high) .pf-cookie-panel__header,
html[data-theme="dark"]:not(.pf-a11y-color-light):not(.pf-a11y-color-high) .pf-cookie-panel__body,
html[data-theme="dark"]:not(.pf-a11y-color-light):not(.pf-a11y-color-high) .pf-cookie-panel__actions {
    background: #141820 !important;
    color: var(--lp-foreground) !important;
    border-color: rgba(201, 153, 63, .18) !important;
}

html[data-theme="dark"]:not(.pf-a11y-color-light):not(.pf-a11y-color-high) #moreMethodsModal .pf-modal__head h3,
html[data-theme="dark"]:not(.pf-a11y-color-light):not(.pf-a11y-color-high) #moreMethodsModal .pf-modal__close,
html[data-theme="dark"]:not(.pf-a11y-color-light):not(.pf-a11y-color-high) .pf-popover__close,
html[data-theme="dark"]:not(.pf-a11y-color-light):not(.pf-a11y-color-high) .pf-cookie-panel__close {
    color: var(--lp-primary) !important;
}

/* Tabelas/recibos no tema escuro. */
html[data-theme="dark"]:not(.pf-a11y-color-light):not(.pf-a11y-color-high) .receipt__table th,
html[data-theme="dark"]:not(.pf-a11y-color-light):not(.pf-a11y-color-high) .receipt__table td,
html[data-theme="dark"]:not(.pf-a11y-color-light):not(.pf-a11y-color-high) .mb-receipt__table th,
html[data-theme="dark"]:not(.pf-a11y-color-light):not(.pf-a11y-color-high) .mb-receipt__table td {
    color: var(--lp-foreground) !important;
    border-color: rgba(201, 153, 63, .18) !important;
}

html[data-theme="dark"]:not(.pf-a11y-color-light):not(.pf-a11y-color-high) .receipt__table th,
html[data-theme="dark"]:not(.pf-a11y-color-light):not(.pf-a11y-color-high) .mb-receipt__table th {
    color: var(--lp-primary) !important;
}

/* Footer/header usam a superfície do tema; no dark ficam #141820. */
.footer,
header nav ul,
header nav .lang-switch {
    background-color: var(--lp-header-bg) !important;
    background: var(--lp-header-bg) !important;
}

html[data-theme="dark"] .footer,
html[data-theme="dark"] .footer a {
    color: #ffffff !important;
}

/* Em dark, navegação e footer usam a mesma superfície #141820 do formulário. */
html[data-theme="dark"] .pf-header,
html[data-theme="dark"] body.pf-final-page .pf-header,
html[data-theme="dark"] header nav ul,
html[data-theme="dark"] header nav .lang-switch,
html[data-theme="dark"] .footer {
    background: var(--lp-header-bg) !important;
    background-color: var(--lp-header-bg) !important;
}



/* ========================================================================== 
   RAIO VISUAL COERENTE
   O raio de 10px dos botões Tema/Acessibilidade é o raio dos controlos
   interactivos rectangulares. Cards/painéis mantêm o seu raio próprio.
   ========================================================================== */
.pf-header-icon-btn,
.lang-selected,
.form-group input,
.input-telefone,
.selec_mobile select,
#pfPayInfo .input-amount,
select,
textarea,
.pf-btn,
.pf-open-cancel,
#payButton,
body.pf-final-page #tentarNovamenteBtn,
#paymentForm button,
#paymentForm input[type="submit"],
.button-container button,
.pf-a11y-btn,
.pf-a11y-close,
.pf-cookie-panel__close,
.pf-cookie-btn,
.copy-button,
.save-button,
.pf-btnn,
.pf-dialog button:not(.pf-dialog__close),
.pf-modal button:not(.pf-dialog__close):not(.pf-modal__close) {
    border-radius: var(--lp-radius-control, 10px) !important;
}

/* Tiles clicáveis também seguem o mesmo raio de controlo. */
.payment-methods .method[data-method],
#methodsSecondary .method,
#methodsSecondary.payment-methods--3cols>.method,
#methodPlusTile.method-plus,
#methodsSecondary #methodPlusTile.method-plus:not(.pf-hidden) {
    border-radius: var(--lp-radius-control, 10px) !important;
}

/* Light mantém o comportamento visual existente, mas os botões novos ficam coerentes. */
html[data-theme="light"] .pf-header-icon-btn {
    color: #fff;
    border-color: rgba(255, 255, 255, .20);
}

html[data-theme="light"] .pf-header-icon-btn:hover {
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .34);
}

@media (max-width: 520px) {
    .pf-header-tools {
        gap: 4px;
        margin-left: 4px;
    }

    .pf-header-icon-btn {
        width: 38px;
        height: 38px;
        min-width: 38px;
        min-height: 38px;
        border-radius: var(--lp-radius-control, 10px);
    }

    .pf-header-icon {
        width: 22px;
        height: 22px;
    }
}


/* =========================================================
   TEMA DARK — PATCH FINAL
   - logos por tema
   - métodos secundários
   - textos
   - tile "Ver mais"
   ========================================================= */


/* =========================================================
   1. LOGÓTIPOS POR TEMA
   Dark é o tema por defeito
   ========================================================= */

.pf-theme-logo--light {
    display: none !important;
}

.pf-theme-logo--dark {
    display: block !important;
}

html[data-theme="light"] .pf-theme-logo--light {
    display: block !important;
}

html[data-theme="light"] .pf-theme-logo--dark {
    display: none !important;
}


/* =========================================================
   2. PF SECONDARY — DARK
   ========================================================= */

html[data-theme="dark"] .pf-secondary {
    background: var(--lp-surface) !important;
    color: var(--lp-foreground) !important;

    border: 1px solid rgba(201, 153, 63, .20) !important;
    border-radius: var(--lp-radius-card, 16px) !important;

    box-shadow: none !important;
}


/* Quando está aberto */
html[data-theme="dark"] .pf-secondary.is-open {
    background: var(--lp-surface) !important;
    color: var(--lp-foreground) !important;

    border-color: rgba(201, 153, 63, .30) !important;

    box-shadow:
        0 10px 26px rgba(0, 0, 0, .20) !important;
}


/* =========================================================
   3. BOTÃO "OUTROS MÉTODOS"
   ========================================================= */

html[data-theme="dark"] #paymentForm #toggleSecondary,
html[data-theme="dark"] #paymentForm #toggleSecondary.pf-secondary-toggle {
    background: transparent !important;

    color: var(--lp-foreground) !important;

    border: 0 !important;
    border-radius: var(--lp-radius-control, 10px) !important;

    box-shadow: none !important;
}


/* Hover */
html[data-theme="dark"] #paymentForm #toggleSecondary:hover,
html[data-theme="dark"] #paymentForm #toggleSecondary.pf-secondary-toggle:hover {
    background: rgba(255, 255, 255, .05) !important;
    color: #ffffff !important;
}


/* Aberto / active */
html[data-theme="dark"] .pf-secondary.is-open #toggleSecondary,

html[data-theme="dark"] #paymentForm #toggleSecondary:active {
    background: rgba(255, 255, 255, .07) !important;
    color: #ffffff !important;
}


/* Focus */
html[data-theme="dark"] #paymentForm #toggleSecondary:focus-visible {
    outline: 2px solid rgba(201, 153, 63, .55) !important;
    outline-offset: 3px !important;

    border-radius: var(--lp-radius-control, 10px) !important;
}


/* Seta */
html[data-theme="dark"] #paymentForm #toggleSecondary.pf-secondary-toggle::after {
    color: var(--lp-primary) !important;
}


/* =========================================================
   4. MÉTODOS SECUNDÁRIOS — TEXTO
   ========================================================= */

html[data-theme="dark"] #methodsSecondary .method,
html[data-theme="dark"] #methodsSecondary .payment-method,
html[data-theme="dark"] #methodsSecondary .payment-method span,
html[data-theme="dark"] #methodsSecondary .method span,
html[data-theme="dark"] #methodsSecondary .method .label {
    color: var(--lp-foreground) !important;
}


/* Tiles dos métodos */
html[data-theme="dark"] #methodsSecondary .method[data-method] {
    background: var(--lp-surface-2) !important;

    color: var(--lp-foreground) !important;

    border-color: rgba(255, 255, 255, .10) !important;

    border-radius: var(--lp-radius-control, 10px) !important;

    box-shadow: none !important;
}


/* Hover */
html[data-theme="dark"] #methodsSecondary .method[data-method]:hover {
    background: #1a1f29 !important;

    border-color: rgba(201, 153, 63, .50) !important;

    box-shadow:
        0 8px 20px rgba(0, 0, 0, .25) !important;
}


/* Selecionado */
html[data-theme="dark"] #methodsSecondary .method[data-method].selected,

html[data-theme="dark"] #methodsSecondary .method[data-method].is-selected {
    background: #1a1f29 !important;

    border-color: var(--lp-primary) !important;

    box-shadow:
        0 0 0 2px rgba(201, 153, 63, .15),
        0 10px 24px rgba(0, 0, 0, .25) !important;
}


/* =========================================================
   5. TILE "VER MAIS"
   ========================================================= */

html[data-theme="dark"] #methodsSecondary #methodPlusTile.method-plus:not(.pf-hidden) {
    background: var(--lp-surface-2) !important;

    color: #ffffff !important;

    border:
        1px dashed rgba(201, 153, 63, .45) !important;

    border-radius:
        var(--lp-radius-control, 10px) !important;

    box-shadow: none !important;
}


/* + e texto */
html[data-theme="dark"] #methodsSecondary #methodPlusTile .plus,

html[data-theme="dark"] #methodsSecondary #methodPlusTile .label {
    color: #ffffff !important;
}


/* Hover do Ver mais */
html[data-theme="dark"] #methodsSecondary #methodPlusTile:hover {
    background: #1a1f29 !important;

    border-color: var(--lp-primary) !important;

    box-shadow:
        0 8px 20px rgba(0, 0, 0, .25) !important;
}


/* =========================================================
   6. MÉTODOS DESATIVADOS
   ========================================================= */

html[data-theme="dark"] #methodsSecondary .method.disabled,

html[data-theme="dark"] #methodsSecondary .method.unavailable-amount {
    background: #101319 !important;

    color: rgba(255, 255, 255, .65) !important;

    border-color: rgba(255, 255, 255, .08) !important;

    opacity: .70 !important;
}


/* Texto dos desativados */
html[data-theme="dark"] #methodsSecondary .method.disabled span,

html[data-theme="dark"] #methodsSecondary .method.unavailable-amount span {
    color: rgba(255, 255, 255, .65) !important;
}

/* =========================================================
   DARK — MÉTODOS INDISPONÍVEIS
   Secondary + modal "Mostrar mais métodos"
   ========================================================= */

html[data-theme="dark"]:not(.pf-a11y-color-light):not(.pf-a11y-color-high) #methodsSecondary .method.disabled,

html[data-theme="dark"]:not(.pf-a11y-color-light):not(.pf-a11y-color-high) #methodsSecondary .method.unavailable-amount,

html[data-theme="dark"]:not(.pf-a11y-color-light):not(.pf-a11y-color-high) #moreMethodsModal .method.disabled,

html[data-theme="dark"]:not(.pf-a11y-color-light):not(.pf-a11y-color-high) #moreMethodsModal .method.unavailable-amount {
    background: #101319 !important;
    border-color: rgba(255, 255, 255, .10) !important;

    color: rgba(255, 255, 255, .72) !important;

    opacity: .78 !important;
}


/* Texto dentro dos métodos indisponíveis */
html[data-theme="dark"]:not(.pf-a11y-color-light):not(.pf-a11y-color-high) #methodsSecondary .method.disabled span,

html[data-theme="dark"]:not(.pf-a11y-color-light):not(.pf-a11y-color-high) #methodsSecondary .method.unavailable-amount span,

html[data-theme="dark"]:not(.pf-a11y-color-light):not(.pf-a11y-color-high) #moreMethodsModal .method.disabled span,

html[data-theme="dark"]:not(.pf-a11y-color-light):not(.pf-a11y-color-high) #moreMethodsModal .method.unavailable-amount span {
    color: rgba(255, 255, 255, .72) !important;
}


/* Labels também ficam legíveis */
html[data-theme="dark"]:not(.pf-a11y-color-light):not(.pf-a11y-color-high) #moreMethodsModal .method.disabled .payment-method,

html[data-theme="dark"]:not(.pf-a11y-color-light):not(.pf-a11y-color-high) #moreMethodsModal .method.unavailable-amount .payment-method {
    color: rgba(255, 255, 255, .72) !important;
}


/* Aviso de indisponibilidade / limites */
html[data-theme="dark"]:not(.pf-a11y-color-light):not(.pf-a11y-color-high) #moreMethodsModal .pf-method-notice,

html[data-theme="dark"]:not(.pf-a11y-color-light):not(.pf-a11y-color-high) #methodsSecondary .pf-method-notice {
    background: rgba(201, 153, 63, .10) !important;
    border-color: rgba(201, 153, 63, .35) !important;
    color: #e6cf99 !important;
}

/* =========================================================
   DARK — RECIBO / DADOS MULTIBANCO
   ========================================================= */

html[data-theme="dark"]:not(.pf-a11y-color-light):not(.pf-a11y-color-high) .mb-receipt,

html[data-theme="dark"]:not(.pf-a11y-color-light):not(.pf-a11y-color-high) .receipt {
    background: #141820 !important;
    color: #ffffff !important;

    border: 1px solid rgba(255, 255, 255, .10) !important;

    box-shadow:
        0 14px 38px rgba(0, 0, 0, .35) !important;

    /*
     * Impede que as cores antigas/personalizadas
     * mantenham o botão azul no dark.
     */
    --btn-primary: var(--lp-primary) !important;
    --btn-primary-dark: var(--lp-primary-hover) !important;
}


/* =========================================================
   TABELA
   ========================================================= */

html[data-theme="dark"]:not(.pf-a11y-color-light):not(.pf-a11y-color-high) .mb-receipt__table,

html[data-theme="dark"]:not(.pf-a11y-color-light):not(.pf-a11y-color-high) .receipt__table {
    color: #ffffff !important;
}


/* Células */
html[data-theme="dark"]:not(.pf-a11y-color-light):not(.pf-a11y-color-high) .mb-receipt__table th,

html[data-theme="dark"]:not(.pf-a11y-color-light):not(.pf-a11y-color-high) .mb-receipt__table td,

html[data-theme="dark"]:not(.pf-a11y-color-light):not(.pf-a11y-color-high) .receipt__table th,

html[data-theme="dark"]:not(.pf-a11y-color-light):not(.pf-a11y-color-high) .receipt__table td {
    background: transparent !important;

    color: #ffffff !important;

    border-color: rgba(255, 255, 255, .16) !important;
}


/* Coluna esquerda / títulos */
html[data-theme="dark"]:not(.pf-a11y-color-light):not(.pf-a11y-color-high) .mb-receipt__table th,

html[data-theme="dark"]:not(.pf-a11y-color-light):not(.pf-a11y-color-high) .receipt__table th {
    color: #ffffff !important;
    font-weight: 700;
}


/* =========================================================
   TEXTO / NOTA
   ========================================================= */

html[data-theme="dark"]:not(.pf-a11y-color-light):not(.pf-a11y-color-high) .mb-receipt p,

html[data-theme="dark"]:not(.pf-a11y-color-light):not(.pf-a11y-color-high) .receipt p,

html[data-theme="dark"]:not(.pf-a11y-color-light):not(.pf-a11y-color-high) .receipt__note {
    color: var(--lp-muted-foreground) !important;
}


/* =========================================================
   BOTÃO COPIAR
   ========================================================= */

html[data-theme="dark"]:not(.pf-a11y-color-light):not(.pf-a11y-color-high) .copy-button {
    color: #ffffff !important;
    background: transparent !important;
}

html[data-theme="dark"]:not(.pf-a11y-color-light):not(.pf-a11y-color-high) .copy-button:hover {
    background: rgba(201, 153, 63, .10) !important;
    color: var(--lp-primary) !important;
}


/* =========================================================
   BOTÃO GUARDAR
   ========================================================= */

html[data-theme="dark"]:not(.pf-a11y-color-light):not(.pf-a11y-color-high) .save-button {
    background: var(--lp-primary) !important;
    color: var(--lp-primary-foreground) !important;

    border-radius: var(--lp-radius-control, 10px) !important;

    box-shadow: none !important;
}

html[data-theme="dark"]:not(.pf-a11y-color-light):not(.pf-a11y-color-high) .save-button:hover {
    background: var(--lp-primary-hover) !important;

    box-shadow:
        0 8px 20px rgba(0, 0, 0, .25) !important;
}

/* =========================================================
   ALERTAS / ERROS — NOVO TEMA
   ========================================================= */

/* Base comum */
.alert,
#customAlert.alert,
.alerta-erro {
    border-radius: var(--lp-radius-control, 10px) !important;
}


/* =========================================================
   DARK
   Fundo preto/cinza + texto branco + sinalização dourada
   ========================================================= */

html[data-theme="dark"] .alert,
html[data-theme="dark"] #customAlert.alert,
html[data-theme="dark"] .alerta-erro {
    background: #141820 !important;
    color: #ffffff !important;
    border: 1px solid rgba(201, 153, 63, .55) !important;

    box-shadow:
        0 16px 40px rgba(0, 0, 0, .40) !important;

    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}


/* Texto do alerta */
html[data-theme="dark"] #customAlert #alertMessage,

html[data-theme="dark"] .alert #alertMessage,

html[data-theme="dark"] .alerta-erro,
html[data-theme="dark"] .alerta-erro * {
    color: #ffffff !important;
}


/* Botão fechar */
html[data-theme="dark"] #customAlert .closebtn,

html[data-theme="dark"] .alert .closebtn,

html[data-theme="dark"] .alerta-erro .closebtn {
    color: #ffffff !important;
}


/* Hover do X */
html[data-theme="dark"] #customAlert .closebtn:hover,
html[data-theme="dark"] .alert .closebtn:hover {
    color: var(--lp-primary) !important;
}


/* =========================================================
   LIGHT
   Branco/quente + texto escuro + dourado
   ========================================================= */

html[data-theme="light"] .alert,

html[data-theme="light"] #customAlert.alert,

html[data-theme="light"] .alerta-erro {
    background: #ffffff !important;

    color: #1b1c1c !important;

    border: 1px solid rgba(201, 153, 63, .45) !important;

    box-shadow:
        0 14px 34px rgba(0, 0, 0, .12) !important;

    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}


/* Texto */
html[data-theme="light"] #customAlert #alertMessage,

html[data-theme="light"] .alert #alertMessage,

html[data-theme="light"] .alerta-erro,
html[data-theme="light"] .alerta-erro * {
    color: #1b1c1c !important;
}


/* Botão fechar */
html[data-theme="light"] #customAlert .closebtn,

html[data-theme="light"] .alert .closebtn,

html[data-theme="light"] .alerta-erro .closebtn {
    color: #1b1c1c !important;
}


/* =========================================================
   ALERTA INFO
   ========================================================= */

html[data-theme="dark"] #customAlert.pf-alert-info {
    background: #141820 !important;
    color: #ffffff !important;
    border-color: rgba(201, 153, 63, .55) !important;
}

html[data-theme="light"] #customAlert.pf-alert-info {
    background: #ffffff !important;
    color: #1b1c1c !important;
    border-color: rgba(201, 153, 63, .45) !important;
}

html[data-theme="dark"] .alerta-sucesso {
    background: #141820 !important;
    color: #ffffff !important;

    border: 1px solid rgba(47, 143, 62, .55) !important;

    box-shadow:
        inset 4px 0 0 var(--lp-success) !important;
}

html[data-theme="light"] .alerta-sucesso {
    background: #ffffff !important;
    color: #1b1c1c !important;

    border: 1px solid rgba(47, 143, 62, .35) !important;

    box-shadow:
        inset 4px 0 0 var(--lp-success) !important;
}

/* =========================================================
   CANCEL CONFIRM — DARK
   ========================================================= */

html[data-theme="dark"] #cancelConfirm .pf-dialog__panel {
    background: #141820 !important;
    color: #ffffff !important;

    border: 1px solid rgba(201, 153, 63, .55) !important;

    box-shadow:
        0 18px 48px rgba(0, 0, 0, .45) !important;

    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}


/* Título */
html[data-theme="dark"] #cancelConfirm .pf-dialog__title,
html[data-theme="dark"] #cancelConfirm #cancelConfirmTitle {
    color: #ffffff !important;
}


/* X fechar */
html[data-theme="dark"] #cancelConfirm .pf-dialog__close {
    color: #ffffff !important;
    background: transparent !important;
}

html[data-theme="dark"] #cancelConfirm .pf-dialog__close:hover {
    color: var(--lp-primary) !important;
    background: rgba(255, 255, 255, .06) !important;
}


/* Botão NÃO */
html[data-theme="dark"] #cancelConfirm #btnCancelNo,
html[data-theme="dark"] #cancelConfirm .pf-btn--ghost {
    background: rgba(255, 255, 255, .10) !important;

    color: #ffffff !important;

    border: 1px solid rgba(255, 255, 255, .22) !important;

    border-radius: var(--lp-radius-control, 10px) !important;

    box-shadow: none !important;
}

html[data-theme="dark"] #cancelConfirm #btnCancelNo:hover {
    background: rgba(255, 255, 255, .16) !important;
    color: #ffffff !important;
}


/* Botão SIM, CANCELAR */
html[data-theme="dark"] #cancelConfirm #btnCancelYes,
html[data-theme="dark"] #cancelConfirm .pf-btn--primary {
    background: var(--lp-primary) !important;

    color: var(--lp-primary-foreground) !important;

    border: 1px solid var(--lp-primary) !important;

    border-radius: var(--lp-radius-control, 10px) !important;

    box-shadow: none !important;
}

html[data-theme="dark"] #cancelConfirm #btnCancelYes:hover {
    background: var(--lp-primary-hover) !important;
    border-color: var(--lp-primary-hover) !important;
}


/* Overlay */
html[data-theme="dark"] #cancelConfirm .pf-dialog__overlay {
    background: rgba(0, 0, 0, .72) !important;

    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

/* =========================================================
   CANCEL CONFIRM — LIGHT
   ========================================================= */

html[data-theme="light"] #cancelConfirm .pf-dialog__panel {
    background: #ffffff !important;
    color: #1b1c1c !important;

    border: 1px solid rgba(201, 153, 63, .38) !important;

    box-shadow:
        0 18px 48px rgba(0, 0, 0, .16) !important;

    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}


html[data-theme="light"] #cancelConfirm .pf-dialog__title,
html[data-theme="light"] #cancelConfirm #cancelConfirmTitle {
    color: #1b1c1c !important;
}


html[data-theme="light"] #cancelConfirm .pf-dialog__close {
    color: #1b1c1c !important;
    background: transparent !important;
}


html[data-theme="light"] #cancelConfirm #btnCancelNo,
html[data-theme="light"] #cancelConfirm .pf-btn--ghost {
    background: #f3f4f6 !important;

    color: #1b1c1c !important;

    border: 1px solid #d7dbe0 !important;

    border-radius: var(--lp-radius-control, 10px) !important;
}


html[data-theme="light"] #cancelConfirm #btnCancelYes,
html[data-theme="light"] #cancelConfirm .pf-btn--primary {
    background: var(--lp-primary) !important;

    color: var(--lp-primary-foreground) !important;

    border-color: var(--lp-primary) !important;

    border-radius: var(--lp-radius-control, 10px) !important;
}

/* =========================================================
   FOOTER — CORES CONSISTENTES
   O footer é uma superfície escura tanto em light como dark.
   ========================================================= */

html[data-theme="dark"] .footer,
html[data-theme="light"] .footer {
    color: #ffffff !important;
}

html[data-theme="dark"] .footer *,
html[data-theme="light"] .footer * {
    color: inherit;
}

html[data-theme="dark"] .footer a,
html[data-theme="light"] .footer a {
    color: #ffffff !important;
}

html[data-theme="dark"] .footer a:hover,
html[data-theme="light"] .footer a:hover {
    color: var(--lp-primary) !important;
}

/* =========================================================
   PROCESSING / PRÉMIO 5 ESTRELAS — DARK
   ========================================================= */

html[data-theme="dark"]:not(.pf-a11y-color-light):not(.pf-a11y-color-high) .pf-processing-card {
    background: #141820 !important;
    color: #ffffff !important;

    border: 1px solid rgba(201, 153, 63, .35) !important;

    box-shadow:
        0 22px 60px rgba(0, 0, 0, .50) !important;
}


/* "Sabia que a Lusopay ganhou..." */
html[data-theme="dark"]:not(.pf-a11y-color-light):not(.pf-a11y-color-high) .pf-processing-info {
    color: #ffffff !important;
}


/* "A processar..." */
html[data-theme="dark"]:not(.pf-a11y-color-light):not(.pf-a11y-color-high) .pf-processing-title {
    color: #ffffff !important;
}


/* "Não feche esta página..." */
html[data-theme="dark"]:not(.pf-a11y-color-light):not(.pf-a11y-color-high) .pf-processing-subtitle {
    color: var(--lp-muted-foreground) !important;
}


/* Caso as traduções introduzam tags HTML como <strong>, <span>, etc. */
html[data-theme="dark"]:not(.pf-a11y-color-light):not(.pf-a11y-color-high) .pf-processing-info *,

html[data-theme="dark"]:not(.pf-a11y-color-light):not(.pf-a11y-color-high) .pf-processing-title *,

html[data-theme="dark"]:not(.pf-a11y-color-light):not(.pf-a11y-color-high) .pf-processing-subtitle * {
    color: inherit !important;
}

/* =========================================================
   PROCESSING / PRÉMIO 5 ESTRELAS — LIGHT
   ========================================================= */

html[data-theme="light"] .pf-processing-card {
    background: #ffffff !important;
    color: #1b1c1c !important;

    border: 1px solid rgba(201, 153, 63, .25) !important;

    box-shadow:
        0 18px 46px rgba(0, 0, 0, .14) !important;
}

html[data-theme="light"] .pf-processing-info,
html[data-theme="light"] .pf-processing-title {
    color: #1b1c1c !important;
}

html[data-theme="light"] .pf-processing-subtitle {
    color: #414750 !important;
}

html[data-theme="light"] .pf-processing-info *,
html[data-theme="light"] .pf-processing-title *,
html[data-theme="light"] .pf-processing-subtitle * {
    color: inherit !important;
}

/* =========================================================
   MB WAY — INPUT TELEFONE / PAÍS
   ========================================================= */


/* ---------- DARK ---------- */

html[data-theme="dark"]:not(.pf-a11y-color-light):not(.pf-a11y-color-high) .method[data-method="mb_way"] #mbwayInputExtra input[type="tel"],

html[data-theme="dark"]:not(.pf-a11y-color-light):not(.pf-a11y-color-high) .method[data-method="mb_way"] #mbwayInputExtra .input-telefone,

html[data-theme="dark"]:not(.pf-a11y-color-light):not(.pf-a11y-color-high) .method[data-method="mb_way"] #mbwayInputExtra select {

    background: var(--lp-input-bg, #090b0f) !important;

    color: #ffffff !important;

    border: 1px solid rgba(255, 255, 255, .16) !important;

    border-radius: var(--lp-radius-control, 10px) !important;

    box-shadow: none !important;

    caret-color: var(--lp-primary);

    transition:
        border-color .15s ease,
        box-shadow .15s ease,
        background-color .15s ease;
}


/* Placeholder */
html[data-theme="dark"] .method[data-method="mb_way"] #mbwayInputExtra input[type="tel"]::placeholder,

html[data-theme="dark"] .method[data-method="mb_way"] #mbwayInputExtra .input-telefone::placeholder {

    color: #8f96a3 !important;
    opacity: 1 !important;
}


/* Focus normal — substitui aquele contorno branco/preto grosso */
html[data-theme="dark"]:not(.pf-a11y-focus) .method[data-method="mb_way"] #mbwayInputExtra input[type="tel"]:focus,

html[data-theme="dark"]:not(.pf-a11y-focus) .method[data-method="mb_way"] #mbwayInputExtra .input-telefone:focus,

html[data-theme="dark"]:not(.pf-a11y-focus) .method[data-method="mb_way"] #mbwayInputExtra select:focus {

    background: var(--lp-input-bg, #090b0f) !important;

    color: #ffffff !important;

    border-color: var(--lp-primary) !important;

    outline: none !important;

    box-shadow:
        0 0 0 3px rgba(201, 153, 63, .22) !important;
}


/* Focus por teclado */
html[data-theme="dark"]:not(.pf-a11y-focus) .method[data-method="mb_way"] #mbwayInputExtra input[type="tel"]:focus-visible,

html[data-theme="dark"]:not(.pf-a11y-focus) .method[data-method="mb_way"] #mbwayInputExtra select:focus-visible {

    outline: 2px solid var(--lp-primary) !important;
    outline-offset: 2px !important;

    box-shadow:
        0 0 0 3px rgba(201, 153, 63, .16) !important;
}


/* ---------- LIGHT ---------- */

html[data-theme="light"] .method[data-method="mb_way"] #mbwayInputExtra input[type="tel"],

html[data-theme="light"] .method[data-method="mb_way"] #mbwayInputExtra .input-telefone,

html[data-theme="light"] .method[data-method="mb_way"] #mbwayInputExtra select {

    background: #ffffff !important;

    color: #1b1c1c !important;

    border: 1px solid #d7dbe0 !important;

    border-radius: var(--lp-radius-control, 10px) !important;

    box-shadow: none !important;

    caret-color: var(--lp-primary);
}


/* Placeholder light */
html[data-theme="light"] .method[data-method="mb_way"] #mbwayInputExtra input[type="tel"]::placeholder {

    color: #7a818b !important;
    opacity: 1 !important;
}


/* Focus light */
html[data-theme="light"]:not(.pf-a11y-focus) .method[data-method="mb_way"] #mbwayInputExtra input[type="tel"]:focus,

html[data-theme="light"]:not(.pf-a11y-focus) .method[data-method="mb_way"] #mbwayInputExtra select:focus {

    background: #ffffff !important;

    color: #1b1c1c !important;

    border-color: var(--lp-primary) !important;

    outline: none !important;

    box-shadow:
        0 0 0 3px rgba(201, 153, 63, .18) !important;
}

/* =========================================================
   PIX — CPF / CNPJ
   Mesmo estilo visual do input MB WAY
   ========================================================= */

/* Estrutura do bloco */
.method[data-method="pix"] #pixInputExtra {
    width: 100% !important;
    max-width: 520px !important;

    margin: 12px auto 0 !important;

    flex-direction: column !important;
    align-items: stretch !important;

    text-align: left !important;
    box-sizing: border-box !important;
}


/* Label */
.method[data-method="pix"] #pixInputExtra .pix-document-label {
    display: block !important;
    width: 100% !important;

    margin: 0 0 8px !important;

    text-align: center !important;

    color: inherit !important;
}

.method[data-method="pix"] #pixInputExtra .pix-document-label strong {
    display: block !important;

    text-align: center !important;

    color: inherit !important;

    font-size: 15px;
    font-weight: 700;
}


/* =========================================================
   INPUT — BASE
   ========================================================= */

.method[data-method="pix"] #pix_document {
    display: block !important;

    width: 100% !important;
    min-width: 0 !important;

    box-sizing: border-box !important;

    padding: 12px 14px !important;

    font-size: 15px !important;
    line-height: 1.4 !important;

    border-radius: var(--lp-radius-control, 10px) !important;

    margin: 0 !important;

    transition:
        border-color .15s ease,
        box-shadow .15s ease,
        background-color .15s ease !important;
}


/* =========================================================
   DARK
   ========================================================= */

html[data-theme="dark"]:not(.pf-a11y-color-light):not(.pf-a11y-color-high) .method[data-method="pix"] #pix_document {

    background: var(--lp-input-bg, #090b0f) !important;

    color: #ffffff !important;

    border: 1px solid rgba(255, 255, 255, .16) !important;

    box-shadow: none !important;

    caret-color: var(--lp-primary);
}


/* Placeholder */
html[data-theme="dark"] .method[data-method="pix"] #pix_document::placeholder {

    color: #8f96a3 !important;
    opacity: 1 !important;
}


/* Focus */
html[data-theme="dark"]:not(.pf-a11y-focus) .method[data-method="pix"] #pix_document:focus {

    background: var(--lp-input-bg, #090b0f) !important;

    color: #ffffff !important;

    border-color: var(--lp-primary) !important;

    outline: none !important;

    box-shadow:
        0 0 0 3px rgba(201, 153, 63, .22) !important;
}


/* Focus teclado */
html[data-theme="dark"]:not(.pf-a11y-focus) .method[data-method="pix"] #pix_document:focus-visible {

    outline: 2px solid var(--lp-primary) !important;
    outline-offset: 2px !important;

    box-shadow:
        0 0 0 3px rgba(201, 153, 63, .16) !important;
}


/* Texto de ajuda */
html[data-theme="dark"] .method[data-method="pix"] #pixDocumentHelp {

    display: block !important;

    width: 100% !important;

    margin: 7px 0 0 !important;

    color: var(--lp-muted-foreground, #c7cbd1) !important;

    font-size: 13px !important;
    line-height: 1.4 !important;

    text-align: left !important;
}


/* =========================================================
   LIGHT
   ========================================================= */

html[data-theme="light"] .method[data-method="pix"] #pix_document {

    background: #ffffff !important;

    color: #1b1c1c !important;

    border: 1px solid #d7dbe0 !important;

    box-shadow: none !important;

    caret-color: var(--lp-primary);
}


html[data-theme="light"] .method[data-method="pix"] #pix_document::placeholder {

    color: #7a818b !important;
    opacity: 1 !important;
}


html[data-theme="light"]:not(.pf-a11y-focus) .method[data-method="pix"] #pix_document:focus {

    background: #ffffff !important;

    color: #1b1c1c !important;

    border-color: var(--lp-primary) !important;

    outline: none !important;

    box-shadow:
        0 0 0 3px rgba(201, 153, 63, .18) !important;
}


html[data-theme="light"] .method[data-method="pix"] #pixDocumentHelp {

    display: block !important;

    width: 100% !important;

    margin: 7px 0 0 !important;

    color: #5f6670 !important;

    font-size: 13px !important;
    line-height: 1.4 !important;

    text-align: left !important;
}

/* =========================================================
   MB WAY — LAYOUT FINAL
   ========================================================= */

body.pf-page--mbway {
    min-height: 100dvh !important;

    display: flex !important;
    flex-direction: column !important;

    background: var(--lp-bg) !important;

    /* Nunca cortar o cartão */
    overflow-x: hidden !important;
    overflow-y: auto !important;
}


/* =========================================================
   MB WAY — HEADER
   ========================================================= */

body.pf-page--mbway .pf-header {
    flex: 0 0 auto;

    /* O header já estica naturalmente por ser filho
       de um body flex em coluna. */
    width: auto !important;
    align-self: stretch;

    /* Padding incluído na largura disponível */
    box-sizing: border-box;

    max-width: 100%;
}

/* =========================================================
   MAIN
   ========================================================= */

body.pf-page--mbway main.pf-main {
    flex: 1 0 auto !important;

    display: flex !important;
    justify-content: center !important;

    /* IMPORTANTE:
       não centrar verticalmente um cartão que pode ser alto */
    align-items: flex-start !important;

    width: 100%;

    padding:
        clamp(28px, 5vh, 52px) 16px 40px !important;

    box-sizing: border-box;
}


/* =========================================================
   CARTÃO
   ========================================================= */

body.pf-page--mbway .container.pf-mbway-card {
    width: min(100%, 420px) !important;
    max-width: 420px !important;

    margin: 0 auto !important;

    padding: 24px !important;

    box-sizing: border-box !important;

    border-radius: 16px !important;
}


/* Conteúdo interno */
body.pf-page--mbway .pf-mbway-card__inner {
    display: flex;
    flex-direction: column;
    align-items: center;

    width: 100%;

    gap: 14px;

    text-align: center;
}


/* =========================================================
   LOGÓTIPO LUSOPAY
   ========================================================= */

body.pf-page--mbway .pf-mbway-logo {
    display: block;

    width: min(280px, 82%) !important;
    max-width: 100%;
    height: auto;

    margin: 0 auto 4px !important;
}


/* =========================================================
   LOGÓTIPO MB WAY
   ========================================================= */

body.pf-page--mbway .pf-mbway-method {
    display: block;

    width: 92px !important;
    max-width: 30%;
    height: auto;

    margin: 4px auto 0 !important;

    padding: 0 !important;
}


/* =========================================================
   TIMER
   ========================================================= */

body.pf-page--mbway .pf-mbway-timer {
    margin: 4px 0 8px !important;

    font-size: clamp(52px, 8vw, 72px) !important;
    font-weight: 500;

    line-height: 1 !important;

    color: var(--lp-foreground);
}


/* =========================================================
   TABELA / DADOS
   ========================================================= */

body.pf-page--mbway .pf-mbway-table {
    width: 100% !important;

    margin: 6px 0 0 !important;

    table-layout: fixed;

    border-collapse: separate;
    border-spacing: 0;

    border-radius: var(--lp-radius-control, 10px) !important;

    overflow: hidden;
}


/* =========================================================
   FOOTER
   ========================================================= */

body.pf-page--mbway .footer {
    flex: 0 0 auto;

    width: 100%;

    margin-top: auto !important;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 520px) {

    body.pf-page--mbway main.pf-main {
        padding: 20px 10px 28px !important;
    }

    body.pf-page--mbway .container.pf-mbway-card {
        width: calc(100% - 12px) !important;
        max-width: 390px !important;

        margin: 0 auto !important;

        padding: 18px !important;
    }

    body.pf-page--mbway .pf-mbway-logo {
        width: min(230px, 78%) !important;
    }

    body.pf-page--mbway .pf-mbway-method {
        width: 82px !important;
    }

    body.pf-page--mbway .pf-mbway-timer {
        font-size: clamp(48px, 16vw, 64px) !important;
    }

    body.pf-page--mbway .pf-mbway-card__inner {
        gap: 11px;
    }
}

/* =========================================================
   MÉTODO DE PAGAMENTO SELECIONADO — ESTADO FINAL
   - Light mantém o comportamento atual
   - Dark ganha rebordo dourado forte e persistente
   - Suporta .selected, .is-selected e radio :checked
   - Sem check/símbolo adicional
   ========================================================= */


/* =========================================================
   LIGHT
   ========================================================= */

html[data-theme="light"] .payment-methods .method[data-method].selected,
html[data-theme="light"] .payment-methods .method[data-method].is-selected,
html[data-theme="light"] .payment-methods .method[data-method]:has(input[type="radio"]:checked) {
    border: 2px solid var(--lp-primary) !important;

    box-shadow:
        0 0 0 1px rgba(201, 153, 63, .22),
        0 10px 24px rgba(0, 0, 0, .18) !important;

    transform: translateY(-2px) !important;

    opacity: 1 !important;
    filter: none !important;

    box-sizing: border-box !important;
}

html[data-theme="light"] .payment-methods .method[data-method].selected:hover,
html[data-theme="light"] .payment-methods .method[data-method].is-selected:hover,
html[data-theme="light"] .payment-methods .method[data-method]:has(input[type="radio"]:checked):hover {
    border: 2px solid var(--lp-primary) !important;

    box-shadow:
        0 0 0 1px rgba(201, 153, 63, .22),
        0 10px 24px rgba(0, 0, 0, .18) !important;

    transform: translateY(-2px) !important;

    opacity: 1 !important;
    filter: none !important;
}


/* =========================================================
   DARK
   IMPORTANTE:
   Repete a cadeia :not(...) usada pelo Theme Layer para
   igualar / ultrapassar a especificidade das regras dark.
   ========================================================= */

html[data-theme="dark"]:not(.pf-a11y-color-light):not(.pf-a11y-color-high) .payment-methods .method[data-method].selected,

html[data-theme="dark"]:not(.pf-a11y-color-light):not(.pf-a11y-color-high) .payment-methods .method[data-method].is-selected,

html[data-theme="dark"]:not(.pf-a11y-color-light):not(.pf-a11y-color-high) .payment-methods .method[data-method]:has(input[type="radio"]:checked) {
    background: var(--lp-surface, #141820) !important;
    color: var(--lp-foreground, #ffffff) !important;

    border: 2px solid var(--lp-primary, #c9a227) !important;

    box-shadow:
        0 0 0 1px rgba(201, 153, 63, .42),
        0 12px 28px rgba(0, 0, 0, .38) !important;

    transform: translateY(-2px) !important;

    opacity: 1 !important;
    filter: none !important;

    box-sizing: border-box !important;
}


/* =========================================================
   DARK — SELECIONADO + HOVER
   O hover não pode retirar o destaque da seleção.
   ========================================================= */

html[data-theme="dark"]:not(.pf-a11y-color-light):not(.pf-a11y-color-high) .payment-methods .method[data-method].selected:hover,

html[data-theme="dark"]:not(.pf-a11y-color-light):not(.pf-a11y-color-high) .payment-methods .method[data-method].is-selected:hover,

html[data-theme="dark"]:not(.pf-a11y-color-light):not(.pf-a11y-color-high) .payment-methods .method[data-method]:has(input[type="radio"]:checked):hover {
    background: var(--lp-surface, #141820) !important;

    border: 2px solid var(--lp-primary, #c9a227) !important;

    box-shadow:
        0 0 0 1px rgba(201, 153, 63, .42),
        0 12px 28px rgba(0, 0, 0, .38) !important;

    transform: translateY(-2px) !important;

    opacity: 1 !important;
    filter: none !important;
}

/* =========================================================
   DARK — ÍCONES DE COPIAR
   ========================================================= */

/*
 * copy_icon.png é originalmente preto.
 * No dark convertemos os píxeis do ícone para branco.
 *
 * Usamos button[data-copy] em vez de apenas .copy-button
 * porque também cobre Multibanco Ficheiro.
 */
html[data-theme="dark"]:not(.pf-a11y-color-light):not(.pf-a11y-color-high) button[data-copy] img[src$="copy_icon.png"] {
    filter: brightness(0) invert(1) !important;
    opacity: .92;
}


/* Hover ligeiramente mais evidente */
html[data-theme="dark"]:not(.pf-a11y-color-light):not(.pf-a11y-color-high) button[data-copy]:hover img[src$="copy_icon.png"] {
    opacity: 1;
}


/* LIGHT — garantir que fica com a imagem original */
html[data-theme="light"] button[data-copy] img[src$="copy_icon.png"] {
    filter: none !important;
    opacity: 1;
}

html[data-theme="dark"]:not(.pf-a11y-color-light):not(.pf-a11y-color-high) button[data-copy] img[src$="copy_icon.png"],
html[data-theme="dark"]:not(.pf-a11y-color-light):not(.pf-a11y-color-high) button[data-copy] img[src$="check_circle_icon.png"] {
    filter: brightness(0) invert(1) !important;
    opacity: .92;
}

/* =========================================================
   BOTÃO GUARDAR — ESQUEMA LUSOPAY ATUAL
   ========================================================= */

/* LIGHT */
html[data-theme="light"] .receipt,
html[data-theme="light"] .mb-receipt {
    --btn-primary: var(--lp-primary) !important;
    --btn-primary-dark: var(--lp-primary-hover) !important;
}


/* DARK */
html[data-theme="dark"] .receipt,
html[data-theme="dark"] .mb-receipt {
    --btn-primary: var(--lp-primary) !important;
    --btn-primary-dark: var(--lp-primary-hover) !important;
}


/* Botão */
.receipt .save-button,
.mb-receipt .save-button {
    background: var(--btn-primary) !important;
    color: var(--lp-primary-foreground) !important;
    border: 1px solid var(--btn-primary) !important;

    box-shadow:
        0 8px 18px rgba(0, 0, 0, .14) !important;
}


/* Hover */
.receipt .save-button:hover,
.mb-receipt .save-button:hover {
    background: var(--btn-primary-dark) !important;
    border-color: var(--btn-primary-dark) !important;

    color: var(--lp-primary-foreground) !important;

    box-shadow:
        0 10px 22px rgba(0, 0, 0, .18) !important;
}


/* Active */
.receipt .save-button:active,
.mb-receipt .save-button:active {
    background: var(--lp-primary-active, var(--lp-primary-hover)) !important;
    border-color: var(--lp-primary-active, var(--lp-primary-hover)) !important;
}

/* =========================================================
   PID MODE — CAMPOS MANUAIS
   Documento / Valor / NIF
   ========================================================= */

.pf-required-star {
    color: var(--lp-destructive);
    font-weight: 800;
    margin-left: 4px;
}


/*
 * Mesmo aspecto para os três campos introduzidos
 * manualmente no modo ?PID=.
 *
 * O Documento não está dentro de .form-group,
 * por isso precisa de receber explicitamente
 * o mesmo tratamento visual.
 */
.pf-pid-control {
    display: block;
    width: min(100%, 280px) !important;
    min-height: 42px;

    padding: 10px 12px !important;

    box-sizing: border-box;

    font-family: inherit;
    font-size: 14px;
    line-height: 1.25;

    color: var(--lp-foreground) !important;
    background: var(--lp-input-bg) !important;

    border: 1px solid var(--lp-border) !important;
    border-radius: var(--lp-radius-control) !important;

    box-shadow: none;

    transition:
        border-color .15s ease,
        box-shadow .15s ease,
        background-color .15s ease;
}


.pf-pid-control:focus {
    outline: none;

    border-color: var(--lp-primary) !important;

    box-shadow:
        0 0 0 3px rgba(201, 162, 39, .18) !important;
}


/*
 * O CSS antigo empurra .input-amount para a direita:
 *
 * #pfPayInfo td .input-amount {
 *     margin-left: auto;
 * }
 *
 * No modo PID queremos Documento e Valor alinhados
 * exatamente no mesmo ponto.
 */
#pfPayInfo .pf-payinfo__table td .pf-pid-control {
    margin-left: 0 !important;
    margin-right: 0 !important;
}


/* =========================================================
   PID MODE — IDENTIFICAÇÃO DO PAGADOR
   País + identificação fiscal
   Autoridade única deste layout
   ========================================================= */

.pf-pid-identification {
    margin-top: 24px;
}

.pf-pid-identification .pf-section-title {
    margin: 0 0 22px !important;
    text-align: center;
}


/*
 * Mesmo recuo horizontal usado anteriormente.
 */
.pf-pid-identification .container_info {
    width: 100%;
    margin: 0 !important;
    padding: 0 16px !important;
    box-sizing: border-box;
}


/*
 * Cada linha usa exatamente a mesma posição horizontal
 * que já tínhamos afinado anteriormente:
 *
 * label | controlo
 *  50%  |  50%
 */
.pf-pid-identification__row {
    display: grid;
    grid-template-columns: 50% 50%;
    width: 100%;
    align-items: start;
}


/*
 * Espaçamento ENTRE País e NIF.
 *
 * Uso margin em vez de gap no container para não depender
 * de outras regras de .container_info existentes no ficheiro.
 */
.pf-pid-identification__row + .pf-pid-identification__row {
    margin-top: 18px;
}


/*
 * A label tem exatamente a altura base do input/select.
 *
 * Desta forma fica centrada relativamente ao controlo,
 * mas NÃO relativamente ao texto de ajuda que aparece
 * por baixo do NIF.
 */
.pf-pid-identification__row > label {
    margin: 0 !important;
    padding: 0 14px 0 0 !important;

    min-height: 42px;

    display: flex !important;
    align-items: center !important;

    font-weight: 700;
    line-height: 1.2;
}


/*
 * A classe required gera o asterisco.
 */
.pf-pid-identification__row > label.required::after {
    content: '*';
    margin-left: 5px;

    color: var(--lp-destructive);
    font-weight: 800;
}


.pf-pid-identification__control {
    min-width: 0;
}


/*
 * País e NIF têm exatamente a mesma largura/altura.
 */
.pf-pid-identification__control .pf-pid-control {
    display: block;

    width: min(100%, 280px) !important;
    min-height: 42px;

    margin: 0 !important;
}


/*
 * Texto auxiliar separado do input,
 * sem interferir com o alinhamento da label.
 */
.pf-pid-identification__control .form-text {
    display: block;

    width: min(100%, 280px);

    margin: 7px 0 0 !important;

    color: var(--lp-muted-foreground);

    font-size: 13px;
    line-height: 1.35;
}


/*
 * Cursor adequado para o país.
 */
.pf-pid-identification__control select.pf-pid-control {
    cursor: pointer;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 520px) {

    .pf-pid-identification .container_info {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .pf-pid-identification__row {
        grid-template-columns: 1fr;
        gap: 7px;
    }

    .pf-pid-identification__row + .pf-pid-identification__row {
        margin-top: 18px;
    }

    .pf-pid-identification__row > label {
        min-height: auto;
        padding: 0 !important;

        display: block !important;
    }

    .pf-pid-identification__control .pf-pid-control,
    .pf-pid-identification__control .form-text {
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* =========================================================
   LOGOS CARTÃO — DARK / LIGHT
   ========================================================= */

.payment-logo {
    max-width: 42%;
    margin-bottom: 10px;
}

/* Tamanho específico dos logos de cartão */
.payment-methods .method[data-method="credit_card"] img.pf-theme-logo {
    width: 240px;
    max-width: 55%;
    height: auto;
    margin: 0 auto 26px;
}


/*
 * Dark é o comportamento por defeito.
 * Assim continua correto mesmo antes de data-theme
 * estar definido no <html>.
 */
.payment-logo--dark {
    display: block;
}

.payment-logo--light {
    display: none;
}


/* DARK */
html[data-theme="dark"] .payment-logo--dark {
    display: block;
}

html[data-theme="dark"] .payment-logo--light {
    display: none;
}


/* LIGHT */
html[data-theme="light"] .payment-logo--dark {
    display: none;
}

html[data-theme="light"] .payment-logo--light {
    display: block;
}

/* =========================================================
   ÁREA NORMALIZADA PARA LOGOS DOS MÉTODOS
   ========================================================= */

.payment-methods .method[data-method] .metodo-pagamento-img {
    width: 140px !important;
    height: 64px !important;

    max-width: 140px !important;
    max-height: 64px !important;

    object-fit: contain;

    display: block;
    margin: 0 auto 14px !important;
}

.payment-methods .method[data-method] .payment-method > span {
    display: block;
    margin-top: 0;
    line-height: 1.25;
}

/* =========================================================
   PID — País + identificação fiscal
   ========================================================= */


.pf-pid-tax-field > label {
    display: flex;
    align-items: center;
    gap: 4px;

    min-height: 22px;
    margin: 0 0 10px;

    font-weight: 700;
    line-height: 1.2;
}

.pf-pid-tax-field .pf-pid-control {
    width: 100%;
    min-height: 42px;

    box-sizing: border-box;
}

.pf-pid-country-select {
    cursor: pointer;
}

/* Textos auxiliares alinhados */
.pf-pid-tax-field .form-text {
    display: block;
    margin-top: 7px;

    font-size: 13px;
    line-height: 1.4;
    color: var(--lp-muted-foreground);
}


/* MOBILE */
@media (max-width: 620px) {

    .pf-pid-tax-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

}

/* =========================================================
   PID MODE — país de faturação
   ========================================================= */

#billingInfo #billingCountrySelect.pf-pid-control {
    width: 100% !important;
    max-width: none !important;
}

#billingInfo .form-group input,
#billingInfo .form-group select {
    width: 100%;
    min-height: 42px;
    height: 42px;
    box-sizing: border-box;
    padding: 0 14px;
    border-radius: 12px;
    font: inherit;
    line-height: 1.2;
}

/* =========================================================
   PLACEHOLDER DOS MÉTODOS DE PAGAMENTO
   ========================================================= */

#methodsPlaceholder,
.pf-methods-placeholder {
    border-width: 2px;
    border-style: dashed;
    border-radius: 14px;
}

/* DARK */
html[data-theme="dark"] #methodsPlaceholder,
html[data-theme="dark"] .pf-methods-placeholder {
    border-color: rgba(201, 153, 63, 0.75) !important;
    background: rgba(201, 153, 63, 0.04) !important;
    color: rgba(255, 255, 255, 0.62) !important;
}

/* LIGHT */
html[data-theme="light"] #methodsPlaceholder,
html[data-theme="light"] .pf-methods-placeholder {
    border-color: rgba(201, 153, 63, 0.65) !important;
    background: rgba(201, 153, 63, 0.06) !important;
    color: rgba(27, 31, 36, 0.58) !important;
}