.publisher-poll-actions{
    margin-top:10px;
}

.remove-poll-inline{
    border:none;
    background:none;
    color:#e74c3c;
    font-size:14px;
    font-weight:600;
    cursor:pointer;
    padding:0;
}

.remove-poll-inline i{
    margin-right:4px;
}
.poll-overlay{
  position:fixed;
  top:0;
  left:0;
  width:100%;
  height:100%;
  display:none;
  align-items:center;
  justify-content:center;
  background:rgba(0,0,0,0.45);
  z-index:99999;
}

.poll-box{
  background:#fff;
  padding:25px;
  border-radius:12px;
  width:320px;
  text-align:center;
}
.save-overlay{
  position:fixed;
  inset:0;
  display:none;
  align-items:center;
  justify-content:center;
  background:rgba(0,0,0,0.45);
  backdrop-filter: blur(4px);
    z-index: 99999 !important;
}

/* modal box */
.save-box{
  background:#ffffff;
  padding:30px 35px;
  border-radius:16px;
  width:360px;
  text-align:center;
  box-shadow:0 20px 60px rgba(0,0,0,0.25);
  animation:popupScale .25s ease;
    
}

/* icon */
.save-icon{
  font-size:32px;
  color:#4CAF50;
  margin-bottom:10px;
}

/* title */
.save-box h4{
  font-size:22px;
  font-weight:600;
  margin-bottom:8px;
  color:#222;
}

/* description */
.save-box p{
  font-size:15px;
  color:#666;
  margin-bottom:22px;
}

/* button */
.btn-save-ok{
  background:#5B6EF5;
  border:none;
  padding:10px 26px;
  border-radius:10px;
  color:white;
  font-weight:500;
  cursor:pointer;
  transition:all .2s ease;
}

.btn-save-ok:hover{
  background:#4456e5;
  transform:translateY(-1px);
}

/* animation */
@keyframes popupScale{
  from{
    transform:scale(.9);
    opacity:0;
  }
  to{
    transform:scale(1);
    opacity:1;
  }
}
.save-box{
  position: fixed;                
  top: 30%;                   
  left: 35%;                    

}

.toast-msg {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #333;
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 14px;
  z-index: 99999;
  opacity: 0.95;
}
/* location */
.publisher-location-inline{
  font-weight: normal;
  color: #65676b;
}

.publisher-location-inline b,
.location-name{
  color: #050505;
  font-weight: 600;
}

/* feeling / activity */
.publisher-feeling-inline{
  font-weight: normal;
  color: #65676b;
  margin-left: 4px !important;
}


.publisher-feeling-inline .feeling-text{
  color: #050505;
  font-weight: 600;
}

.publisher-feeling-inline .feeling-icon{
  margin: 0 2px;
}

/* common spacing */
.publisher-header span{
  margin-left: 0 !important;
}

.location-prefix{
  font-weight: normal !important;
  color: #65676b;
  font-size: 12px;
}
.publisher-feeling-inline.x-hidden{
  display:none !important;
}

.publisher-location-inline.x-hidden{
  display:none !important;
}
.publisher-album-inline.x-hidden{
  display:none !important;
}

/* Twemoji / twa icons */
.publisher-feeling-inline .feeling-icon i,
.publisher-feeling-inline .feeling-icon .twa{
    font-size: 6px !important;
}
@media (max-width: 768px){

    .publisher-message.colored .publisher-header{
        font-size: 14px !important;
        gap: 6px !important;
        padding: 10px 12px 4px !important;
        line-height: 1.3 !important;
        align-items: flex-start !important;
    }

    .publisher-message.colored .publisher-avatar{
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
    }

    .publisher-message.colored .publisher-username{
        font-size: 15px !important;
        line-height: 1.2 !important;
    }

}
/* ===============================
   POLL CONTAINER
================================ */
.publisher-poll-preview {
  margin-top: 12px;
}

.poll-option-preview{
    position: relative;
    padding: 12px 16px 12px 42px !important; /* left room for icon */
    background: #ffffff;
    border: 1px solid #e4e6eb;
    border-radius: 14px;
}

.poll-option-preview::before{
    content: "★";
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #f5b301;
    font-size: 16px;
    font-weight: bold;
    line-height: 1;
}

