/* FastCom AMI: payment details inside WooCommerce (no external QR image service). */
.fami-pix-panel {
    box-sizing: border-box;
    width: 100%;
    margin: 22px 0;
    padding: clamp(16px, 3vw, 28px);
    background: #fff;
    color: #1d2939;
    border: 1px solid #e4e7ec;
    border-radius: 14px;
    font-size: 15px;
    line-height: 1.55;
}
.fami-pix-panel * { box-sizing: border-box; }
.fami-panel-head { display: flex; gap: 13px; align-items: center; margin-bottom: 18px; }
.fami-panel-head .fami-pix-symbol { display: grid; place-items: center; flex: 0 0 42px; width: 42px; height: 42px; border-radius: 12px; background: #f0efff; color: #6251dc; font-size: 30px; }
.fami-panel-head h3 { margin: 0 !important; font-size: clamp(20px, 2.8vw, 26px); font-weight: 700; line-height: 1.25; color: #152238; }
.fami-panel-head p { margin: 4px 0 0; color: #667085; font-size: 14px; }
.fami-pix-summary { display: flex; gap: 12px 25px; flex-wrap: wrap; padding: 16px 0; margin-bottom: 18px; border-top: 1px solid #eaecf0; border-bottom: 1px solid #eaecf0; }
.fami-pix-summary > div { display: flex; flex-direction: column; gap: 4px; min-width: 120px; }
.fami-pix-summary span { font-size: 12px; color: #667085; }
.fami-pix-summary strong { font-size: 15px; color: #101828; font-weight: 650; }
.fami-pix-payment { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(18px, 3vw, 30px); margin: 20px 0; }
.fami-pix-qr-wrap { text-align: center; flex: 0 0 224px; }
.fami-qrcode { display: flex; align-items: center; justify-content: center; width: 224px; min-height: 224px; max-width: 100%; padding: 8px; border: 1px solid #eaecf0; border-radius: 12px; background: white; }
.fami-qrcode img, .fami-qrcode canvas, .fami-qrcode svg { display: block; margin: 0 auto; max-width: 100%; height: auto; }
.fami-pix-qr-wrap small { display: block; margin-top: 8px; color: #667085; font-size: 12px; }
.fami-pix-copy-block { flex: 1 1 240px; min-width: 0; }
.fami-pix-copy-block h4 { margin: 0 0 6px; color: #1d2939; font-size: 17px; font-weight: 700; }
.fami-pix-copy-block p { margin: 0 0 12px; color: #667085; font-size: 14px; }
.fami-pix-copy-block textarea { display: block; width: 100% !important; min-height: 82px; margin-bottom: 12px; padding: 10px 12px; border: 1px solid #d0d5dd; border-radius: 8px; background: #f9fafb; color: #475467; overflow-wrap: anywhere; font: 12px/1.5 monospace; resize: vertical; }
.fami-pix-panel .button.fami-copy { background: #6051d6; color: white; border: 1px solid #6051d6; padding: 9px 20px; border-radius: 7px; line-height: 1.3; font-weight: 600; text-align: center; white-space: normal; }
.fami-pix-panel .button.fami-copy:hover, .fami-pix-panel .button.fami-copy:focus { background: #4939bd; border-color: #4939bd; color: white; }
.fami-pix-message { padding: 12px 14px; border: 1px solid #fedf89; background: #fffaeb; color: #7a4b03; border-radius: 9px; font-size: 14px; }
.fami-pix-panel .fami-pix-external, .fami-pix-panel .fami-pix-action { margin: 14px 0 0; }
.fami-pix-panel .fami-help { color: #667085; margin: 12px 0 0; font-size: 13px; }
.fami-pix-panel .fami-pix-safe { margin: 20px 0 0; font-size: 13px; color: #667085; }
.fami-pix-panel .fami-pix-action button, .fami-pix-panel .fami-pix-external a { white-space: normal; }
@media (max-width: 560px) {
    .fami-pix-qr-wrap { flex: 1 1 100%; }
    .fami-pix-copy-block { flex: 1 1 100%; }
    .fami-pix-panel { margin: 16px 0; }
}

.fami-pix-success { border-color: #abefc6; background: #ecfdf3; color: #05603a; }

/* Automatic same-link QR recovery: show a loading state without removing the
   no-JavaScript/manual fallback until the API has confirmed the BR Code. */
.fami-pix-loading { display: none; padding: 12px 14px; border: 1px solid #d9d6ff; background: #f7f6ff; color: #4d3ca5; border-radius: 9px; font-size: 14px; }
.fami-pix-panel.fami-auto-loading .fami-pix-loading { display: block; }
.fami-pix-panel.fami-auto-loading .fami-pix-unavailable { display: none; }
