.elima-gdpr {
  position: fixed;
  inset: auto 18px 18px 18px;
  z-index: 99998;
  color: #17221a;
  font-family: inherit;
  pointer-events: none;
}

.elima-gdpr--top {
  inset: 18px 18px auto 18px;
}

.elima-gdpr[hidden],
.elima-gdpr-preferences[hidden],
.elima-gdpr-manage[hidden] {
  display: none !important;
}

.elima-gdpr__panel {
  width: min(960px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border: 1px solid rgba(20, 92, 45, .14);
  border-radius: 8px;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 24px 80px rgba(16, 39, 25, .18);
  pointer-events: auto;
  backdrop-filter: blur(12px);
}

.elima-gdpr__eyebrow {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  margin-bottom: 7px;
  color: var(--gdpr-primary, #2f7d3c);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.elima-gdpr__eyebrow:before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6bbd45;
  box-shadow: 0 0 0 5px rgba(107, 189, 69, .14);
}

.elima-gdpr__title {
  margin: 0 0 6px;
  color: #102719;
  font-size: 20px;
  line-height: 1.25;
  font-weight: 800;
}

.elima-gdpr__text {
  max-width: 680px;
  margin: 0;
  color: #53605a;
  font-size: 14px;
  line-height: 1.55;
}

.elima-gdpr__link {
  color: #257634;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.elima-gdpr__actions {
  display: grid;
  grid-template-columns: repeat(3, max-content);
  gap: 8px;
}

.elima-gdpr__button {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(47, 125, 60, .22);
  border-radius: 7px;
  background: #fff;
  color: #1b3c25;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}

.elima-gdpr__button:hover,
.elima-gdpr__button:focus {
  border-color: rgba(47, 125, 60, .46);
  box-shadow: 0 8px 24px rgba(47, 125, 60, .13);
  transform: translateY(-1px);
}

.elima-gdpr__button--primary {
  border-color: var(--gdpr-primary, #2f7d3c);
  background: var(--gdpr-primary, #2f7d3c);
  color: #fff;
}

.elima-gdpr__button--quiet {
  background: #f5faf4;
}

.elima-gdpr-preferences {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(12, 24, 16, .46);
}

.elima-gdpr-preferences__dialog {
  width: min(720px, 100%);
  max-height: min(760px, calc(100vh - 40px));
  overflow: auto;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 28px 90px rgba(0, 0, 0, .24);
}

.elima-gdpr-preferences__header,
.elima-gdpr-preferences__footer {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid #e7efe7;
}

.elima-gdpr-preferences__footer {
  border-top: 1px solid #e7efe7;
  border-bottom: 0;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.elima-gdpr-preferences__title {
  margin: 0;
  color: #102719;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 800;
}

.elima-gdpr-preferences__close {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #f2f7f1;
  color: #183820;
  font-size: 24px;
  line-height: 1;
}

.elima-gdpr-preferences__body {
  padding: 20px;
}

.elima-gdpr-preferences__intro {
  margin: 0 0 16px;
  color: #53605a;
  line-height: 1.55;
}

.elima-gdpr-option {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 16px 0;
  border-top: 1px solid #edf2ec;
}

.elima-gdpr-option__title {
  margin: 0 0 4px;
  color: #152a1b;
  font-size: 15px;
  font-weight: 800;
}

.elima-gdpr-option__text {
  margin: 0;
  color: #657069;
  font-size: 13px;
  line-height: 1.45;
}

.elima-gdpr-switch {
  position: relative;
  display: inline-flex;
  width: 54px;
  height: 30px;
}

.elima-gdpr-switch input {
  position: absolute;
  opacity: 0;
}

.elima-gdpr-switch span {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #d6ded5;
  transition: background .18s ease;
}

.elima-gdpr-switch span:before {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .2);
  transition: transform .18s ease;
}

.elima-gdpr-switch input:checked + span {
  background: var(--gdpr-primary, #2f7d3c);
}

.elima-gdpr-switch input:checked + span:before {
  transform: translateX(24px);
}

.elima-gdpr-switch input:disabled + span {
  background: #9db69f;
  cursor: not-allowed;
}

.elima-gdpr-manage {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 99997;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(47, 125, 60, .28);
  border-radius: 50%;
  background: #fff;
  color: var(--gdpr-primary, #2f7d3c);
  box-shadow: 0 12px 30px rgba(20, 50, 26, .18);
  font-size: 18px;
}

@media (max-width: 820px) {
  .elima-gdpr {
    inset: auto 10px 10px 10px;
  }

  .elima-gdpr__panel {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .elima-gdpr__actions {
    grid-template-columns: 1fr;
  }

  .elima-gdpr__button {
    width: 100%;
  }
}
