#spwa-popup , .spwa-manual, .spwa-buttons {
  font-family: inherit !important;
}

#spwa-popup {
  position: fixed; bottom: 20px; right: 20px;
  width: 300px; background: #fff; border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  overflow: hidden; font-family: sans-serif; z-index: 9999;
  animation: fadeIn 0.3s ease-out;
}
@keyframes fadeIn { from { opacity:0; transform:translateY(20px);} to {opacity:1;transform:translateY(0);} }
.spwa-inner { padding: 16px; display:flex; flex-direction:column; gap:12px; }
.spwa-desc, .spwa-instr {
  background: #f9fafb; padding: 10px; border-radius: 4px;
  font-size: 0.95em; color: #333; max-height:120px; overflow:auto;
}
.spwa-buttons { display:flex; gap:8px; }
.spwa-buttons .add-btn {
  flex:2; padding: 8px; border:none; border-radius:4px;
  background:#317EFB; color:#fff; font-weight:bold; font-size:0.95em;
  white-space: nowrap; text-overflow:ellipsis; overflow:hidden;
}
.spwa-buttons .close-btn {
  flex:1; padding:8px; border:none; border-radius:4px;
  background:#e0e0e0; color:#333; font-size:0.9em;
}
.spwa-manual-btn.single-line {
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
/* ==== دکمه‌های popup در یک ردیف ==== */
#spwa-popup .spwa-buttons {
  display: flex;                   /* حالت ردیفی */
  flex-direction: row;             /* از چپ به راست */
  justify-content: center;         /* وسط چین شود */
  gap: 10px;                       /* فاصله‌ی بین دکمه‌ها */
  margin-top: 15px;                /* فاصله کمی بالای دکمه‌ها */
}

/* اندازه و ظاهر دکمه‌ها */
#spwa-popup .spwa-buttons .add-btn,
#spwa-popup .spwa-buttons .close-btn {
  flex: 1;                         /* هر دو به یک اندازه */
  padding: 10px 0;                 /* کمی padding عمودی */
  font-size: 0.95em;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  white-space: nowrap;             /* متن یک خط */
}

/* رنگ دکمه افزودن */
#spwa-popup .spwa-buttons .add-btn {
  background: #317EFB;
  color: #fff;
}

/* رنگ دکمه بعداً */
#spwa-popup .spwa-buttons .close-btn {
  background: #e0e0e0;
  color: #333;
}

/* افکت hover */
#spwa-popup .spwa-buttons .add-btn:hover {
  background: #266dc1;
}
#spwa-popup .spwa-buttons .close-btn:hover {
  background: #cfcfcf;
}



/* Modal Overlay */
#spwa-notif-modal-wrap {
  position:fixed; top:0; left:0; right:0; bottom:0;
  background:rgba(0,0,0,0.5); display:flex;
  align-items:center; justify-content:center; z-index:10000;
}
#spwa-notif-modal {
  background:#fff; border-radius:8px; padding:24px;
  max-width:360px; width:90%; font-family:inherit;
  box-shadow:0 4px 12px rgba(0,0,0,0.2); text-align:center;
}
#spwa-notif-modal h3 { margin:0 0 12px; }
#spwa-notif-modal p  { margin:0 0 20px; }
#spwa-notif-modal .buttons {
  display:flex; gap:10px; justify-content:center;
}
#spwa-notif-modal .btn {
  flex:1; padding:10px; border:none; border-radius:4px;
  font-weight:600; cursor:pointer;
}
#spwa-notif-modal .btn.allow {
  background:#28a745; color:#fff;
}
#spwa-notif-modal .btn.deny {
  background:#dc3545; color:#fff;
}

/* Notification Banner */
#spwa-notif-banner {
  position:fixed; top:20px; left:50%; transform:translateX(-50%);
  padding:10px 20px; border-radius:4px; color:#fff;
  box-shadow:0 2px 6px rgba(0,0,0,0.2); z-index:10001;
  animation:slideDown .3s ease-out;
}
#spwa-notif-banner.success { background:#28a745; }
#spwa-notif-banner.error   { background:#dc3545; }
@keyframes slideDown {
  from { opacity:0; transform:translate(-50%,-20px); }
  to   { opacity:1; transform:translate(-50%,0); }
}
