/* Phase 45.47.99 — final SourceFlora UX/UI polish + Visual Studio authority */
body.lfp454799-final-polish{
 --sf799-gap:clamp(9px,.8vw,13px);
 --sf799-pad:clamp(11px,1vw,16px);
 --sf799-radius:15px;
 --sf799-card-overlay:var(--lfp781-card-alpha,.92);
 --sf799-main-overlay:var(--lfp781-main-alpha,.88);
 --sf799-card-fallback:url('brand/backgrounds/flower-bg-2.webp');
 --sf799-main-fallback:url('brand/backgrounds/flower-bg-4.webp');
 --sf799-page-fallback:url('brand/backgrounds/flower-bg-1.webp');
 color:#17382d;
}
body.lfp454799-final-polish *,body.lfp454799-final-polish *:before,body.lfp454799-final-polish *:after{box-sizing:border-box}

/* Full useful width: remove legacy theme gutters and repeated empty top/bottom space. */
body.lfp454799-final-polish :where(.lfp-front-wrap,.lfp-front-inner,.lfp-phase4516-page-inner,.lfp454721-market,.lfp454721-product,.lfp454721-checkout-shell,.lfp-catalogue-live,.lfp454710-shell,.lfp454715-shell){
 width:min(100%,1920px)!important;max-width:none!important;margin-left:auto!important;margin-right:auto!important;
}
body.lfp454799-final-polish :where(.lfp-front-inner,.lfp-phase4516-page-inner,.lfp454721-market,.lfp454721-product,.lfp454721-checkout-shell,.lfp-catalogue-live){padding-left:clamp(8px,1.25vw,20px)!important;padding-right:clamp(8px,1.25vw,20px)!important}
body.lfp454799-final-polish :where(.entry-content,.wp-block-post-content,.site-main,main){margin-top:0!important;margin-bottom:0!important}
body.lfp454799-final-polish .lfp-front-wrap p:empty,body.lfp454799-final-polish .lfp-front-wrap div:empty:not([class*="media"]):not([class*="image"]):not([class*="thumb"]):not([aria-hidden="true"]){min-height:0}
body.lfp454799-final-polish .lfp-front-wrap p:empty{display:none!important}
body.lfp454799-final-polish :where(.lfp-box,.lfp-section,.lfp-panel,.lfp-nested-box){margin-top:0!important;margin-bottom:var(--sf799-gap)!important}
body.lfp454799-final-polish :where(.lfp-grid-cards,.lfp-card-grid,.lfp-dashboard-grid,.lfp-step-grid,.lfp-market-grid,.lfp-store-grid,.lfp-catalogue-live-grid,.lfp-catalogue-grid,.lfp454721-grid,.lfp454717-seller-grid){gap:var(--sf799-gap)!important}

/* Visual Studio card art: every transactional, catalogue, marketplace, checkout and portal card gets artwork. */
body.lfp454799-final-polish :where(
 .lfp-box,.lfp-card,.lfp-nested-box,.lfp-market-card,.lfp454721-card,.lfp-product-card,.lfp-store-card,
 .lfp-order-card,.lfp-wishlist-card,.lfp-step-card,.lfp-summary-card,.lfp-field-task-card,.lfp-market-command-card,
 .lfp-blog-card,.lfp454717-seller-product-card,.lfp454721-checkout-card,.lfp454721-summary,.lfp454721-checkout-line,
 .lfp-selection-item,.lfp-side-cart-box,.lfp4727-login-card,.lfp4727-stat-grid article,.lfp4727-source-card,
 .lfp4727-queue-card,.lfp4727-demand-card,.lfp454794-wa-card,.lfp454794-thread,.lfp454794-wa-head,
 [class*="portal-card"],[class*="login-card"],[class*="summary-card"],[class*="action-card"]
 ){
 background-color:#fffdf9!important;
 background-image:linear-gradient(rgba(255,255,255,var(--sf799-card-overlay)),rgba(255,255,255,var(--sf799-card-overlay))),var(--sf799-card-art,var(--lfp781-card-bg,var(--sf799-card-fallback)))!important;
 background-size:cover!important;background-position:center!important;background-repeat:no-repeat!important;
 border:1px solid rgba(190,153,62,.28)!important;border-radius:var(--sf799-radius)!important;
 box-shadow:0 6px 18px rgba(22,65,49,.055)!important;
}
/* Major workspace shells use the dedicated Main Card image when available. */
body.lfp454799-final-polish :where(.lfp-phase419-shell,.lfp779-section,.lfp454769-panel,.lfp454710-main,.lfp454715-main,.lfp454721-checkout-card){
 background-color:#fffdf9!important;
 background-image:linear-gradient(rgba(255,255,255,var(--sf799-main-overlay)),rgba(255,255,255,var(--sf799-main-overlay))),var(--sf799-main-art,var(--lfp781-main-card-bg,var(--sf799-main-fallback)))!important;
 background-size:cover!important;background-position:center!important;background-repeat:no-repeat!important;
}

