/* FirstClick Accessibility Static Widget - v2 - for standalone HTML pages */
:root {
  --fcaa-blue: #0b1220;
  --fcaa-yellow: #facc15;
  --fcaa-orange: #f59e0b;
  --fcaa-green: #0b7d3b;
  --fcaa-text: #111827;
  --fcaa-muted: #4b5563;
  --fcaa-border: #e5e7eb;
  --fcaa-shadow: 0 18px 50px rgba(2, 6, 23, .24);
}

.fcaa-root,
.fcaa-root * {
  box-sizing: border-box;
}

.fcaa-toggle {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 2147483000;
  width: 58px;
  height: 58px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: transform .18s ease, box-shadow .18s ease;
}

.fcaa-toggle:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: none;
}

.fcaa-toggle::after {
  content: "תפריט נגישות";
  position: absolute;
  right: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  width: max-content;
  max-width: 160px;
  padding: 6px 10px;
  border-radius: 6px;
  background: #111827;
  color: #fff;
  font: 700 13px/1.25 Heebo, Arial, sans-serif;
  direction: rtl;
  text-align: center;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .16s ease, transform .16s ease;
}

.fcaa-toggle:hover::after,
.fcaa-toggle:focus-visible::after {
  opacity: 1;
  transform: translateY(-50%) translateX(-2px);
}

.fcaa-toggle-icon {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.fcaa-panel {
  position: fixed;
  right: 22px;
  bottom: 92px;
  z-index: 2147483000;
  width: min(380px, calc(100vw - 28px));
  max-height: min(720px, calc(100vh - 120px));
  overflow: auto;
  background: #fff;
  color: var(--fcaa-text);
  border: 1px solid var(--fcaa-border);
  border-radius: 22px;
  box-shadow: var(--fcaa-shadow);
  padding: 18px;
  direction: rtl;
  text-align: right;
  font-family: Heebo, Arial, sans-serif;
}

.fcaa-panel[hidden] {
  display: none !important;
}

.fcaa-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--fcaa-border);
}

.fcaa-panel h2 {
  margin: 0 0 4px;
  font-size: 22px;
  color: var(--fcaa-text);
  line-height: 1.25;
}

.fcaa-panel h3 {
  margin: 0 0 8px;
  font-size: 15px;
  color: var(--fcaa-text);
}

.fcaa-panel p {
  margin: 0;
  color: var(--fcaa-muted);
  font-size: 13px;
  line-height: 1.55;
}

.fcaa-close {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid var(--fcaa-border);
  background: #f8fafc;
  color: var(--fcaa-text);
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
}

.fcaa-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 16px 0;
}

.fcaa-action,
.fcaa-secondary,
.fcaa-reset {
  appearance: none;
  border: 1px solid var(--fcaa-border);
  border-radius: 14px;
  background: #f8fafc;
  color: var(--fcaa-text);
  min-height: 46px;
  padding: 10px 12px;
  font: inherit;
  font-weight: 800;
  font-size: 13px;
  line-height: 1.3;
  cursor: pointer;
  text-align: center;
}

.fcaa-action[aria-pressed="true"] {
  background: #0b1220;
  color: #fff;
  border-color: #0b1220;
}

.fcaa-scan {
  border: 1px solid var(--fcaa-border);
  background: #f8fafc;
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 14px;
}

.fcaa-secondary {
  margin-top: 10px;
  width: 100%;
  background: #fff;
}

.fcaa-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.fcaa-footer a {
  color: #9a5200;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.fcaa-reset {
  background: #fff4e0;
  border-color: #fed7aa;
  color: #9a5200;
}

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

.fcaa-img-alt-label {
  display: none;
  margin: 6px 0 12px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #fff7ed;
  color: #7c2d12;
  border: 1px solid #fed7aa;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 700;
}

html.fcaa-show-image-alt .fcaa-img-alt-label {
  display: block;
}

html.fcaa-readable-font body,
html.fcaa-readable-font body *:not(svg):not(path) {
  font-family: Arial, "Arial Hebrew", sans-serif !important;
}

html.fcaa-line-spacing body,
html.fcaa-line-spacing body *:not(svg):not(path) {
  line-height: 1.9 !important;
  letter-spacing: .02em !important;
  word-spacing: .08em !important;
}

html.fcaa-highlight-links a {
  text-decoration: underline !important;
  text-decoration-thickness: 2px !important;
  text-underline-offset: 4px !important;
  color: #0f4c81 !important;
  font-weight: 800 !important;
}

