.cookie-consent-root {
  position: relative;
  z-index: 1200;
}

.cookie-consent-footer-button,
.cookie-consent-btn,
.cookie-consent-modal-close {
  font: inherit;
}

.cookie-consent-site-footer,
.cookie-consent-footer-inline {
  display: flex;
  justify-content: center;
  padding: 0 1rem 1.2rem;
  margin-top: auto;
}

.cookie-consent-footer-inline {
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
  padding: 0.8rem 1rem;
}

.cookie-consent-footer-lang {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.18rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  box-shadow: 0 14px 34px rgba(2, 8, 23, 0.18);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.cookie-consent-footer-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0.58rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  color: rgba(226, 232, 240, 0.88);
  text-decoration: none;
  white-space: nowrap;
  font-size: 0.9rem;
  line-height: 1;
  box-shadow: 0 14px 34px rgba(2, 8, 23, 0.18);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.cookie-consent-footer-lang .global-lang-button {
  min-width: 36px;
  padding: 0.42rem 0.66rem;
  font-size: 0.72rem;
}

.cookie-consent-footer-button:hover,
.cookie-consent-footer-button:focus-visible,
.cookie-consent-btn:hover,
.cookie-consent-btn:focus-visible,
.cookie-consent-modal-close:hover,
.cookie-consent-modal-close:focus-visible {
  transform: translateY(-1px);
}

.cookie-consent-footer-button:hover,
.cookie-consent-footer-button:focus-visible {
  border-color: rgba(103, 232, 249, 0.24);
  color: #e8fbff;
  box-shadow: 0 16px 40px rgba(2, 8, 23, 0.24);
}

.cookie-consent-banner {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 1202;
  width: min(1120px, calc(100vw - 40px));
  margin: 0 auto;
  padding: 1.4rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(4, 15, 41, 0.78), rgba(2, 8, 23, 0.7)),
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.1), transparent 42%);
  box-shadow: 0 26px 80px rgba(2, 8, 23, 0.38);
  backdrop-filter: blur(26px);
  -webkit-backdrop-filter: blur(26px);
  opacity: 0;
  transform: translateY(22px) scale(0.94);
  transform-origin: center bottom;
  pointer-events: none;
  transition: opacity 260ms ease, transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

.cookie-consent-banner.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.cookie-consent-banner-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.25rem;
  align-items: center;
}

.cookie-consent-banner-copy {
  min-width: 0;
}

.cookie-consent-banner-title,
.cookie-consent-modal-title {
  margin: 0;
  color: #f8fafc;
  font-size: clamp(1.05rem, 1.2vw + 0.85rem, 1.4rem);
  line-height: 1.2;
  font-weight: 700;
}

.cookie-consent-banner-text,
.cookie-consent-modal-text,
.cookie-consent-option-copy {
  margin: 0;
  color: #94a3b8;
  line-height: 1.6;
}

.cookie-consent-banner-text {
  margin-top: 0.5rem;
  max-width: 62ch;
}

.cookie-consent-banner-actions,
.cookie-consent-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-end;
}

.cookie-consent-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.78rem 1.3rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.cookie-consent-btn.is-primary {
  border-color: rgba(103, 232, 249, 0.24);
  background: linear-gradient(180deg, rgba(10, 33, 79, 0.96), rgba(4, 16, 44, 0.96));
  color: #d8f7ff;
  box-shadow: 0 14px 32px rgba(7, 15, 33, 0.32);
}

.cookie-consent-btn.is-primary:hover,
.cookie-consent-btn.is-primary:focus-visible {
  border-color: rgba(103, 232, 249, 0.42);
  box-shadow: 0 18px 40px rgba(7, 15, 33, 0.42);
}

.cookie-consent-btn.is-secondary {
  border-color: rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.66);
  color: #e2e8f0;
}

.cookie-consent-btn.is-secondary:hover,
.cookie-consent-btn.is-secondary:focus-visible {
  border-color: rgba(148, 163, 184, 0.4);
  background: rgba(15, 23, 42, 0.82);
}

.cookie-consent-btn.is-ghost {
  border-color: rgba(103, 232, 249, 0.16);
  background: rgba(8, 16, 32, 0.36);
  color: #b6ecff;
}

.cookie-consent-btn.is-ghost:hover,
.cookie-consent-btn.is-ghost:focus-visible {
  border-color: rgba(103, 232, 249, 0.28);
  background: rgba(8, 16, 32, 0.5);
}