/* Keep actual product/store photography crisp above the decorative card art. */
body.lfp454799-final-polish :where(.lfp-market-thumb,.lfp-product-media,.lfp454721-media,.lfp764-product-media,.lfp-store-card-banner,.lfp-selection-thumb){background:#eef4ef!important;overflow:hidden!important}
body.lfp454799-final-polish :where(.lfp-market-thumb img,.lfp-product-media img,.lfp454721-media img,.lfp764-product-media img,.lfp-store-card-banner img,.lfp-selection-thumb img){display:block!important;width:100%!important;height:100%!important;object-fit:cover!important}

/* Marketplace: fill the page instead of leaving large unused columns. */
body.lfp454799-final-polish .lfp454721-grid,
body.lfp454799-final-polish .lfp-market-grid{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(205px,1fr))!important;align-items:stretch!important;width:100%!important;max-width:none!important}
body.lfp454799-final-polish .lfp454721-card,body.lfp454799-final-polish .lfp-market-card{min-width:0!important;height:100%!important}
body.lfp454799-final-polish .lfp454721-card-copy,body.lfp454799-final-polish .lfp-market-card-body{padding:10px 11px 6px!important}
body.lfp454799-final-polish .lfp454721-card-actions,body.lfp454799-final-polish .lfp-market-card-foot{padding:7px 10px 10px!important;gap:7px!important}
body.lfp454799-final-polish .lfp454721-card-copy h2,body.lfp454799-final-polish .lfp-market-card h3{margin:0 0 6px!important;line-height:1.23!important}

/* Catalogue keeps the established 8/7/6-column behaviour but removes oversized gutters. */
body.lfp454799-final-polish .lfp4555-catalogue{width:100%!important;max-width:none!important;padding-inline:0!important}
body.lfp454799-final-polish .lfp4555-catalogue .lfp-catalogue-live-grid{gap:10px!important}
body.lfp454799-final-polish .lfp4555-catalogue .lfp-product-card{padding:0!important;border-radius:14px!important}
body.lfp454799-final-polish .lfp4555-catalogue .lfp-product-card> :not(.lfp-product-media){padding-left:10px!important;padding-right:10px!important}
body.lfp454799-final-polish .lfp4555-catalogue .lfp-product-card .lfp-card-foot{padding-bottom:10px!important}

/* Public checkout: compact two-column order flow with consistent artwork. */
body.lfp454799-final-polish .lfp454721-checkout-layout{grid-template-columns:minmax(0,1fr) minmax(290px,360px)!important;gap:14px!important;align-items:start!important}
body.lfp454799-final-polish .lfp454721-checkout-layout main{gap:12px!important}
body.lfp454799-final-polish .lfp454721-checkout-card,body.lfp454799-final-polish .lfp454721-summary{padding:14px!important}
body.lfp454799-final-polish .lfp454721-cart-lines{gap:8px!important}
body.lfp454799-final-polish .lfp454721-checkout-line{padding:9px!important;gap:10px!important}
body.lfp454799-final-polish .lfp454721-form-grid{gap:10px!important}
body.lfp454799-final-polish .lfp454721-section-title{margin-bottom:9px!important}

/* Portal/login surfaces: no giant empty white blocks, same SourceFlora card system everywhere. */
body.lfp454799-final-polish .lfp-phase419-shell{padding:clamp(14px,1.5vw,22px)!important}
body.lfp454799-final-polish .lfp-phase419-head{margin-bottom:10px!important;gap:12px!important}
body.lfp454799-final-polish .lfp-phase419-shell>.lfp-grid-cards{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}
body.lfp454799-final-polish .lfp-phase419-shell>.lfp-grid-cards>.lfp-box{padding:14px!important}
body.lfp454799-final-polish .lfp4727-login-shell{max-width:720px!important;margin:20px auto!important;padding:10px!important}
body.lfp454799-final-polish .lfp4727-login-card{padding:20px!important}

