/* Free Shipping (DGLAB-4819 design). Inherits the themes' fonts, dirham glyph and #delivery / #green_check /
   #info sprite icons. Everything is server-rendered, so nothing here causes layout shift. */
.sdg-fs-money { white-space: nowrap; unicode-bidi: isolate; }
.sdg-fs-ico { width: 16px; height: 16px; flex: none; fill: currentColor; }
.sdg-fs-free { color: #1B7F3B; font-weight: 800; text-transform: uppercase; }
[dir=rtl] .sdg-fs-free { text-transform: none; }

/* One continuous line through sign, glyph and number (the dirham glyph font draws its own decoration) */
.sdg-fs-strike { position: relative; display: inline-block; white-space: nowrap; color: #6A6A6A; font-weight: 400; text-decoration: none !important; }
.sdg-fs-strike * { text-decoration: none !important; }
.sdg-fs-strike::after { content: ""; position: absolute; left: -1px; right: -1px; top: 55%; border-top: 1.5px solid currentColor; transform: translateY(-50%); pointer-events: none; }

/* Info button */
.sdg-fs-info { all: unset; position: relative; display: inline-grid; place-items: center; flex: none; width: 20px; height: 20px; border-radius: 50%; cursor: pointer; color: inherit; opacity: .8; }
.sdg-fs-info:hover, .sdg-fs-info[aria-expanded=true] { opacity: 1; background: rgba(27, 127, 59, .12); }
.sdg-fs-info:focus-visible { outline: 2px solid #0079C1; outline-offset: 1px; }
.sdg-fs-info .sdg-fs-ico { width: 15px; height: 15px; }

/* Product page: badge under the threshold, "Shipping: ~~fee~~ Free" row at or above */
.sdg-fs-badge { display: flex; align-items: center; gap: 8px; margin: 10px 0; padding: 8px 10px; border-radius: 4px; background: #EDF7EE; color: #1B7F3B; font-size: 13px; font-weight: 600; line-height: 1.3; }
.sdg-fs-badge .sdg-fs-txt { flex: 1; min-width: 0; white-space: nowrap; }
.sdg-fs-shiprow { margin: 8px 0 6px; }
.sdg-fs-shiprow .sdg-fs-strike { margin-inline: 2px 4px; }
.pdp_shipping_fee.sdg-fs-offerfree { flex-wrap: wrap; align-items: baseline; white-space: nowrap; }

/* Listing cards */
.sdg-fs-card-badge { display: flex; align-items: center; gap: 4px; margin-top: 6px; color: #1B7F3B; font-size: 12px; font-weight: 700; white-space: nowrap; }
.sdg-fs-card-badge .sdg-fs-ico { width: 14px; height: 14px; }
.sdg-fs-card-badge .sdg-fs-info { width: 16px; height: 16px; }
.sdg-fs-card-badge .sdg-fs-info .sdg-fs-ico { width: 12px; height: 12px; }
.d-mobile .sdg-fs-card-badge { font-size: 10.5px; }

/* Cart and drawer nudge (styled like the cart's Tabby message) */
.sdg-fs-nudge { display: flex; flex-direction: column; gap: 8px; margin: 0 0 12px; padding: 10px 12px; border: 1px solid #D1D1D1; border-radius: 4px; background: #F0F9FF; color: #212529; font-size: 13px; line-height: 1.35; text-align: start; }
.sdg-fs-nudge .sdg-fs-row { display: flex; align-items: flex-start; gap: 8px; }
.sdg-fs-nudge .sdg-fs-row > .sdg-fs-ico { margin-top: 1px; color: #0079C1; }
.sdg-fs-nudge .sdg-fs-txt { flex: 1; min-width: 0; }
.sdg-fs-nudge b { font-weight: 800; }
.sdg-fs-bar { height: 4px; overflow: hidden; border-radius: 2px; background: #D6E9F5; }
.sdg-fs-bar i { display: block; height: 100%; border-radius: 2px; background: #0079C1; }
.sdg-fs-ends { display: flex; justify-content: space-between; margin-top: -4px; color: #6A6A6A; font-size: 11px; }
.sdg-fs-nudge--applied, .sdg-fs-nudge--applied_except, .sdg-fs-nudge--member { border-color: #BFDFC7; background: #EDF7EE; }
.sdg-fs-nudge--applied .sdg-fs-row > .sdg-fs-ico, .sdg-fs-nudge--applied .sdg-fs-txt,
.sdg-fs-nudge--applied_except .sdg-fs-row > .sdg-fs-ico, .sdg-fs-nudge--applied_except .sdg-fs-txt,
.sdg-fs-nudge--member .sdg-fs-row > .sdg-fs-ico, .sdg-fs-nudge--member .sdg-fs-txt { color: #1B7F3B; }
.sdg-fs-nudge .sdg-fs-sub { color: #444; font-weight: 400; }

/* DG Member (design v4): "(DG Member)" after the text, no logo */
.sdg-fs-dgtag { font-weight: 700; white-space: nowrap; }
.sdg-fs-strike ~ .sdg-fs-dgtag, .sdg-fs-offerfree .sdg-fs-dgtag { color: #1B7F3B; }
.sdg-fs-offtag { flex-basis: 100%; margin-top: 1px; }
.sdg-fs-member .sdg-fs-txt { font-weight: 700; }

/* Cart lines and checkout */
.sdg-fs-sellertag { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; padding: 1px 6px; border-radius: 3px; background: #FFF5DE; color: #7A5300; font-size: 12px; font-weight: 700; }
.sdg-fs-freebang { color: #1B7F3B; font-weight: 800; }
.sdg-fs-saving { display: inline-flex; align-items: center; gap: 4px; }
tr.fee:has(.sdg-fs-saving) th, tr.fee:has(.sdg-fs-saving) td { color: #1B7F3B !important; font-weight: 700; }

/* Terms: popover (desktop), bottom sheet (mobile) */
.sdg-fs-tip { position: absolute; z-index: 100000; width: 300px; max-width: calc(100vw - 24px); padding: 12px 14px; border: 1px solid #DDD; border-radius: 6px; background: #fff; box-shadow: 0 8px 24px rgba(0, 0, 0, .16); color: #212529; font-size: 12px; font-weight: 400; line-height: 1.5; text-align: start; }
.sdg-fs-tip h6 { margin: 0 24px 6px 0; color: #212529; font-size: 13px; font-weight: 800; }
[dir=rtl] .sdg-fs-tip h6 { margin: 0 0 6px 24px; }
.sdg-fs-tip ul, .sdg-fs-sheet ul { display: grid; gap: 4px; margin: 0; padding-inline-start: 16px; list-style: disc; }
.sdg-fs-x { all: unset; position: absolute; top: 8px; inset-inline-end: 8px; display: inline-grid; place-items: center; width: 20px; height: 20px; color: #999; cursor: pointer; }
.sdg-fs-layer { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: flex-end; background: rgba(0, 0, 0, .45); }
.sdg-fs-sheet { width: 100%; padding: 10px 16px 20px; border-radius: 14px 14px 0 0; background: #fff; color: #212529; font-size: 13px; text-align: start; }
.sdg-fs-grab { width: 36px; height: 4px; margin: 0 auto 10px; border-radius: 2px; background: #DDD; }
.sdg-fs-sheet h6 { margin: 0 0 8px; font-size: 15px; font-weight: 800; }
.sdg-fs-sheet ul { gap: 6px; margin-bottom: 14px; padding-inline-start: 18px; }
.sdg-fs-sheet .btn { width: 100%; }
