/* THE TAVRNE — Custom Zaraz Privacy Banner
   Bottom banner + manage modal driven by the Zaraz Consent API.
   Do NOT use Cloudflare Zaraz's native modal for layout — this replaces it.
   Palette: dark walnut / brass / cream (matches styles.css tokens).
*/

.tav-privacy-banner,
.tav-privacy-modal,
.tav-privacy-preferences-fixed {
  font-family: 'Barlow', system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ---------- bottom banner ---------- */
.tav-privacy-banner {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  width: min(90vw, 1100px);
  z-index: 2147483647;
  display: none;
  color: #f4ead2;
}

.tav-privacy-banner.is-visible {
  display: block;
}

.tav-privacy-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  padding: 18px 24px;
  background:
    radial-gradient(circle at 12% 0%, rgba(201, 154, 63, 0.16), transparent 30%),
    linear-gradient(135deg, rgba(26, 17, 11, 0.97), rgba(36, 24, 17, 0.97));
  border: 1px solid rgba(201, 154, 63, 0.42);
  border-radius: 16px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(14px) saturate(130%);
}

.tav-privacy-copy { min-width: 0; }

.tav-privacy-eyebrow {
  margin: 0 0 4px;
  color: #c99a3f;
  font-family: 'Oswald', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.tav-privacy-title {
  margin: 0 0 5px;
  color: #f4ead2;
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 1.08rem;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.tav-privacy-text {
  margin: 0;
  max-width: 760px;
  color: rgba(231, 217, 186, 0.86);
  font-size: 0.85rem;
  line-height: 1.5;
}

.tav-privacy-text a {
  color: #e2ba5f;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.tav-privacy-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: nowrap;
}

.tav-privacy-btn {
  border: 1px solid rgba(244, 234, 210, 0.28);
  background: rgba(244, 234, 210, 0.06);
  color: #f4ead2;
  border-radius: 999px;
  min-height: 38px;
  padding: 0.6rem 1rem;
  font-family: 'Oswald', sans-serif;
  font-size: 0.8rem;
  line-height: 1;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.tav-privacy-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(201, 154, 63, 0.85);
}

.tav-privacy-btn:focus-visible {
  outline: 3px solid rgba(201, 154, 63, 0.4);
  outline-offset: 3px;
}

.tav-privacy-btn--primary {
  background: #c99a3f;
  color: #1a110b;
  border-color: transparent;
}

.tav-privacy-btn--primary:hover {
  background: #e2ba5f;
}

.tav-privacy-btn--link {
  background: transparent;
  color: rgba(231, 217, 186, 0.9);
}

/* ---------- manage modal ---------- */
.tav-privacy-modal {
  position: fixed;
  inset: 0;
  z-index: 2147483646;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(10, 6, 3, 0.62);
  backdrop-filter: blur(8px);
}

.tav-privacy-modal.is-visible { display: flex; }

.tav-privacy-modal-panel {
  width: min(620px, 100%);
  max-height: calc(100vh - 2rem);
  overflow: auto;
  background: linear-gradient(180deg, #241811, #1a110b);
  color: #f4ead2;
  border: 1px solid rgba(201, 154, 63, 0.4);
  border-radius: 18px;
  padding: 1.5rem;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
}

.tav-privacy-modal-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.tav-privacy-modal-header h2 {
  margin: 0;
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #f4ead2;
}

.tav-privacy-modal-header p {
  margin: 0.45rem 0 0;
  color: rgba(231, 217, 186, 0.75);
  line-height: 1.5;
  font-size: 0.9rem;
}

.tav-privacy-close {
  border: 1px solid rgba(201, 154, 63, 0.35);
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: rgba(201, 154, 63, 0.12);
  color: #f4ead2;
  cursor: pointer;
  font-size: 1.3rem;
  line-height: 1;
  flex: none;
}

.tav-privacy-category {
  border: 1px solid rgba(201, 154, 63, 0.24);
  border-radius: 14px;
  padding: 1rem;
  margin: 0.75rem 0;
  background: rgba(20, 12, 7, 0.5);
}

.tav-privacy-category-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.tav-privacy-category h3 {
  margin: 0;
  font-family: 'Oswald', sans-serif;
  font-size: 1.02rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #e2ba5f;
}

.tav-privacy-category p {
  margin: 0.35rem 0 0;
  color: rgba(231, 217, 186, 0.72);
  line-height: 1.45;
  font-size: 0.86rem;
}

.tav-privacy-toggle {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  white-space: nowrap;
  font-family: 'Oswald', sans-serif;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}

.tav-privacy-toggle input {
  width: 20px;
  height: 20px;
  accent-color: #c99a3f;
}

.tav-privacy-modal-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.25rem;
}

/* ---------- floating re-open button ---------- */
.tav-privacy-preferences-fixed {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 2147483600;
  display: none;
  border: 1px solid rgba(201, 154, 63, 0.4);
  background: rgba(26, 17, 11, 0.9);
  color: #f4ead2;
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
  font-family: 'Oswald', sans-serif;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.tav-privacy-preferences-fixed.is-visible { display: inline-flex; }

@media (max-width: 900px) {
  .tav-privacy-banner {
    width: calc(100vw - 20px);
    bottom: 10px;
  }
  .tav-privacy-panel {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 16px;
  }
  .tav-privacy-actions {
    justify-content: stretch;
    flex-direction: column;
  }
  .tav-privacy-btn { width: 100%; }
  .tav-privacy-category-top {
    align-items: flex-start;
    flex-direction: column;
  }
}
