.login-analytics-notice {
  border: 1px solid rgba(88, 166, 255, 0.28);
  border-radius: 0.5rem;
  background: rgba(88, 166, 255, 0.08);
  color: rgba(226, 232, 240, 0.92);
  font-size: 0.875rem;
  line-height: 1.55;
  padding: 0.85rem;
  margin: 0.5rem 0;
}

.login-analytics-notice[hidden],
.cookie-consent[hidden],
.cookie-consent__choices[hidden] {
  display: none;
}

.cookie-consent {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  z-index: 10000;
  max-width: 760px;
  margin: 0 auto;
  color: #f8fafc;
}

.cookie-consent__body {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0.5rem;
  background: rgba(17, 17, 17, 0.98);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  padding: 1rem;
}

.cookie-consent__title {
  margin: 0 0 0.35rem;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 800;
}

.cookie-consent__text {
  margin: 0;
  color: rgba(248, 250, 252, 0.78);
  font-size: 0.875rem;
  line-height: 1.5;
}

.cookie-consent__summary {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  margin-top: 1rem;
}

.cookie-consent__summary span,
.cookie-consent__choice,
.cookie-consent__declaration {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.375rem;
  background: rgba(255, 255, 255, 0.04);
}

.cookie-consent__summary span {
  min-width: 0;
  padding: 0.65rem;
}

.cookie-consent__summary strong,
.cookie-consent__summary small,
.cookie-consent__choice strong,
.cookie-consent__choice small {
  display: block;
}

.cookie-consent__summary strong,
.cookie-consent__choice strong,
.cookie-consent__declaration summary {
  color: #fff;
  font-weight: 800;
}

.cookie-consent__summary small {
  color: rgba(248, 250, 252, 0.68);
  text-transform: uppercase;
  margin-top: 0.15rem;
  font-size: 0.72rem;
  font-weight: 700;
}

.cookie-consent__actions,
.cookie-consent__save-row {
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
  display: flex;
}

.cookie-consent__button {
  color: #fff;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 0.375rem;
  padding: 0.7rem 0.9rem;
  font-size: 0.875rem;
  font-weight: 700;
}

.cookie-consent__button:hover {
  background: rgba(255, 255, 255, 0.1);
}

.cookie-consent__button--primary {
  border-color: #6aa2ff;
  background: #2563eb;
}

.cookie-consent__button:disabled,
.cookie-consent__button[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.55;
}

.cookie-consent__choices {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  gap: 0.75rem;
  margin-top: 1rem;
  padding-top: 1rem;
  display: grid;
}

.cookie-consent__choice {
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.8rem;
  display: flex;
}

.cookie-consent__choice input {
  width: 1rem;
  height: 1rem;
  accent-color: #6aa2ff;
  margin-top: 0.2rem;
}

.cookie-consent__toggle {
  color: #fff;
  text-align: center;
  text-transform: uppercase;
  background: rgba(204, 0, 0, 0.28);
  border-radius: 999px;
  min-width: 2.4rem;
  margin-top: 0.05rem;
  padding: 0.35rem 0.45rem;
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1;
}

.cookie-consent__choice small,
.cookie-consent__declaration dd {
  color: rgba(248, 250, 252, 0.7);
  margin-top: 0.2rem;
  line-height: 1.45;
}

.cookie-consent__choice code,
.cookie-consent__declaration code {
  color: #fff;
  overflow-wrap: anywhere;
  font-size: 0.78em;
}

.cookie-consent__choice--locked {
  opacity: 0.84;
}

.cookie-consent__declaration {
  padding: 0.85rem;
}

.cookie-consent__declaration summary {
  cursor: pointer;
  font-size: 0.875rem;
}

.cookie-consent__declaration dl {
  gap: 0.75rem;
  margin: 0.85rem 0 0;
  display: grid;
}

.cookie-consent__declaration dt {
  color: #fff;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.76rem;
  font-weight: 800;
}

.cookie-consent__declaration dd {
  margin-left: 0;
}

.cookie-consent__link {
  color: #fecaca;
  align-self: center;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: underline;
}

.consent-record {
  background: rgba(106, 162, 255, 0.06);
  border: 1px solid rgba(106, 162, 255, 0.2);
  border-radius: 0.5rem;
  margin: 2rem 0;
  padding: 1.25rem;
}

.consent-record__header {
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1rem;
  display: flex;
}

.consent-record__badge {
  color: #1e3a8a;
  text-transform: uppercase;
  background: #eff6ff;
  border: 1px solid rgba(37, 99, 235, 0.35);
  border-radius: 999px;
  align-self: flex-start;
  padding: 0.35rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 800;
}

.consent-record__grid,
.consent-record__timestamps dl {
  gap: 0.75rem;
  margin: 0;
  display: grid;
}

.consent-record__grid > div,
.consent-record__timestamps dl > div,
.consent-record__categories li {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.375rem;
  min-width: 0;
  padding: 0.85rem;
}

.consent-record dt,
.consent-record__section h3 {
  color: inherit;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0;
  font-size: 0.82rem;
  font-weight: 800;
}

.consent-record dd {
  overflow-wrap: anywhere;
  margin: 0.35rem 0 0;
  font-size: 0.92rem;
}

.consent-record__categories {
  gap: 0.75rem;
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
}

.consent-record__categories li {
  gap: 0.25rem;
  display: grid;
}

.consent-record__categories span {
  color: #6aa2ff;
  text-transform: uppercase;
  font-size: 0.82rem;
  font-weight: 800;
}

.consent-record__actions {
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
  display: flex;
}

.cookie-table-wrap {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
  width: 100%;
  margin-top: 0.75rem;
  overflow-x: auto;
}

.cookie-policy-table {
  border-collapse: collapse;
  width: 100%;
  min-width: 760px;
  font-size: 0.84rem;
  line-height: 1.45;
}

.cookie-policy-table th,
.cookie-policy-table td {
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.8rem;
}

.cookie-policy-table th {
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.72rem;
  font-weight: 800;
}

@media (min-width: 768px) {
  .cookie-consent__summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cookie-consent__actions {
    justify-content: flex-end;
  }

  .consent-record__header {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }

  .consent-record__grid,
  .consent-record__timestamps dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
