/**
 * Floating cookie consent bar — sitewide, dark glass, RTL-aware.
 */

html[data-autx-cookie="accepted"] #autx-cookie-banner {
  display: none !important;
}

.autx-cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 99999;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  padding: 12px 20px;
  color: #fff;
  background: rgba(11, 17, 24, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.35);
  transform: translateY(0);
  opacity: 1;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.autx-cookie-banner.is-leaving {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}

.autx-cookie-banner__text {
  margin: 0;
  flex: 1 1 280px;
  font-size: 0.92rem;
  line-height: 1.45;
  color: #e2e8f0;
}

.autx-cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  flex: 0 0 auto;
}

.autx-cookie-banner__accept {
  appearance: none;
  cursor: pointer;
  border: 0;
  border-radius: 999px;
  padding: 8px 16px;
  min-height: 40px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #0b1118;
  background: #67e8f9;
}

.autx-cookie-banner__accept:hover,
.autx-cookie-banner__accept:focus-visible {
  background: #a5f3fc;
  outline: none;
}

.autx-cookie-banner__link {
  color: #a5f3fc !important;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

html[dir="rtl"] .autx-cookie-banner {
  text-align: right;
  flex-direction: row-reverse;
}

html[dir="rtl"] .autx-cookie-banner__actions {
  flex-direction: row-reverse;
}

html[data-autx-theme="light"] .autx-cookie-banner,
html.light-mode .autx-cookie-banner {
  color: #0f172a;
  background: rgba(248, 250, 252, 0.96);
  border-top-color: rgba(15, 23, 42, 0.12);
}

html[data-autx-theme="light"] .autx-cookie-banner__text,
html.light-mode .autx-cookie-banner__text {
  color: #1e293b;
}

@media screen and (max-width: 768px) {
  .autx-cookie-banner {
    padding: 10px 14px 12px;
    bottom: 58px;
    gap: 8px;
  }

  .autx-cookie-banner__text {
    font-size: 0.82rem;
    flex: 1 1 100%;
  }

  .autx-cookie-banner__accept {
    min-height: 38px;
  }
}
