/*
 * ============================================================================
 *  THE STYLES OF THE COOKIE NOTICE
 * ============================================================================
 *
 *  A small bar at the bottom of the window, with the two buttons and the
 *  link to the privacy policy.
 *
 * ============================================================================
 */

.tsite-cookie {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2147483008;
  padding: 14px 18px calc(14px + env(safe-area-inset-bottom, 0px));
  background: rgba(13, 13, 20, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 -14px 40px rgba(0, 0, 0, 0.5);
  animation: tsite-cookie-rise 0.22s cubic-bezier(0.2, 0.7, 0.3, 1);
}

@keyframes tsite-cookie-rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

.tsite-cookie-card {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.tsite-cookie-text {
  flex: 1 1 320px;
  margin: 0;
  font: 400 13.5px/1.6 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  color: rgba(255, 255, 255, 0.72);
}

.tsite-cookie-link {
  color: #a78bfa;
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}

.tsite-cookie-link:hover {
  color: #c4b5fd;
}

.tsite-cookie-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: none;
}

.tsite-cookie-btn {
  padding: 9px 18px;
  border-radius: 9px;
  font: 600 13px/1 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  cursor: pointer;
  transition: background 0.14s, border-color 0.14s, color 0.14s;
  white-space: nowrap;
}

.tsite-cookie-btn:focus-visible {
  outline: 2px solid #7c6cff;
  outline-offset: 2px;
}

.tsite-cookie-btn--ghost {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
}

.tsite-cookie-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #f2f2f7;
}

.tsite-cookie-btn--primary {
  border: 1px solid transparent;
  background: linear-gradient(145deg, #7c6cff, #5b4bd6);
  color: #fff;
}

.tsite-cookie-btn--primary:hover {
  background: linear-gradient(145deg, #8b7dff, #6a5ae0);
}

/* ---------------------------------------------------------------- phone */

@media (max-width: 560px) {
  .tsite-cookie {
    padding: 12px 14px calc(12px + env(safe-area-inset-bottom, 0px));
  }

  .tsite-cookie-card {
    gap: 12px;
  }

  .tsite-cookie-text {
    flex: 1 1 100%;
    font-size: 13px;
  }

  .tsite-cookie-actions {
    width: 100%;
  }

  .tsite-cookie-btn {
    flex: 1;
    text-align: center;
  }
}