/* Hover = slight lift */
.poll-option-preview:hover {
  background: #f7f8fa;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

/* Active = strong highlight */
.poll-option-preview.active {
  border-color: #1877f2;
  background: #e7f3ff;
}

/* Text */
.poll-option-text {
  font-size: 14px;
  font-weight: 500;
  color: #050505;
}
/* Remove grey textarea background in colored mode */
.publisher.colored-active .publisher-textarea-wrap textarea,
.publisher-message.colored textarea,
.publisher-message.colored .js_publisher-scraper {
    background: transparent !important;
    background-color: transparent !important;
}
.publisher.colored-active .publisher-header .publisher-username,
.publisher-message.colored .publisher-header .publisher-username {
    margin-left: 0 !important;
}
.publisher-album-inline{
    display:inline-flex;
    align-items:center;
    margin-left:6px;
    color:#65676b;
}

.publisher-album-inline i{
    color:#f4b400;
    font-size:14px;
}

.publisher-album-inline .album-name{
    font-weight:600;
    color:#111;
}
/* 🌙 NIGHT MODE — GIF SEARCH BOX FIX */
body.night-mode .publisher-gif-panel .gif-search-wrap {
  background: #2a2a2a !important;   /* dark background */
  border: 1px solid #444 !important;
}

body.night-mode .publisher-gif-panel .gif-search-input {
  color: #fff !important;           /* text color */
}

body.night-mode .publisher-gif-panel .gif-search-input::placeholder {
  color: #aaa !important;           /* placeholder */
}

body.night-mode .publisher-gif-panel svg {
  stroke: #ccc !important;          /* search icon */
}
/* ── FIX: Selected GIF full size in publisher ── */
.publisher-scraper .post-media {
  width: 100% !important;
}

.publisher-scraper .post-media-image {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: unset !important;
}

.publisher-scraper .post-media-image .image {
  width: 100% !important;
  height: 300px !important;          /* adjust to taste */
  background-size: contain !important;
  background-repeat: no-repeat !important;
  background-position: center center !important;
  background-color: #f0f0f0 !important;
}
/* ── GIF Panel ── */
.publisher-gif-panel {
  padding: 10px 10px 0 !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 0 !important;
}
.gif-search-wrap {
  display: flex;
  align-items: center;
  background: #f4f4f4;
  border: 1.5px solid #e0e0e0;
  border-radius: 30px;
  padding: 7px 13px;
  gap: 8px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.gif-results-grid {
  margin-top: 10px;
  max-height: 300px;
  overflow-y: auto;
}
.gif-search-wrap .dropdown-menu.gif-search {
  position: absolute !important;
  top: 100% !important;     /* place below input */
  left: 0;
  margin-top: 8px;         /* small gap */
  width: 100%;             /* match input width */
   display: block;         /* ensure visible */
  float: none !important; /* remove bootstrap float */
}

.gif-search-wrap:focus-within {
  border-color: #7c3aed;
  box-shadow: 0 0 0 3px rgba(124,58,237,0.1);
}
.gif-search-input {
  flex: 1;
  border: none !important;
  background: transparent !important;
  outline: none !important;
  font-size: 13px;
  color: #333;
  padding: 0 !important;
  box-shadow: none !important;
    height: auto !important;
  line-height: normal;
}
.gif-search-input::placeholder { color: #bbb; }
.gif-badge {
  background: linear-gradient(135deg, #7c3aed, #c026d3);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}
.gif-tabs {
  display: flex;
  overflow-x: auto;
  border-bottom: 1.5px solid #eee;
  margin-top: 10px;
  scrollbar-width: none;
}
.gif-tabs::-webkit-scrollbar { display: none; }
.gif-tab {
  font-size: 12px;
  font-weight: 500;
  padding: 6px 13px;
  border: none;
  background: none;
  cursor: pointer;
  border-bottom: 2.5px solid transparent;
  color: #888;
  white-space: nowrap;
  margin-bottom: -1.5px;
  transition: color 0.15s, border-color 0.15s;
}
.gif-tab:hover { color: #7c3aed; }
.gif-tab-active {
  color: #7c3aed !important;
  font-weight: 600 !important;
  border-bottom-color: #7c3aed !important;
}
.gif-trending-label {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 2px 4px;
  font-size: 11px;
  font-weight: 700;
  color: #7c3aed;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}