html.mentor-consent-locked,
html.mentor-consent-locked body {
  overflow: hidden !important;
  height: 100%;
}

.mentor-consent {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.mentor-consent[hidden] {
  display: none !important;
}

.mentor-consent__overlay {
  position: absolute;
  inset: 0;
  background: rgba(9, 9, 11, 0.55);
  backdrop-filter: blur(4px);
}

.mentor-consent__dialog {
  position: relative;
  width: min(100%, 28rem);
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  padding: 1.5rem;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 24px 48px rgba(9, 9, 11, 0.18);
  font-family: Inter, system-ui, sans-serif;
  color: #09090b;
}

@media (min-width: 640px) {
  .mentor-consent__dialog {
    padding: 2rem;
    width: min(100%, 32rem);
  }
}

.mentor-consent__title {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
}

.mentor-consent__desc {
  margin: 0 0 1.25rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: #52525c;
}

.mentor-consent__panel {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  margin-bottom: 1.25rem;
  padding: 1rem;
  border-radius: 0.75rem;
  background: #fafafa;
  border: 1px solid #e4e4e7;
}

.mentor-consent__toggle {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  cursor: pointer;
  font-size: 0.875rem;
}

.mentor-consent__toggle input {
  margin-top: 0.2rem;
  flex-shrink: 0;
  width: 1.125rem;
  height: 1.125rem;
  accent-color: #6045f4;
}

.mentor-consent__toggle strong {
  display: block;
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.mentor-consent__toggle small {
  display: block;
  color: #71717b;
  line-height: 1.45;
}

.mentor-consent__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin-bottom: 1.25rem;
  font-size: 0.8125rem;
}

.mentor-consent__links a {
  color: #6045f4;
  text-decoration: underline;
}

.mentor-consent__actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mentor-consent__btn {
  min-height: 2.75rem;
  padding: 0.75rem 1.25rem;
  border: 1px solid #e4e4e7;
  border-radius: 9999px;
  background: #fff;
  color: #09090b;
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.mentor-consent__btn--primary {
  border-color: #6045f4;
  background: linear-gradient(135deg, #6045f4, #53e6d4);
  color: #fff;
}

.mentor-consent__btn--ghost {
  border-color: transparent;
  background: transparent;
  color: #6045f4;
}

.mentor-cookie-registry {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  margin: 1rem 0;
}

.mentor-cookie-registry th,
.mentor-cookie-registry td {
  border: 1px solid #e4e4e7;
  padding: 0.625rem 0.75rem;
  text-align: left;
  vertical-align: top;
}

.mentor-cookie-registry th {
  background: #fafafa;
  font-weight: 600;
}

.mentor-cookie-registry code {
  font-size: 0.8125rem;
  word-break: break-word;
}

@media (max-width: 639px) {
  .mentor-cookie-registry thead {
    display: none;
  }

  .mentor-cookie-registry tr {
    display: block;
    margin-bottom: 1rem;
    border: 1px solid #e4e4e7;
    border-radius: 0.5rem;
    overflow: hidden;
  }

  .mentor-cookie-registry td {
    display: block;
    border: none;
    border-bottom: 1px solid #f4f4f5;
  }

  .mentor-cookie-registry td:last-child {
    border-bottom: none;
  }

  .mentor-cookie-registry td::before {
    content: attr(data-label);
    display: block;
    font-weight: 600;
    font-size: 0.75rem;
    color: #71717b;
    margin-bottom: 0.25rem;
  }
}
