/* כפתור צף */
#aw-accessibility-button.aw-floating-btn {
  position: fixed;
  inset-inline-end: 16px;
  inset-block-end: 16px;
  z-index: 9990;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  background: #2563eb;
  color: #ffffff;
  box-shadow: 0 12px 25px rgba(15, 23, 42, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
  transition: transform 0.1s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

#aw-accessibility-button.aw-floating-btn:hover {
  background: #1d4ed8;
  box-shadow: 0 16px 35px rgba(15, 23, 42, 0.6);
  transform: translateY(-2px);
}

#aw-accessibility-button.aw-floating-btn:active {
  transform: translateY(0);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.5);
}

#aw-accessibility-button.aw-floating-btn:focus-visible {
  outline: 3px solid #facc15;
  outline-offset: 3px;
}

.aw-icon {
  display: inline-block;
}

.aw-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* פאנל צד */
.aw-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  z-index: 9980;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.aw-panel {
  position: fixed;
  inset-block: 0;
  inset-inline-end: 0;
  width: 320px;
  max-width: 90vw;
  background: #020617;
  color: #e5e7eb;
  z-index: 9995;
  box-shadow: -12px 0 30px rgba(15, 23, 42, 0.7);
  transform: translateX(100%);
  transition: transform 0.25s ease;
  display: flex;
  flex-direction: column;
  font-family: inherit;
  direction: rtl;
}

.aw-panel-header {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.4);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.aw-panel-title-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.aw-panel-icon {
  font-size: 20px;
}

.aw-panel-title {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 700;
  font-family: "Open Sans Hebrew", "Arial", sans-serif;
}

.aw-panel-close {
  background: transparent;
  border: none;
  color: #9ca3af;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.aw-panel-close:hover {
  color: #e5e7eb;
}

.aw-panel-body {
  padding: 12px 16px;
  flex: 1 1 auto;
  overflow-y: auto;
}

.aw-panel-footer {
  padding: 12px 16px 14px;
  border-top: 1px solid rgba(148, 163, 184, 0.4);
}

.aw-group {
  margin-bottom: 14px;
}

.aw-group-label {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.aw-btn-group {
  display: flex;
  gap: 6px;
}

.aw-option-btn {
  flex: 1 1 auto;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.8);
  color: #e5e7eb;
  font-size: 0.84rem;
  padding: 5px 8px;
  cursor: pointer;
}

.aw-option-btn:hover {
  background: rgba(30, 64, 175, 0.7);
  border-color: #93c5fd;
}

.aw-option-btn.aw-option-btn-active {
  background: #2563eb;
  border-color: #60a5fa;
  color: #ffffff;
}

.aw-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  position: relative;
}

.aw-toggle-label {
  font-size: 0.9rem;
}

.aw-toggle-row input[type='checkbox'] {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
  inset-inline-end: 0;
}

.aw-toggle-slider {
  width: 38px;
  height: 20px;
  border-radius: 999px;
  background: #4b5563;
  position: relative;
  transition: background-color 0.2s ease;
}

.aw-toggle-slider::before {
  content: '';
  position: absolute;
  inset-block-start: 2px;
  inset-inline-start: 2px;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #ffffff;
  transition: transform 0.2s ease;
}

.aw-toggle-row input[type='checkbox']:checked + .aw-toggle-slider {
  background: #22c55e;
}

.aw-toggle-row input[type='checkbox']:checked + .aw-toggle-slider::before {
  transform: translateX(16px);
}

.aw-reset-btn {
  width: 100%;
  border-radius: 999px;
  border: 1px solid rgba(248, 113, 113, 0.8);
  background: rgba(127, 29, 29, 0.9);
  color: #fee2e2;
  padding: 7px 10px;
  font-size: 0.88rem;
  cursor: pointer;
}

.aw-reset-btn:hover {
  background: rgba(153, 27, 27, 1);
}

/* מצב פתוח */
html.aw-panel-open .aw-panel {
  transform: translateX(0);
}

html.aw-panel-open .aw-backdrop {
  opacity: 1;
  pointer-events: auto;
}

/* התאמות באתר */
html.aw-text-small {
  font-size: 90%;
}

html.aw-text-normal {
  font-size: 100%;
}

html.aw-text-large {
  font-size: 115%;
}

html.aw-highlight-links a {
  outline: 2px solid #f97316;
  outline-offset: 2px;
  background: rgba(251, 191, 36, 0.12);
}

html.aw-readable-font,
html.aw-readable-font body {
  font-family: Arial, Helvetica, sans-serif !important;
}

html.aw-bold-headings h1,
html.aw-bold-headings h2,
html.aw-bold-headings h3,
html.aw-bold-headings h4,
html.aw-bold-headings h5,
html.aw-bold-headings h6 {
  font-weight: 800 !important;
}

html.aw-stop-animations *,
html.aw-stop-animations *::before,
html.aw-stop-animations *::after {
  animation: none !important;
  transition: none !important;
}

/* מצב ניגודיות גבוהה */
html.aw-high-contrast,
html.aw-high-contrast body {
  background-color: #000000 !important;
  color: #ffffff !important;
}

html.aw-high-contrast a {
  color: #ffeb3b !important;
  text-decoration: underline !important;
}

html.aw-high-contrast button,
html.aw-high-contrast input,
html.aw-high-contrast select,
html.aw-high-contrast textarea {
  background-color: #000000 !important;
  color: #ffffff !important;
  border-color: #ffffff !important;
}

/* הדגשת פוקוס למקלדת */
html.aw-keyboard-nav a:focus-visible,
html.aw-keyboard-nav button:focus-visible,
html.aw-keyboard-nav input:focus-visible,
html.aw-keyboard-nav select:focus-visible,
html.aw-keyboard-nav textarea:focus-visible {
  outline: 3px solid #facc15 !important;
  outline-offset: 3px !important;
  box-shadow: 0 0 0 2px rgba(250, 204, 21, 0.5);
}

/* הגדלת מרווחי טקסט */
html.aw-text-spacing body,
html.aw-text-spacing p,
html.aw-text-spacing li,
html.aw-text-spacing a {
  line-height: 1.7 !important;
  letter-spacing: 0.03em;
}

html.aw-text-spacing p,
html.aw-text-spacing li {
  margin-bottom: 0.4em;
}

@media (max-width: 480px) {
  #aw-accessibility-button.aw-floating-btn {
    inset-inline-end: 12px;
    inset-block-end: 12px;
    width: 48px;
    height: 48px;
    font-size: 24px;
  }
}


