/* Shared menu form actions, delete rows and profile edit fields. */

.profile-edit-public-link {
  min-height: 36px;
  padding: 8px 12px;
  border-radius: var(--vk-radius-control);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.profile-edit-description {
  min-height: 150px;
  resize: vertical;
}

.profile-edit-errors {
  min-height: 18px;
  color: var(--vk-action-delete-text);
  font-size: 13px;
}

.profile-edit-errors:empty {
  display: none;
}

.menu-form-delete-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.menu-form-delete-button {
  height: var(--menu-panel-row-height);
  min-height: var(--menu-panel-row-height);
  max-height: var(--menu-panel-row-height);
  box-sizing: border-box;
  padding-top: 0;
  padding-bottom: 0;
  border-radius: var(--vk-paper-control-radius);
  justify-content: center;
  text-align: center;
}

.menu-form-delete-button-content {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--menu-panel-row-gap);
  min-width: 0;
  line-height: var(--vk-line-compact);
}

.menu-form-delete-button-content > span {
  display: block;
  line-height: var(--vk-line-compact);
}

.menu-form-delete-button-content svg,
.menu-form-delete-button-content .lucide {
  display: block;
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.content-form-checkbox-row {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-ui);
  font-size: 13px;
  line-height: 1.3;
  color: var(--vk-paper-lift-button-text);
}

.content-form-checkbox-row input {
  width: 16px;
  height: 16px;
  accent-color: var(--vk-paper-accent-fill);
}

.profile-edit-reset,
.profile-edit-save {
  border-radius: var(--vk-paper-control-radius);
  font-weight: 700;
}

.profile-edit-reset {
  justify-content: center;
}

.profile-edit-save {
  min-width: 0;
  font-size: 12px;
}

.profile-edit-actions .profile-edit-reset,
.profile-edit-actions .profile-edit-save {
  border-radius: var(--vk-paper-control-radius);
  padding-top: 0;
  padding-bottom: 0;
  justify-content: center;
  line-height: 1.2;
}

.profile-edit-save.vk-paper-button {
  border: 0;
  font-size: 13px;
}

.menu-form-actions .profile-edit-reset,
.menu-form-actions .profile-edit-save {
  border-radius: var(--vk-paper-control-radius);
  padding-top: 0;
  padding-bottom: 0;
  justify-content: center;
  font-weight: 700;
  line-height: 1.2;
}

.menu-form-actions .profile-edit-save.vk-paper-button {
  border: 0;
  font-size: 13px;
}

.profile-edit-reset:disabled,
.profile-edit-save:disabled {
  opacity: 0.5;
  cursor: default;
}
