/* ===== REPORT MODAL ===== */

.report-modal{
  position: fixed;
  inset: 0;
  z-index: 10000;

  display: flex;
  justify-content: center;
  align-items: flex-start;

  padding: 16px;

  background: rgba(15,23,42,.45);
  backdrop-filter: blur(4px);

  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
}

#reportModal.report-modal{
  display:none;
}

#reportModal.report-modal.u-open{
  display:flex;
}

.report-modal__content{
  position: relative;

  width:100%;
  max-width:560px;

  margin:24px 0;

  background:#fff;
  border-radius:22px;

  padding:22px 22px 18px;

  box-shadow:
    0 20px 60px rgba(0,0,0,.18);

  animation:reportModalShow .22s ease;

  max-height:calc(100dvh - 48px);

  overflow-y:auto;
  box-sizing:border-box;
}

@keyframes reportModalShow{

  from{
    opacity:0;
    transform:
      translateY(14px)
      scale(.985);
  }

  to{
    opacity:1;
    transform:
      translateY(0)
      scale(1);
  }

}

.report-modal__close{
  position:absolute;

  top:14px;
  right:14px;

  width:38px;
  height:38px;

  border:none;
  border-radius:50%;

  background:#f3f4f6;
  color:#1f2937;

  cursor:pointer;

  display:flex;
  align-items:center;
  justify-content:center;

  transition:.18s ease;
}

.report-modal__close:hover{
  background:#e5e7eb;
  transform:scale(1.04);
}

.report-modal__head{
  display:flex;
  align-items:flex-start;

  gap:14px;

  margin-bottom:18px;
  padding-right:44px;
}

.report-modal__icon{
  width:46px;
  height:46px;
  min-width:46px;

  border-radius:14px;

  background:
    linear-gradient(
      135deg,
      #ffe8e8,
      #ffd6d6
    );

  color:#d92d20;

  display:flex;
  align-items:center;
  justify-content:center;

  font-size:18px;
}

.report-modal__title{
  margin:0 0 4px;

  font-size:22px;
  font-weight:800;

  color:#111827;
}

.report-modal__subtitle{
  margin:0;

  font-size:14px;
  line-height:1.45;

  color:#6b7280;
}

.report-modal__form{
  display:flex;
  flex-direction:column;

  gap:12px;
}

.report-modal__label{
  font-size:14px;
  font-weight:700;

  color:#374151;
}

/* Причины жалобы */

.report-options{
  display:flex;
  flex-direction:column;

  gap:10px;
}

.report-option{
  display:block;
  cursor:pointer;
}

.report-option input{
  display:none;
}

.report-option__box{
  display:block;

  border:1px solid #e5e7eb;
  border-radius:16px;

  background:#f9fafb;

  padding:13px 14px;

  transition:.18s ease;
}

.report-option__title{
  display:block;

  margin-bottom:4px;

  font-size:15px;
  font-weight:700;

  color:#111827;
}

.report-option__text{
  display:block;

  font-size:13px;
  line-height:1.4;

  color:#6b7280;
}

.report-option__box:hover{
  background:#fff;
  border-color:#d1d5db;
}

.report-option input:checked + .report-option__box{

  border-color:#f97066;

  background:#fff5f4;

  box-shadow:
    0 0 0 4px
    rgba(249,112,102,.12);

}

/* Текст жалобы */

.report-modal__textarea{
  width:100%;

  min-height:110px;

  resize:vertical;

  border:1px solid #e5e7eb;
  border-radius:16px;

  background:#f9fafb;

  padding:14px 15px;

  box-sizing:border-box;

  font-size:15px;
  line-height:1.45;

  color:#111827;

  outline:none;

  transition:
    border-color .18s ease,
    box-shadow .18s ease,
    background .18s ease;
}

.report-modal__textarea::placeholder{
  color:#9ca3af;
}

.report-modal__textarea:focus{

  background:#fff;

  border-color:
    rgba(220,38,38,.35);

  box-shadow:
    0 0 0 4px
    rgba(220,38,38,.08);

}

/* Кнопки */

.report-modal__actions{
  display:flex;

  justify-content:flex-end;

  gap:10px;

  margin-top:4px;
}

.report-modal__btn{
  border:none;

  border-radius:14px;

  padding:12px 16px;

  font-size:14px;
  font-weight:700;

  cursor:pointer;

  display:inline-flex;
  align-items:center;
  justify-content:center;

  gap:8px;

  transition:.18s ease;
}

.report-modal__btn--ghost{

  background:#f3f4f6;
  color:#374151;

}

.report-modal__btn--ghost:hover{

  background:#e5e7eb;

}

.report-modal__btn--danger{

  background:
    linear-gradient(
      135deg,
      #ef4444,
      #dc2626
    );

  color:#fff;

  box-shadow:
    0 10px 24px
    rgba(220,38,38,.22);

}

.report-modal__btn--danger:hover{

  transform:translateY(-1px);

  box-shadow:
    0 14px 28px
    rgba(220,38,38,.28);

}

.report-modal__btn--danger:active{

  transform:translateY(0);

}

/* ===== MOBILE ===== */

@media (max-width:768px){

  .report-modal{

    padding:0;
    align-items:flex-start;

  }

  .report-modal__content{

    margin:0;

    padding:18px 16px 16px;

    border-radius:0;

    max-height:100dvh;

  }

  .report-modal__title{

    font-size:19px;

  }

  .report-modal__actions{

    flex-direction:column;

  }

  .report-modal__btn{

    width:100%;

  }

}