html body .aas-scanner[hidden],html body #aas-scan-open[hidden],html body #aas-scan-retry[hidden]{display:none!important}
.aas-scan-open.aas-button{gap:8px;white-space:nowrap}.aas-scan-open.aas-button svg{width:20px;height:20px}.aas-scan-feedback{font-size:12px;color:#52666f;margin-top:14px}.aas-scan-feedback:empty{display:none}
.aas-scanner{position:fixed;top:0;right:0;bottom:0;left:0;z-index:100100;display:flex;align-items:center;justify-content:center;box-sizing:border-box;padding:20px;background:rgba(24,34,43,.65);direction:rtl;text-align:right;font-family:"YekanBakh","Yekan Bakh",Tahoma,sans-serif;color:#2d3946;overflow-y:auto;-webkit-overflow-scrolling:touch}
.aas-scanner *{box-sizing:border-box}.aas-scan-card{width:100%;max-width:560px;max-height:calc(100vh - 40px);max-height:calc(100dvh - 40px);overflow:auto;border:1px solid #e0e5e1;border-radius:30px;background:#fafbf8;padding:26px;box-shadow:inset 0 1px 0 #fff,0 24px 70px #10212a38}.aas-scan-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px}.aas-scan-heading small{font-size:11px;color:#87949b}.aas-scan-heading h2{font-size:21px;line-height:1.7;margin:5px 0 0}.aas-scan-card>p{font-size:13px;line-height:1.9;color:#7d8b93;margin:12px 0}.aas-scan-close{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:40px;height:40px;border:1px solid #dce3df;border-radius:50%;padding:0;background:#fff;color:#2d3946;cursor:pointer}.aas-scanner svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round}.aas-scan-view{position:relative;overflow:hidden;height:260px;max-height:38vh;border:1px solid #d5dcd8;border-radius:22px;background:#2d3946;margin-top:18px}.aas-scan-view video{display:block;width:100%;height:100%;object-fit:cover}.aas-scan-guide{position:absolute;top:50%;left:12%;right:12%;height:45%;transform:translateY(-50%);border:2px solid #ffffffa6;border-radius:12px;pointer-events:none}.aas-scan-card .aas-scan-status{min-height:25px;color:#596d77;margin:16px 0;font-size:13px}.aas-scan-actions{display:flex;gap:10px;flex-wrap:wrap}.aas-scanner .aas-button{font:inherit;font-size:13px;line-height:1.6}.aas-scanner button:focus-visible{outline:2px solid #e11b25;outline-offset:3px}
@media(max-width:640px){.aas-scanner{padding:12px}.aas-scan-card{border-radius:26px;padding:20px;max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px)}.aas-scan-heading h2{font-size:18px}.aas-scan-view{height:240px}.aas-scan-actions .aas-button{width:100%}}

.aas-scan-open.aas-button svg { fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; }
#aas-scan-open:hover, #aas-scan-open:focus, #aas-scan-open:active,
#aas-scan-open:hover span, #aas-scan-open:focus span, #aas-scan-open:active span,
#aas-scan-open:hover svg, #aas-scan-open:focus svg, #aas-scan-open:active svg {
  color:#e11b25 !important;
  -webkit-text-fill-color:#e11b25 !important;
}
#aas-scan-open:hover, #aas-scan-open:focus, #aas-scan-open:active {
  background:linear-gradient(180deg,#fff,#f8f4f3) !important;
  border-color:#efc8cb;
}
.aas-scanner .aas-scan-actions button { padding:10px 18px; border:1px solid #dce2df; border-radius:999px; background:#fff; color:#2d3946; cursor:pointer; }