html.fcaa-focus-visible a:focus-visible,
html.fcaa-focus-visible button:focus-visible,
html.fcaa-focus-visible input:focus-visible,
html.fcaa-focus-visible select:focus-visible,
html.fcaa-focus-visible textarea:focus-visible,
html.fcaa-focus-visible [tabindex]:focus-visible,
.fcaa-toggle:focus-visible,
.fcaa-panel button:focus-visible,
.fcaa-panel a:focus-visible {
  outline: 3px solid #facc15 !important;
  outline-offset: 4px !important;
  box-shadow: 0 0 0 6px rgba(250, 204, 21, .28) !important;
}

html.fcaa-pause-motion *,
html.fcaa-pause-motion *::before,
html.fcaa-pause-motion *::after {
  animation-duration: .001ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: .001ms !important;
  scroll-behavior: auto !important;
}

html.fcaa-grayscale {
  filter: grayscale(1) !important;
}

html.fcaa-big-cursor,
html.fcaa-big-cursor * {
  cursor: url("data:image/svg+xml,%3Csvg width='32' height='32' viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 3l20 14-9 2 5 9-4 2-5-9-7 7V3z' fill='black' stroke='white' stroke-width='2'/%3E%3C/svg%3E") 3 3, auto !important;
}

html.fcaa-contrast-dark body,
html.fcaa-contrast-dark main,
html.fcaa-contrast-dark section,
html.fcaa-contrast-dark article,
html.fcaa-contrast-dark header,
html.fcaa-contrast-dark footer,
html.fcaa-contrast-dark nav,
html.fcaa-contrast-dark div:not(.fcaa-panel):not(.fcaa-root):not(.fcaa-toggle):not(.fcaa-toggle *):not(.fcaa-panel *),
html.fcaa-contrast-dark form {
  background: #000 !important;
  color: #fff !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

html.fcaa-contrast-dark h1,
html.fcaa-contrast-dark h2,
html.fcaa-contrast-dark h3,
html.fcaa-contrast-dark h4,
html.fcaa-contrast-dark h5,
html.fcaa-contrast-dark h6,
html.fcaa-contrast-dark p,
html.fcaa-contrast-dark span,
html.fcaa-contrast-dark li,
html.fcaa-contrast-dark label,
html.fcaa-contrast-dark strong,
html.fcaa-contrast-dark b {
  color: #fff !important;
  text-shadow: none !important;
}

html.fcaa-contrast-dark a {
  color: #facc15 !important;
  text-decoration: underline !important;
}

html.fcaa-contrast-dark button:not(.fcaa-toggle):not(.fcaa-panel button),
html.fcaa-contrast-dark input,
html.fcaa-contrast-dark select,
html.fcaa-contrast-dark textarea {
  background: #000 !important;
  color: #fff !important;
  border: 2px solid #fff !important;
}

html.fcaa-contrast-light body,
html.fcaa-contrast-light main,
html.fcaa-contrast-light section,
html.fcaa-contrast-light article,
html.fcaa-contrast-light header,
html.fcaa-contrast-light footer,
html.fcaa-contrast-light nav,
html.fcaa-contrast-light div:not(.fcaa-panel):not(.fcaa-root):not(.fcaa-toggle):not(.fcaa-toggle *):not(.fcaa-panel *),
html.fcaa-contrast-light form {
  background: #fff !important;
  color: #000 !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

html.fcaa-contrast-light h1,
html.fcaa-contrast-light h2,
html.fcaa-contrast-light h3,
html.fcaa-contrast-light h4,
html.fcaa-contrast-light h5,
html.fcaa-contrast-light h6,
html.fcaa-contrast-light p,
html.fcaa-contrast-light span,
html.fcaa-contrast-light li,
html.fcaa-contrast-light label,
html.fcaa-contrast-light strong,
html.fcaa-contrast-light b {
  color: #000 !important;
  text-shadow: none !important;
}

html.fcaa-contrast-light a {
  color: #003b73 !important;
  text-decoration: underline !important;
}

html.fcaa-contrast-light button:not(.fcaa-toggle):not(.fcaa-panel button),
html.fcaa-contrast-light input,
html.fcaa-contrast-light select,
html.fcaa-contrast-light textarea {
  background: #fff !important;
  color: #000 !important;
  border: 2px solid #000 !important;
}

.fcaa-field-error {
  color: #b91c1c !important;
  font-weight: 800 !important;
  margin-top: 6px !important;
}

[aria-invalid="true"] {
  border-color: #b91c1c !important;
  box-shadow: 0 0 0 3px rgba(185, 28, 28, .18) !important;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 600px) {
  .fcaa-toggle {
    right: 16px;
    bottom: 16px;
    width: 54px;
    height: 54px;
  }

  .fcaa-panel {
    right: 14px;
    bottom: 82px;
    width: calc(100vw - 28px);
    max-height: calc(100vh - 100px);
    border-radius: 18px;
  }

  .fcaa-actions {
    grid-template-columns: 1fr;
  }
}
