/* TENIMPER v49.1 — service actions menu + author badge */

.comments-section .ti-c49-actions{
  display:flex;
  align-items:center;
  gap:8px;
  margin-top:9px;
}

.comments-section .ti-c49-actions__more{
  appearance:none;
  border:0;
  background:transparent;
  color:rgba(218,198,171,.66);
  width:36px;
  height:36px;
  min-width:36px;
  border-radius:9px;
  cursor:pointer;
  display:inline-grid;
  place-items:center;
  font:600 20px/1 Georgia,serif;
  letter-spacing:2px;
  padding:0 0 6px 2px;
}
.comments-section .ti-c49-actions__more:hover,
.comments-section .ti-c49-actions__more[aria-expanded="true"]{
  color:#c49a61;
  background:rgba(196,154,97,.07);
}
.comments-section .ti-c49-actions__more:focus-visible{
  outline:2px solid rgba(196,154,97,.55);
  outline-offset:2px;
}

.comments-section .ti-c49-actions__menu{
  position:absolute;
  z-index:50;
  min-width:190px;
  max-width:min(280px,calc(100vw - 28px));
  padding:6px;
  border:1px solid rgba(196,154,97,.25);
  border-radius:12px;
  background:rgba(27,21,19,.97);
  box-shadow:0 16px 38px rgba(0,0,0,.24);
  backdrop-filter:blur(12px);
}

.comments-section .ti-c49-actions__menu[hidden]{display:none!important}

.comments-section .ti-c49-actions__item{
  display:flex!important;
  align-items:center;
  width:100%;
  min-height:38px;
  box-sizing:border-box;
  padding:8px 10px!important;
  margin:0!important;
  border:0!important;
  border-radius:8px!important;
  background:transparent!important;
  color:#e7d8c5!important;
  text-decoration:none!important;
  font:inherit!important;
  font-size:.88rem!important;
  text-align:left!important;
  cursor:pointer!important;
}
.comments-section .ti-c49-actions__item:hover{
  background:rgba(196,154,97,.09)!important;
  color:#f0d7ad!important;
}
.comments-section .ti-c49-actions__item--danger:hover{
  background:rgba(146,58,52,.14)!important;
  color:#e6b6ae!important;
}

.comments-section .ti-c49-author-badge{
  display:inline-flex;
  align-items:center;
  min-height:18px;
  padding:1px 7px 2px;
  margin-left:6px;
  border:1px solid rgba(196,154,97,.28);
  border-radius:999px;
  color:#b88950;
  background:rgba(196,154,97,.055);
  font-size:.72rem;
  font-weight:600;
  line-height:1.2;
  vertical-align:middle;
  white-space:nowrap;
}

.comments-section .ti-c49-author-card{
  border-color:rgba(196,154,97,.30)!important;
}
.comments-section .ti-c49-author-card .comment-avatar{
  box-shadow:0 0 0 3px rgba(196,154,97,.09);
}

html[data-theme="light"] .comments-section .ti-c49-actions__more,
body[data-theme="light"] .comments-section .ti-c49-actions__more,
.theme-light .comments-section .ti-c49-actions__more{
  color:rgba(77,57,42,.62);
}
html[data-theme="light"] .comments-section .ti-c49-actions__more:hover,
body[data-theme="light"] .comments-section .ti-c49-actions__more:hover,
.theme-light .comments-section .ti-c49-actions__more:hover,
html[data-theme="light"] .comments-section .ti-c49-actions__more[aria-expanded="true"],
body[data-theme="light"] .comments-section .ti-c49-actions__more[aria-expanded="true"],
.theme-light .comments-section .ti-c49-actions__more[aria-expanded="true"]{
  color:#8b6037;
  background:rgba(139,96,55,.07);
}
html[data-theme="light"] .comments-section .ti-c49-actions__menu,
body[data-theme="light"] .comments-section .ti-c49-actions__menu,
.theme-light .comments-section .ti-c49-actions__menu{
  background:rgba(249,240,226,.985);
  border-color:rgba(139,96,55,.22);
  box-shadow:0 16px 36px rgba(79,48,24,.14);
}
html[data-theme="light"] .comments-section .ti-c49-actions__item,
body[data-theme="light"] .comments-section .ti-c49-actions__item,
.theme-light .comments-section .ti-c49-actions__item{
  color:#4b3527!important;
}
html[data-theme="light"] .comments-section .ti-c49-actions__item:hover,
body[data-theme="light"] .comments-section .ti-c49-actions__item:hover,
.theme-light .comments-section .ti-c49-actions__item:hover{
  background:rgba(139,96,55,.08)!important;
  color:#7b4f2f!important;
}
html[data-theme="light"] .comments-section .ti-c49-author-badge,
body[data-theme="light"] .comments-section .ti-c49-author-badge,
.theme-light .comments-section .ti-c49-author-badge{
  color:#8b6037;
  border-color:rgba(139,96,55,.23);
  background:rgba(139,96,55,.045);
}

/* Visual polish based on the real live layout: replies stay connected, but more compact. */
.comments-section .ti-c49-card--reply{
  margin-top:16px!important;
}
.comments-section .ti-c49-card--reply::after{
  opacity:.72;
}

/* The old standalone service links/forms are hidden only after JS has moved them. */
.comments-section .ti-c49-action-moved{
  display:none!important;
}

@media(max-width:700px){
  .comments-section .ti-c49-actions__more{
    width:40px;
    height:40px;
    min-width:40px;
  }

  .comments-section .ti-c49-actions__menu{
    position:fixed!important;
    left:10px!important;
    right:10px!important;
    bottom:10px!important;
    top:auto!important;
    width:auto!important;
    max-width:none!important;
    padding:8px;
    border-radius:16px;
    box-shadow:0 18px 50px rgba(0,0,0,.28);
  }

  .comments-section .ti-c49-actions__item{
    min-height:46px;
    font-size:.95rem!important;
  }
}
