.cookie-consent {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 120;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  pointer-events: none;
  display: none;
}

.cookie-consent.is-open {
  display: block;
  animation: cookie-consent-enter 0.35s ease;
}

@keyframes cookie-consent-enter {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cookie-consent__panel {
  pointer-events: auto;
  position: relative;
  overflow: hidden;
  max-width: 920px;
  margin: 0 auto;
  border-radius: 5px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: #ffffff;
  box-shadow:
    0 16px 40px rgba(15, 23, 42, 0.12),
    0 2px 8px rgba(15, 23, 42, 0.05);
  color: #0f172a;
}

.cookie-consent__accent {
  height: 3px;
  background: linear-gradient(90deg, #14b8a6 0%, #0ea5e9 52%, #2563eb 100%);
}

.cookie-consent__inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 18px 18px 20px;
}

@media (min-width: 768px) {
  .cookie-consent__inner {
    flex-direction: row;
    align-items: center;
    gap: 20px;
    padding: 20px 22px 22px;
  }
}

.cookie-consent__icon-wrap {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 5px;
  border: 1px solid rgba(37, 99, 235, 0.12);
  background: #f2f3ff;
  color: #2563eb;
}

.cookie-consent__icon-wrap .material-symbols-outlined {
  font-size: 1.35rem;
  line-height: 1;
  font-variation-settings: "FILL" 0, "wght" 500, "GRAD" 0, "opsz" 24;
}

.cookie-consent__content {
  flex: 1;
  min-width: 0;
}

.cookie-consent__title {
  margin: 0 0 4px;
  font-family: Inter, system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  color: #002171;
}

.cookie-consent__text {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.875rem;
  line-height: 1.55;
  color: #475569;
}

.cookie-consent__text a {
  color: #2563eb;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.14em;
}

.cookie-consent__text a:hover {
  color: #1d4ed8;
}

.cookie-consent__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  flex-shrink: 0;
  width: 100%;
  max-width: 320px;
}

@media (min-width: 768px) {
  .cookie-consent__actions {
    width: 320px;
    min-width: 320px;
  }
}

.cookie-consent__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 5px;
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.01em;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.cookie-consent__btn--primary {
  border: 1px solid #0054d6;
  background: #0054d6;
  color: #ffffff;
  box-shadow: 0 1px 2px rgba(0, 84, 214, 0.18);
}

.cookie-consent__btn--primary:hover {
  background: #0046b8;
  border-color: #0046b8;
  box-shadow: 0 4px 12px rgba(0, 84, 214, 0.22);
}

.cookie-consent__btn--primary:focus-visible,
.cookie-consent__btn--secondary:focus-visible {
  outline: 2px solid rgba(37, 99, 235, 0.45);
  outline-offset: 2px;
}

.cookie-consent__btn--secondary {
  border: 1px solid #c2c6d8;
  background: #ffffff;
  color: #424656;
}

.cookie-consent__btn--secondary:hover {
  background: #f2f3ff;
  border-color: #94a3b8;
  color: #131b2e;
}

body.cookie-consent-visible .home-footer__top {
  bottom: calc(24px + var(--cookie-consent-offset, 0px));
}

@media (max-width: 767px) {
  body.cookie-consent-visible .home-footer__top {
    bottom: calc(16px + var(--cookie-consent-offset, 0px));
  }
}
