.tg-cookie {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 2500;
  width: auto;
}

.tg-cookie-card {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 420px;
  padding: 14px 16px;
  border-radius: 16px;
  background:
    radial-gradient(500px 160px at 10% 0%, rgba(37, 99, 235, 0.12), transparent 55%),
    rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow:
    0 18px 50px rgba(15, 23, 42, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.tg-cookie.is-visible .tg-cookie-card {
  opacity: 1;
  transform: translateY(0);
}

.tg-cookie.is-hiding .tg-cookie-card {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.tg-cookie-title {
  font-weight: 900;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
}

.tg-cookie-text {
  font-size: 12.5px;
  color: var(--text-dim);
  line-height: 1.4;
}

.tg-cookie-link {
  color: var(--primary);
  font-weight: 800;
  text-decoration: none;
  margin-left: 4px;
}

.tg-cookie-actions {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

.tg-cookie-btn {
  height: 34px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  border: none;
  transition: transform 0.12s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.tg-cookie-btn:hover {
  transform: translateY(-1px);
}

.tg-cookie-btn--ghost {
  background: rgba(15, 23, 42, 0.06);
  color: var(--text);
  border: 1px solid rgba(15, 23, 42, 0.12);
}

.tg-cookie-btn--primary {
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  color: #fff;
  box-shadow: 0 10px 26px rgba(37, 99, 235, 0.28);
}

html[data-bs-theme="dark"] .tg-cookie-card {
  background:
    radial-gradient(500px 160px at 10% 0%, rgba(47, 109, 246, 0.16), transparent 55%),
    rgba(18, 22, 28, 0.92);
  border-color: rgba(148, 163, 184, 0.2);
  box-shadow:
    0 20px 54px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

html[data-bs-theme="dark"] .tg-cookie-title {
  color: #eef3fb;
}

html[data-bs-theme="dark"] .tg-cookie-text {
  color: rgba(225, 232, 244, 0.82);
}

html[data-bs-theme="dark"] .tg-cookie-link {
  color: #8eb6ff;
}

html[data-bs-theme="dark"] .tg-cookie-btn--ghost {
  background: rgba(148, 163, 184, 0.08);
  color: #eef3fb;
  border: 1px solid rgba(148, 163, 184, 0.18);
}

html[data-bs-theme="dark"] .tg-cookie-btn--ghost:hover {
  background: rgba(148, 163, 184, 0.14);
  border-color: rgba(148, 163, 184, 0.28);
}

@media (max-width: 575.98px) {
  .tg-cookie {
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 24px);
  }

  .tg-cookie-card {
    max-width: none;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .tg-cookie-actions {
    margin-left: 0;
    width: 100%;
  }

  .tg-cookie-btn {
    width: 100%;
    height: 40px;
  }
}
