/* MAI / Industry.org.il floating site elements */
.mai-site-elements {
  --mai-navy: #0D2B5E;
  --mai-blue: #274ABC;
  --mai-orange: #E85D04;
  --mai-floating-bottom: 28px;
  font-family: Heebo, Arial, sans-serif;
}

.mai-site-elements *,
.mai-site-elements *::before,
.mai-site-elements *::after { box-sizing: border-box; }

.mai-site-elements img { display: block; max-width: none; }
.mai-site-elements .mai-mobile { display: none; }
.mai-site-elements .mai-lang-en { display: none; }
.mai-site-elements.mai-en .mai-lang-he { display: none; }
.mai-site-elements.mai-en .mai-lang-en { display: block; }
.mai-site-elements.mai-en .mai-cookie-copy.mai-lang-en { display: flex; }

.mai-accessibility,
.mai-bot,
.mai-stay-updated {
  position: fixed;
  z-index: 2147482000;
}

.mai-accessibility {
    position: fixed;
    top: 110px;
    right: 0;
    left: auto;
    z-index: 2147482000;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.mai-accessibility:focus-visible,
.mai-bot:focus-visible,
.mai-pill:focus-visible,
.mai-cookie button:focus-visible,
.mai-cookie a:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
  box-shadow: 0 0 0 5px var(--mai-blue);
}

/* Exported desktop bot files contain 6px transparent padding. */
.mai-bot {
  right: 22px;
  bottom: calc(var(--mai-floating-bottom) - 6px);
  text-decoration: none;
}

/* Exported pill files contain 8px transparent padding. */
.mai-stay-updated {
  left: 20px;
  bottom: calc(var(--mai-floating-bottom) - 8px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.mai-pill { display: block; text-decoration: none; }
.mai-pill + .mai-pill { margin-top: -6px; } /* 10px visible gap */

.mai-site-elements.mai-cookie-visible { --mai-floating-bottom: 75px; }

/* Cookie banner */
.mai-cookie {
  position: fixed;
  z-index: 2147483000;
  left: 0;
  right: 0;
  bottom: 0;
  min-height: 45px;
  width: 100%;
  padding: 7px 52px 7px 28px;
  display: flex;
  align-items: center;
  gap: 18px;
  color: #fff;
  background: linear-gradient(90deg, #0A2450 0%, #0D2B5E 55%, #123A80 100%);
  font-size: 16px;
  line-height: 1.2;
  box-shadow: 0 -2px 12px rgba(0,0,0,.16);
  overflow: hidden;
}

.mai-cookie[hidden] { display: none !important; }

.mai-cookie::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(600px 45px at 85% 50%, rgba(232,93,4,.22), transparent 70%);
}

.mai-cookie > * { position: relative; z-index: 1; }

.mai-cookie-icon { width: 24px; height: 24px; flex: 0 0 auto; }

.mai-cookie-copy {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.mai-cookie-copy strong {
  color: #FFB27A;
  font-weight: 700;
  white-space: nowrap;
}

.mai-cookie-copy span { color: #E6ECF7; white-space: nowrap; }

.mai-cookie-copy a {
  color: #fff;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: underline;
  text-decoration-color: #FFB27A;
  text-underline-offset: 3px;
}

.mai-cookie-accept {
  margin-inline-start: auto;
  flex: 0 0 auto;
  min-width: 88px;
  height: 31px;
  padding: 0 22px;
  border: 0;
  border-radius: 7px;
  background: var(--mai-orange);
  color: #fff;
  font: 700 15px/31px Heebo, Arial, sans-serif;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,.25);
}

.mai-cookie-accept .mai-lang-he,
.mai-cookie-accept .mai-lang-en { white-space: nowrap; }

.mai-cookie-close {
  position: absolute;
  inset-inline-end: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  padding: 3px;
  border: 0;
  background: transparent;
  color: #fff;
  opacity: .78;
  cursor: pointer;
}
.mai-cookie-close svg { width: 18px; height: 18px; }
.mai-cookie-close:hover { opacity: 1; }

.mai-site-elements.mai-en .mai-cookie { direction: ltr; }
.mai-site-elements.mai-en .mai-cookie-copy { direction: ltr; }

@media (max-width: 767px) {
  .mai-site-elements .mai-desktop { display: none !important; }
  .mai-site-elements .mai-mobile { display: block; }

  .mai-site-elements.mai-en .mai-mobile.mai-lang-he,
  .mai-site-elements:not(.mai-en) .mai-mobile.mai-lang-en { display: none !important; }

  .mai-accessibility { top: 80px; left: 0; }

  /* 72px file = 60px visible circle + 6px transparent padding each side. */
  .mai-bot {
    right: 8px;
    bottom: calc(var(--mai-floating-bottom) - 6px);
  }

  /* 60px file = 48px visible circle + 6px transparent padding each side. */
  .mai-stay-updated {
    left: 8px;
    bottom: calc(var(--mai-floating-bottom) - 6px);
  }

  .mai-pill + .mai-pill { margin-top: 0; }

  .mai-site-elements { --mai-floating-bottom: 18px; }
  .mai-site-elements.mai-cookie-visible { --mai-floating-bottom: 110px; }

  .mai-cookie {
    min-height: 92px;
    padding: 10px 44px 10px 14px;
    gap: 10px;
    font-size: 13px;
    line-height: 1.3;
    background: linear-gradient(135deg, #0A2450, #123A80);
  }

  .mai-cookie-icon { width: 26px; height: 26px; }

  .mai-cookie-copy {
    flex: 1 1 auto;
    display: block !important;
  }

  .mai-cookie-copy strong {
    display: block;
    font-size: 14px;
    line-height: 1.15;
    margin-bottom: 2px;
    white-space: normal;
  }

  .mai-cookie-copy span { white-space: normal; }
  .mai-cookie-copy a { white-space: nowrap; margin-inline-start: 2px; }

  .mai-cookie-accept {
    margin-inline-start: 0;
    min-width: auto;
    height: 36px;
    padding: 0 14px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 36px;
  }

  .mai-cookie-close {
    inset-inline-end: 7px;
    top: 7px;
    transform: none;
    width: 22px;
    height: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mai-site-elements * { scroll-behavior: auto !important; }
}

/* מסתיר רק את כפתור הנגישות הישן */
.mainNmenu > #accessibilityLink {
    position: fixed !important;
    left: -9999px !important;
    top: 0 !important;
    opacity: 0 !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
}

@media (max-width: 767px) {

    .mainNmenu .accessibilityLinks {
        position: fixed !important;
        top: 100px !important;
        right: 10px !important;
        left: auto !important;
        z-index: 2147483500 !important;
        max-width: calc(100vw - 20px) !important;
    }

}