.mentoria-cookie-notice {
  --cn-brand: var(--color-brand-500, var(--m-brand-500, #6858f5));
  --cn-border: var(--color-border, var(--m-border, #e3e5ec));
  --cn-surface: var(--color-surface, var(--m-surface, #fff));
  --cn-text: var(--color-text, var(--m-text, #171923));
  --cn-text-2: var(--color-text-secondary, var(--m-text-2, #696f82));

  position: fixed;
  z-index: 90;
  left: max(16px, env(safe-area-inset-left, 0px));
  bottom: max(16px, env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 16px;
  width: max-content;
  max-width: calc(100% - 32px);
  padding: 10px 10px 10px 16px;
  border: 1px solid var(--cn-border);
  border-radius: 20px;
  background: color-mix(in srgb, var(--cn-surface) 82%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  color: var(--cn-text-2);
  box-shadow: 0 1px 2px rgb(25 28 38 / 6%), 0 14px 34px rgb(25 28 38 / 10%);
  font: 12.5px/1.4 Inter, ui-sans-serif, -apple-system, system-ui, sans-serif;
  text-align: left;
  animation: mentoria-cookie-in 0.35s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.mentoria-cookie-notice.is-leaving {
  animation: mentoria-cookie-out 0.2s ease-in both;
}

.mentoria-cookie-notice__body {
  flex: 0 1 auto;
  min-width: 0;
}

.mentoria-cookie-notice__title {
  margin: 0;
  color: var(--cn-text);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.3;
}

.mentoria-cookie-notice__text {
  margin: 2px 0 0;
  font: inherit;
  color: inherit;
}

.mentoria-cookie-notice__accept {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: var(--cn-brand);
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 25%), 0 10px 22px -10px rgb(86 70 223 / 70%);
  cursor: pointer;
  transition: filter 0.15s, transform 0.15s;
}

.mentoria-cookie-notice__accept:hover {
  filter: brightness(1.08);
}

.mentoria-cookie-notice__accept:active {
  transform: scale(0.97);
}

.mentoria-cookie-notice__accept:focus-visible {
  outline: 2px solid var(--cn-brand);
  outline-offset: 3px;
}

html[data-theme="dark"] .mentoria-cookie-notice {
  --cn-brand: var(--color-brand-500, var(--m-brand-500, #8175ff));
  --cn-border: var(--color-border, var(--m-border, #292d39));
  --cn-surface: var(--color-surface, var(--m-surface, #181b24));
  --cn-text: var(--color-text, var(--m-text, #f3f4f8));
  --cn-text-2: var(--color-text-secondary, var(--m-text-2, #a2a7b7));

  box-shadow: 0 1px 2px rgb(0 0 0 / 18%), 0 14px 34px rgb(0 0 0 / 22%);
}

@keyframes mentoria-cookie-in {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
}

@keyframes mentoria-cookie-out {
  to { opacity: 0; transform: translateY(8px) scale(0.98); }
}

@media (prefers-reduced-motion: reduce) {
  .mentoria-cookie-notice,
  .mentoria-cookie-notice.is-leaving {
    animation-duration: 0.01ms;
  }
}

/* Keep the notice above the app's fixed mobile navigation. */
@media (max-width: 760px) {
  body:has(#app) .mentoria-cookie-notice {
    bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  }
}
