/* Way-Q skin for CookieConsent (TermsFeed 4.2.0).
   Mirrors the previous in-house banner: bottom centred card (max 64rem),
   rounded-2xl, frosted white, purple title, muted text, stacked buttons
   on the right (Accept filled / Reject outline / Customise ghost). */

:root {
  --wq-cc-primary: hsl(243 34% 28%);
  --wq-cc-primary-soft: hsla(243, 34%, 28%, 0.08);
  --wq-cc-muted: hsl(240 10% 45%);
  --wq-cc-border: hsl(240 15% 90%);
  --wq-cc-accent: hsl(78 73% 44%);
}

/* ---------- Notice banner ---------- */
.termsfeed-com---nb.termsfeed-com---nb-simple,
.termsfeed-com---nb {
  position: fixed !important;
  left: 50% !important;
  right: auto !important;
  top: auto !important;
  bottom: 1.5rem !important;
  transform: translateX(-50%) !important;
  z-index: 100 !important;
  width: calc(100vw - 3rem) !important;
  max-width: 64rem !important;
  max-height: none !important;
  border: 1px solid var(--wq-cc-border) !important;
  border-radius: 1rem !important;
  background: rgba(255, 255, 255, 0.95) !important;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 25px 50px -12px rgba(49, 45, 95, 0.25) !important;
  color: var(--wq-cc-primary) !important;
  font-family: "Raleway", system-ui, sans-serif !important;
  animation: wq-cc-in 0.35s ease both;
}

.termsfeed-com---nb .cc-nb-main-container {
  display: grid !important;
  grid-template-columns: 1fr 13.5rem;
  grid-template-areas: "title buttons" "text buttons";
  column-gap: 1.5rem;
  align-items: center;
  padding: 1.5rem 3.5rem 1.5rem 1.5rem !important;
}

.termsfeed-com---nb .cc-nb-title-container { grid-area: title; }
.termsfeed-com---nb .cc-nb-text-container { grid-area: text; align-self: start; }

.termsfeed-com---nb .cc-nb-title {
  font-family: inherit !important;
  font-size: 1.125rem !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
  color: var(--wq-cc-primary) !important;
  margin: 0 0 0.5rem !important;
}

.termsfeed-com---nb .cc-nb-text {
  font-family: inherit !important;
  font-size: 0.875rem !important;
  line-height: 1.65 !important;
  color: var(--wq-cc-muted) !important;
  margin: 0 !important;
}

.termsfeed-com---nb .cc-nb-text a {
  color: inherit !important;
  font-weight: 500 !important;
  text-decoration: underline !important;
  transition: color 0.15s ease;
}
.termsfeed-com---nb .cc-nb-text a:hover { color: var(--wq-cc-primary) !important; }

.termsfeed-com---nb .cc-nb-buttons-container {
  grid-area: buttons;
  display: flex !important;
  flex-direction: column !important;
  gap: 0.5rem !important;
  margin: 0 !important;
}

.termsfeed-com---palette-light .cc-nb-okagree,
.termsfeed-com---palette-light .cc-nb-reject,
.termsfeed-com---palette-light .cc-nb-changep {
  width: 100% !important;
  margin: 0 !important;
  min-height: 2.75rem !important;
  padding: 0.625rem 2rem !important;
  border-radius: 0.625rem !important;
  font-family: inherit !important;
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  line-height: 1.25 !important;
  text-align: center !important;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease !important;
}

.termsfeed-com---palette-light .cc-nb-okagree {
  background: var(--wq-cc-primary) !important;
  color: #fff !important;
  border: 1px solid var(--wq-cc-primary) !important;
}
.termsfeed-com---palette-light .cc-nb-reject {
  background: transparent !important;
  color: var(--wq-cc-primary) !important;
  border: 1px solid var(--wq-cc-border) !important;
}
.termsfeed-com---palette-light .cc-nb-changep {
  background: transparent !important;
  color: var(--wq-cc-primary) !important;
  border: 1px solid transparent !important;
}

.termsfeed-com---palette-light .cc-nb-okagree:hover,
.termsfeed-com---palette-light .cc-nb-reject:hover,
.termsfeed-com---palette-light .cc-nb-changep:hover {
  transform: translateY(-2px);
}
.termsfeed-com---palette-light .cc-nb-okagree:hover { box-shadow: 0 10px 20px -10px rgba(49, 45, 95, 0.55) !important; }
.termsfeed-com---palette-light .cc-nb-reject:hover,
.termsfeed-com---palette-light .cc-nb-changep:hover { background: var(--wq-cc-primary-soft) !important; }

.termsfeed-com---nb .wayq-cc-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 0.375rem;
  background: transparent;
  color: var(--wq-cc-muted);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.termsfeed-com---nb .wayq-cc-close:hover { background: var(--wq-cc-primary-soft); color: var(--wq-cc-primary); }

/* ---------- Preferences centre ---------- */
.termsfeed-com---pc-overlay { z-index: 110 !important; }
.termsfeed-com---pc-dialog { z-index: 111 !important; }

