/* Mobile header: remove dots + show actions directly */
@media (max-width: 991.98px){

  /* safety: لو لسا في dot-menu بأي مكان */
  .others-option-for-responsive .dot-menu{
    display:none !important;
  }

  .others-option-for-responsive .option-inner{
    display:block !important;
    opacity:1 !important;
    visibility:visible !important;
    position:static !important;
    padding: 10px 0;
    box-shadow:none;
    background: transparent;
  }

  .others-option-for-responsive .others-options ul{
    list-style:none !important;
    display:flex !important;
    align-items:center !important;
    justify-content:flex-end !important;
    gap:10px !important;
  }

  /* hide search if exists somewhere */
  .others-option-for-responsive .search-icon{
    display:none !important;
  }

  /* make donate button smaller/nicer on mobile */
  .others-option-for-responsive .default-btn{
    padding:10px 7px !important;
    font-size:13px !important;
    line-height:1 !important;
    white-space:nowrap;
	font-weight:bold;
  }

  /* language button spacing */
  .others-option-for-responsive .language-option .dropdown-toggle{
    padding:8px 10px !important;
    font-size:13px !important;
  }
}

.mobile-responsive-menu .header-cart {
	list-style:none;
}

.others-option-for-responsive .others-options ul li .navbar-option-language button, .others-option-for-responsive .others-options ul li .navbar-option-language button i{
	color:#fff;
}

/* زر الكارت في الهيدر */
.header-cart {
    position: relative;
}

.header-cart .cart-toggle-btn {
    position: relative;
    border: none;
    background: #ffffff;
    padding: 6px 10px;
    border-radius: 999px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: 0.15s ease;
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.06);
}

.header-cart .cart-toggle-btn i {
    font-size: 20px;
    line-height: 1;
}

.header-cart .cart-toggle-btn:hover {
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.18);
}

/* badge عدد العناصر */
.cart-count-badge {
    position: absolute;
    top: -4px;
    right: -2px;
    min-width: 18px;
    height: 18px;
    border-radius: 999px;
    background: #49276C;
    color: #fff;
    font-size: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* صندوق الميني كارت */
.cart-dropdown {
    --cart-radius: 12px;
    width: 320px;
    max-width: 90vw;
    padding: 10px 14px;
    border-radius: var(--cart-radius);
    border: 1px solid #e5e7eb;
    background: #ffffff;
    box-shadow: 0 20px 35px rgba(15, 23, 42, 0.18);
    font-size: 13px;
}

.header-cart .dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: auto;
    transform: none !important;
}

/* هيدر */
.cart-dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    margin-bottom: 8px;
}

.cart-dropdown-title {
    font-size: 14px;
}

.cart-dropdown-count {
    font-size: 12px;
    color: #6b7280;
}

/* empty */
.cart-dropdown-empty {
    font-size: 13px;
    padding: 10px 0;
    color: #6b7280;
}

/* قائمة العناصر */
.cart-dropdown-list {
    max-height: 260px;
    overflow-y: auto;
    margin-bottom: 8px;
    padding: 6px 6px 4px;
    background: #f9fafb;
    border-radius: 10px;
}

/* عنصر واحد */
.cart-dropdown-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 10px;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #eef0f4;
    margin-bottom: 6px;
}

.cart-dropdown-item:last-child {
    margin-bottom: 0;
}

.cart-dropdown-item-info {
    flex: 1;
    min-width: 0;
}

.cart-dropdown-item-name {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 2px;
}

.cart-dropdown-item-meta {
    display: flex;
    flex-direction: column;
    gap: 1px;
    font-size: 12px;
    color: #4b5563;
}

/* زر الحذف */
.cart-dropdown-remove-form {
    margin: 0;
}

.cart-remove-btn {
    border: none;
    background: transparent;
    color: #dc2626;
    font-size: 18px;
    line-height: 1;
    padding: 0 4px;
    cursor: pointer;
    transition: 0.15s ease;
}

.cart-remove-btn:hover {
    color: #b91c1c;
}

/* الفوتر */
.cart-dropdown-footer {
    border-top: 1px solid #f3f4f6;
    padding-top: 8px;
    margin-top: 4px;
}

.cart-dropdown-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    margin-bottom: 6px;
}

.cart-dropdown-total span:last-child {
    font-weight: 700;
}

