/* Server-backed private preferences and nickname font controls. */

.private-policy-toggle {
  white-space: nowrap;
}

.private-policy-toggle.is-active {
  border-color: rgba(223, 0, 255, 0.58);
  background: rgba(223, 0, 255, 0.12);
  color: #ffffff;
}

.chat-color-menu {
  overflow-x: hidden;
}

.font-style-controls {
  min-width: 0;
  margin-top: 0;
  padding-top: 0;
  overflow: hidden;
  border-top: 0;
}

.font-style-controls__title {
  margin-bottom: 5px;
  color: #8f8f8f;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.font-style-controls__options {
  display: grid;
  width: 100%;
  min-width: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
}

.font-style-option {
  width: 100%;
  min-width: 0;
  min-height: 29px;
  padding: 4px 5px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: #191919;
  color: #e7e7e7;
  cursor: pointer;
  font-size: 11px !important;
  line-height: 1.15;
  text-align: center;
  white-space: normal;
}

.font-style-option:hover,
.font-style-option.is-selected {
  border-color: rgba(223, 0, 255, 0.52);
  background: rgba(223, 0, 255, 0.12);
}

.private-message-toast {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 12000;
  width: min(520px, calc(100vw - 28px));
  padding: 13px 16px;
  border: 1px solid rgba(223, 0, 255, 0.55);
  border-radius: 11px;
  background: rgba(20, 20, 20, 0.97);
  color: #f2f2f2;
  box-shadow: 0 16px 46px rgba(0, 0, 0, 0.65);
  font-size: 14px;
  line-height: 1.45;
  text-align: center;
  transform: translateX(-50%);
}

.private-message-toast.is-error {
  border-color: rgba(255, 92, 92, 0.75);
  background: rgba(39, 13, 13, 0.98);
}

@media (max-width: 768px) {
  .private-policy-toggle {
    min-width: 0;
    padding: 0 6px;
    font-size: 9px;
  }

  .font-style-controls__options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .private-message-toast {
    top: 10px;
    padding: 11px 12px;
    font-size: 13px;
  }
}
