.cookie-settings-button {
  min-height: 32px;
  padding: 0;
  border: 0;
  color: #999;
  background: transparent;
  font: inherit;
  font-size: 11px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.cookie-settings-button:hover { color: #f3b384; }
.cookie-settings-button:focus-visible,
.cookie-consent button:focus-visible,
.cookie-consent a:focus-visible {
  outline: 3px solid #7db8ff;
  outline-offset: 3px;
}

.cookie-consent {
  position: fixed;
  z-index: 120;
  right: 18px;
  bottom: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(200px, .72fr);
  gap: 24px;
  width: min(680px, calc(100vw - 36px));
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 14px;
  color: #f5f5f5;
  background: rgba(8, 8, 8, .97);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .34);
  font-family: "Helvetica Neue", "Segoe UI Variable", "Segoe UI", Arial, sans-serif;
  backdrop-filter: blur(14px);
  pointer-events: none;
}

.cookie-consent[hidden] { display: none; }
.cookie-consent strong { display: block; font-size: 16px; }
.cookie-consent p { margin: 8px 0 9px; color: #bbb; font-size: 12px; line-height: 1.5; }
.cookie-consent a { color: #f3b384; font-size: 11px; }
.cookie-consent a,
.cookie-consent button { pointer-events: auto; }
.cookie-consent__actions { display: grid; grid-template-columns: 1fr; gap: 8px; }
.cookie-consent__actions button {
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #777;
  border-radius: 3px;
  color: #fff;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
}
.cookie-consent__actions button:last-child { border-color: #fff; color: #111; background: #fff; }

.configurator-page .cookie-consent {
  top: 70px;
  right: auto;
  bottom: auto;
  left: 18px;
  grid-template-columns: 1fr;
  gap: 16px;
  width: min(420px, calc(62vw - 36px));
}

.configurator-page .cookie-consent__actions { grid-template-columns: 1fr 1fr; }

.configurator-legal-access .cookie-settings-button {
  width: 100%;
  min-height: 38px;
  border-bottom: 1px solid #ececec;
  color: #272727;
  text-align: left;
}

@media (max-width: 620px) {
  .cookie-consent {
    right: 10px;
    bottom: 10px;
    grid-template-columns: 1fr;
    gap: 18px;
    width: calc(100vw - 20px);
    max-height: calc(100dvh - 20px);
    padding: 18px;
    overflow-y: auto;
  }

  .cookie-consent__actions { grid-template-columns: 1fr 1fr; }
  .cookie-consent__actions button { min-height: 52px; }

  .configurator-page .cookie-consent {
    top: 62px;
    right: 10px;
    bottom: auto;
    left: 10px;
    width: auto;
    max-height: calc(var(--mobile-stage-height, 42dvh) - 72px);
  }
}

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