.gift-reopen-wrap{position:fixed;inset:auto 16px 18px auto;z-index:80}.gift-reopen-wrap button{border:1px solid #c89d41;background:#fff;color:#174a35;border-radius:999px;padding:12px 18px;box-shadow:0 7px 28px #123b2928;font:700 15px Cairo,Arial,sans-serif;cursor:pointer;min-height:48px}#giftWelcome{width:min(480px,calc(100vw - 28px));border:1px solid #d8e5d8;border-radius:20px;padding:35px 27px 27px;box-shadow:0 25px 75px #102a2255;text-align:center;color:#173c2f;font-family:Cairo,Arial,sans-serif;direction:rtl}#giftWelcome::backdrop{background:#0a211f88}#giftWelcome p{color:#347152;font-size:13px;font-weight:700}#giftWelcome h2{font-size:25px;line-height:1.55;margin:12px 0}#giftWelcome span{font-size:14px;color:#54665d}.gift-close{position:absolute;left:14px;top:12px;width:42px;height:42px;background:#f6f8f4;border:0;border-radius:50%;font-size:25px;cursor:pointer}.gift-actions{display:flex;gap:10px;margin-top:28px;justify-content:center;flex-wrap:wrap}.gift-actions a,.gift-actions button{display:inline-flex;justify-content:center;align-items:center;min-height:48px;padding:10px 18px;border-radius:11px;border:1px solid #186348;background:#186348;color:white;font:700 14px Cairo,Arial,sans-serif;cursor:pointer;text-decoration:none}.gift-actions button{background:white;color:#186348}.gift-fly{transition:transform .42s ease-in,opacity .42s ease-in;pointer-events:none}.public-search-results{max-width:1100px;margin:28px auto;padding:24px;background:#fff;border:1px solid #dce4dd;border-radius:18px}.public-search-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px}.public-result{border:1px solid #dce4dd;border-radius:14px;padding:18px;background:#fbfcfa}.public-result:not(.sv2-shelf-card) h3{font-size:17px;margin:8px 0}.public-result:not(.sv2-shelf-card) bdi{font-family:monospace}.public-result:not(.sv2-shelf-card) a{display:inline-block;margin-top:12px;color:#12543e;font-weight:700}.public-result:not(.sv2-shelf-card) .source{display:block;color:#46705a;font-weight:700}.public-result:not(.sv2-shelf-card) .price{display:block;margin-top:10px;font-size:19px;font-weight:700}.public-result:not(.sv2-shelf-card) p{font-size:13px;color:#596961;line-height:1.6}@media(max-width:520px){.gift-reopen-wrap{inset:auto auto calc(154px + env(safe-area-inset-bottom,0px)) max(16px,env(safe-area-inset-left,0px))}.gift-reopen-wrap button{display:grid;place-items:center;width:56px;height:56px;min-height:56px;padding:0;border-radius:50%;font-size:27px;line-height:1}.gift-reopen-wrap .gift-label{display:none}#giftWelcome h2{font-size:21px}.public-search-results{padding:17px;margin:20px 12px}}
body.design-home .ds-beta{display:none!important}

/* 2026-11-21 QA: the gift window reads left to right in English (its punctuation sat on the wrong side). */
html[lang=en] #giftWelcome{direction:ltr}
/* 2026-11-21 QA: the gift window's main button text was dark green on green (another link rule won); white again. */
#giftWelcome .gift-actions a{color:#fff}
/* 29 Nov 2026 (card-everywhere): a shelf result drawn as the part identity card keeps its own inner styles; only the tag and the link row are styled here */
.public-result.sv2-shelf-card{padding:0;display:flex;flex-direction:column;gap:12px;border:0;background:none;box-shadow:none}
.public-result.sv2-shelf-card>.source{display:block;color:#46705a;font-weight:700}
.public-result.sv2-shelf-card>a{display:flex;align-items:center;min-height:44px;padding:4px 14px;border:1px solid #e3dac3;border-radius:14px;background:#fffdf7;color:#12543e;font-weight:700}   /* its own panel under the card (owner, 29 Nov) */

/* 29 Nov 2026 (mobile UX lane A) */
/* D03: the results panel is a child of the home card's flex column (align-items:start), so it shrank to its content and the
   part card (sized in cqw) drew tiny; it now takes the card's full width like the box above it */
.home-card>.public-search-results{align-self:stretch;width:auto;box-sizing:border-box}
.public-search-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr))}
/* D40: while the search runs, a moving bar under the status line; a retry button under a failure */
.public-search-results #publicSearchStatus>span{display:inline}
.sv2-progress{display:block;position:relative;height:4px;margin:12px 0 2px;border-radius:4px;background:#e3ece5;overflow:hidden}
.sv2-progress i{position:absolute;inset-block:0;inset-inline-start:0;width:38%;border-radius:4px;background:#186348;animation:sv2Run 1.3s ease-in-out infinite}
@keyframes sv2Run{from{transform:translateX(-110%)}to{transform:translateX(280%)}}
html[dir=rtl] .sv2-progress i{animation-name:sv2RunR}
@keyframes sv2RunR{from{transform:translateX(110%)}to{transform:translateX(-280%)}}
@media(prefers-reduced-motion:reduce){.sv2-progress i{animation:none;width:100%;opacity:.5}}
.sv2-slow{display:block;margin-top:8px;font-size:14px;color:#4f6158}
.sv2-retry{margin-top:4px}
/* D39: the home field: no resize grip, one border (the inner gold ring read as a second frame) */
#queryInput{resize:none}
body.design-home .single-input{box-shadow:none}
/* D25: «كل المخزون ←» keeps its words on one line; the heading wraps above it when the line is too narrow (English) */
.storefront-stock .home-section-head{flex-wrap:wrap}
.storefront-stock .home-section-head>a{flex:none;white-space:nowrap}
body.design-home .storefront-stock .home-section-head>a.ds-button{width:auto;min-width:max-content;padding-inline:14px}
