/* TVTRACKER_USER_AVATAR_FOUNDATION_031 */

.pv4-avatar {
  overflow: hidden;
  flex: 0 0 auto;
}

.user-avatar-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-avatar-panel {
  display: grid;
  grid-template-columns: 124px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  margin: 26px 0;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 22px;
  background:
    radial-gradient(
      circle at top left,
      rgba(143, 91, 255, 0.14),
      transparent 48%
    ),
    rgba(255, 255, 255, 0.025);
}

.profile-avatar-large {
  display: grid;
  place-items: center;
  width: 124px;
  height: 124px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background:
    linear-gradient(
      145deg,
      rgba(160, 104, 255, 0.94),
      rgba(73, 42, 137, 0.96)
    );
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.32),
    0 0 34px rgba(139, 92, 246, 0.2);
  color: #fff;
  font-size: 2.3rem;
  font-weight: 800;
}

.profile-avatar-copy h2 {
  margin: 4px 0 8px;
  font-size: 1.25rem;
}

.profile-avatar-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.profile-avatar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
  margin-top: 18px;
}

.profile-avatar-upload {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
}

.profile-avatar-file {
  display: grid;
  gap: 7px;
  min-width: min(100%, 260px);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.profile-avatar-file input[type="file"] {
  max-width: 100%;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 12px;
  background: rgba(3, 7, 18, 0.58);
  color: var(--text);
}

.profile-avatar-file input[type="file"]::file-selector-button {
  margin-right: 10px;
  padding: 8px 12px;
  border: 0;
  border-radius: 9px;
  background: rgba(139, 92, 246, 0.2);
  color: #ddd6fe;
  font-weight: 800;
  cursor: pointer;
}

@media (max-width: 680px) {
  .profile-avatar-panel {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .profile-avatar-actions,
  .profile-avatar-upload {
    justify-content: center;
  }

  .profile-avatar-file {
    text-align: left;
  }
}
