
/* CT Community Forum 0.7.59 – Messenger-spezifische UI.
   Absichtlich separat geladen, damit diese Styles nicht vom Theme abhängen. */

.ctf-messenger-layout{position:relative}

/* Nur der Nachrichtenverlauf scrollt. Die Dokument-/Browserposition bleibt stehen. */
.ctf-messenger-main .ctf-pm-thread{
  max-height:min(68vh,760px);
  overflow-y:auto;
  overscroll-behavior:contain;
  scrollbar-gutter:stable;
}

/* Ticket-Dialog: echtes zentriertes Overlay wie die CasinoTester-Angebots-Popups. */
.ctf-ticket-delete-modal[hidden]{display:none!important}
.ctf-ticket-delete-modal{
  position:fixed!important;
  inset:0!important;
  z-index:2147483000!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:24px!important;
  margin:0!important;
}
.ctf-ticket-delete-backdrop{
  position:fixed!important;
  inset:0!important;
  z-index:0!important;
  background:rgba(1,8,18,.78)!important;
  backdrop-filter:blur(4px);
}
.ctf-ticket-delete-dialog{
  position:relative!important;
  z-index:1!important;
  width:min(480px,calc(100vw - 32px))!important;
  max-height:calc(100vh - 48px)!important;
  overflow:auto!important;
  margin:0!important;
  padding:30px!important;
  border:1px solid #29405c!important;
  border-radius:18px!important;
  background:#101d2c!important;
  color:#f5f8fc!important;
  box-shadow:0 30px 100px rgba(0,0,0,.58)!important;
  text-align:left!important;
}
.ctf-ticket-delete-dialog h3{
  margin:8px 0 12px!important;
  font-size:23px!important;
  line-height:1.2!important;
  color:#fff!important;
}
.ctf-ticket-delete-dialog p{
  margin:10px 0!important;
  color:#c5d3e4!important;
  line-height:1.6!important;
}
.ctf-ticket-delete-note{
  margin-top:16px!important;
  padding:13px 15px!important;
  border:1px solid rgba(117,151,190,.16)!important;
  border-radius:12px!important;
  background:#142438!important;
  font-size:14px!important;
}
.ctf-ticket-delete-icon{
  width:46px!important;
  height:46px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  border-radius:14px!important;
  background:rgba(239,68,68,.12)!important;
  font-size:22px!important;
}
.ctf-ticket-delete-x{
  position:absolute!important;
  top:14px!important;
  right:16px!important;
  width:34px!important;
  height:34px!important;
  border:0!important;
  border-radius:10px!important;
  background:transparent!important;
  color:#9fb2c8!important;
  font-size:26px!important;
  line-height:1!important;
  cursor:pointer!important;
}
.ctf-ticket-delete-x:hover{background:rgba(255,255,255,.07)!important;color:#fff!important}
.ctf-ticket-delete-actions{
  display:flex!important;
  justify-content:flex-end!important;
  gap:10px!important;
  margin-top:22px!important;
}
.ctf-ticket-delete-actions .ctf-btn{
  min-height:42px!important;
  padding:10px 16px!important;
  border-radius:10px!important;
}
.ctf-ticket-delete-actions .ctf-danger{
  background:#dc2626!important;
  border-color:#dc2626!important;
  color:#fff!important;
}
body.ctf-ticket-delete-open{overflow:hidden!important}

/* Lightmode */
body:not(.ct-dark-mode) .ctf-ticket-delete-dialog,
.ctf-wrap:not(.ctf-forum-dark) .ctf-ticket-delete-dialog{
  background:#fff!important;
  color:#111827!important;
  border-color:#d7e0ea!important;
  box-shadow:0 30px 90px rgba(15,23,42,.28)!important;
}
body:not(.ct-dark-mode) .ctf-ticket-delete-dialog h3,
.ctf-wrap:not(.ctf-forum-dark) .ctf-ticket-delete-dialog h3{color:#111827!important}
body:not(.ct-dark-mode) .ctf-ticket-delete-dialog p,
.ctf-wrap:not(.ctf-forum-dark) .ctf-ticket-delete-dialog p{color:#4b5563!important}
body:not(.ct-dark-mode) .ctf-ticket-delete-note,
.ctf-wrap:not(.ctf-forum-dark) .ctf-ticket-delete-note{background:#f4f7fb!important}

@media(max-width:700px){
  .ctf-messenger-main .ctf-pm-thread{max-height:62vh}
  .ctf-ticket-delete-modal{padding:16px!important}
  .ctf-ticket-delete-dialog{padding:24px 20px!important}
  .ctf-ticket-delete-actions{flex-direction:column-reverse!important}
  .ctf-ticket-delete-actions .ctf-btn{width:100%!important}
}

/* 0.7.59 – Messenger fühlt sich direkt an; kein träges Ausblenden. */
.ctf-messenger-main{transition:none!important}
.ctf-messenger-layout.is-loading-conversation .ctf-messenger-main{opacity:.82!important;pointer-events:none}
.ctf-messenger-sidebar a.is-active{background:rgba(59,130,246,.12)}
