/* Add custom CSS styles below */ 
/* ===================== PART A – your existing rules (brace fixed) ===================== */
.s-loyalty-program-rewards-action-on,.s-loyalty-program-points-action-incomplete,.s-loyalty-program-reward-details .s-tabs-active{color:white}
/* إخفاء رابط أكواد الخصم من الفوتر فقط بدون تعطيله */
.footer-list.store-links-items
a[href="https://govyy.com/official-discount-coupons-and-codes/page-173356798"] {
    display: none !important;
    visibility: hidden !important;
}   /* <-- this closing brace was missing before */

.s-product-card-content-title {
    display: block !important;
    overflow: visible !important;
    white-space: normal !important;
    -webkit-line-clamp: unset !important;
    line-clamp: unset !important;
}

/* Loyalty reward button */
button.s-loyalty-program-rewards-action-on {
    background-color: #ff6600 !important;
    color: #ffffff !important;
}

/* ===================== PART B – cart page only (body.cart) ===================== */

/* 1) Free-shipping progress – guest box + celebration on Salla's native box */
body.cart #gv-free-shipping { transition: background-color .4s ease, box-shadow .4s ease; }
body.cart #gv-free-shipping .gv-bar { height: 10px; background: #f3f4f6; border-radius: 9999px; position: relative; }
body.cart #gv-free-shipping .gv-fill {
  height: 100%; width: 0; border-radius: 9999px; position: relative;
  background: linear-gradient(to left, #111111, #3f3f46);
  transition: width .7s cubic-bezier(.22, 1, .36, 1), background .4s ease;
}
body.cart #gv-free-shipping .gv-truck { pointer-events: none; }

body.cart #gv-free-shipping.gv-unlocked {
  background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 70%) !important;
  box-shadow: 0 0 0 1px #bbf7d0, 0 12px 28px -14px rgba(22, 163, 74, .45) !important;
}
body.cart #gv-free-shipping.gv-unlocked .gv-icon { background: linear-gradient(135deg, #16a34a, #22c55e) !important; color: #ffffff !important; }
body.cart #gv-free-shipping.gv-unlocked .gv-fill {
  background: linear-gradient(90deg, #15803d 0%, #4ade80 50%, #15803d 100%);
  background-size: 200% 100%;
  animation: gv-shimmer 1.6s linear 4;
}
body.cart #gv-free-shipping .gv-unlocked-text { display: block; color: #15803d; font-weight: 700; font-size: 1rem; }
body.cart #gv-free-shipping .gv-unlocked-sub { display: block; color: #6b7280; font-size: .8rem; margin-top: .15rem; }
body.cart #gv-free-shipping.gv-celebrate { animation: gv-pop .6s ease; }
body.cart #gv-free-shipping.gv-celebrate .gv-unlocked-text { animation: gv-rise .6s ease; }

body.cart #free-shipping:has(#free-shipping-applied.active) {
  background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 70%) !important;
  box-shadow: 0 0 0 1px #bbf7d0, 0 12px 28px -14px rgba(22, 163, 74, .45) !important;
  animation: gv-pop .6s ease;
}
body.cart #free-shipping:has(#free-shipping-applied.active) .rounded-icon { background: linear-gradient(135deg, #16a34a, #22c55e) !important; }
body.cart #free-shipping:has(#free-shipping-applied.active) #free-shipping-msg { color: #15803d; font-weight: 700; }
body.cart #free-shipping:has(#free-shipping-applied.active) .progress-bg {
  background: linear-gradient(90deg, #15803d 0%, #4ade80 50%, #15803d 100%) !important;
  background-size: 200% 100% !important;
  animation: gv-shimmer 1.6s linear 4;
}
body.cart #free-shipping-applied.active { display: inline-block; animation: gv-bounce .9s ease 4; }

@keyframes gv-pop     { 0% { transform: scale(1); } 40% { transform: scale(1.03); } 100% { transform: scale(1); } }
@keyframes gv-rise    { 0% { opacity: 0; transform: translateY(6px); } 100% { opacity: 1; transform: translateY(0); } }
@keyframes gv-shimmer { 0% { background-position: 0 0; } 100% { background-position: 200% 0; } }
@keyframes gv-bounce  { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }

@media (prefers-reduced-motion: reduce) {
  body.cart #gv-free-shipping, body.cart #gv-free-shipping *,
  body.cart #free-shipping, body.cart #free-shipping * { animation: none !important; }
}

/* 2) Button hierarchy – only "إتمام الطلب" stays the solid black CTA */
body.cart #cart-gifting salla-button.s-gifting-widget-action { background: transparent !important; border-color: transparent !important; }
body.cart #cart-gifting .s-button-primary-outline,
body.cart #cart-gifting .s-button-primary-outline .s-button-text { background: transparent !important; color: #374151 !important; }
body.cart #cart-gifting .s-button-primary-outline { border: 1px solid #9ca3af !important; box-shadow: none !important; }
body.cart #cart-gifting .s-button-primary-outline:hover { background: #f3f4f6 !important; border-color: #6b7280 !important; }
body.cart #cart-gifting .s-button-primary-outline:hover .s-button-text { color: #111827 !important; }
body.cart #cart-gifting .s-button-primary-outline:focus-visible { outline: 2px solid #111827 !important; outline-offset: 2px; }

body.cart salla-loyalty-panel .s-loyalty-program-panel-widget-icon { background: linear-gradient(135deg, #f59e0b, #d97706) !important; color: #ffffff !important; }
body.cart salla-loyalty-panel .s-button-primary-link,
body.cart salla-loyalty-panel .s-button-primary-link .s-button-text { color: #b45309 !important; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
body.cart salla-loyalty-panel .s-button-primary-link:hover,
body.cart salla-loyalty-panel .s-button-primary-link:hover .s-button-text { color: #92400e !important; }

body.cart form[id^="item-"] .btn--delete.s-button-danger { background: #fef2f2 !important; color: #b91c1c !important; border: 1px solid #fecaca !important; }
body.cart form[id^="item-"] .btn--delete.s-button-danger .s-button-text { color: #b91c1c !important; }
body.cart form[id^="item-"] .btn--delete.s-button-danger:hover { background: #fee2e2 !important; border-color: #f87171 !important; }

/* 3) Dark mode guard (theme toggles html.dark) */
html.dark body.cart #gv-free-shipping.gv-unlocked,
html.dark body.cart #free-shipping:has(#free-shipping-applied.active) {
  background: linear-gradient(135deg, rgba(22, 163, 74, .22), var(--dark-grey, #1f2937) 70%) !important;
  box-shadow: 0 0 0 1px rgba(74, 222, 128, .4) !important;
}
html.dark body.cart #gv-free-shipping .gv-unlocked-text,
html.dark body.cart #free-shipping:has(#free-shipping-applied.active) #free-shipping-msg { color: #4ade80 !important; }
html.dark body.cart #gv-free-shipping .gv-bar { background: rgba(255, 255, 255, .12); }
html.dark body.cart #cart-gifting .s-button-primary-outline,
html.dark body.cart #cart-gifting .s-button-primary-outline .s-button-text { color: #e5e7eb !important; border-color: #4b5563 !important; }
html.dark body.cart #cart-gifting .s-button-primary-outline:hover { background: rgba(255, 255, 255, .08) !important; }
html.dark body.cart salla-loyalty-panel .s-button-primary-link,
html.dark body.cart salla-loyalty-panel .s-button-primary-link .s-button-text { color: #fbbf24 !important; }