.cookie-consent,
.cookie-consent * { box-sizing: border-box; }

.cookie-consent {
  position: fixed;
  z-index: 10000;
  right: 18px;
  bottom: max(18px, env(safe-area-inset-bottom));
  display: flex;
  max-width: min(520px, calc(100% - 36px));
  align-items: center;
  gap: 16px;
  padding: 10px 11px 10px 15px;
  color: #f7f8f4;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 12px;
  background: rgb(16 37 31 / 59%);
  box-shadow: 0 14px 36px rgb(7 24 18 / 28%);
  font: 600 .78rem/1.35 Arial, Helvetica, sans-serif;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.cookie-consent__message { white-space: nowrap; }
.cookie-consent__message a { color: #d7e99f; text-underline-offset: 3px; }
.cookie-consent__actions { display: flex; flex: none; gap: 7px; }

.cookie-consent__button {
  min-height: 34px;
  padding: 7px 12px;
  color: #f7f8f4;
  border: 1px solid rgb(255 255 255 / 24%);
  border-radius: 8px;
  background: transparent;
  font: 800 .72rem/1 Arial, Helvetica, sans-serif;
  cursor: pointer;
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}

.cookie-consent__button:hover { transform: translateY(-1px); border-color: rgb(255 255 255 / 48%); }
.cookie-consent__button--accept { color: #10251f; border-color: #d9e99e; background: #d5e88f; }
.cookie-consent__button--accept:hover { background: #e0f19e; }
.cookie-consent__button:focus-visible,
.cookie-settings-button:focus-visible { outline: 2px solid #d5e88f; outline-offset: 3px; }

.cookie-settings-button {
  padding: 0;
  color: inherit;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  font: inherit;
  opacity: .72;
  cursor: pointer;
}

.cookie-settings-button:hover { opacity: 1; }

@media (max-width: 640px) {
  .cookie-consent {
    right: 8px;
    bottom: max(8px, env(safe-area-inset-bottom));
    left: auto;
    max-width: calc(100% - 16px);
    flex-wrap: nowrap;
    gap: 8px;
    padding: 6px 7px 6px 10px;
    border-radius: 10px;
    background: rgb(16 37 31 / 59%);
    box-shadow: 0 8px 22px rgb(7 24 18 / 20%);
    font-size: .64rem;
  }
  .cookie-consent__message { flex: 0 1 auto; white-space: nowrap; }
  .cookie-consent__actions { gap: 5px; margin-left: 0; }
  .cookie-consent__button { min-height: 28px; padding: 5px 8px; border-radius: 7px; font-size: .62rem; }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-consent__button { transition: none; }
}
