/* Alsion password generator */

.alsion-pwgen {
  max-width: 46rem;
  margin: 0 0 2rem;
}

.alsion-pwgen__lead {
  margin: 0 0 1.25rem;
  font-size: clamp(1.05rem, 2.2vw, 1.15rem);
  line-height: 1.6;
  color: rgba(26, 39, 68, 0.82);
}

.alsion-pwgen__list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(26, 39, 68, 0.1);
  border-radius: 0.75rem;
  overflow: hidden;
  background: #fff;
}

.alsion-pwgen__item {
  display: grid;
  grid-template-columns: 2rem 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid rgba(26, 39, 68, 0.08);
}

.alsion-pwgen__item:nth-child(even) {
  background: #fafbfd;
}

.alsion-pwgen__item:last-child {
  border-bottom: none;
}

.alsion-pwgen__item.is-copied {
  background: #eef6ef;
}

.alsion-pwgen__num {
  color: rgba(26, 39, 68, 0.45);
  font-size: 0.85rem;
  font-weight: 600;
  text-align: right;
}

.alsion-pwgen__password {
  display: block;
  margin: 0;
  padding: 0.35rem 0.5rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1rem;
  letter-spacing: 0.02em;
  color: #1a2744;
  background: transparent;
  border-radius: 0.35rem;
  cursor: pointer;
  user-select: all;
  overflow-wrap: anywhere;
}

.alsion-pwgen__password:hover {
  background: rgba(47, 95, 154, 0.08);
}

.alsion-pwgen__copy {
  appearance: none;
  border: 1px solid rgba(47, 95, 154, 0.28);
  background: #fff;
  color: #2f5f9a;
  border-radius: 0.4rem;
  padding: 0.35rem 0.65rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.alsion-pwgen__copy:hover {
  background: #2f5f9a;
  color: #fff;
  border-color: #2f5f9a;
}

.alsion-pwgen__item.is-copied .alsion-pwgen__copy {
  background: #2f6b3a;
  border-color: #2f6b3a;
  color: #fff;
}

.alsion-pwgen__hint {
  margin: 0.85rem 0 0;
  font-size: 0.9rem;
  color: rgba(26, 39, 68, 0.55);
}

@media (max-width: 600px) {
  .alsion-pwgen__item {
    grid-template-columns: 1.5rem 1fr;
    grid-template-rows: auto auto;
  }

  .alsion-pwgen__copy {
    grid-column: 2;
    justify-self: start;
  }
}
