.privacy-consent[hidden],
.privacy-preferences-button[hidden] {
  display: none !important;
}

.privacy-consent {
  position: fixed;
  right: 20px;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  left: 20px;
  z-index: 3000;
  max-width: 880px;
  margin: 0 auto;
  padding: 20px;
  border: 1px solid #d7deec;
  border-radius: 16px;
  color: #17213c;
  background: #ffffff;
  box-shadow: 0 18px 55px rgba(17, 24, 39, 0.2);
}

.privacy-consent__content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
}

.privacy-consent strong {
  display: block;
  margin-bottom: 5px;
  font-size: 1rem;
}

.privacy-consent p {
  max-width: 630px;
  margin: 0 0 7px;
  color: #5d687d;
  font-size: 0.88rem;
  line-height: 1.5;
}

.privacy-consent a {
  color: #3157e5;
  font-size: 0.84rem;
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.privacy-consent__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.privacy-consent button,
.privacy-preferences-button {
  min-height: 44px;
  padding: 10px 17px;
  border: 1px solid #cdd5e4;
  border-radius: 10px;
  color: #17213c;
  background: #ffffff;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
}

.privacy-consent button:hover {
  border-color: #8997b1;
  background: #f5f7fb;
}

.privacy-consent .privacy-consent__accept {
  border-color: #3157e5;
  color: #ffffff;
  background: #3157e5;
}

.privacy-consent .privacy-consent__accept:hover {
  border-color: #2448ca;
  background: #2448ca;
}

.privacy-consent button:focus-visible,
.privacy-consent a:focus-visible,
.privacy-preferences-button:focus-visible {
  outline: 3px solid rgba(49, 87, 229, 0.42);
  outline-offset: 3px;
}

.privacy-preferences-button {
  position: fixed;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  left: calc(16px + env(safe-area-inset-left, 0px));
  z-index: 840;
  min-height: 38px;
  padding: 8px 12px;
  border-color: rgba(205, 213, 228, 0.92);
  color: #44506a;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.12);
  font-size: 0.76rem;
}

.privacy-preferences-button:hover {
  border-color: #8997b1;
  color: #17213c;
  background: #ffffff;
}

@media (max-width: 680px) {
  .privacy-consent {
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    left: 12px;
    padding: 18px;
  }

  .privacy-consent__content {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .privacy-consent__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .privacy-consent button {
    width: 100%;
  }

  .privacy-preferences-button {
    max-width: calc(100vw - 92px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

@media (max-width: 360px) {
  .privacy-consent__actions {
    grid-template-columns: 1fr;
  }
}
