.ds-consent[hidden],
.ds-consent__settings[hidden] {
  display: none !important;
}

.ds-consent {
  box-sizing: border-box;
  width: min(100% - 32px, 760px);
  margin: 16px auto;
  padding: 18px 20px;
  border: 1px solid #727578;
  border-radius: 12px;
  background: #202123;
  color: #f7f6f2;
  font-family: inherit;
  box-shadow: 0 8px 24px #0003;
}

.ds-consent h1,
.ds-consent h2,
.ds-consent h3 {
  margin: 0 0 8px;
  color: #f7f6f2;
  font-size: 1.1rem;
  line-height: 1.3;
}

.ds-consent p {
  margin: 0;
  color: #e0e1dc;
  font-size: .94rem;
  line-height: 1.5;
}

.ds-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.ds-consent__actions button {
  flex: 1 1 180px;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid #aeb1a8;
  border-radius: 8px;
  background: #303330;
  color: #f7f6f2;
  font: inherit;
  font-weight: 650;
  line-height: 1.3;
  cursor: pointer;
}

.ds-consent__actions button:hover {
  border-color: #d7fa66;
  background: #3a3f34;
}

.ds-consent__actions button:focus-visible,
.ds-consent__settings:focus-visible,
.ds-consent__settings :focus-visible {
  outline: 3px solid #d7fa66;
  outline-offset: 3px;
}

.ds-consent__settings {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 4px;
  border: 0;
  background: transparent;
  color: #e0e1dc;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

@media (max-width: 650px) {
  footer.shell,
  footer.footer {
    flex-wrap: wrap;
    row-gap: 4px;
  }

  .ds-consent {
    width: calc(100% - 24px);
    margin: 12px auto;
    padding: 16px;
  }

  .ds-consent__actions button {
    flex-basis: calc(50% - 5px);
  }
}

@media (max-height: 700px) {
  .ds-consent { margin-block: 8px; padding: 12px 16px; }
  .ds-consent h2 { font-size: 1rem; margin-bottom: 4px; }
  .ds-consent p { font-size: .84rem; line-height: 1.35; }
  .ds-consent__actions { margin-top: 8px; }
}
