body.dpo-cookie-open,
body.rtmd-cookie-open {
  padding-bottom: 140px;
}

.dpo-cookie,
button.dpo-cookie-reopen {
  display: none !important;
}

.dpo-cookie.is-visible,
.rtmd-cookie.is-visible {
  display: block !important;
  position: fixed;
  left: 50%;
  bottom: 16px;
  z-index: 100020;
  width: min(520px, calc(100vw - 24px));
  transform: translateX(-50%);
  pointer-events: none;
}

.dpo-cookie__panel,
.rtmd-cookie__panel {
  pointer-events: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px 16px;
  align-items: start;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid rgba(47, 68, 78, 0.12);
  border-radius: 20px;
  box-shadow: 0 12px 28px rgba(47, 68, 78, 0.16);
}

.dpo-cookie__title,
.rtmd-cookie__title {
  margin: 0 0 6px;
  font-size: 16px;
  line-height: 1.3;
  font-weight: 700;
  color: #2F444E;
}

.dpo-cookie__text,
.rtmd-cookie__text {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(10, 8, 59, 0.7);
}

.dpo-cookie__text a,
.rtmd-cookie__text a {
  color: #84b056;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.dpo-cookie button.dpo-cookie__more,
.rtmd-cookie button.rtmd-cookie__more {
  display: inline;
  width: auto;
  max-width: none;
  min-width: 0;
  min-height: 0;
  margin: 8px 0 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  color: #2F444E;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.dpo-cookie__details,
.rtmd-cookie__details {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(47, 68, 78, 0.12);
}

.dpo-cookie__details p,
.rtmd-cookie__details p {
  margin: 0 0 6px;
  font-size: 12px;
  line-height: 1.4;
  color: rgba(10, 8, 59, 0.7);
}

.dpo-cookie__actions,
.rtmd-cookie__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 168px;
}

.dpo-cookie button.dpo-cookie__btn,
.rtmd-cookie button.rtmd-cookie__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 40px;
  padding: 8px 14px;
  border: 0;
  border-radius: 30px;
  background-image: none;
  box-shadow: none;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: none;
  cursor: pointer;
}

.dpo-cookie button.dpo-cookie__btn--primary,
.rtmd-cookie button.rtmd-cookie__btn--primary {
  background: #84b056;
  color: #fff;
}

.dpo-cookie button.dpo-cookie__btn--ghost,
.rtmd-cookie button.rtmd-cookie__btn--ghost {
  background: #fff;
  color: #2F444E;
  border: 2px solid #2F444E;
}

button.dpo-cookie-reopen.is-visible,
button.rtmd-cookie-reopen.is-visible {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 100030;
  min-height: 36px;
  padding: 8px 14px;
  border: 0;
  border-radius: 999px;
  background: #2F444E;
  box-shadow: 0 8px 18px rgba(47, 68, 78, 0.28);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

button.dpo-cookie-reopen.is-visible:hover,
button.rtmd-cookie-reopen.is-visible:hover {
  background: #84b056;
  color: #fff;
}

button.dpo-cookie-reopen.is-visible:focus-visible,
button.rtmd-cookie-reopen.is-visible:focus-visible {
  outline: 2px solid #84b056;
  outline-offset: 3px;
}

.dpo-cookie-reopen__icon,
.rtmd-cookie-reopen__icon {
  display: block;
  flex: 0 0 auto;
}

button.dpo-footer-cookie-link {
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: #84b056;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

button.dpo-footer-cookie-link:hover,
button.dpo-footer-cookie-link:focus-visible {
  color: #fff;
}

@media (max-width: 720px) {
  body.dpo-cookie-open,
  body.rtmd-cookie-open {
    padding-bottom: 180px;
  }

  .dpo-cookie.is-visible,
  .rtmd-cookie.is-visible {
    bottom: 12px;
    width: calc(100vw - 20px);
  }

  .dpo-cookie__panel,
  .rtmd-cookie__panel {
    grid-template-columns: 1fr;
  }

  button.dpo-cookie-reopen.is-visible,
  button.rtmd-cookie-reopen.is-visible {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    left: 12px;
    bottom: 12px;
  }

  .dpo-cookie-reopen__label,
  .rtmd-cookie-reopen__label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
  }
}
