/* Customer account (module 02): profile, verification, wallets, statements, messages, help; RTL and accessibility.
   Classes are prefixed ac- (statements acs-). */

.ct-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
.ac-narrow { max-width: 760px; }
.ac-note { font-size: 12px; margin: -4px 0 0; }
.ac-details summary { cursor: pointer; font-weight: 700; color: var(--blue); padding: 4px 0; }
.ac-details summary:focus-visible { outline: 2px solid #4ea1ff; outline-offset: 2px; }
.ac-address { font-style: normal; line-height: 1.5; }
.ac-current { margin: 0 0 10px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; overflow-wrap: anywhere; }
.ac-code { font: 700 22px/1 var(--fb); letter-spacing: 8px; max-width: 220px; text-align: center; }
.ac-codebox { border: 1px dashed var(--line); border-radius: var(--radius); padding: 10px 12px; background: var(--panel2); }
.ac-legal { max-height: 280px; overflow: auto; border: 1px solid var(--line2); border-radius: var(--radius); padding: 10px 12px; background: var(--panel2); font-size: 12.5px; line-height: 1.6; }
.ac-legal:focus-visible { outline: 2px solid #4ea1ff; }
.ac-on { background: #f1f8ff; }
.ac-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.ac-chip { border: 1px solid #b9c8d6; border-radius: 14px; padding: 4px 10px; font-size: 12px; font-weight: 700; background: #fff; }
.ac-chip:hover { border-color: var(--blue); }
.ac-inlineform { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.ac-inlineform .ct-input { min-width: 0; flex: 1 1 120px; }
.ac-tabsrow { display: flex; gap: 10px; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.ac-admintabs { margin-bottom: 2px; }
.ac-limit { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; padding: 4px 0; }
.ac-bigamount { font-size: 24px; font-weight: 700; margin: 4px 0 8px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ac-countdown { font-size: 12px; color: var(--warnFg); font-weight: 700; }
.ac-avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--infoBg); color: var(--infoFg); display: grid; place-items: center; font-size: 11px; font-weight: 700; flex: none; }
.ac-instr { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 0 0 10px; }
.ac-instr dt { color: var(--muted); }
.ac-instr dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.ac-sub { margin-top: 10px; border-top: 1px solid var(--line2); padding-top: 10px; }

/* Verification */
.ac-req { border-bottom: 1px solid var(--line2); padding: 10px 0; }
.ac-req:last-child { border-bottom: 0; }
.ac-req-head { display: flex; gap: 10px; align-items: flex-start; }
.ac-req-head > i { font-size: 18px; color: var(--muted); margin-top: 1px; }
.ac-req-head > i.ok { color: var(--okFg); }
.ac-req-head .body { flex: 1; min-width: 0; }
.ac-req-head .body b, .ac-req-head .body .mut { display: block; }
.ac-req-head .body .mut { font-size: 12px; }
.ac-check { border-bottom: 1px solid var(--line2); padding: 8px 0; }
.ac-check:last-of-type { border-bottom: 0; }
.ac-check-head { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.ac-items { list-style: none; margin: 6px 0; padding: 0; font-size: 12.5px; }
.ac-items li { padding: 2px 0; }
.ac-items li.pass i { color: var(--okFg); } .ac-items li.fail i { color: var(--badFg); } .ac-items li.check i { color: var(--warnFg); }

/* Wallets */
.ac-wallets { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.ac-wallet { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--blue); border-radius: 5px; padding: 12px 14px; box-shadow: var(--shadow); min-width: 0; }
.ac-wallet header { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.ac-cur { background: var(--navy2); color: #fff; font-weight: 700; font-size: 12px; border-radius: 3px; padding: 3px 7px; }
.ac-accno { margin-inline-start: auto; font-size: 11px; }
.ac-bal { font-size: 22px; font-weight: 700; overflow-wrap: anywhere; }
.ac-mini { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 10px; margin: 10px 0; font-size: 12px; }
.ac-mini div { min-width: 0; }
.ac-mini dt { color: var(--muted); font-size: 11px; }
.ac-mini dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.ac-pocketlist { list-style: none; padding: 6px 0 0; margin: 0 0 8px; border-top: 1px dashed var(--line2); font-size: 12px; }
.ac-pocketlist li { display: flex; gap: 6px; padding: 2px 0; }
.ac-pocketlist .num { margin-inline-start: auto; font-weight: 700; }
.ac-wallet-new { border-top-color: var(--line); background: var(--panel2); }
.ac-pocket { border-bottom: 1px solid var(--line2); padding: 10px 0; display: grid; gap: 6px; }
.ac-pocket:last-child { border-bottom: 0; }
.ac-pocket-head { display: flex; gap: 10px; align-items: center; }
.ac-pocket-head > i { font-size: 20px; color: var(--blue); }
.ac-pocket-head .body { flex: 1; min-width: 0; }
.ac-pocket-head .body b, .ac-pocket-head .body .mut { display: block; }
.ac-pocket-head .body .mut { font-size: 11.5px; }

/* Messages and help */
.ac-mail { display: flex; gap: 12px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--line2); color: var(--text); }
.ac-mail:hover { background: #f6faff; color: var(--text); }
.ac-mail .body { flex: 1; min-width: 0; }
.ac-mail .body b, .ac-mail .body .mut { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-mail .body b { font-weight: 400; }
.ac-mail.unread .body b { font-weight: 700; }
.ac-mail.unread { background: #f4f9ff; border-inline-start: 3px solid var(--blue); }
.ac-mail .meta { font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.ac-mail-ic { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--infoBg); color: var(--infoFg); flex: none; }
.ac-mailbody { font-size: 14px; line-height: 1.6; }
.ac-faq { border-bottom: 1px solid var(--line2); padding: 8px 0; }
.ac-faq summary { cursor: pointer; font-weight: 700; }
.ac-faq p { margin: 6px 0 0; color: var(--text2); }

/* Statement on screen */
.ac-statement { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); overflow-x: auto; }
.ac-statement table { width: 100%; border-collapse: collapse; }
.acs-head td { vertical-align: top; padding: 0 0 14px; }
.acs-brand { font-size: 18px; font-weight: 700; color: var(--navy2); }
.acs-title { font-size: 15px; font-weight: 700; }
.acs-r { text-align: end; }
.acs-muted { color: var(--muted); font-size: 11.5px; }
.acs-sum { max-width: 300px; margin-inline-start: auto; border: 1px solid var(--line); }
.acs-sum td { padding: 5px 8px; border-bottom: 1px solid var(--line2); }
.acs-total td { font-weight: 700; background: #eef3f8; }
.acs-lines th { background: var(--navy2); color: #fff; text-align: start; padding: 6px; font-size: 12px; }
.acs-lines td { padding: 5px 6px; border-bottom: 1px solid var(--line2); vertical-align: top; font-variant-numeric: tabular-nums; }
.acs-foot { margin-top: 16px; border-top: 1px solid var(--line); }
.acs-foot td { padding-top: 8px; vertical-align: top; }

/* Accessibility: skip link and the language switcher (layout additions). */
.ac-skip { position: absolute; inset-inline-start: 8px; top: -60px; z-index: 1000; background: #fff; color: var(--navy2); padding: 8px 12px; border: 2px solid var(--blue); border-radius: 4px; font-weight: 700; }
.ac-skip:focus { top: 8px; }
.ac-lang { display: flex; flex-wrap: wrap; gap: 4px; padding: 6px 10px; border-top: 1px solid #e6edf3; }
.ac-lang a { font-size: 12px; padding: 2px 6px; border-radius: 3px; }
.ac-lang a.on { background: var(--infoBg); font-weight: 700; }
@media (prefers-reduced-motion: reduce) { *, *:before, *:after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* Right-to-left languages (Arabic): mirror the layout. */
[dir="rtl"] body { text-align: right; }
[dir="rtl"] .r, [dir="rtl"] th.r, [dir="rtl"] td.r { text-align: left; }
[dir="rtl"] .ct-sidebar { border-right: 0; border-left: 1px solid #c9d5e2; }
[dir="rtl"] .bi-arrow-right:before { content: "\f12f"; }
[dir="rtl"] .bi-arrow-left:before { content: "\f138"; }
[dir="rtl"] .bi-chevron-right:before { content: "\f284"; }
[dir="rtl"] .ct-tbl th, [dir="rtl"] .ct-tbl td { text-align: right; }
[dir="rtl"] .ct-tbl .r { text-align: left; }
[dir="rtl"] .ct-alert, [dir="rtl"] .ct-feed, [dir="rtl"] .ct-toolbar, [dir="rtl"] .ct-top, [dir="rtl"] .ct-modbar { direction: rtl; }
[dir="rtl"] .ct-modbar .right { margin-left: 0; margin-right: auto; }
[dir="rtl"] .ct-menu .drop { left: 0; right: auto; }
[dir="rtl"] .num, [dir="rtl"] input[type="tel"], [dir="rtl"] input[type="email"], [dir="rtl"] .ac-code { direction: ltr; unicode-bidi: isolate; }
[dir="rtl"] .ac-mail.unread { border-inline-start: 3px solid var(--blue); }
@media (max-width: 1180px) { [dir="rtl"] .ct-sidebar { left: auto; right: -320px; transition: right .2s; } [dir="rtl"] body.nav-open .ct-sidebar { right: 0; left: auto; } }

@media (max-width: 700px) {
    .ac-wallets { grid-template-columns: 1fr; }
    .ac-instr { grid-template-columns: 1fr; }
    .ac-mail .meta { display: none; }
    .ac-bigamount { font-size: 20px; }
}
@media print {
    .ct-top, .ct-modbar, .ct-sidebar, .ct-toolbar .tools, .ct-health, .ac-skip { display: none !important; }
    .ac-statement { border: 0; box-shadow: none; padding: 0; }
}