/* Dashboard/portal dense areas: tighter while preserving readability/tap targets. */
body.lfp454799-final-polish :where(.lfp-order-card,.lfp-wishlist-card,.lfp-step-card,.lfp-summary-card,.lfp-field-task-card,.lfp-market-command-card,.lfp-box){padding:var(--sf799-pad)!important}
body.lfp454799-final-polish :where(.lfp-actions,.lfp-inline-actions,.lfp-phase419-actions,.lfp454717-product-actions,.lfp454716-store-actions){gap:7px!important;flex-wrap:wrap!important}
body.lfp454799-final-polish :where(.lfp-btn,button,input[type="submit"],input[type="button"]){min-height:38px}
body.lfp454799-final-polish :where(h1,h2,h3,h4){text-wrap:balance}
body.lfp454799-final-polish :where(.lfp-box,.lfp-card,.lfp-nested-box) > :first-child{margin-top:0!important}
body.lfp454799-final-polish :where(.lfp-box,.lfp-card,.lfp-nested-box) > :last-child{margin-bottom:0!important}

/* Homepage remains edge-to-edge but trims unnecessary air below the header/hero. */
body.lfp454799-home .lfp779-home-shell{gap:10px!important;padding-bottom:0!important}
body.lfp454799-home .lfp779-home-shell>.lfp779-hero.lfp779-reveal{margin-bottom:0!important;padding-top:clamp(30px,3vw,48px)!important;padding-bottom:clamp(30px,3vw,48px)!important}
body.lfp454799-home .lfp779-hero-copy{padding:clamp(22px,2.2vw,30px)!important}
body.lfp454799-home .lfp789-benefits{margin-top:0!important}

/* Performance: use one cached decorative image per card family, no fixed backgrounds/heavy motion. */
body.lfp454799-final-polish :where(.lfp-market-card,.lfp-product-card,.lfp454721-card,.lfp-store-card,.lfp-order-card){background-attachment:scroll!important;transition:transform .14s ease,box-shadow .14s ease!important}
@media(prefers-reduced-motion:reduce){body.lfp454799-final-polish *{scroll-behavior:auto!important;animation:none!important;transition:none!important}}

@media(min-width:1680px){body.lfp454799-final-polish .lfp454721-grid,body.lfp454799-final-polish .lfp-market-grid{grid-template-columns:repeat(8,minmax(0,1fr))!important}}
@media(min-width:1380px) and (max-width:1679px){body.lfp454799-final-polish .lfp454721-grid,body.lfp454799-final-polish .lfp-market-grid{grid-template-columns:repeat(6,minmax(0,1fr))!important}}
@media(max-width:980px){
 body.lfp454799-final-polish .lfp454721-checkout-layout{grid-template-columns:1fr!important}
 body.lfp454799-final-polish .lfp-phase419-shell>.lfp-grid-cards{grid-template-columns:1fr!important}
 body.lfp454799-final-polish .lfp454721-grid,body.lfp454799-final-polish .lfp-market-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}
@media(max-width:680px){
 body.lfp454799-final-polish{--sf799-gap:8px;--sf799-pad:11px;--sf799-radius:13px}
 body.lfp454799-final-polish :where(.lfp-front-inner,.lfp-phase4516-page-inner,.lfp454721-market,.lfp454721-product,.lfp454721-checkout-shell,.lfp-catalogue-live){padding-left:7px!important;padding-right:7px!important}
 body.lfp454799-final-polish .lfp454721-grid,body.lfp454799-final-polish .lfp-market-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
 body.lfp454799-final-polish .lfp454721-card-copy,body.lfp454799-final-polish .lfp-market-card-body{padding:8px 8px 5px!important}
 body.lfp454799-final-polish .lfp454721-card-actions,body.lfp454799-final-polish .lfp-market-card-foot{padding:6px 8px 8px!important}
 body.lfp454799-final-polish .lfp454721-checkout-card,body.lfp454799-final-polish .lfp454721-summary{padding:11px!important}
 body.lfp454799-home .lfp779-home-shell>.lfp779-hero.lfp779-reveal{padding:20px 10px!important}
 body.lfp454799-home .lfp779-hero-copy{padding:18px 14px!important;border-radius:16px!important}
}
@media(max-width:390px){body.lfp454799-final-polish .lfp454721-grid,body.lfp454799-final-polish .lfp-market-grid{grid-template-columns:1fr!important}}

@media(print){body.lfp454799-final-polish :where(.lfp-box,.lfp-card,.lfp-market-card,.lfp-product-card,.lfp454721-card,.lfp454721-checkout-card,.lfp454721-summary){background:#fff!important;box-shadow:none!important}}
