/* Deynu 16.9.0.5 — Reels desktop comments + affiliate CTA polish */
.social-page .affiliate-context-form{margin:8px 0 0;display:flex;align-items:center;justify-content:flex-start}
.social-page .affiliate-context-cta{
  min-height:44px;border:1px solid rgba(20,93,72,.16);border-radius:13px;
  background:linear-gradient(135deg,#17664f,#1f7b60);color:#fff;
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  padding:9px 14px;font:inherit;font-size:12px;font-weight:900;line-height:1;
  cursor:pointer;box-shadow:0 7px 18px rgba(23,102,79,.14);
  transition:transform .16s ease,box-shadow .16s ease,background .16s ease;
}
.social-page .affiliate-context-cta::before{
  content:"↗";width:25px;height:25px;border-radius:50%;display:grid;place-items:center;
  background:rgba(255,255,255,.16);font-size:13px;font-weight:900;line-height:1;
}
.social-page .affiliate-context-cta:hover{transform:translateY(-1px);box-shadow:0 10px 24px rgba(23,102,79,.2);background:linear-gradient(135deg,#145c48,#1b7259)}
.social-page .affiliate-context-cta:focus-visible{outline:3px solid rgba(221,167,72,.42);outline-offset:2px}
.social-page .social-content-property:has(+ .affiliate-context-form){margin-bottom:0;border-radius:16px 16px 8px 8px}
.social-page .social-content-property + .affiliate-context-form{
  margin-top:0;padding:8px 10px 10px;border:1px solid #dcebe4;border-top:0;
  border-radius:0 0 16px 16px;background:linear-gradient(180deg,#f5fbf8,#eef8f3)
}
.social-page .social-content-property + .affiliate-context-form .affiliate-context-cta{min-height:44px;padding:8px 13px;border-radius:12px}
.social-page .affiliate-context-form--reel{margin-top:8px}
.social-page .affiliate-context-form--reel .affiliate-context-cta{min-height:44px;padding:7px 11px;border-radius:999px;background:rgba(17,55,44,.82);backdrop-filter:blur(8px);box-shadow:none}

.social-mode-reels .social-comments-sheet{pointer-events:none!important}
.social-mode-reels .social-comments-sheet .comments-backdrop{pointer-events:auto!important;z-index:0!important;background:rgba(8,18,14,.48)!important;backdrop-filter:blur(2px)}
.social-mode-reels .comments-panel{pointer-events:auto!important;z-index:1!important;box-sizing:border-box!important}
.social-mode-reels .comments-head{flex:0 0 auto;min-height:52px;border-bottom:1px solid #edf1ef;background:#fff;z-index:3}
.social-mode-reels .comments-head button{
  width:44px;height:44px;min-width:44px;border:0!important;border-radius:50%!important;
  display:grid!important;place-items:center!important;background:#f1f5f3!important;color:#183e33!important;
  font:inherit!important;font-size:24px!important;line-height:1!important;cursor:pointer!important
}
.social-mode-reels .comments-list{flex:1 1 auto!important;min-height:0!important;overflow-y:auto!important;overscroll-behavior:contain;padding:12px 2px 14px!important}
.social-mode-reels .comments-compose{flex:0 0 auto!important;margin:0!important;padding:12px 0 max(2px,env(safe-area-inset-bottom))!important;border-top:1px solid #edf1ef!important;background:#fff!important}

@media (min-width: 901px){
  .social-mode-reels .social-comments-sheet{position:fixed!important;inset:0!important;z-index:130!important}
  .social-mode-reels .comments-handle{display:none!important}
  .social-mode-reels .comments-panel{
    position:fixed!important;left:0!important;right:auto!important;top:0!important;bottom:0!important;
    width:min(460px,42vw)!important;height:100dvh!important;max-height:none!important;
    padding:14px 18px 18px!important;border-radius:0 24px 24px 0!important;
    display:flex!important;flex-direction:column!important;overflow:hidden!important;
    transform:translateX(-105%)!important;transition:transform .2s ease!important;
    box-shadow:16px 0 44px rgba(8,31,24,.2)!important;background:#fff!important
  }
  .social-mode-reels .social-comments-sheet.is-open .comments-panel{transform: translateX(0)!important}
}

@media (max-width: 900px){
  .social-mode-reels .comments-panel{
    position:fixed!important;left:50%!important;right:auto!important;top:auto!important;bottom:0!important;
    width:min(100%,680px)!important;height:auto!important;max-height:82dvh!important;
    padding:14px 18px calc(14px + env(safe-area-inset-bottom))!important;
    border-radius: 24px 24px 0 0!important;background:#fff!important;
    transform:translate(-50%,105%)!important;transition:transform .2s ease!important;
    display:flex!important;flex-direction:column!important;overflow:hidden!important
  }
  .social-mode-reels .social-comments-sheet.is-open .comments-panel{transform:translate(-50%,0)!important}
  .social-mode-reels .comments-handle{display:block!important}
  .social-page .social-content-property + .affiliate-context-form{padding:7px 8px 9px}
  .social-page .social-content-property + .affiliate-context-form .affiliate-context-cta{width:100%;min-height:44px}
}

@media (prefers-reduced-motion: reduce){
  .social-mode-reels .comments-panel,.social-page .affiliate-context-cta{transition:none!important}
}
