.smp-chat-button {
  position: fixed;
  bottom: var(--smp-bottom-offset, 20px);
  right: 15px;
  width: 60px;
  height: 60px;
  background: #007bff;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1) !important;
  z-index: 9998;
  opacity: 0;
  transform: translateY(calc(var(--smp-bottom-offset, 20px) + 100px));
  will-change: transform, opacity;
}

/* .hithere {
    animation: hithere 1s ease infinite;
}

@keyframes hithere {
    30% {
        transform: scale(1.1);
    }
} */

.smp-chat-button.smp-animate-in {
  opacity: 1;
  transform: translateY(0);
}
/* .smp-chat-button:hover {
    transform: scale(1.1);
} */

.smp-chat-button img {
  width: 30px;
  height: 30px;
  transition: all 0.3s ease;
  position: absolute;
}

.smp-chat-button .chat-icon {
  opacity: 1;
  visibility: visible;
}

.smp-chat-button .close-icon {
  opacity: 0;
  visibility: hidden;
}

.smp-chat-button.active {
  background: #ff4444;
}

.smp-chat-button.active .chat-icon {
  opacity: 0;
  visibility: hidden;
}

.smp-chat-button.active .close-icon {
  opacity: 1;
  visibility: visible;
}

.smp-popup {
  display: none;
  position: fixed;
  bottom: calc(var(--smp-bottom-offset, 20px) + 70px);
  right: var(--smp-horizontal-offset, 10px);
  border-radius: 10px;
  z-index: 9999;
  opacity: 0;
  transform: translateY(30px);
  transition: transform 300ms cubic-bezier(0.23, 1, 0.32, 1),
    opacity 300ms cubic-bezier(0.23, 1, 0.32, 1) !important;
  will-change: transform, opacity;
}

.smp-popup.smp-open {
  opacity: 1;
  transform: translateY(0);
}

.smp-popup.left {
  right: auto;
  left: var(--smp-horizontal-offset, 10px);
}

.smp-popup.right {
  left: auto;
}

.smp-popup-content {
  position: relative;
}

.smp-social-links {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.smp-social-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.25s cubic-bezier(0.23, 1, 0.32, 1),
    transform 0.25s cubic-bezier(0.23, 1, 0.32, 1) !important;
  display: inline-block;
  margin: 0 8px;
  position: relative;
  will-change: transform, opacity;
}

.smp-social-link.smp-link-visible {
  opacity: 1;
  transform: translateY(0);
}

.smp-social-link img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Hover label next to social icons */
.smp-label {
  position: absolute;
  top: 50%;
  transform: translateY(-50%) scale(0.98);
  background: #ffffff;
  color: #333;
  font-size: 12px;
  line-height: 1;
  padding: 6px 10px;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
  opacity: 0;
  visibility: hidden;
  white-space: nowrap;
  pointer-events: none;
  z-index: -1;
  --smp-ease: cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, opacity;
  transition: transform 0.32s var(--smp-ease), opacity 0.22s var(--smp-ease);
}

.smp-popup.right .smp-social-link .smp-label {
  position: absolute;
  right: 20px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-50%) translateX(0) scale(1);
  transition: all 0.3s ease; /* ← انیمیشن نرم */
}

.smp-popup.right .smp-social-link:hover .smp-label {
  right: 45px;
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(-18px) scale(0.98);
}

.smp-popup.left .smp-social-link .smp-label {
  position: absolute;
  left: 20px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-50%) translateX(0) scale(1);
  transition: all 0.3s ease;
}

.smp-popup.left .smp-social-link:hover .smp-label {
  left: 38px;
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(18px) scale(0.98);
}

/* .smp-social-link:hover .smp-label {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(18px) scale(0.98);
} */

/* .smp-social-link:hover {
    transform: translateY(0px) scale(1.05);
}
.smp-social-link:hover img {
    transform: scale(1.1);
    filter: brightness(1.1);
} */

