/* Zgłoś profil — trigger + centered dialog na publicznym profilu operatora */

.profile__total-views {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  width: 100%;
  margin-top: 2rem;
  padding-bottom: 2rem;
  box-sizing: border-box;
}

@media only screen and (min-width: 1024px) {
  .profile__total-views {
    padding-bottom: 0;
  }
}

.profile__total-views-text {
  margin: 0;
  font-family: "Roboto", sans-serif;
  font-weight: 500;
  line-height: 2.1rem;
  font-size: 1.4rem;
  color: #888887;
}

.profile-report-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 0 auto;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-family: "Roboto", sans-serif;
  font-weight: 500;
  line-height: 2.1rem;
  font-size: 1.4rem;
  color: #888887;
  text-decoration: none;
  white-space: nowrap;
}

.profile-report-trigger:hover,
.profile-report-trigger:focus {
  color: #2b2d38;
  outline: none;
}

.profile-report-trigger:focus-visible {
  outline: 2px solid #32c4d6;
  outline-offset: 3px;
  border-radius: 4px;
}

.profile-report-trigger__icon {
  flex: 0 0 auto;
  display: block;
}

.profile-report-sheet {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: safe center;
  justify-content: center;
  padding: var(--bd-account-dialog-header-offset, 64px) 24px max(var(--bd-account-dialog-footer-offset, 0px), env(safe-area-inset-bottom, 0px), 16px);
  box-sizing: border-box;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  pointer-events: none;
  visibility: hidden;
}

.profile-report-sheet.is-open {
  pointer-events: auto;
  visibility: visible;
}

.profile-report-sheet__backdrop {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(43, 45, 56, 0.45);
  opacity: 0;
  cursor: pointer;
  transition: opacity 0.25s ease;
}

.profile-report-sheet.is-open .profile-report-sheet__backdrop {
  opacity: 1;
}

.profile-report-sheet__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  /* Ta sama szerokość w stanie formularza i „Dziękujemy” — bez zwężania do treści. */
  min-width: min(100%, 420px);
  max-height: min(88vh, 640px);
  margin: 0;
  padding: 28px 28px 24px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(43, 45, 56, 0.18);
  overflow-y: auto;
  box-sizing: border-box;
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  transition: opacity 0.22s ease, transform 0.22s ease;
  -webkit-overflow-scrolling: touch;
}

.profile-report-sheet.is-open .profile-report-sheet__panel {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.profile-report-sheet__handle {
  display: none;
}

.profile-report-sheet__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.profile-report-sheet__title {
  margin: 0;
  padding-right: 8px;
  font-family: "Roboto", "Poppins", sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  color: #2b2d38;
}

.profile-report-sheet__close {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #9a9b9f;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.profile-report-sheet__close:hover,
.profile-report-sheet__close:focus-visible {
  color: #2b2d38;
  background: rgba(43, 45, 56, 0.06);
  outline: none;
}

.profile-report-sheet__form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.profile-report-sheet__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.profile-report-sheet__label {
  margin: 0;
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  color: #2b2d38;
}

.profile-report-sheet__form .form-text-input {
  width: 100%;
  box-sizing: border-box;
}

.profile-report-sheet__form .form-text-input::placeholder {
  color: #888887;
  opacity: 1;
  font-weight: 400;
}

.profile-report-sheet__reason {
  min-height: 110px;
  resize: vertical;
}

.profile-report-sheet__form ul {
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: "Roboto", sans-serif;
  font-size: 13px;
  line-height: 1.35;
  color: #c0392b;
}

.profile-report-sheet__form-error {
  margin: 0;
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 400;
  color: #c0392b;
}

/* Anuluj obok Wyślij / Zamknij po prawej — jak w „Dane profilowe” */
.profile-report-sheet__form .app-dialog__actions,
.profile-report-sheet__success .app-dialog__actions,
.profile-report-sheet__actions {
  margin-top: 8px;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 28px;
  width: 100%;
  box-sizing: border-box;
}

/* Anuluj = ten sam styl co w oknie „Dane profilowe” (bez obwódki) */
.profile-report-sheet__cancel {
  display: inline-flex;
  align-items: center;
  border: 0;
  background: none;
  padding: 0;
  min-height: 44px;
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.7;
  color: #888887;
  cursor: pointer;
  flex: 0 0 auto;
}

.profile-report-sheet__cancel:hover,
.profile-report-sheet__cancel:focus {
  color: #2b2d38;
  outline: none;
}

.profile-report-sheet__success {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-bottom: 4px;
  width: 100%;
  box-sizing: border-box;
}

.profile-report-sheet__success .app-dialog__btn--primary {
  flex: 0 0 auto;
  margin-left: 0;
}

.profile-report-sheet__success-text {
  margin: 0;
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 400;
  color: #888887;
}

@media only screen and (max-width: 419px) {
  .profile-report-sheet {
    padding: 16px;
  }

  .profile-report-sheet__panel {
    padding: 22px 18px 20px;
  }
}

body.profile-report-sheet-open {
  overflow: hidden;
}


body.profile-report-sheet-open #front-page__header,
body.profile-report-sheet-open .main-header__bar-wrapper.sticked {
  z-index: 100060;
}
