.zampa-consent[hidden] {
  display: none !important;
}

.zampa-consent__banner {
  position: fixed;
  z-index: 200;
  right: 16px;
  bottom: 16px;
  left: 16px;
  max-width: 560px;
  margin: 0 auto;
  padding: 16px 18px;
  border: 1px solid rgba(31, 53, 110, 0.12);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.16);
}

.zampa-consent__banner-inner {
  display: grid;
  gap: 14px;
}

.zampa-consent__title {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 600;
}

.zampa-consent__desc {
  margin: 0;
  color: #5f6368;
  font-size: 0.875rem;
  line-height: 1.45;
}

.zampa-consent__desc a {
  color: #1f356e;
}

.zampa-consent__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.zampa-consent__btn {
  min-height: 40px;
}

.zampa-consent__link {
  margin-left: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: #1f356e;
  font: inherit;
  font-size: 0.8125rem;
  text-decoration: underline;
  cursor: pointer;
}

.zampa-consent__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #5f6368;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.zampa-consent__prefs {
  position: fixed;
  inset: 0;
  z-index: 210;
  display: grid;
  place-items: center;
  padding: 16px;
}

.zampa-consent__prefs[hidden] {
  display: none !important;
}

.zampa-consent__prefs-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}

.zampa-consent__prefs-dialog {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  max-height: min(80vh, 640px);
  overflow: auto;
  padding: 18px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.2);
}

.zampa-consent__prefs-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.zampa-consent__prefs-head h2 {
  margin: 0;
  font-size: 1.05rem;
}

.zampa-consent__prefs-close {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: #f1f3f4;
  cursor: pointer;
}

.zampa-consent__group {
  display: grid;
  gap: 6px;
  padding: 12px 0;
  border-top: 1px solid #e8eaed;
}

.zampa-consent__group:first-child {
  border-top: 0;
}

.zampa-consent__group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.zampa-consent__group-title {
  font-weight: 600;
}

.zampa-consent__group p {
  margin: 0;
  color: #5f6368;
  font-size: 0.8125rem;
  line-height: 1.45;
}

.zampa-consent__badge {
  color: #5f6368;
  font-size: 0.75rem;
}

.zampa-consent__prefs-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
}

@media (max-width: 640px) {
  .zampa-consent__banner {
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    left: 12px;
  }

  .zampa-consent__link {
    margin-left: 0;
  }
}
