/* Sobreposição mantém a altura calculada pelo template da loja. */
body.checkout-public-body .checkout-header--credential .checkout-header__inner {
    position: relative;
    padding-right: 362px;
    grid-template-columns: auto minmax(0, 1fr) minmax(0, auto);
}
.loja-credential { position: absolute; right: 16px; top: calc(50% - 28px); }
.loja-credential, .loja-credential * { box-sizing: border-box; }
.loja-credential .loja-credential__seal {
    display: flex; align-items: center; justify-content: center; gap: 12px;
    width: 330px; height: 56px; padding: 5px 12px; border: 1px solid #8f7945;
    border-radius: 5px; background: #2d2616; color: #fff; text-decoration: none;
}
.loja-credential .loja-credential__seal:hover { border-color: #d9b95e; background: #39301c; }
.loja-credential .loja-credential__logo { display: block; flex-shrink: 0; object-fit: contain; }
.loja-credential__seal-copy { display: block; padding-left: 12px; border-left: 1px solid #8f7945; text-align: left; }
.loja-credential__seal-title { display: flex; align-items: center; gap: 6px; font: 600 15px/20px Arial, sans-serif; white-space: nowrap; }
.loja-credential__medal { position: relative; display: inline-block; width: 20px; height: 24px; flex-shrink: 0; }
.loja-credential__medal::after { content: ''; position: absolute; left: 4px; top: 12px; width: 12px; height: 12px; background: #009b3a; clip-path: polygon(8% 0, 92% 0, 100% 100%, 50% 72%, 0 100%); }
.loja-credential__medal .fa-certificate { position: absolute; z-index: 1; left: 0; top: 0; color: #ffdf00; font-size: 20px; line-height: 20px; }
.loja-credential__medal .fa-check { position: absolute; z-index: 2; left: 5px; top: 5px; color: #006b2b; font-size: 10px; line-height: 10px; }
.loja-credential button { cursor: pointer; }
.loja-credential a:focus-visible, .loja-credential button:focus-visible { outline: 2px solid #b38d2e; outline-offset: 3px; }
.loja-credential__hint[hidden] { display: none; }
.loja-credential__hint {
    position: fixed; z-index: 1120; width: 350px; max-width: calc(100vw - 24px);
    padding: 0; background: #fffaf0; color: #372f1c; border: 1px solid #cbb474;
    border-radius: 10px; box-shadow: 0 12px 32px #211a1538; overflow-y: auto;
    overscroll-behavior: contain; animation: loja-credential-enter .25s ease-out both;
}
.loja-credential__hint-close {
    position: absolute; right: 3px; top: 3px; width: 44px; height: 44px;
    border: 0; padding: 0; background: transparent; color: #e5d6ae; font: 400 23px/1 Arial, sans-serif;
}
.loja-credential__visual { display: flex; align-items: center; gap: 18px; min-height: 94px; padding: 22px 44px 22px 20px; background: #302918; border-bottom: 2px solid #c2a24b; }
.loja-credential__brand { padding-left: 18px; border-left: 1px solid #806a39; }
.loja-credential__brand strong { display: block; color: #d9b95e; font: 500 16px/1.2 Arial, sans-serif; letter-spacing: .07em; }
.loja-credential__brand span { display: block; margin-top: 5px; color: #e2d6b8; font: 400 11px/1.3 Arial, sans-serif; }
.loja-credential__hint-content { padding: 20px; }
.loja-credential__hint-content h2 { margin: 0 0 9px; color: #302918; font: 500 23px/1.15 Arial, sans-serif; letter-spacing: -.02em; }
.loja-credential__hint-content > p { margin: 0; color: #685a3d; font: 400 13px/1.5 Arial, sans-serif; }
.loja-credential__proof { display: flex; align-items: center; gap: 12px; margin: 17px 0; padding: 13px 0; border-block: 1px solid #e6dbc0; }
.loja-credential__proof-icon { display: flex; align-items: center; justify-content: center; width: 40px; height: 46px; flex-shrink: 0; background: #efe2bf; color: #856822; border-radius: 4px; font-size: 23px; }
.loja-credential__proof small { display: block; margin-bottom: 4px; color: #806329; font: 400 11px/1.2 Arial, sans-serif; letter-spacing: .05em; }
.loja-credential__proof strong { display: block; color: #3e3420; font: 500 14px/1.3 Arial, sans-serif; }
.loja-credential .loja-credential__action { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 12px 15px; border: 1px solid #b2923e; border-radius: 5px; background: #c2a24b; color: #302713; font: 500 13px/1.4 Arial, sans-serif; text-decoration: none; }
.loja-credential .loja-credential__action:hover { background: #d0b260; }
.loja-credential__dismiss { display: block; min-height: 36px; margin: 7px auto 0; padding: 8px 12px; border: 0; background: transparent; color: #6f5d32; font: 400 12px Arial, sans-serif; text-decoration: underline; text-underline-offset: 3px; }
.loja-credential__seal.is-guided { animation: loja-credential-cue 1.4s ease-out 2; }
.loja-credential.is-tutorial::before { content: ''; position: fixed; inset: 0; z-index: 1; background: #17130dad; pointer-events: none; animation: loja-credential-dim .4s ease-out both; }
.loja-credential.is-tutorial::after { content: ''; position: fixed; z-index: 2; left: var(--credential-cue-left); top: var(--credential-cue-top); width: 14px; height: 14px; transform: rotate(45deg); background: #302918; border-top: 1px solid #cbb474; border-left: 1px solid #cbb474; pointer-events: none; }
.loja-credential.is-tutorial .loja-credential__seal { position: relative; z-index: 2; border-color: #dfc785; box-shadow: 0 0 0 2px #c2a24b66, 0 0 24px #c2a24b4d; }
.loja-credential.is-tutorial .loja-credential__seal.is-guided { animation: none; }
.loja-credential.is-tutorial .loja-credential__hint { animation: loja-credential-tour-enter 1.2s cubic-bezier(.16, 1, .3, 1) both, loja-credential-border-glow 2.4s ease-in-out 1.2s 2; border-color: #d7bb70; box-shadow: 0 20px 56px #0008, 0 0 0 2px #c2a24b22, 0 0 16px #c2a24b00; }
.loja-credential.is-tutorial .loja-credential__hint-content h2 { font-size: 25px; font-weight: 600; }
.loja-credential__modal {
    width: min(760px, calc(100vw - 24px)); max-width: none; max-height: calc(100dvh - 32px);
    margin: auto; padding: 0; border: 1px solid #b69a51; border-radius: 12px;
    background: #fffdf7; color: #342d20; box-shadow: 0 24px 70px #0005; overflow-y: auto;
    overscroll-behavior: contain; text-align: left;
}
.loja-credential__modal::backdrop { background: #17130d99; }
body.loja-credential-open { overflow: hidden; }
.loja-credential__modal-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 22px 24px; background: #2d2616; color: #fff; }
.loja-credential__modal-heading p { margin: 0 0 6px; color: #d9bd72; font: 500 11px/1.4 Arial, sans-serif; letter-spacing: .08em; }
.loja-credential__modal-heading h2 { margin: 0; font: 500 23px/1.25 Arial, sans-serif; }
.loja-credential__modal-close { flex-shrink: 0; width: 44px; height: 44px; margin: -7px -8px 0 0; border: 0; background: transparent; color: #fff; font: 400 30px/1 Arial, sans-serif; }
.loja-credential__document { padding: 24px; }
.loja-credential__origin { margin: 0 0 10px; color: #716447; font: 400 13px/1.5 Arial, sans-serif; }
.loja-credential__document h3 { margin: 0 0 20px; font: 600 21px/1.3 Arial, sans-serif; overflow-wrap: anywhere; }
.loja-credential__meta { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 24px; margin: 0 0 24px; }
.loja-credential__meta div { min-width: 0; }
.loja-credential__meta dt { margin-bottom: 4px; color: #7a6947; font: 400 11px/1.3 Arial, sans-serif; text-transform: uppercase; letter-spacing: .04em; }
.loja-credential__meta dd { margin: 0; font: 500 13px/1.5 Arial, sans-serif; overflow-wrap: anywhere; }
.loja-credential__modal a { color: #705514; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.loja-credential__transcript-label { margin: 0 0 10px; color: #7a6947; font: 400 11px/1.4 Arial, sans-serif; letter-spacing: .08em; }
.loja-credential__document blockquote { margin: 0 0 20px; padding: 16px 20px; border-left: 3px solid #c2a24b; background: #f5efdf; font: 400 14px/1.7 Georgia, serif; }
.loja-credential__document blockquote p { margin: 0 0 12px; }
.loja-credential__document blockquote p:last-child { margin-bottom: 0; }
.loja-credential__signature { margin: 0 0 14px; font: 400 12px/1.7 Arial, sans-serif; }
.loja-credential__verification { margin: 0; color: #776c57; font: 400 11px/1.6 Arial, sans-serif; }
.loja-credential__footer { display: flex; align-items: center; gap: 18px; padding: 18px 24px; border-top: 1px solid #e2d5b6; background: #f6f0e2; }
.loja-credential__qr { display: block; flex-shrink: 0; background: #fff; }
.loja-credential__qr img { display: block; width: 114px; height: 114px; }
.loja-credential__consultation { min-width: 0; flex: 1; font: 400 12px/1.5 Arial, sans-serif; }
.loja-credential__consultation > strong { font-size: 14px; }
.loja-credential__consultation p { margin: 5px 0 8px; }
.loja-credential__done { min-height: 44px; padding: 10px 18px; border: 1px solid #aa8b3e; border-radius: 5px; background: #c2a24b; color: #302713; font: 500 13px Arial, sans-serif; }
@media (max-width: 1200px) {
    body.checkout-public-body .checkout-header--credential .checkout-header__inner { padding-right: 142px; }
    .loja-credential .loja-credential__seal { width: 110px; flex-direction: column; gap: 4px; padding: 5px 10px; }
    .loja-credential__seal .loja-credential__logo { height: 26px; }
    .loja-credential__seal-copy { display: none; }
}
@media (max-width: 991px) {
    body.checkout-public-body .checkout-header--credential .checkout-header__inner { padding-right: 12px; }
    body.checkout-public-body .checkout-header--credential .checkout-header__block--logo { padding-right: 120px; }
    body.checkout-public-body .checkout-header--credential .checkout-brand img { max-width: 100%; }
    .loja-credential { right: 12px; top: 10px; }
    .loja-credential .loja-credential__seal { height: 44px; }
    .loja-credential__seal .loja-credential__logo { width: 70px; height: 22px; }
}
@media (max-width: 480px) {
    .loja-credential__meta { grid-template-columns: 1fr; gap: 14px; }
    .loja-credential__modal-heading, .loja-credential__document { padding: 18px; }
    .loja-credential__modal-heading h2 { font-size: 20px; }
    .loja-credential__footer { flex-wrap: wrap; gap: 12px; padding: 18px; }
    .loja-credential__consultation { flex-basis: calc(100% - 126px); }
    .loja-credential__done { margin-left: auto; }
}
@keyframes loja-credential-enter { from { opacity: 0; translate: 0 7px; } to { opacity: 1; translate: 0 0; } }
@keyframes loja-credential-cue { 0%, 100% { box-shadow: 0 0 0 0 #dfbd6500; } 40% { box-shadow: 0 0 0 5px #dfbd653d; } }
@keyframes loja-credential-tour-enter { from { opacity: 0; translate: 0 12px; } to { opacity: 1; translate: 0 0; } }
@keyframes loja-credential-border-glow { 0%, 100% { box-shadow: 0 20px 56px #0008, 0 0 0 2px #c2a24b22, 0 0 16px #c2a24b00; } 50% { box-shadow: 0 20px 56px #0008, 0 0 0 2px #dfc785cc, 0 0 16px #c2a24b66; } }
@keyframes loja-credential-dim { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
    .loja-credential__hint, .loja-credential__seal.is-guided,
    .loja-credential.is-tutorial::before, .loja-credential.is-tutorial .loja-credential__hint,
    .loja-credential.is-tutorial .loja-credential__seal.is-guided { animation: none; }
}
