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

.privacy-consent {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 1100;
  width: min(440px, calc(100vw - 32px));
}

.privacy-consent-card {
  padding: 22px;
  color: #e8f0f7;
  background: rgba(15, 23, 31, 0.98);
  border: 1px solid rgba(125, 211, 252, 0.28);
  border-radius: 20px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(14px);
}

.privacy-consent-label {
  margin: 0 0 8px;
  color: #38bdf8;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.privacy-consent-card h2 {
  margin: 0 0 10px;
  color: #ffffff;
  font-size: 1.35rem;
  line-height: 1.2;
}

.privacy-consent-card p {
  margin: 0;
  color: #c7d4df;
  font-size: 0.95rem;
  line-height: 1.6;
}

.privacy-consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.privacy-consent-button {
  min-height: 44px;
  padding: 10px 15px;
  border-radius: 12px;
  font-weight: 750;
  line-height: 1.2;
  cursor: pointer;
}

.privacy-consent-button-primary {
  color: #ffffff;
  background: #0369a1;
  border: 1px solid #0369a1;
}

.privacy-consent-button-primary:hover,
.privacy-consent-button-primary:focus-visible {
  background: #075985;
  border-color: #075985;
}

.privacy-consent-button-secondary {
  color: #e8f0f7;
  background: transparent;
  border: 1px solid #536574;
}

.privacy-consent-button-secondary:hover,
.privacy-consent-button-secondary:focus-visible {
  color: #ffffff;
  background: #25313a;
  border-color: #7b8c99;
}

.privacy-consent-button:focus-visible,
.privacy-settings:focus-visible {
  outline: 3px solid #7dd3fc;
  outline-offset: 3px;
}

.privacy-settings {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 1090;
  min-height: 42px;
  padding: 9px 13px;
  color: #dbeafe;
  background: rgba(15, 23, 31, 0.94);
  border: 1px solid rgba(125, 211, 252, 0.32);
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
}

.privacy-settings:hover {
  color: #ffffff;
  background: #17242d;
}

@media (min-width: 992px) {
  .privacy-consent {
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: none;
  }

  .privacy-consent-card {
    display: grid;
    grid-template-columns: minmax(180px, 0.7fr) minmax(0, 2fr) auto;
    grid-template-areas: "title description actions";
    column-gap: 28px;
    align-items: center;
    width: 100%;
    min-height: 72px;
    padding: 10px 24px;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 0;
    box-shadow: 0 -10px 28px rgba(0, 0, 0, 0.32);
  }

  .privacy-consent-card > .privacy-consent-label {
    display: none;
  }

  .privacy-consent-card > h2 {
    grid-area: title;
    margin: 0;
    font-size: 1rem;
    line-height: 1.2;
  }

  .privacy-consent-card > #privacy-consent-description {
    grid-area: description;
    max-width: none;
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.35;
  }

  .privacy-consent-actions {
    grid-area: actions;
    flex-wrap: nowrap;
    align-items: center;
    margin-top: 0;
  }

  .privacy-consent-button {
    min-height: 40px;
    padding: 9px 14px;
    white-space: nowrap;
  }

  body:has(.privacy-consent:not([hidden])) .yv-chatbot-launcher {
    bottom: 96px;
  }

  body:has(.privacy-consent:not([hidden])) .yv-chatbot-panel {
    bottom: 154px;
  }
}

@media (max-width: 575.98px) {
  .privacy-consent {
    left: 16px;
    top: 16px;
    bottom: auto;
    width: calc(100vw - 32px);
  }

  .privacy-consent-card {
    padding: 18px;
    border-radius: 16px;
  }

  .privacy-consent-actions {
    flex-direction: column-reverse;
  }

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

  .privacy-settings {
    left: 16px;
    right: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .privacy-consent *,
  .privacy-settings {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