.termsfeed-com---pc-dialog .cc-pc-container {
  border-radius: 1rem !important;
  overflow: hidden !important;
  font-family: "Raleway", system-ui, sans-serif !important;
  color: var(--wq-cc-primary) !important;
}
.termsfeed-com---pc-dialog .cc-pc-head-title-headline,
.termsfeed-com---pc-dialog .cc-pc-head-title-text,
.termsfeed-com---pc-dialog .cc-cp-body-content-entry-title,
.termsfeed-com---pc-dialog .cc-cp-body-tabs-item-link {
  color: var(--wq-cc-primary) !important;
  font-family: inherit !important;
}
.termsfeed-com---pc-dialog .cc-pc-head-title-headline { font-weight: 700 !important; }
.termsfeed-com---pc-dialog .cc-cp-body-content-entry-text { color: var(--wq-cc-muted) !important; font-family: inherit !important; }
.termsfeed-com---pc-dialog .cc-cp-body-tabs-item[active="true"] { background: var(--wq-cc-primary-soft) !important; }

.termsfeed-com---pc-dialog .cc-cp-foot-save {
  background: var(--wq-cc-primary) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 0.625rem !important;
  font-family: inherit !important;
  font-weight: 600 !important;
  transition: transform 0.2s ease;
}
.termsfeed-com---pc-dialog .cc-cp-foot-save:hover { transform: translateY(-2px); }
.termsfeed-com---pc-dialog .cc-cp-foot-byline { visibility: hidden !important; }

.termsfeed-com---pc-dialog .cc-custom-checkbox:checked + label:before {
  background: var(--wq-cc-primary) !important;
  border-color: var(--wq-cc-primary) !important;
}
.termsfeed-com---pc-dialog .cc-pc-head-lang-select {
  border: 1px solid var(--wq-cc-border) !important;
  border-radius: 0.5rem !important;
  color: var(--wq-cc-primary) !important;
  font-family: inherit !important;
}

@keyframes wq-cc-in {
  from { opacity: 0; transform: translate(-50%, 8px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* ---------- Floating cookie badge (bottom-left rail) ----------
   Same pattern as Evidilya: a small circular cookie icon that stays on
   screen on every public page and reopens the preferences centre. */
#wq-cookie-prefs {
  position: fixed;
  left: 1rem;
  bottom: calc(1rem + env(safe-area-inset-bottom));
  z-index: 90;
  display: none;
  height: 2.75rem;
  width: 2.75rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.15s ease, opacity 0.3s ease;
}
#wq-cookie-prefs.is-visible {
  display: block;
  animation: wq-cc-badge-in 0.35s ease both;
}
#wq-cookie-prefs:hover {
  transform: translateY(-2px) scale(1.05);
}
#wq-cookie-prefs img {
  display: block;
  height: 100%;
  width: 100%;
  object-fit: contain;
  border-radius: 0;
}

@keyframes wq-cc-badge-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Tablet / phone: stacked layout ---------- */
@media (max-width: 767px) {
  .termsfeed-com---nb {
    bottom: calc(0.75rem + env(safe-area-inset-bottom)) !important;
    width: calc(100vw - 1.5rem) !important;
  }
  .termsfeed-com---nb .cc-nb-main-container {
    grid-template-columns: 1fr;
    grid-template-areas: "title" "text" "buttons";
    row-gap: 1rem;
    padding: 1.25rem !important;
  }
  .termsfeed-com---nb .cc-nb-title { padding-right: 2rem !important; }
  .termsfeed-com---nb .cc-nb-text { font-size: 0.8125rem !important; line-height: 1.5 !important; }
  .termsfeed-com---nb .cc-nb-buttons-container { flex-direction: row !important; flex-wrap: wrap !important; }
  .termsfeed-com---palette-light .cc-nb-okagree,
  .termsfeed-com---palette-light .cc-nb-reject { flex: 1 1 0 !important; padding: 0.625rem 1rem !important; }
  .termsfeed-com---palette-light .cc-nb-changep { flex: 1 1 100% !important; }
}

@media (prefers-reduced-motion: reduce) {
  .termsfeed-com---nb { animation: none !important; }
  .termsfeed-com---palette-light .cc-nb-okagree:hover,
  .termsfeed-com---palette-light .cc-nb-reject:hover,
  .termsfeed-com---palette-light .cc-nb-changep:hover { transform: none; }
  #wq-cookie-prefs:hover { transform: none; }
  #wq-cookie-prefs.is-visible { animation: none; }
}

/* While the notice is on screen the chatbot launcher and tip step aside,
   so no button of the banner is covered. */
body:has(.termsfeed-com---nb) #wayq-fab,
body:has(.termsfeed-com---nb) #wayq-tip {
  opacity: 0 !important;
  pointer-events: none !important;
}

.termsfeed-com---pc-dialog .cc-pc-head-close {
  color: var(--wq-cc-primary) !important;
  border: 0 !important;
  border-radius: 0.375rem !important;
  outline: none !important;
}
.termsfeed-com---pc-dialog .cc-pc-head-close:hover,
.termsfeed-com---pc-dialog .cc-pc-head-close:focus-visible { background: var(--wq-cc-primary-soft) !important; }
