/* === Start: Innovando Tools consent banner styles === */
.ivd-consent {
  --ivd-consent-accent: #da291c;
  --ivd-consent-border: #e4e4e4;
  --ivd-consent-radius: 4px;
  --ivd-consent-floating-border: #da291c;
  --ivd-consent-floating-radius: 4px;
  position: fixed;
  z-index: 99998;
  display: flex;
  font-family: inherit;
  pointer-events: none;
}

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

/* === Start: Layout variants === */
.ivd-consent--layout-bottom {
  inset: auto 24px 24px 24px;
  justify-content: center;
  align-items: flex-end;
}

.ivd-consent--layout-center {
  inset: 0;
  justify-content: center;
  align-items: center;
  padding: 24px;
}

.ivd-consent--layout-fullwidth {
  inset: auto 0 0 0;
  justify-content: center;
  align-items: flex-end;
}
/* === End: Layout variants === */

/* === Start: Optional page overlay === */
.ivd-consent--has-overlay::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background: rgba(18, 18, 18, 0.28);
  opacity: 0;
  transition: opacity 240ms ease;
}

.ivd-consent--has-overlay.ivd-consent--visible::before {
  opacity: 1;
}
/* === End: Optional page overlay === */

.ivd-consent__panel {
  width: min(980px, 100%);
  padding: 24px;
  border: 1px solid var(--ivd-consent-border);
  border-radius: var(--ivd-consent-radius);
  background: rgba(255, 255, 255, 0.98);
  color: #1e1e1e;
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.18);
  pointer-events: auto;
  opacity: 0;
  transition: opacity 260ms ease, transform 260ms ease;
}

.ivd-consent--layout-center .ivd-consent__panel {
  width: min(720px, 100%);
}

.ivd-consent--layout-fullwidth .ivd-consent__panel {
  width: 100%;
  border-right: 0;
  border-bottom: 0;
  border-left: 0;
  border-radius: var(--ivd-consent-radius) var(--ivd-consent-radius) 0 0;
  box-shadow: 0 -18px 60px rgba(0, 0, 0, 0.14);
}

/* === Start: Animation variants === */
.ivd-consent--animation-fade .ivd-consent__panel {
  transform: translateY(6px) scale(0.99);
}

.ivd-consent--animation-slide.ivd-consent--layout-bottom .ivd-consent__panel,
.ivd-consent--animation-slide.ivd-consent--layout-fullwidth .ivd-consent__panel {
  transform: translateY(22px);
}

.ivd-consent--animation-slide.ivd-consent--layout-center .ivd-consent__panel {
  transform: translateY(-18px);
}

.ivd-consent--visible .ivd-consent__panel {
  opacity: 1;
  transform: translateY(0) scale(1);
}
/* === End: Animation variants === */

