.vx-cookie-consent {
  position: fixed;
  inset: auto 16px 16px 16px;
  z-index: 12000;
  pointer-events: none;
}

@media (min-width: 640px) {
  .vx-cookie-consent {
    inset: auto auto 24px 24px;
    max-width: 420px;
  }
}

.vx-cookie-consent:not(.hidden) {
  pointer-events: auto;
}

.vx-cookie-consent.hidden,
.vx-cookie-manage.hidden {
  display: none;
}

.vx-cookie-consent__card,
.vx-cookie-manage__card {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(12, 18, 32, 0.96);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.vx-cookie-consent__card {
  padding: 18px 18px 16px;
}

.vx-cookie-consent__title,
.vx-cookie-manage__title {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  color: #f4f7fc;
}

.vx-cookie-consent__text,
.vx-cookie-manage__intro {
  margin: 0 0 14px;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #a8b3c7;
}

.vx-cookie-consent__link {
  color: #c4b5fd;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.vx-cookie-consent__link:hover {
  color: #ddd6fe;
}

.vx-cookie-consent__actions,
.vx-cookie-manage__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.vx-cookie-consent__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.vx-cookie-consent__btn:hover {
  transform: translateY(-1px);
}

.vx-cookie-consent__btn--primary {
  color: #fff;
  background: linear-gradient(135deg, #6f36ff 0%, #4da0ff 100%);
  box-shadow: 0 8px 24px rgba(111, 54, 255, 0.28);
}

.vx-cookie-consent__btn--primary:hover {
  box-shadow: 0 10px 28px rgba(111, 54, 255, 0.36);
}

.vx-cookie-consent__btn--ghost {
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.14);
}

.vx-cookie-consent__btn--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
}

.vx-cookie-manage {
  position: fixed;
  inset: 0;
  z-index: 12001;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 16px;
  background: rgba(16, 8, 64, 0.55);
}

@media (min-width: 640px) {
  .vx-cookie-manage {
    align-items: flex-end;
    justify-content: flex-start;
    padding: 24px;
  }
}

.vx-cookie-manage__card {
  width: min(100%, 420px);
  padding: 18px;
}

.vx-cookie-manage__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.vx-cookie-manage__close {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #cbd5e1;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.vx-cookie-manage__close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #f8fafc;
}

.vx-cookie-manage__option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.vx-cookie-manage__option-title {
  margin: 0 0 4px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #f4f7fc;
}

.vx-cookie-manage__option-desc {
  font-size: 0.8125rem;
  line-height: 1.45;
  color: #94a3b8;
}

.vx-cookie-manage__always {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 600;
  color: #6ee7b7;
}

.vx-cookie-manage__switch {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
  cursor: pointer;
}

.vx-cookie-manage__switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.vx-cookie-manage__switch-ui {
  width: 44px;
  height: 26px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  transition: background 0.2s ease;
}

.vx-cookie-manage__switch-ui::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s ease;
}

.vx-cookie-manage__switch input:checked + .vx-cookie-manage__switch-ui {
  background: #6f36ff;
}

.vx-cookie-manage__switch input:checked + .vx-cookie-manage__switch-ui::after {
  transform: translateX(18px);
}

.vx-cookie-manage__switch input:focus-visible + .vx-cookie-manage__switch-ui {
  outline: 2px solid rgba(111, 54, 255, 0.55);
  outline-offset: 2px;
}

html[data-theme="light"] .vx-cookie-consent__card,
html[data-theme="light"] .vx-cookie-manage__card {
  background: #fff;
  border-color: rgba(15, 23, 42, 0.1);
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.12);
}

html[data-theme="light"] .vx-cookie-consent__title,
html[data-theme="light"] .vx-cookie-manage__title,
html[data-theme="light"] .vx-cookie-manage__option-title {
  color: #0f172a;
}

html[data-theme="light"] .vx-cookie-consent__text,
html[data-theme="light"] .vx-cookie-manage__intro,
html[data-theme="light"] .vx-cookie-manage__option-desc {
  color: #64748b;
}

html[data-theme="light"] .vx-cookie-consent__btn--ghost {
  color: #0f172a;
  background: #fff;
  border-color: rgba(15, 23, 42, 0.14);
}

html[data-theme="light"] .vx-cookie-manage {
  background: rgba(15, 23, 42, 0.28);
}

/* White landing theme (data-theme="landing") */
html[data-theme="landing"] .vx-cookie-consent__card,
html[data-theme="landing"] .vx-cookie-manage__card {
  background: #fff;
  border-color: rgba(15, 23, 42, 0.1);
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.12);
}

html[data-theme="landing"] .vx-cookie-consent__title,
html[data-theme="landing"] .vx-cookie-manage__title,
html[data-theme="landing"] .vx-cookie-manage__option-title {
  color: #0f172a;
}

html[data-theme="landing"] .vx-cookie-consent__text,
html[data-theme="landing"] .vx-cookie-manage__intro,
html[data-theme="landing"] .vx-cookie-manage__option-desc {
  color: #64748b;
}

html[data-theme="landing"] .vx-cookie-consent__link {
  color: #6f36ff;
}

html[data-theme="landing"] .vx-cookie-consent__link:hover {
  color: #5b21b6;
}

html[data-theme="landing"] .vx-cookie-consent__btn--ghost {
  color: #0f172a;
  background: #fff;
  border-color: rgba(15, 23, 42, 0.14);
}

html[data-theme="landing"] .vx-cookie-consent__btn--ghost:hover {
  background: #f3f4f6;
  border-color: rgba(15, 23, 42, 0.24);
}

html[data-theme="landing"] .vx-cookie-manage {
  background: rgba(15, 23, 42, 0.28);
}

html[data-theme="landing"] .vx-cookie-manage__close {
  background: rgba(15, 23, 42, 0.06);
  color: #475569;
}

html[data-theme="landing"] .vx-cookie-manage__close:hover {
  background: rgba(15, 23, 42, 0.1);
  color: #0f172a;
}

html[data-theme="landing"] .vx-cookie-manage__option {
  border-top-color: rgba(15, 23, 42, 0.08);
}

html[data-theme="landing"] .vx-cookie-manage__always {
  color: #047857;
}

html[data-theme="landing"] .vx-cookie-manage__switch-ui {
  background: rgba(15, 23, 42, 0.16);
}
