/**
 * Cookie consent banner (Pointex child theme) — светлая витрина.
 */

.pointex-cookie-consent {
  position: fixed;
  z-index: 999998;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 16px;
  box-sizing: border-box;
  pointer-events: none;
}

.pointex-cookie-consent:not([hidden]) {
  pointer-events: auto;
}

.pointex-cookie-consent__inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 16px 18px;
  border-radius: 12px;
  background: #ffffff;
  color: #111827;
  box-shadow:
    0 -8px 32px rgba(15, 23, 42, 0.08),
    0 0 0 1px rgba(15, 23, 42, 0.06);
  border: 1px solid #e5e7eb;
}

@media (min-width: 768px) {
  .pointex-cookie-consent__inner {
    padding: 20px 22px;
  }
}

.pointex-cookie-consent__title {
  margin: 0 0 8px;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.35;
  color: #0f172a;
}

.pointex-cookie-consent__text {
  margin: 0 0 14px;
  font-size: 0.875rem;
  line-height: 1.55;
  color: #4b5563;
}

.pointex-cookie-consent__link {
  color: #2563eb;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.pointex-cookie-consent__link:hover,
.pointex-cookie-consent__link:focus-visible {
  color: #1d4ed8;
}

.pointex-cookie-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  align-items: center;
}

.pointex-cookie-consent__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

@media (prefers-reduced-motion: reduce) {
  .pointex-cookie-consent__btn {
    transition: none;
  }
}

.pointex-cookie-consent__btn--primary:focus-visible {
  outline: 3px solid #93c5fd;
  outline-offset: 2px;
}

.pointex-cookie-consent__btn--primary {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
}

.pointex-cookie-consent__btn--primary:hover,
.pointex-cookie-consent__btn--primary:focus,
.pointex-cookie-consent__btn--primary:active {
  background: #1d4ed8;
  border-color: #1d4ed8;
  color: #ffffff;
}

/* Селектор с `button` — перебивает глобальные стили Astra/Woo для :hover/:focus (светлый текст на белом). */
.pointex-cookie-consent button.pointex-cookie-consent__btn--secondary,
.pointex-cookie-consent button.pointex-cookie-consent__btn--secondary:link,
.pointex-cookie-consent button.pointex-cookie-consent__btn--secondary:visited {
  background: #ffffff;
  color: #1f2937;
  border-color: #d1d5db;
}

.pointex-cookie-consent button.pointex-cookie-consent__btn--secondary:hover,
.pointex-cookie-consent button.pointex-cookie-consent__btn--secondary:active {
  background: #f3f4f6;
  color: #111827;
  border-color: #9ca3af;
}

.pointex-cookie-consent button.pointex-cookie-consent__btn--secondary:focus {
  outline: none;
  color: #1f2937;
  background: #ffffff;
}

.pointex-cookie-consent button.pointex-cookie-consent__btn--secondary:focus-visible {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 1px #2563eb;
  color: #111827;
  background: #ffffff;
}

@media (max-width: 480px) {
  .pointex-cookie-consent__actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .pointex-cookie-consent__btn {
    width: 100%;
  }
}