.cookie-consent-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1203;
  background: rgba(1, 4, 15, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.cookie-consent-backdrop.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.cookie-consent-modal {
  position: fixed;
  z-index: 1204;
  inset: 50% auto auto 50%;
  width: min(760px, calc(100vw - 32px));
  max-height: min(86vh, 920px);
  overflow: auto;
  --cookie-modal-from-x: 0px;
  --cookie-modal-from-y: 24px;
  transform: translate(-50%, -50%) translate(var(--cookie-modal-from-x), var(--cookie-modal-from-y)) scale(0.72);
  border-radius: 30px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background:
    linear-gradient(180deg, rgba(5, 15, 37, 0.78), rgba(2, 8, 23, 0.72)),
    radial-gradient(circle at top right, rgba(34, 211, 238, 0.08), transparent 44%);
  box-shadow: 0 32px 90px rgba(2, 8, 23, 0.5);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 240ms ease, transform 300ms cubic-bezier(0.22, 1, 0.36, 1);
}

.cookie-consent-modal.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) translate(0, 0) scale(1);
}

.cookie-consent-modal-inner {
  padding: 1.45rem;
}

.cookie-consent-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-consent-modal-text {
  margin-top: 0.6rem;
  max-width: 60ch;
}

.cookie-consent-modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.56);
  color: #e2e8f0;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.cookie-consent-modal-close:hover,
.cookie-consent-modal-close:focus-visible {
  border-color: rgba(148, 163, 184, 0.34);
  background: rgba(15, 23, 42, 0.8);
}

.cookie-consent-options {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.25rem;
}

.cookie-consent-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 1.05rem 1.1rem;
  border-radius: 22px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(15, 23, 42, 0.5);
}

.cookie-consent-option-title {
  margin: 0;
  color: #f8fafc;
  font-size: 1rem;
  font-weight: 600;
}

.cookie-consent-option-copy {
  margin-top: 0.42rem;
  font-size: 0.95rem;
}

.cookie-consent-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 110px;
  min-height: 36px;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(103, 232, 249, 0.18);
  background: rgba(8, 20, 52, 0.8);
  color: #b6ecff;
  font-size: 0.85rem;
  font-weight: 600;
}

.cookie-consent-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 58px;
  height: 34px;
}

.cookie-consent-toggle input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: pointer;
}

.cookie-consent-toggle-track {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(15, 23, 42, 0.95);
  transition: background-color 180ms ease, border-color 180ms ease;
}

.cookie-consent-toggle-track::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #f8fafc;
  box-shadow: 0 4px 12px rgba(2, 8, 23, 0.22);
  transition: transform 180ms ease;
}

.cookie-consent-toggle input:checked + .cookie-consent-toggle-track {
  border-color: rgba(103, 232, 249, 0.34);
  background: linear-gradient(180deg, rgba(10, 33, 79, 0.96), rgba(4, 16, 44, 0.96));
}

.cookie-consent-toggle input:checked + .cookie-consent-toggle-track::after {
  transform: translateX(24px);
}

.cookie-consent-toggle input:disabled + .cookie-consent-toggle-track {
  border-color: rgba(103, 232, 249, 0.22);
  background: rgba(4, 16, 44, 0.92);
  cursor: not-allowed;
}

.cookie-consent-modal-actions {
  margin-top: 1.3rem;
  justify-content: space-between;
}

.cookie-consent-modal-actions-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

body.cookie-consent-modal-open {
  overflow: hidden;
}

@media (max-width: 900px) {
  .cookie-consent-banner-inner {
    grid-template-columns: 1fr;
  }

  .cookie-consent-banner-actions,
  .cookie-consent-modal-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .cookie-consent-site-footer,
  .cookie-consent-footer-inline {
    padding: 0 0.75rem 1rem;
  }

  .cookie-consent-footer-inline {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem;
  }

  .cookie-consent-footer-button {
    width: 100%;
  }

  .cookie-consent-footer-lang {
    width: 100%;
    justify-content: center;
  }

  .cookie-consent-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: calc(100vw - 24px);
    padding: 1rem;
    border-radius: 24px;
  }

  .cookie-consent-banner-actions,
  .cookie-consent-modal-actions-group {
    width: 100%;
  }

  .cookie-consent-banner-actions .cookie-consent-btn,
  .cookie-consent-modal-actions .cookie-consent-btn,
  .cookie-consent-modal-actions-group .cookie-consent-btn {
    width: 100%;
  }

  .cookie-consent-modal {
    width: calc(100vw - 24px);
    border-radius: 24px;
  }

  .cookie-consent-modal-inner {
    padding: 1rem;
  }

  .cookie-consent-option {
    grid-template-columns: 1fr;
  }

  .cookie-consent-status,
  .cookie-consent-toggle {
    justify-self: flex-start;
  }

  .cookie-consent-modal-actions {
    gap: 0.75rem;
  }
}
