.id-consent-banner,
.id-consent-modal {
  font-family: Inter, Arial, sans-serif;
  box-sizing: border-box;
}

.id-consent-banner[hidden],
.id-consent-modal[hidden],
.id-consent-backdrop[hidden] {
  display: none !important;
}

.id-consent-banner {
  position: fixed;
  z-index: 10000;
  left: 20px;
  right: 20px;
  bottom: 20px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  color: #f8f8f8;
  background: rgba(15, 15, 16, 0.98);
  border: 1px solid rgba(239, 195, 46, 0.45);
  border-radius: 18px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
}

.id-consent-copy {
  max-width: 690px;
}

.id-consent-copy h2,
.id-consent-modal h2 {
  margin: 0 0 8px;
  font-size: 21px;
  line-height: 1.25;
}

.id-consent-copy p,
.id-consent-category p {
  margin: 0;
  color: #c7c7c7;
  font-size: 14px;
  line-height: 1.55;
}

.id-consent-banner a,
.id-consent-modal a {
  color: #efc32e;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.id-consent-actions,
.id-consent-modal-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.id-consent-actions button,
.id-consent-modal-actions button {
  appearance: none;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid #8a8a8a;
  border-radius: 10px;
  color: #f8f8f8;
  background: transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.id-consent-actions button:hover,
.id-consent-modal-actions button:hover {
  border-color: #efc32e;
}

.id-consent-actions .id-consent-primary,
.id-consent-modal-actions .id-consent-primary {
  color: #111;
  background: #efc32e;
  border-color: #efc32e;
}

.id-consent-backdrop {
  position: fixed;
  z-index: 10001;
  inset: 0;
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(4px);
}

.id-consent-modal {
  position: fixed;
  z-index: 10002;
  top: 50%;
  left: 50%;
  width: min(680px, calc(100% - 32px));
  max-height: calc(100vh - 40px);
  overflow: auto;
  transform: translate(-50%, -50%);
  padding: 24px;
  color: #f8f8f8;
  background: #111113;
  border: 1px solid rgba(239, 195, 46, 0.5);
  border-radius: 18px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}

.id-consent-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  padding-bottom: 16px;
}

.id-consent-kicker {
  display: block;
  margin-bottom: 7px;
  color: #efc32e;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.id-consent-close {
  appearance: none;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  padding: 0;
  color: #fff;
  background: transparent;
  border: 1px solid #555;
  border-radius: 50%;
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
}

.id-consent-category {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0;
  padding: 18px 0;
  border-top: 1px solid #303033;
}

.id-consent-category strong {
  display: block;
  margin-bottom: 5px;
  font-size: 15px;
}

.id-always-on {
  flex: 0 0 auto;
  color: #efc32e;
  font-size: 12px;
  font-weight: 700;
}

.id-consent-category input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.id-switch {
  position: relative;
  flex: 0 0 50px;
  width: 50px;
  height: 28px;
  background: #4b4b4e;
  border-radius: 30px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.id-switch::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s ease;
}

.id-consent-category input:checked + .id-switch {
  background: #efc32e;
}

.id-consent-category input:checked + .id-switch::after {
  transform: translateX(22px);
}

.id-consent-category input:focus-visible + .id-switch {
  outline: 3px solid rgba(239, 195, 46, 0.35);
  outline-offset: 3px;
}

.id-consent-policy-links {
  display: flex;
  gap: 18px;
  padding: 14px 0 20px;
  font-size: 13px;
}

.id-consent-modal-actions {
  justify-content: flex-end;
}

.id-footer-consent {
  appearance: none;
  padding: 0;
  color: inherit;
  opacity: 0.72;
  background: transparent;
  border: 0;
  font: inherit;
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.id-footer-consent:hover {
  opacity: 1;
}

html.id-consent-open {
  overflow: hidden;
}

@media (max-width: 800px) {
  .id-consent-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 18px;
    display: block;
  }

  .id-consent-actions {
    margin-top: 16px;
  }

  .id-consent-actions button {
    flex: 1 1 auto;
  }

  .id-consent-modal {
    padding: 20px;
  }

  .id-consent-category {
    gap: 15px;
  }
}

@media (max-width: 480px) {
  .id-consent-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .id-consent-actions .id-consent-primary {
    grid-column: 1 / -1;
  }

  .id-consent-modal-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .id-consent-policy-links {
    flex-direction: column;
    gap: 8px;
  }
}
