.deal-card.is-expired{background:var(--tone-252529, #252529);border-color:var(--tone-55555d, #55555d)}
.is-expired .card-image,.is-expired .detail-image{filter:grayscale(1)}
.is-expired .discount,.is-expired .price-row strong,.is-expired .detail-price strong{color:var(--tone-cccccc, #ccc);background:transparent}
.is-expired .card-cta{background:var(--tone-414147, #414147);color:var(--tone-eeeeee, #eee);border-color:var(--tone-64646b, #64646b)}
.deal-detail.is-expired{background:var(--tone-252529, #252529);border:1px solid var(--tone-55555d, #55555d);border-radius:22px;padding:24px}
.expired-label{display:inline-block;background:var(--tone-45454e, #45454e);color:var(--tone-ffffff, #fff);padding:6px 12px;border-radius:8px;font-weight:700;margin:0 0 12px}
.deal-interactions{display:flex;align-items:flex-start;gap:12px;flex-wrap:wrap;margin:16px 0}
.deal-vote{flex:1 1 160px;min-width:0;margin:0}
.vote-controls{display:flex;align-items:center;border:1px solid var(--tone-57505f, #57505f);border-radius:12px;background:var(--tone-141318, #141318);max-width:220px;overflow:hidden}
.vote-controls button{border:0;background:transparent;color:var(--tone-ffffff, #fff);min-width:44px;min-height:44px;font-size:23px;cursor:pointer;padding:6px}
.vote-controls button:hover:not(:disabled){background:var(--tone-332640, #332640)}
.vote-controls button:disabled{cursor:default;opacity:1;background:transparent;outline:none;box-shadow:none}
.temperature{flex:1;text-align:center;font-size:20px;font-weight:800;color:var(--tone-f49ad9, #f49ad9);min-width:55px}
.vote-status{display:block;font-size:11px;line-height:1.4;color:var(--tone-c0b9ca, #c0b9ca);margin-top:6px;max-width:260px}
.deal-share{position:relative;max-width:100%}
.deal-share [data-native-share]{display:flex;align-items:center;justify-content:center;width:48px;min-height:44px;padding:0;border:1px solid var(--tone-766984, #766984);border-radius:12px;background:var(--tone-201827, #201827);color:var(--tone-ffffff, #fff);cursor:pointer}
.deal-share [data-native-share]:hover{background:var(--tone-332640, #332640)}
.share-status:not(:empty){position:absolute;right:0;top:100%;width:max-content;max-width:190px;padding:6px 9px;background:var(--tone-241a2d, #241a2d);color:var(--tone-ffffff, #fff);border-radius:6px;font-size:12px;z-index:5}
.is-expired .badges{filter:grayscale(1)}
.deal-posted{font-size:12px;line-height:1.5;color:var(--tone-bcb5c7, #bcb5c7);margin:0 0 12px}
.deal-interactions{flex-direction:column}
.deal-interactions .deal-vote{flex:0 1 auto}
.deal-card .share-on-image{position:absolute;right:12px;top:198px;z-index:3}
.deal-interactions :focus-visible{outline:2px solid var(--tone-d0a3ff, #d0a3ff);outline-offset:3px}
@media(max-width:600px){.deal-detail.is-expired{padding:14px}.deal-interactions{gap:8px}.share-options{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:380px){.deal-grid{grid-template-columns:1fr}}

/* Card voting: flame, temperature, ice under the save button. */
.deal-card .card-image{position:relative;min-height:254px}
.deal-card .card-image>a{display:block;height:100%}
.deal-card .card-image img{padding:18px 78px 18px 20px}
.deal-card .favorite{top:12px;right:12px;width:48px;height:44px;font-size:28px;z-index:3}
.deal-card .vote-on-image{position:absolute;top:66px;right:12px;width:48px;z-index:3}
.vote-on-image .vote-controls{flex-direction:column;width:48px;max-width:none;border-color:var(--tone-766984, #766984);background:var(--tone-201827, #201827);box-shadow:0 3px 12px var(--tone-00000033, #0003)}
.vote-on-image .vote-controls button{width:46px;height:44px;flex:none;padding:4px;font-size:23px}
.vote-on-image .temperature{display:block;min-width:0;width:46px;line-height:36px;min-height:36px;font-size:15px;overflow-wrap:anywhere}
.vote-on-image .vote-status{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.vote-on-image.vote-error .vote-status{clip:auto;right:0;top:128px;width:200px;height:auto;white-space:normal;padding:8px;border:1px solid var(--tone-bda0cf, #bda0cf);border-radius:8px;background:var(--tone-241a2d, #241a2d);color:var(--tone-ffffff, #fff);z-index:4}
.vote-on-image :focus-visible{outline:2px solid var(--tone-f9c4ed, #f9c4ed);outline-offset:-3px}
@media(max-width:767px){
 .deal-grid{grid-template-columns:minmax(0,1fr);gap:20px}
 .deal-card .card-image{height:clamp(264px,64vw,350px);min-height:264px}
 .deal-card .card-body{padding:18px}
 .deal-card .card-meta{flex-direction:row;align-items:center;justify-content:space-between;min-height:0;font-size:12px;gap:8px;margin-bottom:12px}
 .deal-card .tag{font-size:10px;padding:3px 7px}
 .deal-card h3{font-size:20px;line-height:1.3;min-height:0;margin-bottom:12px}
 .deal-card .badges{font-size:11px;gap:8px}
 .deal-card .price-row{gap:10px;margin-top:14px}
 .deal-card .price-row strong{font-size:30px}
 .deal-card .price-row del{font-size:14px}
 .deal-card .shipping{font-size:12px;margin-bottom:12px}
 .deal-card .card-cta{font-size:13px;min-height:46px;padding:12px}
 .deal-card .discount{left:12px;top:12px;font-size:14px;padding:6px 10px}
 .deal-card .share-options{grid-template-columns:repeat(2,minmax(0,1fr))}
}

.share-status:not(:empty){white-space:normal;width:220px;max-width:calc(100vw - 64px);line-height:1.5;border:1px solid var(--tone-766984, #766984);box-shadow:0 4px 16px var(--tone-00000066, #0006)}

/* Card actions at the lower right; the save heart remains at the top. */
.deal-card .vote-on-image{top:auto;bottom:64px}
.deal-card .share-on-image{top:auto;bottom:12px}
.vote-on-image.vote-error .vote-status{top:auto;bottom:0;right:56px;max-width:calc(100vw - 140px)}
.social-share-dialog{width:calc(100% - 32px);max-width:420px;max-height:calc(100dvh - 32px);overflow:auto;padding:24px;background:var(--tone-1b1722, #1b1722);color:var(--tone-ffffff, #fff);border:1px solid var(--tone-766984, #766984);border-radius:20px;box-shadow:0 16px 64px var(--tone-00000088, #0008)}
.social-share-dialog::backdrop{background:var(--tone-00000099, #0009)}
.social-share-dialog h2{font-size:24px;margin-bottom:18px}
.social-share-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:16px}
.social-share-links a,.social-share-links button{display:flex;justify-content:center;align-items:center;min-height:48px;padding:10px;border:1px solid var(--tone-766984, #766984);border-radius:10px;background:var(--tone-241a2d, #241a2d);color:var(--tone-ffffff, #fff);font:inherit;text-decoration:none;cursor:pointer}
.social-share-links a:hover,.social-share-links button:hover{background:var(--tone-403050, #403050)}
.social-share-links input{grid-column:1/-1;width:100%;min-width:0}
.social-share-dialog [role=status]{font-size:13px}
.social-share-dialog>[data-close]{width:100%}

/* One visual treatment for image controls on cards and detail pages. */
.detail-image{position:relative}
.detail-image>img{padding-right:82px}
.detail-image .vote-on-image{position:absolute;right:12px;bottom:64px;width:48px;z-index:3}
.detail-image .share-on-image{position:absolute;right:12px;bottom:12px;width:48px;z-index:3}
.vote-on-image .vote-controls,.share-on-image [data-native-share]{background:linear-gradient(155deg,var(--tone-30213d, #30213d),var(--tone-19151f, #19151f));border:1px solid var(--tone-aa83c4, #aa83c4);border-radius:16px;box-shadow:0 4px 14px var(--tone-170d2633, #170d2633),inset 0 1px 0 var(--tone-ffffff12, #ffffff12)}
.vote-on-image .temperature{color:var(--tone-ffafe3, #ffafe3);font-weight:800}
.share-on-image [data-native-share]{color:var(--tone-e8d5ff, #e8d5ff)}
.vote-on-image .vote-controls button:hover:not(:disabled),.share-on-image [data-native-share]:hover{background:var(--tone-493057, #493057)}
.vote-on-image .vote-controls button:disabled{background:transparent;opacity:1;outline:none;box-shadow:none;cursor:default}
.share-on-image [data-native-share]:focus-visible{outline:2px solid var(--tone-f9c4ed, #f9c4ed);outline-offset:2px}
@media(max-width:640px){.detail-image>img{padding:16px 78px 16px 16px}.detail-image{min-height:270px}}
