:root {
  --gfb-consent-bg: rgba(255, 255, 255, 0.96);
  --gfb-consent-text: #171717;
  --gfb-consent-muted: #5e5e5e;
  --gfb-consent-border: rgba(0, 0, 0, 0.1);
  --gfb-consent-primary: #b1172c;
  --gfb-consent-accent: #b1172c;
  --gfb-consent-shadow: 0 18px 50px rgba(0, 0, 0, 0.15);
}

html.gfb-consent-modal-open,
html.gfb-consent-modal-open body {
  overflow: hidden;
}

.gfb-consent {
  position: relative;
  z-index: 2147483600;
  font-family: Lato, sans-serif;
}

.gfb-consent__banner {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: min(720px, calc(100vw - 32px));
  padding: 18px 22px;
  background: var(--gfb-consent-bg);
  color: var(--gfb-consent-text);
  border: 1px solid var(--gfb-consent-border);
  border-radius: 18px;
  box-shadow: var(--gfb-consent-shadow);
  backdrop-filter: blur(14px);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
}

.gfb-consent__eyebrow {
  margin: 0 0 6px;
  font: 600 12px/1.2 Lato, sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gfb-consent-accent);
}

.gfb-consent__title {
  margin: 0 0 10px;
  font: 800 24px/1.15 Lato, sans-serif;
}

.gfb-consent__text,
.gfb-consent__links,
.gfb-consent__category small {
  margin: 0;
  color: var(--gfb-consent-muted);
  font: 400 14px/1.6 Lato, sans-serif;
}

.gfb-consent__links {
  margin-top: 10px;
}

.gfb-consent__links a {
  color: inherit;
  text-decoration: underline;
}

.gfb-consent__actions,
.gfb-consent__footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.gfb-consent__btn,
.gfb-consent-shortcode-button,
.gfb-consent__manage {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font: 700 14px/1.2 Lato, sans-serif;
  min-height: 44px;
  padding: 12px 16px;
  transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.gfb-consent__btn:hover,
.gfb-consent-shortcode-button:hover,
.gfb-consent__manage:hover {
  transform: translateY(-1px);
}

.gfb-consent__btn--primary,
.gfb-consent-shortcode-button {
  background: var(--gfb-consent-primary);
  color: #fff;
}

.gfb-consent__btn--ghost,
.gfb-consent__btn--light,
.gfb-consent__manage {
  background: #fff;
  color: var(--gfb-consent-text);
  border-color: var(--gfb-consent-border);
}
.gfb-consent [hidden] { display: none !important; }
.gfb-consent *, .gfb-consent *::before, .gfb-consent *::after { box-sizing: border-box; }
.gfb-consent button:focus-visible, .gfb-consent a:focus-visible, .gfb-consent input:focus-visible { outline: 3px solid #222; outline-offset: 3px; }
.gfb-consent__technical, .gfb-consent__storage { margin-top: 14px; font-size: 12px; line-height: 1.5; }
body.single-annuncio_auto.vehicle-has-visible-quote .gfb-consent__manage { bottom: var(--vehicle-floating-bottom, 180px); }

.gfb-consent__manage {
  position: fixed;
  right: 18px;
  bottom: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.14);
}

.gfb-consent__modal[hidden],
.gfb-consent__banner[hidden] {
  display: none !important;
}

.gfb-consent__modal {
  position: fixed;
  inset: 0;
}

.gfb-consent__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.gfb-consent__panel {
  position: relative;
  width: min(720px, calc(100vw - 32px));
  margin: min(8vh, 64px) auto 0;
  padding: 28px;
  background: #fff;
  border-radius: 24px;
  box-shadow: var(--gfb-consent-shadow);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
}

.gfb-consent__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: #f3f3f3;
  color: #111;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.gfb-consent__categories {
  margin-top: 22px;
  display: grid;
  gap: 12px;
}

.gfb-consent__category {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: start;
  padding: 16px 18px;
  border: 1px solid var(--gfb-consent-border);
  border-radius: 16px;
  background: #fafafa;
}

.gfb-consent__category strong {
  display: block;
  margin-bottom: 4px;
  font: 700 16px/1.2 Lato, sans-serif;
  color: var(--gfb-consent-text);
}

.gfb-consent__category input {
  width: 20px;
  height: 20px;
  accent-color: var(--gfb-consent-primary);
  flex-shrink: 0;
  margin-top: 4px;
}

.gfb-consent__category.is-required {
  border-color: rgba(177, 23, 44, 0.3);
  background: rgba(177, 23, 44, 0.05);
}

.gfb-consent-overview {
  display: grid;
  gap: 20px;
}

.gfb-consent-overview__row {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding-top: 16px;
}

@media (max-width: 767.98px) {
  .gfb-consent__banner {
    left: 12px;
    right: 12px;
    top: 12px;
    transform: none;
    width: auto;
    padding: 16px;
  }

  .gfb-consent__panel {
    width: calc(100vw - 16px);
    margin-top: 12px;
    padding: 24px 16px 18px;
  }

  .gfb-consent__actions,
  .gfb-consent__footer {
    flex-direction: column;
  }

  .gfb-consent__btn,
  .gfb-consent__manage,
  .gfb-consent-shortcode-button {
    width: 100%;
    justify-content: center;
  }

  .gfb-consent__manage {
    left: auto;
    right: 12px;
    bottom: 12px;
    width: auto;
  }
}
