/* ПитомЧик v79.6.6.3 — мобильные комментарии фото и возврат в любимчики */
.profile-photo-comments-sheet-head,
.profile-photo-comments-backdrop{display:none}

@media(max-width:1000px){
  .profile-photo-viewer.comments-open .profile-photo-comments-backdrop{
    display:block;
    position:fixed;
    inset:0;
    z-index:40;
    border:0;
    padding:0;
    background:rgba(7,12,9,.56);
    backdrop-filter:blur(3px);
    opacity:0;
    transition:opacity .18s ease;
  }
  .profile-photo-viewer.comments-sheet-visible .profile-photo-comments-backdrop{opacity:1}
  .profile-photo-viewer.comments-open .profile-photo-side{
    display:grid!important;
    position:fixed!important;
    left:0!important;
    right:0!important;
    bottom:0!important;
    top:auto!important;
    z-index:41!important;
    width:100%!important;
    height:min(72dvh,650px)!important;
    max-height:min(72dvh,650px)!important;
    grid-template-rows:auto minmax(0,1fr) auto!important;
    border-radius:24px 24px 0 0!important;
    overflow:hidden!important;
    box-shadow:0 -18px 50px rgba(0,0,0,.24)!important;
    transform:translateY(104%);
    opacity:.98;
    transition:transform .2s cubic-bezier(.22,.78,.22,1);
  }
  .profile-photo-viewer.comments-sheet-visible .profile-photo-side{transform:translateY(0)}
  .profile-photo-viewer.comments-open .profile-photo-owner,
  .profile-photo-viewer.comments-open .profile-photo-actions,
  .profile-photo-viewer.comments-open .profile-photo-likers-link,
  .profile-photo-viewer.comments-open .profile-photo-owner-tools{display:none!important}
  .profile-photo-viewer.comments-open .profile-photo-comments-sheet-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    padding:13px 14px 11px;
    border-bottom:1px solid #ecebe8;
    background:#fff;
  }
  .profile-photo-comments-sheet-head>div{display:flex;align-items:center;gap:8px;min-width:0}
  .profile-photo-comments-sheet-head strong{font-size:1rem;color:#24382b}
  .profile-photo-comments-sheet-head span{display:grid;place-items:center;min-width:24px;height:24px;padding:0 7px;border-radius:999px;background:#edf4ee;color:#2f6d46;font-size:.72rem;font-weight:850}
  .profile-photo-comments-sheet-head button{display:grid;place-items:center;width:36px;height:36px;padding:0;border:0;border-radius:12px;background:#f2eee7;color:#294c35;font:700 1.25rem/1 system-ui;cursor:pointer}
  .profile-photo-viewer.comments-open .profile-photo-comments{display:block!important;max-height:none!important;padding:8px 14px 12px!important;overflow:auto!important;background:#fff}
  .profile-photo-viewer.comments-open .profile-photo-comment-form{display:grid!important;padding:9px 10px max(10px,env(safe-area-inset-bottom))!important;background:#fff}
}

@media(max-width:331px){
  .profile-photo-owner-tools{gap:5px!important;padding:6px!important}
  .profile-photo-owner-tools button{
    min-height:31px!important;
    padding:4px 5px!important;
    border-radius:9px!important;
    font-size:.61rem!important;
    line-height:1.15!important;
  }
}

html[data-favorites-return="1"] .favorites-return-button,
html[data-favorites-return="1"] .request-back.favorites-return-button{
  display:inline-flex!important;
  align-items:center;
  justify-content:center;
  gap:7px;
  width:auto!important;
  max-width:min(100%,230px);
  min-height:38px!important;
  margin:0 0 16px!important;
  padding:8px 14px!important;
  border:1px solid rgba(47,109,70,.20)!important;
  border-radius:14px!important;
  background:#fff!important;
  color:#245d38!important;
  box-shadow:0 5px 15px rgba(28,74,43,.08)!important;
  font:inherit;
  font-size:.86rem!important;
  font-weight:850!important;
  line-height:1.2!important;
  text-decoration:none!important;
  white-space:nowrap;
  cursor:pointer;
}
html[data-favorites-return="1"] .favorites-return-button:hover{background:#f4f9f4!important;transform:translateY(-1px)}
html[data-favorites-return="1"] .request-footer-help{display:none!important}

@media(max-width:420px){
  html[data-favorites-return="1"] .favorites-return-button,
  html[data-favorites-return="1"] .request-back.favorites-return-button{
    max-width:205px;
    min-height:36px!important;
    padding:7px 12px!important;
    font-size:.8rem!important;
  }
}
html[data-favorites-return="1"] .favorites-return-footer-hidden{display:none!important}
