.st-cookie-dialog {
  width: min(52rem, calc(100% - 2rem));
  max-width: none;
  max-height: calc(100% - 2rem);
  max-height: calc(100dvh - 2rem);
  padding: 0;
  margin: auto;
  border: 1px solid #d5dbe4;
  border-radius: 1.25rem;
  background: #fff;
  color: #192330;
  box-shadow: 0 1.5rem 5rem #111a2a4d;
  overflow: auto;
  font: inherit;
}

.st-cookie-dialog::backdrop {
  background: #121824bf;
}

.st-cookie-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: min(27rem, calc(100dvh - 2rem));
  padding: clamp(1.25rem, 5vw, 3.5rem);
  box-sizing: border-box;
}

.st-cookie-dialog h2 {
  margin: 0 0 1rem;
  color: #192330;
  font: inherit;
  font-size: clamp(1.55rem, 3vw, 2.625rem);
  line-height: 1.12;
  font-weight: 700;
}

.st-cookie-dialog h2:focus {
  outline: 0;
}

.st-cookie-dialog p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.55;
  color: #475465;
}

.st-cookie-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .8rem;
  margin: 1.5rem 0 1.25rem;
}

.st-cookie-actions button {
  min-height: 3rem;
  padding: .65rem .75rem;
  background: #fff;
  color: #8a1618;
  border: 2px solid #a41615;
  border-radius: .625rem;
  font: inherit;
  font-size: .9375rem;
  font-weight: 650;
  cursor: pointer;
}

.st-cookie-actions button:hover {
  background: #f9eeee;
}

.st-cookie-dialog :is(button, a, input):focus-visible,
.st-cookie-settings button:focus-visible {
  outline: 3px solid #a41615;
  outline-offset: 3px;
}

.st-cookie-categories {
  display: grid;
  gap: .625rem;
  margin-top: 1.25rem;
}

.st-cookie-category {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: .875rem 1rem;
  border: 1px solid #d9e0e8;
  border-radius: .625rem;
  background: #f6f8fa;
}

.st-cookie-category strong,
.st-cookie-category span span {
  display: block;
}

.st-cookie-category p,
.st-cookie-category span span {
  color: #475465;
  font-size: .875rem;
  line-height: 1.5;
  margin-top: .25rem;
}

.st-cookie-category > span:nth-child(2) {
  font-size: .8rem;
  white-space: nowrap;
}

.st-cookie-category input {
  appearance: auto;
  accent-color: #a41615;
  flex: 0 0 auto;
  min-width: 1.125rem;
  min-height: 1.125rem;
  width: 1.125rem;
  height: 1.125rem;
  margin: .12rem 0 0;
  padding: 0;
}

.st-cookie-dialog [hidden] {
  display: none !important;
}

.st-cookie-policy,
.st-cookie-settings button {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: .2em;
  font-size: .875rem;
}

.st-cookie-policy {
  align-self: flex-start;
}

.st-cookie-settings {
  text-align: center;
  padding: .75rem;
}

.st-cookie-settings button {
  background: transparent;
  border: 0;
  padding: .3rem;
  cursor: pointer;
}

@media (max-width: 360px) {
  .st-cookie-actions {
    grid-template-columns: 1fr;
  }
}
html:has(.st-cookie-dialog[open]) {
  overflow: hidden;
}
