.cookie-consent-banner[hidden],
.cookie-consent-dialog[hidden] {
  display: none !important;
}

.cookie-consent-banner {
  position: fixed;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 20000;
  width: auto;
  max-width: 1480px;
  margin: 0 auto;
  padding: 16px 18px;
  color: #f5f5f5;
  background: rgba(18, 18, 18, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-top: 2px solid #ffcc00;
  border-radius: 16px;
  box-shadow: 0 18px 58px rgba(0, 0, 0, 0.52);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.cookie-consent-banner__content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
}

.cookie-consent-banner__copy {
  min-width: 0;
  max-width: 820px;
}

.cookie-consent-banner__title {
  margin: 0 0 4px;
  color: #fff;
  font-size: 1rem;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.cookie-consent-banner__text {
  margin: 0;
  color: #cfcfcf;
  font-size: 0.9rem;
  line-height: 1.45;
}

.cookie-consent-actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
}

.cookie-consent-button {
  min-height: 42px;
  padding: 9px 16px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.cookie-consent-button:hover,
.cookie-consent-button:focus-visible {
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.45);
  transform: translateY(-1px);
}

.cookie-consent-button:focus-visible,
.cookie-consent-settings:focus-visible,
.cookie-consent-toggle input:focus-visible {
  outline: 3px solid #ffcc00;
  outline-offset: 3px;
}

.cookie-consent-button--primary {
  min-width: 108px;
  background: #ffcc00;
  border-color: #ffcc00;
  color: #111;
  box-shadow: 0 8px 22px rgba(255, 204, 0, 0.16);
}

.cookie-consent-button--primary:hover,
.cookie-consent-button--primary:focus-visible {
  background: #ffd633;
  border-color: #ffd633;
  color: #111;
}

.cookie-consent-dialog {
  position: fixed;
  inset: 0;
  z-index: 20010;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.72);
}

.cookie-consent-dialog__panel {
  width: min(100%, 620px);
  max-height: min(90vh, 760px);
  overflow-y: auto;
  padding: 24px;
  color: #f5f5f5;
  background: #171717;
  border: 1px solid #4b4b4b;
  border-radius: 14px;
  box-shadow: 0 20px 65px rgba(0, 0, 0, 0.55);
}

.cookie-consent-dialog__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.cookie-consent-dialog__header h2 {
  margin: 0;
  font-size: 1.35rem;
}

.cookie-consent-dialog__intro {
  margin: 10px 0 18px;
  color: #d8d8d8;
  line-height: 1.5;
}

.cookie-consent-close {
  min-width: 44px;
  min-height: 44px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 1.45rem;
  cursor: pointer;
}

.cookie-consent-category {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 16px 0;
  border-top: 1px solid #3c3c3c;
}

.cookie-consent-category h3 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.cookie-consent-category p {
  margin: 0;
  color: #cfcfcf;
  line-height: 1.45;
}

.cookie-consent-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.cookie-consent-toggle input {
  width: 22px;
  height: 22px;
  accent-color: currentColor;
}

.cookie-consent-dialog__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

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

.cookie-consent-dialog-open {
  overflow: hidden;
}

@media (max-width: 900px) {
  .cookie-consent-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 15px;
  }

  .cookie-consent-banner__content {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .cookie-consent-banner__copy {
    max-width: none;
  }

  .cookie-consent-actions {
    justify-content: stretch;
  }

  .cookie-consent-button {
    flex: 1 1 0;
  }
}

@media (max-width: 560px) {
  .cookie-consent-banner {
    left: 8px;
    right: 8px;
    bottom: 8px;
    padding: 14px;
    border-radius: 14px;
  }

  .cookie-consent-banner__title {
    font-size: 0.98rem;
  }

  .cookie-consent-banner__text {
    font-size: 0.84rem;
    line-height: 1.4;
  }

  .cookie-consent-actions,
  .cookie-consent-dialog__actions {
    flex-direction: column;
  }

  .cookie-consent-button {
    width: 100%;
    min-height: 44px;
  }

  .cookie-consent-dialog {
    align-items: flex-end;
    padding: 10px;
  }

  .cookie-consent-dialog__panel {
    max-height: 92vh;
    padding: 20px 16px;
  }

  .cookie-consent-category {
    grid-template-columns: 1fr;
  }
}