/* زر Go to cart */
.cart-dropdown .default-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    border-radius: 999px;
    font-size: 13px;
    padding-block: 8px;
}

/* RTL */
html[dir="rtl"] .cart-dropdown {
    text-align: right;
}

html[dir="rtl"] .cart-count-badge {
    right: auto;
    left: -2px;
}

html[dir="rtl"] .header-cart .dropdown-menu {
    right: auto;
    left: 0;
}




.single-causes .open-status-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 12px 0 10px;
}

.single-causes .status-pill.status-open {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: #e6f6ec;      /* أخضر فاتح */
    color: #1a7a4a;           /* أخضر غامق */
}

.single-causes .status-caption {
    font-size: 12px;
    color: #666;
    text-align: right;
}



/* =========================
   Independent User Menu (No Bootstrap dropdown)
   ========================= */

.uMenu{ position: relative; display:inline-block; }

/* Button */
.uMenu__btn{
  appearance:none;
  border:1px solid rgba(0,0,0,.12);
  background:#fff;
  border-radius:999px;
  padding:6px 10px;
  display:inline-flex;
  align-items:center;
  gap:8px;
  cursor:pointer;
  line-height:1;
  text-decoration:none;
}

.uMenu__btn:hover{ background:#f8f9fa; }
.uMenu__btn:focus{ outline:none; box-shadow:0 0 0 3px rgba(27,104,60,.18); }

/* Avatar */
.uMenu__avatar{
  width:30px; height:30px;
  border-radius:999px;
  overflow:hidden;
  background:#eef1f4;
  display:flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
}
.uMenu__avatar img{ width:100%; height:100%; object-fit:cover; display:block; }
.uMenu__icon{ font-size:16px; }

/* Caret */
.uMenu__caret{ font-size:14px; color:#6c757d; }

/* Panel */
.uMenu__panel{
  position:absolute;
  top: calc(100% + 8px);
  right: 0;
  left: auto;
  min-width: 210px;
  background:#fff;
  border:1px solid rgba(0,0,0,.10);
  border-radius:12px;
  box-shadow:0 16px 40px rgba(16,24,40,.18);
  padding:8px;
  display:none;
  z-index:99999;
}

/* Open state */
.uMenu.is-open .uMenu__panel{ display:block; }

/* Items */
.uMenu__item{
  display:block;
  width:100%;
  padding:10px 12px;
  border-radius:10px;
  text-decoration:none;
  color:#111;
  font-weight:600;
  background:transparent;
  border:0;
  text-align:start;
  cursor:pointer;
}
.uMenu__item:hover{ background: rgba(27,104,60,.08); color:#1b683c; }
.uMenu__item--danger{ color:#e11d48; }
.uMenu__item--danger:hover{ background: rgba(225,29,72,.08); color:#e11d48; }

.uMenu__sep{ height:1px; background:rgba(0,0,0,.08); margin:6px 0; }

/* Login text always visible */
.uMenu__btn--login{ gap:10px; }
.uMenu__loginText{ font-weight:800; font-size:13px; color:#1b683c; }

/* Mobile: keep inside screen + avoid clipping */
@media (max-width: 575.98px){
	.others-option-for-responsive .others-options ul li .navbar-option-language button i{
		margin-right:0px;
	}
	[dir='rtl'] .others-option-for-responsive .default-btn{
		padding: 10px 25px !important;
	}
	.lang-name{
		display:none;
	}
  .uMenu__panel{ max-width: calc(100vw - 16px); }
  
   /* ✅ Fix dropdown position for both LTR/RTL on mobile */
	@media (max-width: 575.98px){
	  .uMenu__panel{
		max-width: calc(100vw - 16px);
		top: calc(100% + 8px);
	  }

	  /* LTR: align panel to the left edge of button */
	  [dir="ltr"] .uMenu__panel{
		left: 0 !important;
		right: auto !important;
	  }

	  /* RTL: align panel to the right edge of button */
	  [dir="rtl"] .uMenu__panel{
		right: 0 !important;
		left: auto !important;
	  }

	  .others-option-for-responsive,
	  .others-option-for-responsive .container,
	  .others-option-for-responsive .option-inner,
	  .others-option-for-responsive .others-options,
	  .others-option-for-responsive ul{
		overflow: visible !important;
	  }
	}
  .others-option-for-responsive,
  .others-option-for-responsive .container,
  .others-option-for-responsive .option-inner,
  .others-option-for-responsive .others-options,
  .others-option-for-responsive ul{
    overflow: visible !important;
  }
}

.uMenu__loginIcon {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    background: #1b683c;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    box-shadow: 0 8px 18px rgba(27, 104, 60, .18);
}
.uMenu__loginText {
    font-weight: 900;
    font-size: 13px;
    color: #1b683c;
    letter-spacing: .2px;
}
[dir='ltr']  .donation-main__amount-input{
		
		border-top-right-radius:0px;
		border-bottom-right-radius:0px;
	}
	[dir='ltr']  .donation-main__currency-select{
		
		border-top-left-radius:0px;
		border-bottom-left-radius:0px;
	}

  [dir='rtl']  .donation-main__amount-input{
		
		border-top-left-radius:0px;
		border-bottom-left-radius:0px;
	}
	[dir='rtl']  .donation-main__currency-select{
		
		border-top-right-radius:0px;
		border-bottom-right-radius:0px;
	}


@media (min-width: 991.98px){
	
	.modal-content .donation-box--modern{
		height:90%;
		width:25%;
	}
	[dir='ltr'] .modal-content .donation-box--modern{
		float:right;
	}
	[dir='rtl'] .modal-content .donation-box--modern{
		float:left;
	}
	
	.modal-content .flex_model{
		display:flex;
		align-items:center;
		justify-content:center;
	}
	.modal-content .flex_model .col-12{
		width:100% !important;
		
	}
}

/* Root container: top center, responsive width */
#js-toast-root.toast-container{
  position: fixed;
  z-index: 1080;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: min(560px, calc(100% - 20px));
  pointer-events: none;
}

#js-toast-root .theme-toast{
  pointer-events: auto;
  background: transparent;
  border: 0;
  width: 100%;
  margin: 0;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity .18s ease, transform .18s ease;
}

#js-toast-root .theme-toast.show{
  opacity: 1;
  transform: translateY(0);
}

/* Theme color: uses --brand if exists, otherwise --bs-primary */
:root{
  --toast-accent: var(--brand, var(--bs-primary));
}

/* Card */
.theme-toast-inner{
  display: flex;
  gap: 12px;
  align-items: flex-start;

  padding: 12px 14px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 10px 30px rgba(0,0,0,.12);

  position: relative;
  overflow: hidden;
}

.theme-toast-inner::before{
  content:"";
  position:absolute;
  left:0;
  top:0;
  bottom:0;
  width:6px;
  background: var(--toast-accent);
}

/* Icon bubble */
.theme-toast-icon{
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;

  color: var(--toast-accent);
  background: rgba(0,0,0,.04);
}

/* Content */
.theme-toast-content{ flex: 1; min-width: 0; }
.theme-toast-title{
  font-weight: 800;
  font-size: 14px;
  line-height: 1.2;
  color: #111;
  margin-top: 2px;
}
.theme-toast-text{
  font-size: 13px;
  line-height: 1.35;
  color: rgba(17,17,17,.72);
  margin-top: 3px;
  word-break: break-word;
}

/* Close */
.theme-toast-close{
  opacity: .65;
  margin-top: 2px;
}
.theme-toast-close:hover{ opacity: 1; }

/* Type colors (still use theme accent, but set accent per type nicely) */
.theme-toast-success{ --toast-accent: var(--bs-success); }
.theme-toast-danger{  --toast-accent: var(--bs-danger); }
.theme-toast-warning{ --toast-accent: var(--bs-warning); }
.theme-toast-info{    --toast-accent: var(--brand, var(--bs-primary)); }

/* Mobile tweaks */
@media (max-width: 576px){
  #js-toast-root.toast-container{ top: 10px; }
  .theme-toast-inner{ padding: 11px 12px; border-radius: 12px; }
  .theme-toast-icon{ width: 34px; height: 34px; border-radius: 11px; }
}

/* Optional: dark mode */
@media (prefers-color-scheme: dark){
  .theme-toast-inner{
    background: #111827;
    border: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 14px 38px rgba(0,0,0,.35);
  }
  .theme-toast-title{ color: #fff; }
  .theme-toast-text{ color: rgba(255,255,255,.72); }
  .theme-toast-icon{ background: rgba(255,255,255,.08); }
}
.btn_main_color{
	background:var(--main-color);
	color:#fff;
}