/* Advance Services - Accessibility Widget v2.0 */

#a11y-toggle {
  position: fixed;
  left: 20px;
  bottom: 30px;
  z-index: 9998;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0a3d2b, #00c9a7);
  border: 3px solid #fff;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0,201,167,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s, box-shadow .2s;
  font-size: 1.6rem;
  line-height: 1;
}
#a11y-toggle:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(0,201,167,0.6); }
#a11y-toggle:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

#a11y-panel {
  position: fixed;
  left: 20px;
  bottom: 96px;
  z-index: 9999;
  width: 280px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 12px 48px rgba(0,0,0,0.18);
  direction: rtl;
  font-family: 'Assistant', sans-serif;
  overflow: hidden;
  transform: scale(0.92) translateY(16px);
  opacity: 0;
  pointer-events: none;
  transition: transform .25s cubic-bezier(.34,1.56,.64,1), opacity .2s;
  border: 1px solid rgba(0,201,167,0.15);
}
#a11y-panel.open { transform: scale(1) translateY(0); opacity: 1; pointer-events: all; }

.a11y-header { background: linear-gradient(135deg,#0a1628,#1a3a6b); padding: 1rem 1.2rem; display: flex; align-items: center; justify-content: space-between; }
.a11y-header h2 { color: #fff; font-size: .95rem; font-weight: 800; margin: 0; font-family: 'Heebo', sans-serif; }
.a11y-header-sub { color: rgba(255,255,255,0.55); font-size: .72rem; margin-top: .1rem; }
.a11y-close { background: rgba(255,255,255,0.1); border: none; color: #fff; width: 28px; height: 28px; border-radius: 50%; cursor: pointer; font-size: 1rem; display: flex; align-items: center; justify-content: center; transition: background .2s; }
.a11y-close:hover { background: rgba(255,255,255,0.22); }

.a11y-body { padding: .8rem; }
.a11y-section-title { font-size: .7rem; font-weight: 700; color: #8898aa; letter-spacing: 1.5px; text-transform: uppercase; padding: .4rem .4rem .2rem; }
.a11y-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-bottom: .6rem; }

.a11y-btn { background: #f4f7fb; border: 1.5px solid #e8edf5; border-radius: 12px; padding: .65rem .5rem; cursor: pointer; font-family: 'Assistant', sans-serif; font-size: .78rem; font-weight: 600; color: #1a2340; text-align: center; transition: all .18s; display: flex; flex-direction: column; align-items: center; gap: .3rem; line-height: 1.3; }
.a11y-btn .a11y-icon { font-size: 1.25rem; }
.a11y-btn:hover { background: #e0faf5; border-color: #00c9a7; color: #006b57; }
.a11y-btn.active { background: #00c9a7; border-color: #00c9a7; color: #0a1628; font-weight: 800; }

.a11y-font-row { display: flex; align-items: center; gap: .4rem; background: #f4f7fb; border-radius: 12px; padding: .5rem .8rem; margin-bottom: .6rem; }
.a11y-font-label { flex: 1; font-size: .8rem; font-weight: 600; color: #1a2340; }
.a11y-font-val { font-size: .85rem; font-weight: 800; color: #00c9a7; min-width: 36px; text-align: center; }
.a11y-font-btn { width: 30px; height: 30px; border-radius: 8px; border: 1.5px solid #e8edf5; background: #fff; cursor: pointer; font-size: 1.1rem; font-weight: 700; color: #1a2340; display: flex; align-items: center; justify-content: center; transition: all .15s; }
.a11y-font-btn:hover { background: #00c9a7; border-color: #00c9a7; color: #fff; }

.a11y-divider { height: 1px; background: #e8edf5; margin: .5rem 0; }
.a11y-page-link { display: block; text-align: center; font-size: .8rem; color: #0d6efd; font-weight: 600; margin: .3rem 0 .5rem; text-decoration: none; }
.a11y-page-link:hover { text-decoration: underline; }
.a11y-reset { width: 100%; background: transparent; border: 1.5px solid #e8edf5; border-radius: 10px; padding: .55rem; cursor: pointer; font-family: 'Assistant', sans-serif; font-size: .8rem; font-weight: 600; color: #8898aa; transition: all .18s; margin-top: .3rem; }
.a11y-reset:hover { border-color: #e74c3c; color: #e74c3c; }

#a11y-ruler { position: fixed; left: 0; right: 0; height: 36px; background: rgba(0,201,167,0.12); border-top: 2px solid rgba(0,201,167,0.5); border-bottom: 2px solid rgba(0,201,167,0.5); pointer-events: none; z-index: 9990; display: none; }
#a11y-mask-top, #a11y-mask-bottom { position: fixed; left: 0; right: 0; background: rgba(0,0,0,0.6); pointer-events: none; z-index: 9989; display: none; }

/* body-level classes */
body.a11y-high-contrast, body.a11y-high-contrast * { background-color: #000 !important; color: #fff !important; border-color: #fff !important; }
body.a11y-high-contrast a { color: #ff0 !important; }
body.a11y-negative { filter: invert(1) hue-rotate(180deg); }
body.a11y-negative img { filter: invert(1) hue-rotate(180deg); }
body.a11y-grayscale { filter: grayscale(1); }
body.a11y-light-bg { background: #fffff0 !important; }
body.a11y-underline-links a { text-decoration: underline !important; }
body.a11y-focus-highlight *:focus { outline: 3px solid #00c9a7 !important; outline-offset: 3px !important; }
body.a11y-reading-guide #a11y-ruler,
body.a11y-reading-guide #a11y-mask-top,
body.a11y-reading-guide #a11y-mask-bottom { display: block; }
body.a11y-letter-spacing { letter-spacing: 0.12em !important; }
body.a11y-line-height * { line-height: 2 !important; }
body.a11y-hide-images img { visibility: hidden !important; }
