/* AranBit cookie consent — centered modal, brand white/green */

.ab-cc-backdrop {
  position: fixed;
  inset: 0;
  z-index: 8999;
  background: rgba(26, 31, 46, 0.48);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  animation: ab-cc-fade 0.22s var(--ease, cubic-bezier(0.16, 1, 0.3, 1));
}

.ab-cc-backdrop[hidden] {
  display: none !important;
}

.ab-cc {
  position: fixed;
  z-index: 9000;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-sizing: border-box;
  width: min(400px, calc(100vw - 32px));
  max-width: calc(100vw - 32px);
  background: var(--bg-white, #fff);
  color: var(--text, #1a1f2e);
  border: 1px solid var(--border, #e2e8f0);
  border-top: 3px solid var(--green, #2a7a4b);
  border-radius: var(--radius, 14px);
  box-shadow: var(--shadow-lg, 0 16px 48px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.04));
  font-family: "Plus Jakarta Sans", sans-serif;
  text-align: center;
  direction: rtl;
  animation: ab-cc-pop 0.26s var(--ease, cubic-bezier(0.16, 1, 0.3, 1));
}

.ab-cc[hidden] {
  display: none !important;
}

.ab-cc__inner {
  padding: 20px 20px 18px;
}

.ab-cc__title {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.35;
  color: var(--text, #1a1f2e);
}

.ab-cc__desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text2, #4a5568);
}

.ab-cc__links {
  margin: 10px 0 0;
  line-height: 1.5;
  text-align: center;
}

.ab-cc__policy {
  display: inline-block;
  color: var(--green-dark, #1b5e35);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ab-cc__policy:hover {
  color: var(--orange, #e8650a);
}

.ab-cc__actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  margin-top: 16px;
}

.ab-cc__btn {
  appearance: none;
  box-sizing: border-box;
  flex: 1 1 0;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: var(--radius-sm, 9px);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s, color 0.18s;
  white-space: nowrap;
}

.ab-cc__btn--accept {
  color: #fff;
  background: var(--green, #2a7a4b);
  border: 1.5px solid var(--green, #2a7a4b);
}

.ab-cc__btn--accept:hover {
  background: var(--green-dark, #1b5e35);
  border-color: var(--green-dark, #1b5e35);
}

.ab-cc__btn--essential {
  color: var(--text2, #4a5568);
  background: transparent;
  border: 1.5px solid var(--border2, #cbd5e1);
  font-weight: 600;
}

.ab-cc__btn--essential:hover {
  color: var(--green, #2a7a4b);
  background: var(--green3, #e8f5ee);
  border-color: var(--green, #2a7a4b);
}

.ab-cc:focus,
.ab-cc:focus-visible {
  outline: none;
}

.ab-cc__btn:focus:not(:focus-visible),
.ab-cc__policy:focus:not(:focus-visible),
.ab-cc-manage:focus:not(:focus-visible) {
  outline: none;
}

.ab-cc__btn:focus-visible,
.ab-cc__policy:focus-visible,
.ab-cc-manage:focus-visible {
  outline: 2px solid var(--green, #2a7a4b);
  outline-offset: 2px;
}

.ab-cc-manage {
  display: block;
  width: 100%;
  margin: 0 0 7px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 400;
  line-height: inherit;
  text-align: right;
  color: rgba(255, 255, 255, 0.55);
}

.ab-cc-manage:hover {
  color: #fff;
}

body.ab-cc-open {
  overflow: hidden;
}

#cookies {
  scroll-margin-top: 96px;
}

@media (max-width: 420px) {
  .ab-cc__actions {
    flex-direction: column;
  }

  .ab-cc__btn {
    width: 100%;
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ab-cc,
  .ab-cc-backdrop {
    animation: none;
  }

  .ab-cc__btn,
  .ab-cc__policy,
  .ab-cc-manage {
    transition: none;
  }
}

@media (forced-colors: active) {
  .ab-cc {
    border: 1px solid CanvasText;
  }
}

@media print {
  .ab-cc,
  .ab-cc-backdrop,
  .ab-cc-manage {
    display: none !important;
  }
}

@keyframes ab-cc-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes ab-cc-pop {
  from {
    opacity: 0;
    transform: translate(-50%, -46%) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}
