body {
  max-width: 40rem;
  min-height: 200vh;
  margin: 1rem;
  font-family: Gill Sans, Gill Sans MT, Calibri, Trebuchet MS, sans-serif;
}

body.reduce-fouce {
  opacity: 0;
}

button {
  cursor: pointer;
}

dialog {
  min-height: 40vh;
}

.edit-profile-modal .modal-header {
  border-bottom: 1px solid #e5e5e5;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  display: flex;
}

.edit-profile-modal .modal-title {
  color: #000;
  margin: 0;
  font-size: 17px;
  font-weight: 600;
}

.edit-profile-modal .cancel-btn {
  color: #1083fe;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px 8px;
  font-size: 15px;
  font-weight: 500;
}

.edit-profile-modal .cancel-btn:hover {
  text-decoration: underline;
}

.edit-profile-modal .save-btn {
  color: #1083fe;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px 8px;
  font-size: 15px;
  font-weight: 500;
}

.edit-profile-modal .save-btn:disabled {
  color: #b0b0b0;
  cursor: default;
}

.edit-profile-modal .modal-body {
  padding: 20px;
}

.edit-profile-modal .avatar-section {
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
  display: flex;
}

.edit-profile-modal .avatar {
  color: #c77dba;
  background: #f0e8f5;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  width: 80px;
  height: 80px;
  display: flex;
  position: relative;
}

.edit-profile-modal .avatar-edit-btn {
  cursor: pointer;
  color: #333;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  width: 28px;
  height: 28px;
  display: flex;
  position: absolute;
  bottom: 0;
  right: 0;
}

.edit-profile-modal .form-group {
  margin-bottom: 16px;
}

.edit-profile-modal .form-group label {
  color: #333;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 500;
  display: block;
}

.edit-profile-modal .form-group input, .edit-profile-modal .form-group textarea {
  box-sizing: border-box;
  background: #f3f3f8;
  border: none;
  width: 100%;
  padding: 12px;
  font-family: inherit;
  font-size: 15px;
}

.edit-profile-modal .form-group input:focus, .edit-profile-modal .form-group textarea:focus {
  outline-offset: -2px;
  outline: 2px solid #1083fe;
}

.edit-profile-modal .form-group textarea {
  resize: vertical;
  min-height: 100px;
}
@media (prefers-reduced-motion: reduce) {
  *, :after, :before {
    transition: none !important;
    animation: none !important;
  }
}

@keyframes SHOW-OVERLAY {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@keyframes SHOW-DIALOG {
  0% {
    transform: scale(.95);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes HIDE-OVERLAY {
  0% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

@keyframes HIDE-DIALOG {
  0% {
    transform: scale(1);
  }

  100% {
    transform: scale(.95);
  }
}

modal-window .modal-focus-trap {
  opacity: 0;
  width: 0;
  height: 0;
  position: fixed;
  top: 0;
  left: 0;
  overflow: hidden;
}

modal-window .modal-scroll {
  width: 100%;
  height: 100%;
  z-index: var(--modal-overlay-z-index, 100000);
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  overflow-x: hidden;
  overflow-y: auto;
}

modal-window .modal-scroll.modal-visible {
  display: block;
}

modal-window .modal-scroll.modal-show .modal-overlay {
  animation-name: SHOW-OVERLAY;
  animation-duration: .25s;
}

modal-window .modal-scroll.modal-show .modal-dialog {
  animation-name: SHOW-DIALOG;
  animation-duration: .25s;
}

modal-window .modal-scroll.modal-hide .modal-overlay {
  opacity: 0;
  animation-name: HIDE-OVERLAY;
  animation-duration: .25s;
}

modal-window .modal-scroll.modal-hide .modal-dialog {
  animation-name: HIDE-DIALOG;
  animation-duration: .25s;
  transform: scale(.95);
}

modal-window .modal-content > h2 {
  margin-top: 0;
}

modal-window .modal-overlay {
  background-color: var(--modal-overlay-background-color, rgba(0, 0, 0, .5));
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 100%;
  display: flex;
}

modal-window .modal-dialog {
  background-color: var(--modal-dialog-background-color, #fff);
  border-radius: var(--modal-dialog-border-radius, 0);
  max-height: none;
  box-shadow: var(--modal-dialog-box-shadow, 0 2px 5px 0 rgba(0, 0, 0, .5));
  padding-top: var(--modal-dialog-padding-top, 20px);
  padding-left: var(--modal-dialog-padding-left, 20px);
  padding-right: var(--modal-dialog-padding-right, 20px);
  padding-bottom: var(--modal-dialog-padding-bottom, 20px);
  width: var(--modal-dialog-width, 500px);
  border: none;
  display: block;
  position: relative;
}

modal-window .modal-close {
  -ms-appearance: none;
  appearance: none;
  touch-action: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
  color: var(--modal-close-color, #fff);
  background-color: var(--modal-close-background-color, #000);
  border-radius: var(--modal-close-border-radius, 50%);
  box-shadow: var(--modal-close-box-shadow, 0 0 0 1px #fff);
  display: var(--modal-close-display, block);
  cursor: pointer;
  font-family: var(--modal-close-font-family, "Arial", sans-serif);
  font-size: var(--modal-close-font-size, 23px);
  text-align: center;
  line-height: var(--modal-close-line-height, 26px);
  width: var(--modal-close-width, 26px);
  border: 0;
  padding: 0;
  position: absolute;
  top: 0;
  right: 0;
  transform: translate(40%, -40%);
}

modal-window .modal-close:hover {
  color: var(--modal-close-color-hover, #000);
  background-color: var(--modal-close-background-color-hover, #fff);
  box-shadow: var(--modal-close-box-shadow-hover, 0 0 0 1px #000);
}

modal-window dialog {
  max-width: 80vw;
}

@supports selector(:focus-visible) {
  modal-window .modal-close:focus-visible {
    color: var(--modal-close-color-hover, #000);
    background-color: var(--modal-close-background-color-hover, #fff);
    box-shadow: var(--modal-close-box-shadow-hover, 0 0 0 1px #000);
  }
}

@supports not selector(:focus-visible) {
  modal-window .modal-close:focus {
    color: var(--modal-close-color-hover, #000);
    background-color: var(--modal-close-background-color-hover, #fff);
    box-shadow: var(--modal-close-box-shadow-hover, 0 0 0 1px #000);
  }
}
