/* Mentis Studio cookie consent — matches site dark theme */

.mentis-cc-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body.mentis-cc-open {
  overflow: hidden;
}

.mentis-cc-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  padding: 1rem;
  pointer-events: none;
}

.mentis-cc-banner[hidden],
.mentis-cc-modal[hidden],
.mentis-cc-fab[hidden] {
  display: none !important;
}

.mentis-cc-banner__inner {
  pointer-events: auto;
  max-width: 72rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1.25rem 1.5rem;
  background: #0a0a0a;
  border: 1px solid #262626;
  border-radius: 0.75rem;
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.55);
}

@media (min-width: 768px) {
  .mentis-cc-banner__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.mentis-cc-banner__title {
  margin: 0 0 0.35rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: #fff;
  font-family: Inter, system-ui, sans-serif;
}

.mentis-cc-banner__text {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #a3a3a3;
  font-family: Inter, system-ui, sans-serif;
  max-width: 42rem;
}

.mentis-cc-banner__text a {
  color: hsl(68, 98%, 58%);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.mentis-cc-banner__text a:hover {
  color: #fff;
}

.mentis-cc-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  flex-shrink: 0;
}

.mentis-cc-btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 9999px;
  padding: 0.55rem 1.1rem;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: Inter, system-ui, sans-serif;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

.mentis-cc-btn--primary {
  background: hsl(68, 98%, 58%);
  color: #000;
}

.mentis-cc-btn--primary:hover {
  background: hsla(68, 98%, 58%, 0.9);
}

.mentis-cc-btn--secondary {
  background: #262626;
  color: #fff;
  border-color: #404040;
}

.mentis-cc-btn--secondary:hover {
  background: #333;
}

.mentis-cc-btn--ghost {
  background: transparent;
  color: #e5e5e5;
  border-color: #404040;
}

.mentis-cc-btn--ghost:hover {
  background: #171717;
  color: #fff;
}

.mentis-cc-modal {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1rem;
}

@media (min-width: 640px) {
  .mentis-cc-modal {
    align-items: center;
  }
}

.mentis-cc-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
}

.mentis-cc-modal__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 36rem;
  max-height: min(90vh, 40rem);
  display: flex;
  flex-direction: column;
  background: #171717;
  border: 1px solid #262626;
  border-radius: 0.75rem;
  color: #fff;
  overflow: hidden;
}

.mentis-cc-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.25rem 0.75rem;
  border-bottom: 1px solid #262626;
}

.mentis-cc-modal__header h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  font-family: Inter, system-ui, sans-serif;
}

.mentis-cc-icon-btn {
  appearance: none;
  background: transparent;
  border: none;
  color: #a3a3a3;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.15rem 0.4rem;
  border-radius: 0.375rem;
}

.mentis-cc-icon-btn:hover {
  color: #fff;
  background: #262626;
}

.mentis-cc-modal__body {
  padding: 1rem 1.25rem;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.mentis-cc-modal__intro {
  margin: 0 0 1rem;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: #a3a3a3;
  font-family: Inter, system-ui, sans-serif;
}

.mentis-cc-category {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid #262626;
}

.mentis-cc-category__text h3 {
  margin: 0 0 0.35rem;
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: Inter, system-ui, sans-serif;
}

.mentis-cc-category__text p {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #a3a3a3;
  font-family: Inter, system-ui, sans-serif;
}

.mentis-cc-switch {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
  cursor: pointer;
  margin-top: 0.15rem;
}

.mentis-cc-switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.mentis-cc-switch__track {
  width: 2.75rem;
  height: 1.5rem;
  border-radius: 9999px;
  background: #404040;
  position: relative;
  transition: background-color 0.15s ease;
}

.mentis-cc-switch__track::after {
  content: "";
  position: absolute;
  top: 0.2rem;
  left: 0.2rem;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 9999px;
  background: #fff;
  transition: transform 0.15s ease;
}

.mentis-cc-switch input:checked + .mentis-cc-switch__track {
  background: hsl(68, 98%, 58%);
}

.mentis-cc-switch input:checked + .mentis-cc-switch__track::after {
  transform: translateX(1.25rem);
  background: #000;
}

.mentis-cc-switch--locked {
  cursor: not-allowed;
  opacity: 0.85;
}

.mentis-cc-switch input:focus-visible + .mentis-cc-switch__track {
  outline: 2px solid hsl(68, 98%, 58%);
  outline-offset: 2px;
}

.mentis-cc-modal__footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
  padding: 1rem 1.25rem 1.25rem;
  border-top: 1px solid #262626;
}

.mentis-cc-fab {
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  z-index: 9990;
  appearance: none;
  border: 1px solid #404040;
  background: #171717;
  color: #e5e5e5;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: Inter, system-ui, sans-serif;
  padding: 0.55rem 0.9rem;
  border-radius: 9999px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
  transition: background-color 0.15s ease, color 0.15s ease;
}

.mentis-cc-fab:hover {
  background: #262626;
  color: #fff;
}

@media (max-width: 639px) {
  .mentis-cc-banner__actions {
    width: 100%;
  }

  .mentis-cc-banner__actions .mentis-cc-btn {
    flex: 1 1 auto;
    text-align: center;
  }

  .mentis-cc-modal__footer {
    flex-direction: column-reverse;
  }

  .mentis-cc-modal__footer .mentis-cc-btn {
    width: 100%;
  }
}