.ivd-consent__eyebrow {
  margin: 0 0 8px;
  color: var(--ivd-consent-accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ivd-consent h2 {
  margin: 0 0 10px;
  color: #111111;
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.14;
}

.ivd-consent p {
  margin: 0;
  color: #555555;
  font-size: 15px;
  line-height: 1.6;
}

.ivd-consent__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 14px;
}

.ivd-consent__legal a {
  color: #35383c;
  font-size: 13px;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(218, 41, 28, 0.35);
  text-underline-offset: 4px;
  transition: color 180ms ease, text-decoration-color 180ms ease;
}

.ivd-consent__legal a:hover,
.ivd-consent__legal a:focus {
  color: var(--ivd-consent-accent);
  text-decoration-color: var(--ivd-consent-accent);
}

.ivd-consent__details {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.ivd-consent__category {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(20, 20, 20, 0.1);
  border-radius: max(4px, calc(var(--ivd-consent-radius) + 2px));
  background: #fafafa;
}

.ivd-consent__category strong {
  display: block;
  margin-bottom: 4px;
  color: #151515;
  font-size: 15px;
}

.ivd-consent__category p {
  font-size: 13px;
  line-height: 1.5;
}

.ivd-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 22px;
}

.ivd-consent__button,
.ivd-consent-manage {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 18px;
  border: 1px solid rgba(20, 20, 20, 0.2);
  border-radius: 4px;
  background: #ffffff;
  color: #1c1c1c;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, opacity 180ms ease, transform 180ms ease;
}

.ivd-consent__button--primary {
  border-color: var(--ivd-consent-accent);
  background: var(--ivd-consent-accent);
  color: #ffffff;
}

.ivd-consent__button--secondary:hover,
.ivd-consent__button--ghost:hover,
.ivd-consent-manage:hover {
  border-color: var(--ivd-consent-accent);
  color: var(--ivd-consent-accent);
}

.ivd-consent__button--primary:hover {
  filter: brightness(0.94);
}

.ivd-consent__toggle {
  position: relative;
  display: inline-flex;
  width: 48px;
  height: 28px;
}

.ivd-consent__toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.ivd-consent__toggle span {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #d8d8d8;
  cursor: pointer;
  transition: background 180ms ease;
}

.ivd-consent__toggle span::before {
  content: '';
  position: absolute;
  top: 4px;
  left: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: transform 180ms ease;
}

.ivd-consent__toggle input:checked + span {
  background: var(--ivd-consent-accent);
}

.ivd-consent__toggle input:checked + span::before {
  transform: translateX(20px);
}

.ivd-consent__toggle input:disabled + span {
  opacity: 0.72;
  cursor: not-allowed;
}

.ivd-consent-float {
  --ivd-consent-accent: #da291c;
  --ivd-consent-floating-border: #da291c;
  --ivd-consent-floating-radius: 4px;
  position: fixed;
  bottom: 0;
  z-index: 99997;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid var(--ivd-consent-floating-border);
  border-bottom: 0;
  border-radius: var(--ivd-consent-floating-radius) var(--ivd-consent-floating-radius) 0 0;
  background: rgba(255, 255, 255, 0.96);
  color: #222222;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.01em;
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: color 180ms ease, transform 180ms ease, opacity 180ms ease;
}

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

.ivd-consent-float--left {
  left: 24px;
}

.ivd-consent-float--right {
  right: 24px;
}

.ivd-consent-float:hover,
.ivd-consent-float:focus {
  color: var(--ivd-consent-accent);
  transform: translateY(-2px);
}

.ivd-consent-float__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: var(--ivd-consent-accent);
  font-size: 15px;
  line-height: 1;
}

@media (max-width: 720px) {
  .ivd-consent--layout-bottom {
    inset: auto 12px 12px 12px;
  }

  .ivd-consent--layout-center {
    padding: 12px;
  }

  .ivd-consent__panel {
    padding: 18px;
  }

  .ivd-consent__category {
    grid-template-columns: 1fr;
  }

  .ivd-consent__actions {
    flex-direction: column;
  }

  .ivd-consent__button {
    width: 100%;
  }

  .ivd-consent-float--left {
    left: 12px;
  }

  .ivd-consent-float--right {
    right: 12px;
  }
}
/* === End: Innovando Tools consent banner styles === */

/* === Start: Innovando Consent Monitor 1.0.2 mobile refinement === */
@media (max-width: 560px) {
  .ivd-consent--layout-bottom,
  .ivd-consent--layout-fullwidth {
    inset: auto 10px 10px 10px;
  }

  .ivd-consent__panel {
    max-height: calc(100vh - 22px);
    padding: 16px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .ivd-consent h2 {
    font-size: 22px;
  }

  .ivd-consent p {
    font-size: 14px;
  }

  .ivd-consent__details {
    gap: 10px;
    margin-top: 16px;
  }

  .ivd-consent__category {
    gap: 12px;
    padding: 14px;
  }

  .ivd-consent__actions {
    gap: 8px;
    margin-top: 18px;
  }

  .ivd-consent__button,
  .ivd-consent-manage {
    min-height: 44px;
    padding: 11px 14px;
  }

  .ivd-consent__legal {
    gap: 8px 12px;
  }
}
/* === End: Innovando Consent Monitor 1.0.2 mobile refinement === */

/* === Start: Innovando Consent Monitor scripts table === */
.ivd-consent-scripts-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 15px;
}

.ivd-consent-scripts-table th,
.ivd-consent-scripts-table td {
  border: 1px solid #e4e4e4;
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
}

.ivd-consent-scripts-table th {
  font-weight: 700;
  background: #f7f7f7;
}

.ivd-consent-scripts-table code {
  white-space: nowrap;
}

.ivd-consent-scripts-empty {
  padding: 14px 16px;
  border: 1px solid #e4e4e4;
  background: #f7f7f7;
}
/* === End: Innovando Consent Monitor scripts table === */
