.sku-share-card {position:relative;display:flex;flex-direction:column;min-width:0}
.sku-share-card>.product-card,.sku-share-card>.v9-featured-card {flex:1;min-width:0;width:100%}
.sku-share-card-button,.sku-share-close,.sku-share-option,#sku-share-copy {font:inherit;cursor:pointer}
html body.web-order .sku-share-card-button {
 position:absolute;top:10px;right:10px;z-index:2;display:flex;align-items:center;justify-content:center;
 width:44px;min-width:44px;height:44px;min-height:44px;padding:10px;border:1px solid var(--tdf-border,#dce3dd);
 border-radius:50%;background:var(--tdf-surface,#fff);color:var(--tdf-primary,#087a45);box-shadow:0 2px 6px #17221c12;
}
.sku-share-card-button svg,.sku-share-option svg {width:22px;height:22px;flex:none;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
/* The wrapper is the carousel item. Keep the share control over the photo,
   without reserving a column that squeezes the product information. */
html body.web-order .v9-featured-cards .sku-share-card-button {left:10px;right:auto}
@media(min-width:701px){
 .v9-featured-cards .sku-share-card>.v9-featured-card>img {flex:0 0 39%}
 .v9-featured-cards .sku-share-card>.v9-featured-card>div {flex:1 1 0}
}
@media(max-width:700px){
 .v9-featured-cards>.sku-share-card {flex:0 0 max(168px,46%);scroll-snap-align:start}
 .v9-featured-cards .sku-share-card>.v9-featured-card {flex:1 1 auto;scroll-snap-align:none}
 html body.web-order .v9-featured-cards .sku-share-card-button {left:auto;right:10px}
}
.sku-share-panel[hidden],.sku-share-shade[hidden] {display:none!important}
.sku-share-shade {position:fixed;inset:0;z-index:1020;background:var(--tdf-overlay,#17221c80)}
.sku-share-panel {
 position:fixed;inset:0;margin:auto;width:min(460px,calc(100% - 24px));height:fit-content;max-height:calc(100svh - 24px);
 display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:18px;padding:22px;z-index:1030;
 border:1px solid var(--tdf-border,#dce3dd);border-radius:18px;background:var(--tdf-surface,#fff);color:var(--tdf-text,#17221c);
 box-shadow:0 12px 36px #17221c24;
}
.sku-share-heading {display:flex;gap:12px;align-items:flex-start;min-width:0}
.sku-share-heading>div {flex:1;min-width:0}
.sku-share-heading h2 {font-family:inherit;font-size:21px;margin:0 0 8px}
#sku-share-product {margin:0;font-size:13px!important;line-height:1.5;overflow-wrap:anywhere;color:var(--tdf-text-muted,#58645d);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.sku-share-close {min-width:44px;min-height:44px;border:1px solid var(--tdf-border,#dce3dd);border-radius:50%;background:var(--tdf-surface,#fff);color:inherit;font-size:26px!important}
html body.web-order #sku-share-close {min-height:44px;min-width:44px;flex:none}
.sku-share-options {display:grid;gap:10px;overflow:auto;min-height:0;overscroll-behavior:contain;padding:4px}
.sku-share-option {display:flex;align-items:center;gap:12px;padding:12px;min-height:60px;width:100%;border:1px solid var(--tdf-border,#dce3dd);border-radius:10px;background:var(--tdf-surface,#fff);color:var(--tdf-text,#17221c);text-decoration:none;text-align:left}
.sku-share-option>span:nth-child(2) {flex:1;min-width:0}
.sku-share-option strong {display:block;font-size:15px}
.sku-share-option small {display:block;font-size:12px!important;line-height:1.5;color:var(--tdf-text-muted,#58645d)}
.sku-share-option>.sku-platform-logo {display:block;width:32px;height:32px;flex:none;object-fit:contain}
.sku-share-option>svg {width:32px;height:32px;padding:4px;box-sizing:border-box}
.sku-share-option:hover {border-color:var(--tdf-primary,#087a45);background:var(--tdf-soft,#eaf7f0)}
.sku-share-option[aria-disabled=true] {opacity:.5;pointer-events:none}
html body.web-order .sku-share-footer {display:grid;grid-template-columns:minmax(0,1fr);justify-content:stretch;justify-items:stretch;align-items:stretch;gap:8px;min-width:0;width:auto;max-width:none;max-height:45svh;overflow:auto;margin:0;padding:0;border:0;background:transparent;color:var(--tdf-text,#17221c);text-align:left}
.sku-share-link label {display:block;margin-bottom:6px;font-size:13px;font-weight:600}
.sku-share-link>div {display:flex;align-items:stretch;gap:8px;min-width:0}
.sku-share-link input {flex:1;width:0;min-width:0;min-height:44px;border:1px solid var(--tdf-border,#dce3dd);border-radius:8px;padding:8px;font-size:16px!important;background:var(--tdf-page,#f4f7f5);color:inherit}
#sku-share-copy {flex:none;min-height:44px;border:1px solid var(--tdf-primary,#087a45);border-radius:8px;padding:8px 12px;background:var(--tdf-primary,#087a45);color:var(--tdf-on-primary,#fff);font-size:14px!important}
#sku-share-status {margin:0;font-size:13px!important;line-height:1.5;color:var(--tdf-text-muted,#58645d)}
#sku-share-status:empty {display:none}
.sku-share-copy-source {
 position:fixed;top:0;left:0;width:1px;height:1px;min-width:0;min-height:0;margin:0;padding:0;border:0;
 opacity:0;pointer-events:none;font-size:16px;
}
@media(max-width:700px){.sku-share-panel{padding:16px;gap:14px}.sku-share-card-button{top:8px;right:8px}}
@media(max-height:360px){
 .sku-share-panel {padding:8px;gap:6px;max-height:calc(100svh - 16px)}
 .sku-share-heading h2 {font-size:18px;margin:0}
 #sku-share-product {-webkit-line-clamp:1;font-size:12px!important}
 .sku-share-option {min-height:44px;padding:6px 10px}
 .sku-share-option small {display:none}
 .sku-share-options {gap:6px}
 html body.web-order .sku-share-footer {max-height:72px;gap:4px}
 .sku-share-link label {display:none}
 #sku-share-status {font-size:12px!important}
}
@media print{.sku-share-card-button,.sku-share-panel,.sku-share-shade{display:none!important}}

/* Product social row: compact circles, then a distinct saved preference. */
.sku-social {display:flex;flex-wrap:wrap;align-items:center;gap:12px 16px;min-width:0;padding:16px 0 8px;color:var(--tdf-text,#17221c)}
.sku-social[hidden],.sku-like-retry[hidden] {display:none!important}
.sku-social-actions {display:flex;align-items:center;flex-wrap:wrap;gap:8px;min-width:0}
.sku-social-label {font-size:15px!important;line-height:1.5;white-space:nowrap;margin-right:2px}
html body.web-order .sku-social-button {
 display:inline-flex;align-items:center;justify-content:center;flex:none;width:44px;min-width:44px;height:44px;min-height:44px;
 margin:0;padding:10px;border:1px solid transparent;border-radius:50%;font:inherit;line-height:1;cursor:pointer;text-decoration:none;
 background:var(--tdf-soft,#eaf7f0);color:var(--tdf-primary,#087a45);box-shadow:none;
}
.sku-social-button svg,.sku-like svg {width:24px;height:24px;flex:none;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
html body.web-order :is(.sku-social-facebook,.sku-social-zalo) {background:transparent;padding:1px}
.sku-social-button>.sku-platform-logo {display:block;width:40px;height:40px;flex:none;object-fit:contain}
html body.web-order .sku-social-x {background:#17221c;color:#fff}
.sku-social-like {padding-left:16px;border-left:1px solid var(--tdf-border,#dce3dd)}
html body.web-order .sku-like {
 display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:6px 4px;border:0;border-radius:8px;
 background:transparent;color:var(--tdf-primary,#087a45);font:inherit;font-size:15px!important;cursor:pointer;white-space:nowrap;
}
.sku-like svg {width:30px;height:30px;transition:fill .15s ease}
.sku-like[aria-pressed=true] svg {fill:currentColor}
.sku-like[aria-pressed=true] #sku-like-label {font-weight:650}
#sku-like-count {font-variant-numeric:tabular-nums}
.sku-social-note,.sku-social-status {flex-basis:100%;margin:0;font-size:12px!important;line-height:1.5;color:var(--tdf-text-muted,#58645d);overflow-wrap:anywhere}
.sku-social-status:empty {display:none}
#sku-social-share-status:empty {display:block;position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
html body.web-order .sku-like-retry {min-height:44px;padding:8px 12px;border:1px solid var(--tdf-border,#dce3dd);border-radius:8px;background:var(--tdf-surface,#fff);color:var(--tdf-primary,#087a45);font:inherit;font-size:14px!important;cursor:pointer}
.sku-social-button:hover,.sku-like:hover {filter:brightness(.94)}
.sku-social-button:focus-visible,.sku-like:focus-visible,.sku-like-retry:focus-visible {outline:3px solid var(--tdf-primary,#087a45);outline-offset:3px}
.sku-social-button[aria-disabled=true] {opacity:.45;pointer-events:none}
.sku-social-button:disabled,.sku-like:disabled {cursor:wait;opacity:.55}
@media(max-width:700px){
 .sku-social {gap:8px 12px;padding-top:12px}
 .sku-social-actions {flex-basis:100%}
 .sku-social-like {flex-basis:100%;padding-left:0;padding-top:8px;border-left:0;border-top:1px solid var(--tdf-border,#dce3dd)}
}
@media(max-width:360px){
 .sku-social-actions {gap:4px}
 .sku-social-label {font-size:14px!important;margin-right:0}
}
@media(max-width:700px),(max-height:520px){
 /* The existing compact gallery flattens media/purchase into explicit grid
    rows. Reserve a row after thumbnails rather than letting socials fall last. */
 html body.web-order:is(.quick-order-open,.web-order--product) #product-page .product-layout:has(#sku-social) .sku-social {grid-column:1;grid-row:4}
 html body.web-order:is(.quick-order-open,.web-order--product) #product-page .product-layout:has(#sku-social) .product-price-panel {grid-row:5}
 html body.web-order:is(.quick-order-open,.web-order--product) #product-page .product-layout:has(#sku-social) .product-stock {grid-row:6}
 html body.web-order:is(.quick-order-open,.web-order--product) #product-page .product-layout:has(#sku-social) .variant-body {grid-row:7}
 html body.web-order:is(.quick-order-open,.web-order--product) #product-page .product-layout:has(#sku-social) .product-specifications {grid-row:8}
 html body.web-order:is(.quick-order-open,.web-order--product) #product-page .product-layout:has(#sku-social):has(.product-stock:empty) .variant-body {grid-row:6}
 html body.web-order:is(.quick-order-open,.web-order--product) #product-page .product-layout:has(#sku-social):has(.product-stock:empty) .product-specifications {grid-row:7}
}
@media(prefers-reduced-motion:reduce){.sku-like svg{transition:none}}
@media print{.sku-social{display:none!important}}