.smp-popup.left .smp-social-links {
  flex-direction: column;
  align-items: flex-start;
  right: 5px !important;
  position: relative;
}
.smp-popup.right .smp-social-links {
  flex-direction: column;
  align-items: flex-end;
  right: -6px !important;
  position: relative;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Admin styles */
.wrap {
  max-width: 800px;
  margin: 20px auto;
  background: #fff;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.wrap h1 {
  color: #23282d;
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 2px solid #f0f0f0;
}

.form-table {
  margin-top: 20px;
}

.form-table th {
  padding: 20px 10px 20px 0;
  width: 200px;
  font-weight: 600;
}

.form-table td {
  padding: 15px 10px;
}

.form-table select {
  min-width: 200px;
  padding: 8px;
  border-radius: 4px;
  border: 1px solid #ddd;
}

.social-link-item {
  background: #f9f9f9;
  padding: 20px;
  margin-bottom: 20px;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.social-link-item h3 {
  margin: 0 0 15px 0;
  color: #23282d;
  font-size: 16px;
  font-weight: 600;
}

.social-link-item p {
  margin: 15px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.social-link-item label {
  min-width: 80px;
  font-weight: 500;
}

.social-link-item input[type="text"],
.social-link-item input[type="url"] {
  flex: 1;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.button {
  padding: 8px 16px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s ease;
}

.button-primary {
  background: #007cba;
  color: white;
}

.button-primary:hover {
  background: #006ba1;
}

#add-social-link {
  margin: 20px 0;
  background: #2271b1;
  color: white;
  padding: 10px 20px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s ease;
}

#add-social-link:hover {
  background: #135e96;
}

.remove-link {
  background: #dc3232;
  color: white;
  padding: 8px 16px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s ease;
}

.remove-link:hover {
  background: #b32d2e;
}

.media-button {
  background: #f0f0f0;
  color: #23282d;
  padding: 8px 16px;
  border-radius: 4px;
  border: 1px solid #ddd;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s ease;
}

.media-button:hover {
  background: #e5e5e5;
}
.smp-social-link {
  box-shadow: 0px 0px 4px 2px rgba(0, 0, 0, 0.07);
  background: #ffffff;
  display: flex;
  padding: 3px;
  border-radius: 50px;
}

/* =========================
   Theme: Card (smp-theme-card)
   ========================= */
.smp-theme-card .smp-popup-content {
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
  padding: 12px 14px;
  width: 260px;
}

.smp-theme-card .smp-card-title {
  background: #f5f7fb;
  color: #333;
  font-size: 13px;
  border-radius: 12px;
  padding: 6px 10px;
  text-align: center;
  margin-bottom: 10px;
}

.smp-theme-card .smp-social-links {
  gap: 0; /* no vertical gaps, we use separators */
}

.smp-theme-card .smp-social-link {
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  padding: 10px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: row-reverse; /* icon on right (RTL-like) */
  margin: 0;
}

.smp-theme-card .smp-social-link + .smp-social-link {
  border-top: 1px solid #eef0f4;
}

.smp-theme-card .smp-social-link img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  margin-inline-start: 8px;
}

.smp-theme-card .smp-label {
  position: static;
  background: transparent;
  box-shadow: none;
  padding: 0;
  margin: 0;
  color: #222;
  font-size: 14px;
  opacity: 1;
  visibility: visible;
  transform: none;
}

/* Respect left/right alignment while keeping card layout */
.smp-theme-card.smp-popup.left .smp-social-links,
.smp-theme-card.smp-popup.right .smp-social-links {
  align-items: stretch;
}
@font-face {font-family:'IRANSansWeb';src:url('../fonts/woff2/IRANSansWeb(FaNum).woff2') format('woff2'),url('../fonts/woff/IRANSansWeb(FaNum).woff') format('woff'),url('../fonts/ttf/IRANSansWeb(FaNum).ttf') format('truetype');font-weight:400;font-style:normal;font-display:swap;}
@font-face {font-family:'IRANSansWeb';src:url('../fonts/woff2/IRANSansWeb(FaNum)_Light.woff2') format('woff2'),url('../fonts/woff/IRANSansWeb(FaNum)_Light.woff') format('woff'),url('../fonts/ttf/IRANSansWeb(FaNum)_Light.ttf') format('truetype');font-weight:300;font-style:normal;font-display:swap;}
@font-face {font-family:'IRANSansWeb';src:url('../fonts/woff2/IRANSansWeb(FaNum)_Medium.woff2') format('woff2'),url('../fonts/woff/IRANSansWeb(FaNum)_Medium.woff') format('woff'),url('../fonts/ttf/IRANSansWeb(FaNum)_Medium.ttf') format('truetype');font-weight:500;font-style:normal;font-display:swap;}
@font-face {font-family:'IRANSansWeb';src:url('../fonts/woff2/IRANSansWeb(FaNum)_Bold.woff2') format('woff2'),url('../fonts/woff/IRANSansWeb(FaNum)_Bold.woff') format('woff'),url('../fonts/ttf/IRANSansWeb(FaNum)_Bold.ttf') format('truetype');font-weight:700;font-style:normal;font-display:swap;}
@font-face {font-family:'IRANSansWeb';src:url('../fonts/woff2/IRANSansWeb(FaNum)_UltraLight.woff2') format('woff2'),url('../fonts/woff/IRANSansWeb(FaNum)_UltraLight.woff') format('woff'),url('../fonts/ttf/IRANSansWeb(FaNum)_UltraLight.ttf') format('truetype');font-weight:200;font-style:normal;font-display:swap;}
@font-face {font-family:'IRANSansWeb';src:url('../fonts/woff2/IRANSansWeb(FaNum)_Black.woff2') format('woff2'),url('../fonts/woff/IRANSansWeb(FaNum)_Black.woff') format('woff'),url('../fonts/ttf/IRANSansWeb(FaNum)_Black.ttf') format('truetype');font-weight:900;font-style:normal;font-display:swap;}
.smp-popup, .smp-popup *, .smp-chat-button, .smp-help-badge, .smp-help-bubble {font-family:'IRANSansWeb', sans-serif;}
