/* ACCS Accessibility Menu – Premium UI */
.accs-menu-toggle,
.accs-menu-panel,
.accs-statement-view,
.accs-buttons-container {
  font-family: "Assistant", "Noto Sans Hebrew", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ── Floating toggle ── */
.accs-buttons-container {
  position: fixed;
  z-index: 10000;
  bottom: 16px;
  left: 16px;
  direction: rtl;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.accs-buttons-container.active {
  display: block;
  opacity: 1;
}

.accs-buttons-container.active:after {
  content: "";
  display: table;
  clear: both;
}

.accs-menu-toggle {
  position: fixed;
  z-index: 10000;
  background: var(--accs-primary, #0066cc);
  color: #fff;
  border: none;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 102, 204, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  bottom: 16px;
  left: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s;
}

.accs-menu-toggle:hover,
.accs-menu-toggle:focus {
  transform: scale(1.06);
  box-shadow: 0 6px 24px rgba(0, 102, 204, 0.55);
  background: var(--accs-primary-hover, #0052a3);
  outline: 3px solid rgba(255, 255, 255, 0.9);
  outline-offset: 2px;
}

.accs-menu-toggle svg {
  width: 28px;
  height: 28px;
  display: block;
}

.accs-buttons-container.active .accs-menu-toggle {
  position: relative;
  bottom: auto;
  left: auto;
  float: left;
  border-radius: 50px 0 0 50px;
  width: 52px;
  height: 52px;
  transform: none;
}

.accs-toggle-reset-button {
  position: relative;
  z-index: 10001;
  background: #dc3545;
  color: #fff;
  border: none;
  width: 52px;
  height: 52px;
  border-radius: 0 50px 50px 0;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(220, 53, 69, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  float: right;
  transition: background 0.2s, transform 0.2s;
}

.accs-toggle-reset-button:hover,
.accs-toggle-reset-button:focus {
  background: #c82333;
  transform: scale(1.04);
  outline: 3px solid #fff;
  outline-offset: 2px;
}

.accs-toggle-reset-button svg {
  width: 24px;
  height: 24px;
}

/* ── Overlay & panel ── */
.accs-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(2px);
  z-index: 2147483645;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.accs-menu-overlay.active {
  display: block;
  opacity: 1;
}

.accs-menu-panel {
  position: fixed;
  bottom: 0;
  width: 400px;
  max-width: 100vw;
  height: 100%;
  background: #eceef1;
  direction: rtl;
  z-index: 2147483646;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: #c5cad3 transparent;
}

.accs-menu-panel::-webkit-scrollbar {
  width: 4px;
}

.accs-menu-panel::-webkit-scrollbar-thumb {
  background: #c5cad3;
  border-radius: 4px;
}

.accs-menu-panel-right {
  right: -400px;
  transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.18);
}

.accs-menu-panel-right.active {
  right: 0;
}

.accs-menu-panel-left {
  left: -400px;
  transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.18);
}

.accs-menu-panel-left.active {
  left: 0;
}

.accs-menu-panel.no-transition {
  transition: none !important;
}

/* ── Header ── */
.accs-menu-header {
  background: #fff;
  color: #1e293b;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid #e2e8f0;
  min-height: 64px;
  box-sizing: border-box;
}

.accs-menu-header.scrolled {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.accs-menu-header h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #1a1a2e;
  letter-spacing: -0.02em;
}

.accs-menu-header h2 svg {
  flex-shrink: 0;
}

.accs-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.accs-menu-close,
.accs-header-reset-button {
  border: none;
  color: #fff;
  cursor: pointer;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  transition: background 0.2s, transform 0.15s;
  font-weight: 600;
}

.accs-menu-close {
  background: #dc2626;
  width: 42px;
  border-radius: 10px;
  padding: 0;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
}

.accs-menu-close:hover,
.accs-menu-close:focus {
  background: #b91c1c;
  transform: scale(1.05);
  outline: 2px solid #1e293b;
  outline-offset: 2px;
}

.accs-header-reset-button {
  background: var(--accs-primary, #0066cc);
  padding: 0 18px;
  border-radius: 10px;
  font-size: 15px;
  gap: 8px;
  box-shadow: 0 2px 8px rgba(0, 102, 204, 0.3);
}

.accs-header-reset-button:hover,
.accs-header-reset-button:focus {
  background: var(--accs-primary-hover, #0052a3);
  transform: scale(1.03);
  outline: 2px solid #1e293b;
  outline-offset: 2px;
}

.accs-header-reset-button svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* ── Content & sections ── */
.accs-menu-content {
  padding: 8px 16px 0;
}

.accs-menu-section {
  margin-bottom: 20px;
}

.accs-menu-section h3 {
  margin: 16px 8px 12px;
  padding: 0;
  font-size: 17px;
  color: #2d3748;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.accs-menu-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* ── Feature cards ── */
.accs-menu-button {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 16px 10px 14px;
  text-align: center;
  cursor: pointer;
  font-size: 13px;
  color: #2d3748;
  position: relative;
  overflow: hidden;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.15s;
  font-family: inherit;
  width: 100%;
  min-height: 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.accs-menu-button:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.07);
  transform: translateY(-1px);
}

.accs-menu-button:focus {
  outline: 2px solid var(--accs-primary, #0066cc);
  outline-offset: 2px;
}

.accs-menu-button.active {
  background: #e8f4fd;
  border-color: var(--accs-primary, #0066cc);
  box-shadow: inset 0 0 0 1px var(--accs-primary, #0066cc), 0 2px 8px rgba(0, 102, 204, 0.12);
}

.accs-menu-button-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.accs-menu-button-icon-wrap svg {
  width: 28px;
  height: 28px;
  display: block;
}

.accs-menu-button-text {
  display: block;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  color: #374151;
}

.accs-menu-button-direction {
  display: block;
  font-size: 11px;
  color: var(--accs-primary, #0066cc);
  font-weight: 700;
  margin-top: 2px;
}

.accs-menu-button-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accs-primary, #0066cc);
  width: 0;
  transition: width 0.3s ease;
  border-radius: 0 0 10px 10px;
}

/* ── Statement bar ── */
.accs-statement-bar {
  margin: 8px 0 0;
  padding: 0;
}

.accs-statement-link {
  display: block;
  width: 100%;
  text-align: center;
  padding: 16px 20px;
  margin: 0;
  color: var(--accs-primary, #0066cc);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  background: #e2e5ea;
  border: none;
  border-top: 1px solid #d1d5db;
  border-bottom: 1px solid #d1d5db;
  font-family: inherit;
  transition: background 0.2s, color 0.2s;
  box-sizing: border-box;
}

.accs-statement-link:hover,
.accs-statement-link:focus {
  background: #d8dce3;
  color: #004499;
  outline: none;
  box-shadow: inset 0 0 0 2px var(--accs-primary, #0066cc);
}

/* ── Brand footer ── */
.accs-menu-footer {
  margin-top: 0;
  padding: 14px 20px 20px;
  background: #eceef1;
  text-align: center;
}

.accs-brand-credit {
  margin: 0;
  font-size: 11px;
  line-height: 1.5;
  color: #94a3b8;
}

.accs-brand-credit-link {
  color: #94a3b8;
  text-decoration: none;
}

.accs-brand-credit-link:hover,
.accs-brand-credit-link:focus {
  color: var(--accs-primary, #0066cc);
  text-decoration: underline;
}

.accs-statement-brand {
  margin: 28px 0 0;
  padding-top: 16px;
  border-top: 1px solid #e2e8f0;
  font-size: 11px;
  color: #94a3b8;
  text-align: center;
}

/* ── Statement view ── */
.accs-statement-view {
  position: fixed;
  left: 0;
  top: 100%;
  width: 400px;
  max-width: 100vw;
  height: 100%;
  background: #fff;
  z-index: 2147483647;
  direction: rtl;
  overflow: hidden;
  font-family: "Assistant", "Noto Sans Hebrew", Arial, sans-serif;
  transition: top 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 24px rgba(0, 0, 0, 0.15);
}

.accs-statement-view.statement-right {
  left: auto;
  right: 0;
}

.accs-statement-view.active {
  top: 0;
}

.accs-statement-view.no-transition {
  transition: none !important;
}

.accs-menu-panel.statement-open {
  overflow: hidden !important;
}

.accs-statement-header {
  background: var(--accs-primary, #0066cc);
  height: 52px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.accs-statement-back-link {
  display: block;
  width: 100%;
  height: 52px;
  line-height: 52px;
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  padding: 0 20px;
  background: var(--accs-primary, #0066cc);
  border: none;
  font-family: inherit;
  text-align: right;
  cursor: pointer;
  transition: background 0.2s;
}

.accs-statement-back-link:hover,
.accs-statement-back-link:focus {
  background: var(--accs-primary-hover, #0052a3);
  outline: 2px solid #fff;
  outline-offset: -2px;
}

.accs-statement-title-section {
  background: #f8fafc;
  padding: 24px;
  border-bottom: 1px solid #e2e8f0;
}

.accs-statement-header-title {
  color: #1a1a2e;
  font-size: 22px;
  font-weight: 700;
  margin: 0;
}

.accs-statement-content {
  position: absolute;
  top: 52px;
  left: 0;
  right: 0;
  bottom: 0;
  overflow-y: auto;
  background: #fff;
}

.accs-statement-content-inner {
  padding: 24px 24px 48px;
}

.accs-statement-content-inner h2 {
  margin: 24px 0 12px;
  font-size: 18px;
  font-weight: 700;
  color: #1a1a2e;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 8px;
}

.accs-statement-content-inner p,
.accs-statement-content-inner li {
  font-size: 14px;
  line-height: 1.8;
  color: #4b5563;
}

.accs-statement-content-inner ul {
  padding-right: 20px;
}

.accs-statement-content-inner a {
  color: var(--accs-primary, #0066cc);
}

.accs-mobile-device [data-feature="large-cursor"],
.accs-mobile-device [data-feature="keyboard-nav"],
.accs-mobile-device [data-feature="reading-mask"],
.accs-mobile-device [data-feature="focus-frame"] {
  display: none !important;
}

@media screen and (max-width: 767px) {
  [data-feature="large-cursor"],
  [data-feature="keyboard-nav"],
  [data-feature="reading-mask"],
  [data-feature="focus-frame"] {
    display: none !important;
  }
}

@media screen and (max-width: 600px) {
  .accs-menu-panel,
  .accs-menu-panel.accs-menu-panel-left,
  .accs-menu-panel.accs-menu-panel-right {
    width: 100vw !important;
    left: 0 !important;
    right: 0 !important;
    top: 0 !important;
    bottom: 0 !important;
    height: 100vh !important;
    max-width: 100vw !important;
  }

  .accs-menu-panel.accs-menu-panel-left {
    left: -100vw;
  }

  .accs-menu-panel.accs-menu-panel-left.active {
    left: 0;
  }

  .accs-menu-panel.accs-menu-panel-right {
    right: -100vw;
    left: auto !important;
  }

  .accs-menu-panel.accs-menu-panel-right.active {
    right: 0;
  }

  .accs-statement-view {
    width: 100%;
  }

  .accs-menu-button {
    min-height: 88px;
    padding: 14px 8px 12px;
  }

  .accs-menu-button-text {
    font-size: 12px;
  }
}

@supports (bottom: env(safe-area-inset-bottom)) {
  .accs-menu-toggle,
  .accs-buttons-container {
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  }

  .accs-menu-footer {
    padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  }
}

/* Accessibility effect classes */
html.accs-large-text-1 { font-size: 125% !important; }
html.accs-large-text-1 *:not(script):not(style):not(noscript):not(.accs-menu-panel):not(.accs-menu-panel *) { font-size: 1rem !important; }
html.accs-large-text-2 { font-size: 150% !important; }
html.accs-large-text-2 *:not(script):not(style):not(noscript):not(.accs-menu-panel):not(.accs-menu-panel *) { font-size: 1rem !important; }
html.accs-large-text-3 { font-size: 200% !important; }
html.accs-large-text-3 *:not(script):not(style):not(noscript):not(.accs-menu-panel):not(.accs-menu-panel *) { font-size: 1rem !important; }

.accs-line-height-1, .accs-line-height-1 *:not(.accs-menu-panel):not(.accs-menu-panel *) { line-height: 1.5 !important; }
.accs-line-height-2, .accs-line-height-2 *:not(.accs-menu-panel):not(.accs-menu-panel *) { line-height: 2 !important; }
.accs-line-height-3, .accs-line-height-3 *:not(.accs-menu-panel):not(.accs-menu-panel *) { line-height: 2.5 !important; }

.accs-text-left, .accs-text-left *:not(.accs-menu-panel):not(.accs-menu-panel *) { text-align: left !important; }
.accs-text-right, .accs-text-right *:not(.accs-menu-panel):not(.accs-menu-panel *) { text-align: right !important; }
.accs-text-center, .accs-text-center *:not(.accs-menu-panel):not(.accs-menu-panel *) { text-align: center !important; }

.accs-readable-font, .accs-readable-font *:not(.accs-menu-header):not(.accs-menu-header *) {
  font-family: Arial, Helvetica, sans-serif !important;
}

.accs-text-spacing *:not(.accs-menu-panel):not(.accs-menu-panel *) {
  letter-spacing: 0.12em !important;
  word-spacing: 0.16em !important;
}

.accs-high-contrast-dark,
.accs-high-contrast-dark body {
  background: #000 !important;
  color: #ff0 !important;
}

.accs-high-contrast-dark *:not(.accs-menu-panel):not(.accs-menu-panel *):not(.accs-buttons-container):not(.accs-buttons-container *) {
  background: #000 !important;
  color: #ff0 !important;
  border-color: #ff0 !important;
  box-shadow: none !important;
}

.accs-high-contrast-dark a:not(.accs-menu-panel a) {
  color: #0ff !important;
  text-decoration: underline !important;
}

.accs-high-contrast-light,
.accs-high-contrast-light body {
  background: #fff !important;
  color: #000 !important;
}

.accs-high-contrast-light *:not(.accs-menu-panel):not(.accs-menu-panel *):not(.accs-buttons-container):not(.accs-buttons-container *) {
  background: #fff !important;
  color: #000 !important;
  border-color: #000 !important;
  box-shadow: none !important;
}

.accs-high-contrast-light a:not(.accs-menu-panel a) {
  color: #00f !important;
  text-decoration: underline !important;
}

.accs-invert-colors {
  filter: invert(100%) !important;
}

.accs-grayscale {
  filter: grayscale(100%) !important;
}

.accs-hide-images img {
  display: none !important;
}

.accs-hide-images [style*="background-image"] {
  background-image: none !important;
}

.accs-pause-animations *:not(.accs-menu-panel):not(.accs-menu-panel *) {
  animation: none !important;
  transition: none !important;
}

.accs-highlight-links a {
  background: #ff0 !important;
  padding: 2px 4px !important;
  border: 2px solid #f60 !important;
  font-weight: 700 !important;
}

.accs-focus-frame *:not(.accs-menu-panel):not(.accs-menu-panel *):focus {
  outline: 4px solid var(--accs-primary, #0066cc) !important;
  outline-offset: 2px !important;
}

.accs-large-cursor,
.accs-large-cursor *:not(#accs-large-cursor-svg):not(#accs-large-cursor-svg *) {
  cursor: none !important;
}

#accs-large-cursor-svg {
  position: fixed;
  top: 0;
  left: 0;
  width: 48px;
  height: 48px;
  z-index: 2147483647;
  pointer-events: none;
  transform: translate(-9999px, -9999px);
}

.accs-reading-mask-top {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 2147483647;
  pointer-events: none;
}

.accs-reading-mask-bottom {
  position: fixed;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 2147483647;
  pointer-events: none;
}

.accs-reading-line {
  position: fixed;
  left: 0;
  width: 100%;
  height: 80px;
  z-index: 2147483647;
  pointer-events: none;
  border-top: 3px solid var(--accs-primary, #0066cc);
  border-bottom: 3px solid var(--accs-primary, #0066cc);
}

.accs-reading-line-handle-top,
.accs-reading-line-handle-bottom {
  position: absolute;
  left: 0;
  width: 100%;
  height: 10px;
  pointer-events: auto;
  cursor: move;
}

.accs-reading-line-handle-top { top: 0; }
.accs-reading-line-handle-bottom { bottom: 0; }

@media print {
  .accs-menu-toggle,
  .accs-buttons-container,
  .accs-menu-overlay,
  .accs-menu-panel,
  .accs-statement-view,
  .accs-statement-link {
    display: none !important;
  }
}
