
#publisher-link-wrapper .publisher-footer .btn {
    padding: 6px 16px;
  }
#publisher-link-wrapper .publisher-footer .btn {
  border-radius: 8px;
  padding: 6px 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
      height: 35px !important;
}

@media (max-width: 1024px) {
    #publisher-link-box {
        height: auto !important;
        min-height: 0 !important;
    }

    /* ensures modal expands with content */
    .modal-dialog {
        max-height: none !important;
    }

    .modal-content {
        height: auto !important;
    }
}

#publisher-link-wrapper .publisher-avatar{
left:0px !important;
}

.publisher-message {
  padding-left: 0 !important;
}

/* Increase publisher header height */
.publisher-header {
  min-height: 48px;         
  padding: 8px 0;            /* vertical space */
  display: flex;
  align-items: center;
  gap: 10px;
}



.publisher-header .publisher-username {
  margin-left: 60px;        /* flex gap handles spacing */
  line-height: 1;        /* prevents vertical bleed */
  font-weight: 600;
}
/* Tumblr-like link preview */
.js_link_preview_display {
  margin-top: 16px;
}

/* thumbnail container */
.link-preview-thumb {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;          /* Tumblr-style video ratio */
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* thumbnail image */
.link-preview-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;             /* 🔑 THIS is Tumblr behavior */
  display: block;
}
#publisher-link-box .js_link_preview_display {
  padding: 0;
}


 #publisher-link-wrapper .x-form.publisher {
    padding: 15px;
    min-height: auto;
  }
  
   #publisher-link-box {
        height: auto !important;
        min-height: 0 !important;
    }

.colored-text-wrapper {
  position: relative;
}

.colored-text-wrapper textarea {
  padding-right: 44px; /* space for emoji */
}

.publisher-emojis {
  position: absolute;
  right: 12px;
  bottom: 10px;
  z-index: 2;
}

.publisher-emojis i {
  cursor: pointer;
}
.publisher-emoji-icon {
  width: 22px;
  height: 22px;
  display: inline-block;
  cursor: pointer;
}
.publisher-emojis {
  z-index: 5;
}
.publisher-textarea-wrap {
  position: relative;
}

.publisher-textarea-wrap textarea {
  width: 100%;
  padding-right: 40px;   /* space for emoji */
}

.publisher-emoji-inside {
  position: absolute;
  right: 10px;
  top: 10px;
  width: 22px;
  height: 22px;
  cursor: pointer;
  opacity: 0.85;
}

.publisher-emoji-inside:hover {
  opacity: 1;
  transform: scale(1.1);
}
.publisher-textarea-wrap {
  position: relative;
}

/* right side icon group */
.publisher-inside-tools {
  position: absolute;
  right: 12px;
  top: 12px;
  display: flex;
  gap: 8px;
  align-items: center;
  z-index: 10;
}

/* force icon size */
.inside-tool-icon {
  width: 22px !important;
  height: 22px !important;
  cursor: pointer;
  opacity: 0.9;
}

.inside-tool-icon:hover {
  transform: scale(1.15);
}
.publisher-title {
  text-align: center;
  font-size: 17px;
  font-weight: 600;
  padding: 8px 0;
  border-bottom: 3px solid #e4e6eb;
  
}
#publisher-link-box .btn-close{
    background-color: grey;
    border-radius: 300.375rem !important;
}
/* ===== Right-side tool icons ===== */
.publisher-inside-tools {
  position: static;          /* 🔑 remove absolute positioning */
  margin-top: 8px;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

/* ===== Tool icons ===== */
.publisher-inside-tools .inside-tool-icon {
  width: 22px;
  height: 22px;
  cursor: pointer;
  opacity: 0.9;
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.publisher-inside-tools .inside-tool-icon:hover {
  transform: scale(1.15);
}
.dropdown-menu .js_scroller {
   
    max-height: 45px !important;
}
.publisher-tag-textarea {
  margin-top: 8px;
}
#publisher-link-wrapper .publisher-tag-textarea textarea {
  background-color: #f0f2f5 !important;
  border: 1px dashed #c7ccd1;
  border-radius: 10px;
  min-height: 44px !important;
}
