.sarafan-consent,
.sarafan-consent-settings {
  box-sizing: border-box;
  color: #382b26;
  font-family: "Onest", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  text-align: start;
}

.sarafan-consent[hidden],
.sarafan-consent-settings[hidden] { display: none; }

.sarafan-consent {
  position: fixed;
  z-index: 1600;
  inset-inline: 20px;
  inset-block-end: 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  max-width: 1110px;
  max-height: calc(100dvh - 40px);
  margin-inline: auto;
  padding: 24px;
  overflow: auto;
  background: #fffaf1;
  box-shadow: 0 12px 48px rgb(56 43 38 / 24%);
  scrollbar-color: #827064 #fffaf1;
}

.sarafan-consent__header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 16px; margin-block-end: 8px; }
.sarafan-consent #sarafan-consent-title {
  margin: 0;
  color: inherit;
  font-family: "Literata", Georgia, serif;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.sarafan-consent p { max-width: 68ch; margin: 0; }
.sarafan-consent .sarafan-consent__status { margin-block-start: 8px; color: #655043; font-size: 14px; }
.sarafan-consent__actions { display: grid; gap: 8px; min-width: 212px; }
.sarafan-consent button,
.sarafan-consent-settings {
  min-height: 44px;
  border: 1px solid #655043;
  border-radius: 0;
  padding: 10px 16px;
  background: #fffaf1;
  color: #382b26;
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  text-align: center;
}

.sarafan-consent button:hover,
.sarafan-consent-settings:hover { background: #eee3d4; }
.sarafan-consent a { padding-block: 3px; color: #382b26; font-size: 14px; line-height: 22px; text-underline-offset: 0.2em; }
.sarafan-consent :focus-visible,
.sarafan-consent-settings:focus-visible { outline: 2px solid #7e4c2e; outline-offset: 4px; }
.sarafan-consent #sarafan-consent-title:focus { outline: none; }
.sarafan-consent ::selection,
.sarafan-consent-settings::selection { background: #382b26; color: #fffaf1; }
.sarafan-consent-settings {
  position: fixed;
  z-index: 1500;
  inset-inline-end: 16px;
  inset-block-end: 16px;
  box-shadow: 0 4px 18px rgb(56 43 38 / 14%);
  font-size: 14px;
}

@media (max-width: 700px) {
  .sarafan-consent { inset-inline: 12px; inset-block-end: 12px; grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 12px; max-height: calc(100dvh - 24px); }
  .sarafan-consent__header { flex-wrap: nowrap; gap: 8px; margin-block-end: 4px; }
  .sarafan-consent #sarafan-consent-title { font-size: 18px; line-height: 22px; }
  .sarafan-consent__copy > p { font-size: 14px; line-height: 19px; }
  .sarafan-consent__header a { flex-shrink: 0; font-size: 13px; line-height: 22px; }
  .sarafan-consent__actions { grid-template-columns: 1fr 1fr; min-width: 0; }
  .sarafan-consent__actions button { min-width: 0; min-height: 44px; padding: 8px; font-size: 14px; line-height: 20px; }
  .sarafan-consent[data-consent-view="initial"] .sarafan-consent__status { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
