.cookie-consent {
  position: fixed;
  z-index: 500;
  right: 16px;
  bottom: 16px;
  width: min(440px, calc(100vw - 32px));
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.cookie-consent.is-on {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.cookie-consent__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 13px 14px;
  border: 1px solid #3a4451;
  border-radius: 6px;
  background: #171c23;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.42);
  color: #e9ecef;
}

.cookie-consent__text {
  min-width: 0;
  margin: 0;
  color: #b8c0ca;
  font: 400 13px/1.45 "IBM Plex Sans", sans-serif;
}

.cookie-consent__text a {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: #596575;
  text-underline-offset: 3px;
}

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

.cookie-consent__button {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid #424d5b;
  border-radius: 4px;
  background: #20262e;
  color: #fff;
  font: 600 13px/1.2 Onest, sans-serif;
  cursor: pointer;
}

.cookie-consent__button--primary {
  border-color: #ff4626;
  background: #ff4626;
  color: #11151b;
}

.cookie-consent__button:focus-visible,
.cookie-settings:focus-visible {
  outline: 2px solid #ff6c51;
  outline-offset: 3px;
}

.cookie-settings {
  padding: 0;
  border: 0;
  border-bottom: 1px solid #424d5b;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.consent-field--quote {
  display: grid !important;
  grid-template-columns: 20px minmax(0, 1fr) !important;
  gap: 8px !important;
  align-items: start !important;
  color: #a2acb8;
  font-size: 13px;
}

.consent-field--quote input[type="checkbox"] {
  width: 18px !important;
  height: 18px !important;
  min-height: 0 !important;
  margin: 2px 0 0 !important;
  padding: 0 !important;
  accent-color: #ff4626;
}

.consent-field--quote label {
  display: block !important;
  line-height: 1.45;
}

.consent-field--quote a,
.consent-policy-note a {
  color: #e9ecef;
  text-decoration: underline;
  text-decoration-color: #596575;
  text-underline-offset: 2px;
}

.consent-policy-note {
  margin: 0;
  color: #8f99a6;
  font-size: 12px;
  line-height: 1.45;
}

.quote-form > .consent-field--quote,
.quote-form > .consent-policy-note {
  grid-column: 1 / -1;
}

.field--check.consent-field {
  margin-bottom: 0.85rem;
}

.consent-policy-note + .btn {
  margin-top: 0.5rem;
}

@media (max-width: 720px) {
  .cookie-consent {
    right: 10px;
    bottom: 10px;
    left: 10px;
    width: auto;
  }

  .cookie-consent__inner {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px;
  }

  .cookie-consent__actions {
    justify-content: stretch;
  }

  .cookie-consent__button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-consent {
    transition-duration: 0.01ms;
  }
}

/* Short labels link to the same full consent documents as the standard variant. */
.consent-field--compact { margin: 0 !important; align-items: center !important; min-height: 28px; }
.consent-field--compact label { margin: 0; font-size: 13px; line-height: 1.4; }
.consent-field--compact input[type="checkbox"] { margin-top: 0 !important; }
.consent-field--compact .err { grid-column: 2 / -1; margin: 0; font-size: 12px; }
