@import url('/assets/css/posts-template-unified.css?v=20260504-posts-template-unified-1');

.yl-floating-share-wrap {
  position: fixed;
  inset-inline-end: 18px;
  bottom: 22px;
  z-index: 99998;
  direction: rtl;
  font-family: Cairo, Tahoma, Arial, sans-serif;
}

.yl-floating-share-btn {
  width: 58px;
  height: 58px;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0f766e, #14b8a6);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(15, 118, 110, .35);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.yl-floating-share-btn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 16px 36px rgba(15, 118, 110, .44);
  filter: brightness(1.05);
}

.yl-floating-share-btn:active {
  transform: translateY(0) scale(.98);
}

.yl-floating-share-btn svg {
  width: 27px;
  height: 27px;
  fill: currentColor;
}

.yl-floating-share-toast {
  position: fixed;
  inset-inline-end: 18px;
  bottom: 92px;
  z-index: 99999;
  max-width: min(310px, calc(100vw - 36px));
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(15, 23, 42, .96);
  color: #fff;
  font-family: Cairo, Tahoma, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.8;
  box-shadow: 0 12px 30px rgba(0,0,0,.28);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}

.yl-floating-share-toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 700px) {
  .yl-floating-share-wrap {
    inset-inline-end: 14px;
    bottom: 82px;
  }

  .yl-floating-share-btn {
    width: 54px;
    height: 54px;
  }

  .yl-floating-share-toast {
    inset-inline-end: 14px;
    bottom: 148px;
  }
}

/* YL_FLOATING_SHARE_ABOVE_WHATSAPP_START
   رفع زر المشاركة في متصفحات الجوال حتى لا يلتصق أو يتداخل مع زر واتساب العائم. */
@media screen and (max-width: 760px), screen and (hover: none) and (pointer: coarse) {
  .yl-floating-share-wrap {
    bottom: 78px !important;
  }

  .yl-floating-share-toast {
    bottom: 142px !important;
  }
}

@media screen and (max-width: 380px) {
  .yl-floating-share-wrap {
    bottom: 70px !important;
  }

  .yl-floating-share-toast {
    bottom: 132px !important;
  }
}
/* YL_FLOATING_SHARE_ABOVE_WHATSAPP_END */

@media print {
  .yl-floating-share-wrap,
  .yl-floating-share-toast {
    display: none !important;
  }
}
