/* Consent UI is isolated from the theme's Bootstrap button and heading rules. */
.cookie-card,
.cookie-card * {
  box-sizing: border-box;
}

.cookie-card {
  position: fixed;
  z-index: 1080;
  right: max(24px, env(safe-area-inset-right));
  bottom: calc(24px + env(safe-area-inset-bottom));
  width: calc(100% - 48px);
  max-width: 420px;
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px - env(safe-area-inset-bottom));
  overflow-y: auto;
  padding: 26px;
  border: 1px solid #e8e5e2;
  border-radius: 12px;
  background: #fff;
  color: #45484b;
  font-family: 'Roboto', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  box-shadow: 0 12px 44px rgba(30, 36, 42, 0.16), 0 2px 8px rgba(30, 36, 42, 0.05);
  animation: cookie-enter 200ms ease-out;
}

.cookie-card[hidden] {
  display: none;
}

.cookie-card .cookie-card__title {
  margin: 0 0 12px;
  color: #252a2e;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.cookie-card .cookie-card__title::before {
  display: block;
  width: 28px;
  height: 3px;
  margin-bottom: 16px;
  border-radius: 2px;
  background: #f6732e;
  content: '';
}

.cookie-card .cookie-card__text {
  margin: 0 0 12px;
  color: #45484b;
  font-size: 15px;
  line-height: 1.6;
}

.cookie-card .cookie-card__policy {
  display: inline-block;
  padding-block: 4px;
  color: #555b60;
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.cookie-card .cookie-card__button {
  flex: 1 1 125px;
  min-width: 0;
  min-height: 48px;
  margin: 0;
  padding: 11px 16px;
  border: 1px solid #a9adb0;
  border-radius: 6px;
  background: #fff;
  color: #252a2e;
  font: inherit;
  font-weight: 500;
  line-height: 1.4;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.cookie-card .cookie-card__button:hover {
  border-color: #b64c16;
  background: #fff5ed;
}

.cookie-card .cookie-card__button:active {
  transform: translateY(1px);
}

.cookie-card a:hover,
.cookie-policy .cookie-manage:hover {
  color: #a84412;
}

.cookie-footer a:hover,
.cookie-footer .cookie-manage:hover { color: #ffb587; }

.cookie-card :focus-visible,
.cookie-footer :focus-visible,
.cookie-policy :focus-visible {
  outline: 2px solid #a84412;
  outline-offset: 4px;
}

.cookie-footer :focus-visible { outline-color: #ffb587; }

.cookie-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
  margin-bottom: 12px;
  font-size: 14px;
}

.cookie-footer a,
.cookie-manage {
  display: inline-block;
  padding: 8px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #d8dade;
  font: inherit;
  line-height: 1.5;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.cookie-policy {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 0 80px;
  color: #45484b;
  font-size: 17px;
  line-height: 1.75;
}

.cookie-policy h1 {
  margin-bottom: 16px;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.2;
}

.cookie-policy h2 {
  margin: 32px 0 12px;
  font-size: 22px;
  line-height: 1.3;
}

.cookie-policy p { margin-bottom: 16px; }
.cookie-policy a,
.cookie-policy .cookie-manage { color: #a84412; text-decoration: underline; }
.cookie-policy__date { color: #63696e; font-size: 14px; }

@keyframes cookie-enter {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 599px) {
  .cookie-card {
    left: max(12px, env(safe-area-inset-left));
    right: max(12px, env(safe-area-inset-right));
    bottom: calc(12px + env(safe-area-inset-bottom));
    width: auto;
    max-width: none;
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px - env(safe-area-inset-bottom) - env(safe-area-inset-top));
    padding: 20px;
  }
  .cookie-policy { padding: 40px 0 56px; }
}

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