.sr-cookie-banner,
.sr-cookie-dialog {
  box-sizing: border-box;
  color: #ededed;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.55;
}

.sr-cookie-banner {
  position: fixed;
  z-index: 10000;
  right: 18px;
  bottom: 18px;
  left: 18px;
  width: min(760px, calc(100% - 36px));
  margin: 0 auto;
  padding: 20px;
  border: 1px solid #4a4a4a;
  border-top: 3px solid #ffd700;
  border-radius: 10px;
  background: #171717;
  box-shadow: 0 12px 36px rgba(0, 0, 0, .55);
}

.sr-cookie-banner[hidden],
.sr-cookie-dialog[hidden] {
  display: none;
}

.sr-cookie-title {
  display: block;
  margin: 0 0 6px;
  color: #fff;
  font-size: 18px;
}

.sr-cookie-banner p,
.sr-cookie-dialog p {
  margin: 0;
  color: #c7c7c7;
}

.sr-cookie-banner a,
.sr-cookie-dialog a {
  color: #ffd700;
  text-decoration: underline;
}

.sr-cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.sr-cookie-button {
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid #666;
  border-radius: 6px;
  color: #fff;
  background: #2a2a2a;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.sr-cookie-button-primary {
  border-color: #ffd700;
  color: #111;
  background: #ffd700;
}

.sr-cookie-button:hover,
.sr-cookie-button:focus-visible,
.sr-cookie-preferences-link:focus-visible {
  outline: 3px solid rgba(255, 215, 0, .45);
  outline-offset: 2px;
}

.sr-cookie-backdrop {
  position: fixed;
  z-index: 10001;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0, 0, 0, .78);
}

.sr-cookie-backdrop[hidden] {
  display: none;
}

.sr-cookie-dialog {
  width: min(620px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  padding: 22px;
  border: 1px solid #4a4a4a;
  border-top: 3px solid #ffd700;
  border-radius: 10px;
  background: #171717;
  box-shadow: 0 16px 46px rgba(0, 0, 0, .65);
}

.sr-cookie-option {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 18px;
  align-items: center;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid #383838;
  border-radius: 7px;
  background: #202020;
}

.sr-cookie-option strong {
  color: #fff;
}

.sr-cookie-option p {
  grid-column: 1 / -1;
}

.sr-cookie-status {
  color: #9ed49e;
  font-weight: 700;
}

.sr-cookie-option input {
  width: 22px;
  height: 22px;
  accent-color: #ffd700;
}

.sr-cookie-preferences-link {
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

@media (max-width: 560px) {
  .sr-cookie-banner {
    right: 10px;
    bottom: 10px;
    left: 10px;
    width: calc(100% - 20px);
    padding: 17px;
  }

  .sr-cookie-actions {
    display: grid;
  }

  .sr-cookie-button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sr-cookie-banner,
  .sr-cookie-dialog {
    scroll-behavior: auto;
  }
}
