/* ==========================================================================
   HIND — COOKIE CONSENT
   --------------------------------------------------------------------------
   One line and two buttons in a glass pill, bottom right on desktop; a
   compact sheet on phones. Loaded on every page, glass or not, so it carries
   its own values and inherits only the font.
   Markup and logic: inc/consent.php, assets/js/consent.js.
   ========================================================================== */

.hind-consent {
  --hc-ink: #1c1b1a;
  --hc-accent: #7e2233;
  --hc-ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  position: fixed;
  z-index: calc(var(--z-float, 800) + 1); /* over the WhatsApp button */
  right: clamp(14px, 2.5vw, 28px);
  bottom: clamp(14px, 2.5vw, 28px);
  max-width: calc(100vw - 28px);
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 10px 10px 10px 22px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.88);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  backdrop-filter: blur(24px) saturate(160%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 2px 6px rgba(28, 27, 26, 0.06),
    0 18px 48px -12px rgba(28, 27, 26, 0.26);
  color: var(--hc-ink);
  font-family: inherit;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 360ms var(--hc-ease), transform 460ms var(--hc-ease);
}

.hind-consent[hidden] { display: none; }

.hind-consent.is-in { opacity: 1; transform: none; }

.hind-consent__text {
  margin: 0;
  max-width: none;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--hc-ink);
}

.hind-consent__actions {
  display: flex;
  flex: none;
  gap: 8px;
}

.hind-consent__btn {
  appearance: none;
  padding: 11px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background 220ms ease, color 220ms ease, transform 220ms var(--hc-ease);
}

.hind-consent__btn--yes {
  background: rgba(24, 23, 22, 0.92);
  color: #f7f5f2;
}

.hind-consent__btn--yes:hover,
.hind-consent__btn--yes:focus-visible { background: #181716; transform: translateY(-1px); }

.hind-consent__btn--no {
  background: rgba(255, 255, 255, 0.6);
  border-color: rgba(28, 27, 26, 0.14);
  color: var(--hc-ink);
}

.hind-consent__btn--no:hover,
.hind-consent__btn--no:focus-visible { background: #fff; color: var(--hc-accent); }

.hind-consent__btn:focus-visible {
  outline: 2px solid var(--hc-accent);
  outline-offset: 3px;
}

/* "Cookie settings" in the footer: a button that reads as one of the links. */
.footer-legal__cookies {
  appearance: none;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-align: inherit;
}

.footer-legal__cookies:hover,
.footer-legal__cookies:focus-visible { text-decoration: underline; text-underline-offset: 3px; }

/* Phones: the line on top, the two buttons side by side under it. */
@media (max-width: 640px) {
  .hind-consent {
    right: 10px;
    bottom: 10px;
    left: 10px;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 16px 14px 14px;
    border-radius: 20px;
  }

  .hind-consent__text { text-align: center; }

  .hind-consent__btn { flex: 1 1 0; padding: 13px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .hind-consent { transition: none; }
}
