/* شريط خصم الدفع */
#naaf-payment-offer {
  direction: rtl;
  display: block;
  box-sizing: border-box;
  width: 100%;
  margin: 10px 0;
  padding: 0;
  overflow: visible;
  border: 1px solid #dce9df;
  border-radius: 10px;
  background: #f4f9f5;
  color: #12805b;
  font-family: inherit;
  text-align: right;
  animation: none;
}

/* تبدأ الحركة عند ظهور الشريط على الشاشة */
#naaf-payment-offer.naaf-animation-started {
  animation: naaf-soft-pulse 4s ease-in-out 3;
}

/* إلغاء تأثيرات الحواف السابقة */
#naaf-payment-offer::before,
#naaf-payment-offer::after {
  content: none;
  display: none;
}

#naaf-payment-offer * {
  box-sizing: border-box;
}

/* الشريط القابل للضغط */
#naaf-payment-offer > summary.naaf-offer-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 56px;
  margin: 0;
  padding: 9px 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: inherit;
  font-family: inherit;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  list-style: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

/* إزالة سهم المتصفح الافتراضي */
#naaf-payment-offer > summary::marker {
  content: "";
}

#naaf-payment-offer > summary::-webkit-details-marker {
  display: none;
}

#naaf-payment-offer > summary::before,
#naaf-payment-offer > summary::after {
  content: none;
  display: none;
}

#naaf-payment-offer > summary:focus-visible {
  outline: 2px solid #12805b;
  outline-offset: 3px;
}

/* أيقونة الخصم */
#naaf-payment-offer .naaf-offer-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 26px;
  width: 26px;
  height: 28px;
  border-radius: 7px;
  background: #e3f0e7;
  color: #12805b;
}

#naaf-payment-offer .naaf-offer-icon svg {
  display: block;
  width: 17px;
  height: 17px;
}

/* محتوى العرض */
#naaf-payment-offer .naaf-offer-content {
  display: block;
  flex: 1;
  min-width: 0;
}

#naaf-payment-offer .naaf-offer-line {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 2px 8px;
  line-height: 1.6;
}

#naaf-payment-offer .naaf-offer-badge {
  color: #12805b;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

#naaf-payment-offer .naaf-offer-price {
  color: #087b54;
  font-size: 16px;
  font-weight: 800;
  white-space: nowrap;
}

#naaf-payment-offer .naaf-offer-currency {
  font-size: 10px;
  font-weight: 500;
}

#naaf-payment-offer .naaf-offer-saving {
  color: #52665a;
  font-size: 10px;
  font-weight: 500;
  white-space: nowrap;
}

/* شرط الدفع ورابط التفاصيل */
#naaf-payment-offer .naaf-offer-hint {
  display: block;
  margin-top: 2px;
  color: #77827b;
  font-size: 10px;
  font-weight: 400;
  line-height: 1.6;
}

#naaf-payment-offer .naaf-hint-closed {
  display: inline;
  color: #12805b;
}

#naaf-payment-offer .naaf-hint-open {
  display: none;
  color: #12805b;
}

#naaf-payment-offer[open] .naaf-hint-closed {
  display: none;
}

#naaf-payment-offer[open] .naaf-hint-open {
  display: inline;
}

/* سهم فتح التفاصيل */
#naaf-payment-offer .naaf-offer-chevron {
  display: block;
  flex: 0 0 12px;
  width: 12px;
  height: 12px;
  color: #7b8d81;
  transition: transform 180ms ease;
}

#naaf-payment-offer[open] .naaf-offer-chevron {
  transform: rotate(180deg);
}

/* تفاصيل طرق الدفع */
#naaf-payment-offer .naaf-offer-details {
  margin: 0 10px;
  padding: 8px 0 10px;
  border-top: 1px solid #e0eae3;
  color: #52655a;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.8;
}

/* نبضة بسيطة حول الحواف */
@keyframes naaf-soft-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(18, 128, 91, 0);
  }

  50% {
    box-shadow: 0 0 0 3px rgba(18, 128, 91, 0.12);
  }
}

/* عروض بطاقات المنتجات */
.naaf-card-offer {
  direction: rtl;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 4px;
  width: 100%;
  margin-top: 6px;
  padding: 5px 4px;
  border: 1px solid #dcebe2;
  border-radius: 6px;
  background: #f2f8f4;
  color: #12805b;
  font-family: inherit;
  line-height: 1.4;
  white-space: nowrap;
}

.naaf-card-offer .naaf-card-offer-price {
  color: #12805b;
  font-size: 13px;
  font-weight: 800;
}

.naaf-card-offer .naaf-card-offer-method {
  color: #12805b;
  font-size: 11px;
  font-weight: 500;
}

.naaf-card-offer::after {
  content: none;
}

/* الشاشات الصغيرة */
@media (max-width: 360px) {
  #naaf-payment-offer > summary.naaf-offer-summary {
    gap: 6px;
    padding: 8px;
  }

  #naaf-payment-offer .naaf-offer-line {
    column-gap: 6px;
  }

  #naaf-payment-offer .naaf-offer-price {
    font-size: 15px;
  }
}

/* احترام تفضيل تقليل الحركة */
@media (prefers-reduced-motion: reduce) {
  #naaf-payment-offer,
  #naaf-payment-offer.naaf-animation-started {
    animation: none;
  }

  #naaf-payment-offer .naaf-offer-chevron {
    transition: none;
  }
}