.cookie-notice {
  --cookie-notice-accent: #ffcf41;
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 9000;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  box-sizing: border-box;
  width: 100%;
  padding: 16px 20px;
  background: #ffffff;
  border-top: 4px solid var(--cookie-notice-accent);
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.12);
  color: #171717;
  font-family: "Almoni Neue", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.45;
  direction: rtl;
  text-align: right;
}

/* Lets message + accept participate in banner flex on desktop (unchanged layout) */
.cookie-notice__content {
  display: contents;
}

.cookie-notice__message {
  flex: 1 1 auto;
  margin: 0;
  min-width: 0;
}

.cookie-notice__message-text {
  display: inline;
}

.cookie-notice__link {
  color: #171717;
  font-weight: 700;
  text-decoration: underline;
}

.cookie-notice__accept {
  flex: 0 0 auto;
  min-width: 120px;
  padding: 12px 32px;
  margin-right: auto;
  margin-left: 32px;
  border: none;
  border-radius: 999px;
  background: var(--cookie-notice-accent, #ffcf41);
  color: #171717;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.cookie-notice__accept:focus,
.cookie-notice__close:focus,
.cookie-notice__link:focus {
  outline: 2px solid #171717;
  outline-offset: 2px;
}

.cookie-notice__close {
  flex: 0 0 auto;
  order: 3;
  align-self: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #171717;
  font-size: 22px;
  font-weight: 300;
  line-height: 1;
  font-family: Arial, Helvetica, sans-serif;
  cursor: pointer;
  opacity: 0.85;
}

.cookie-notice__close:hover {
  opacity: 1;
}

body.cookie-notice-visible {
  padding-bottom: 120px;
}

body.cookie-notice-visible .nagishly-widget,
body.cookie-notice-visible .nagishly-quick-button,
body.cookie-notice-visible .acsb-trigger,
body.cookie-notice-visible [class*="acsb-trigger"] {
  bottom: 130px !important;
}

@media (min-width: 769px) {
  .cookie-notice {
    direction: ltr;
    display: grid;
    grid-template-columns: 32px minmax(140px, 1fr) minmax(0, 2.5fr);
    column-gap: 16px;
    align-items: center;
  }

  .cookie-notice__close {
    order: unset;
    grid-column: 1;
    grid-row: 1;
  }

  .cookie-notice__accept {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    margin: 0;
  }

  .cookie-notice__message {
    display: contents;
  }

  .cookie-notice__message-text {
    grid-column: 3;
    grid-row: 1;
    display: block;
    margin: 0;
    direction: rtl;
    text-align: right;
  }
}

@media (max-width: 768px) {
  /* LTR grid so column 1 is physically left (×), regardless of Hebrew text direction */
  .cookie-notice {
    direction: ltr;
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    column-gap: 10px;
    row-gap: 8px;
    align-items: start;
    padding: 12px 16px 14px;
  }

  .cookie-notice__close {
    position: static;
    order: unset;
    grid-column: 1;
    grid-row: 1;
    align-self: start;
    width: 28px;
    height: 28px;
    margin-top: 2px;
    font-size: 20px;
  }

  .cookie-notice__content {
    display: block;
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    direction: rtl;
    text-align: right;
  }

  .cookie-notice__message {
    display: block;
    margin: 0;
    direction: rtl;
    text-align: right;
  }

  .cookie-notice__message-text {
    display: inline;
  }

  .cookie-notice__accept {
    display: inline-block;
    vertical-align: middle;
    box-sizing: border-box;
    min-width: 5.5em;
    margin: 0 8px 0 0;
    padding: 8px 12px;
    font-size: 13px;
    line-height: 1.25;
    text-align: center;
  }

  body.cookie-notice-visible {
    padding-bottom: 180px;
  }

  body.cookie-notice-visible .nagishly-widget,
  body.cookie-notice-visible .nagishly-quick-button,
  body.cookie-notice-visible .acsb-trigger,
  body.cookie-notice-visible [class*="acsb-trigger"] {
    bottom: 190px !important;
  }
}
