/* [GOJD:CSS 19] Modalidades, Crédito JD e leitura acessível de detalhes */
.buy-modes{grid-template-columns:repeat(4,minmax(0,1fr))}.buy-mode{min-height:62px;padding:9px 3px;font-size:.79rem;line-height:1.15;gap:2px}.buy-mode small{font-size:.62rem;line-height:1.2}.buy-mode[data-mode="jd"]{background:#eff6e6}.buy-mode[data-mode="jd"].active{background:var(--acid)}
.gojd-details-tabs button{gap:0}.gojd-details-position{display:none}.gojd-details-controls{justify-content:flex-end}.gojd-fin-badge{display:inline-flex;align-items:center;gap:7px;color:#25512b;font-size:.75rem;font-weight:750;margin:12px 0}.jd-benefit-line{display:flex;gap:10px;align-items:center;justify-content:space-between;margin:10px 0;padding:12px;background:#eff6e7;border-left:3px solid #3e813e;font-size:.82rem}.jd-benefit-line strong{white-space:nowrap}.jd-link{border:0;background:none;text-decoration:underline;font-weight:750;font-size:.78rem;padding:7px 0;color:var(--ink)}
/* Um único modal de validação em etapas; fotos não são gravadas no navegador. */
.jd-credit-layer{position:fixed;inset:0;z-index:300;display:grid;place-items:center;background:rgba(8,23,17,.74);padding:16px;overscroll-behavior:contain}.jd-credit-dialog{background:var(--paper);width:min(100%,690px);max-height:min(94dvh,900px);display:flex;flex-direction:column;box-shadow:0 25px 90px #0004;overflow:hidden;color:var(--ink)}.jd-credit-head{display:flex;align-items:center;justify-content:space-between;background:var(--deep);color:white;padding:16px 20px;gap:10px}.jd-credit-head strong{font-size:1.23rem}.jd-credit-head button{border:0;background:transparent;color:inherit;padding:5px;display:grid;place-items:center}.jd-credit-progress{height:3px;background:#d9e0d5}.jd-credit-progress>i{display:block;height:100%;background:var(--acid);transition:width .3s}.jd-credit-content{overflow-y:auto;overflow-x:hidden;min-height:0;padding:22px 24px}.jd-credit-content h2{font-size:clamp(1.8rem,3.2vw,2.5rem);margin:3px 0 9px}.jd-credit-content p{color:var(--muted);font-size:.87rem}.jd-credit-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:18px 0}.jd-credit-grid .field:first-child{grid-column:1/-1}.jd-credit-grid input{width:100%}.jd-privacy{background:#eff3eb;border-left:3px solid var(--ink);padding:11px 13px;font-size:.75rem;line-height:1.5;margin:15px 0}.jd-credit-actions{display:flex;align-items:center;justify-content:flex-end;gap:9px;padding:13px 24px;border-top:1px solid var(--line);background:white;flex:none}.jd-credit-actions .btn{min-height:43px;padding:10px 15px}.jd-proof-tiles{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:14px 0}.jd-proof{padding:15px;border:1px solid var(--line);background:white;min-width:0}.jd-proof strong{display:block;margin-bottom:8px;font-size:.9rem}.jd-proof span{display:block;min-height:22px;font-size:.75rem;color:var(--muted)}.jd-proof label{display:block;font-size:.77rem;font-weight:700;text-decoration:underline;cursor:pointer;margin:10px 0}.jd-proof input{max-width:100%}.jd-camera-stage{position:relative;background:#14201c;aspect-ratio:4/3;max-height:350px;overflow:hidden;display:grid;place-items:center;margin:12px 0}.jd-camera-stage video{width:100%;height:100%;object-fit:cover;display:block}.jd-camera-guide{position:absolute;border:3px solid var(--acid);width:75%;height:74%;left:12.5%;top:13%;pointer-events:none;box-shadow:0 0 0 200px #06120f44}.jd-camera-guide.face{width:46%;height:78%;left:27%;top:11%;border-radius:47% 47% 44% 44%}.jd-camera-feedback{position:absolute;bottom:11px;left:10px;right:10px;color:white;text-align:center;background:#0c1713da;padding:8px;font-size:.79rem}.jd-camera-ctrls{display:flex;flex-wrap:wrap;gap:8px;margin-top:11px}.jd-camera-ctrls button{min-height:41px}.jd-camera-stage:empty:after{content:'Ative a câmera para iniciar';color:white}.jd-credit-spinner{width:56px;height:56px;border:4px solid #dce7d6;border-top-color:#223d28;border-radius:50%;animation:jd-turn 1s linear infinite;margin:28px auto}.jd-credit-result{text-align:center;padding:12px}.jd-credit-result h2{margin:10px 0}.jd-credit-result .amount{font-size:2.4rem;font-weight:850;letter-spacing:-.06em}.jd-micro{font-size:.72rem!important;color:var(--muted)}@keyframes jd-turn{to{transform:rotate(360deg)}}
.merchant-jd-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:18px 0}.merchant-jd-fields>label{display:flex;flex-direction:column;gap:7px;font-size:.82rem;font-weight:750}.merchant-jd-fields input,.merchant-jd-fields select{width:100%;min-height:45px;padding:9px;border:1px solid var(--line);background:white}.merchant-jd-wide{grid-column:1/-1}.jd-price-fields{grid-column:1/-1;padding:17px;background:#edf3e9;border-top:3px solid var(--ink)}.jd-price-fields h3{font-size:1.05rem;margin:0 0 7px}.jd-price-fields p{font-size:.76rem;color:var(--muted);margin:0 0 9px}.jd-price-fields-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.jd-price-fields-grid label{min-width:0;display:flex;flex-direction:column;gap:5px;font-size:.73rem;font-weight:750}.jd-price-fields-grid input,.jd-price-fields-grid select{width:100%;min-width:0;padding:9px;border:1px solid var(--line);background:#fff;min-height:43px}
@media(max-width:760px){.buy-mode{min-height:54px;font-size:.68rem;padding:8px 2px;white-space:normal}.buy-mode small{font-size:.52rem}.jd-credit-layer{padding:0;align-items:end}.jd-credit-dialog{width:100%;max-height:96dvh}.jd-credit-content{padding:17px}.jd-credit-actions{padding:11px 17px}.jd-proof-tiles{grid-template-columns:1fr}.jd-price-fields-grid{grid-template-columns:1fr 1fr}.jd-camera-stage{max-height:300px}}
@media(max-width:360px){.buy-mode{font-size:.63rem}.buy-mode small{font-size:.48rem}.jd-credit-grid{grid-template-columns:1fr}.jd-credit-grid .field:first-child{grid-column:auto}.merchant-jd-fields,.jd-price-fields-grid{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){.jd-credit-spinner{animation:none;border-top-color:#223d28}}


/* Face-capture guide: purely visual, not biometric verification */
.jd-camera-guide.face:after{content:"";position:absolute;left:3%;right:3%;height:2px;background:var(--acid);box-shadow:0 0 16px 3px #c8f76980;animation:jd-scan 2.8s ease-in-out infinite alternate;top:8%}@keyframes jd-scan{from{top:8%}to{top:90%}}@media(prefers-reduced-motion:reduce){.jd-camera-guide.face:after{animation:none;top:50%}}
