[data-gallery]{position:relative;touch-action:pan-y;isolation:isolate}
/* Above the stretched card link, which otherwise intercepts image gestures. */
.promotion-card [data-gallery]{z-index:2}
[data-gallery] img[data-gallery-image][hidden]{display:none!important}
[data-gallery] img[data-gallery-image]{object-fit:contain}
.gallery-arrow{position:absolute;top:50%;transform:translateY(-50%);z-index:2;display:flex;align-items:center;justify-content:center;width:32px;height:38px;min-height:0;padding:0;border:1px solid #ead4c1;border-radius:12px;background:#fffaf2e8;color:#9e4c14;font:26px/1 sans-serif;cursor:pointer;box-shadow:0 2px 8px #63320b12}
.gallery-prev{left:6px}.gallery-next{right:6px}.gallery-arrow:hover{background:#ffe6d1}.gallery-arrow:focus-visible,[data-gallery]:focus-visible,.gallery-dots button:focus-visible{outline:2px solid #c6631e;outline-offset:2px}
.gallery-dots{position:absolute;bottom:8px;left:50%;transform:translateX(-50%);display:flex;gap:0;z-index:2;background:#fffaf2e8;border-radius:20px;padding:0 3px}
.gallery-dots button{appearance:none;width:26px;height:26px;min-height:0;border:0;padding:0;background:transparent;display:grid;place-items:center;cursor:pointer;border-radius:50%}
.gallery-dots button:before{content:'';width:6px;height:6px;border-radius:50%;background:#cdbbac}.gallery-dots button[aria-pressed=true]:before{background:#dd701d;width:16px;border-radius:4px}
.gallery-announcement{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.photo-ai-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.photo-ai-pair figure{margin:0;min-width:0}.photo-ai-pair figure[hidden]{display:none!important}.photo-ai-pair figcaption{font-size:12px;line-height:1.5;color:#657168;margin:6px 0}.photo-ai-pair .image-ai-preview{width:100%;max-height:220px}

.producer-detail-gallery{width:100%;max-width:320px;border-radius:18px;overflow:hidden;background:#fcf9f5}.producer-detail-gallery .producer-detail-photo{width:100%;max-width:100%;height:260px;object-fit:contain;display:block}
@media(max-width:800px){
 [data-gallery] .gallery-arrow{display:none!important}
 body .product-card.promotion-card .product-visual[data-gallery]{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) 28px;align-items:stretch;justify-items:center}
 body .product-card.promotion-card .product-visual[data-gallery]>img{grid-column:1;grid-row:1;width:100%;height:100%;min-height:0;max-height:100%;padding:6px;object-fit:contain}
 [data-gallery] .gallery-dots{position:static;transform:none;justify-content:center;background:transparent;padding:0;min-height:28px}
 body .product-card.promotion-card .product-visual[data-gallery]>.gallery-dots{grid-column:1;grid-row:2}
 body .product-card.promotion-card .product-visual .favorite-button{width:30px;height:30px;min-height:30px;padding:6px;top:4px;right:4px;border-radius:50%;box-shadow:0 1px 4px #29332d0a}
 body .product-card.promotion-card .product-visual .favorite-button svg{width:17px;height:17px}
 body .product-card.promotion-card .product-visual .stock-badge{top:4px;left:4px;min-width:25px;height:25px;max-width:calc(100% - 42px);padding:4px 5px;border-radius:9px;font-size:10px;line-height:15px}
}
/* The photo fills the card width; badges and controls get their own lower row. */
body .product-card.promotion-card .product-visual,
body .product-card.promotion-card .product-visual[data-gallery]{width:100%;margin:0;aspect-ratio:auto;height:auto;display:flex;flex-direction:column;align-items:stretch;border-radius:17px 17px 0 0;overflow:hidden}
body .product-card.promotion-card .product-photo-link{display:block;position:relative;z-index:2;width:100%;aspect-ratio:1;min-width:0;overflow:hidden;touch-action:pan-y}
body .product-card.promotion-card .product-photo-link img{display:block;width:100%;height:100%;max-width:100%;max-height:100%;padding:0;object-fit:contain}
body .product-card.promotion-card .card-image-toolbar{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:4px;min-height:42px;padding:3px 8px;position:relative;z-index:3;background:var(--panel-bg)}
body .product-card.promotion-card .card-image-toolbar:has(.gallery-dots){grid-template-columns:1fr auto 1fr}
body .product-card.promotion-card .card-image-toolbar .stock-badge{position:static;grid-column:1;grid-row:1;justify-self:start;max-width:100%;min-width:25px;height:28px;padding:5px 6px;font-size:10px;line-height:16px}
body .product-card.promotion-card .card-image-toolbar .favorite-button{position:static;grid-row:1;grid-column:-2/-1;justify-self:end;width:34px;height:34px;min-height:34px;margin:0;padding:7px}
body .product-card.promotion-card .card-image-toolbar .gallery-dots{position:static;grid-column:2;grid-row:1;transform:none;min-height:28px;padding:0;background:transparent;justify-content:center}
body .product-card.promotion-card .card-image-toolbar .gallery-arrow{display:none}
@media(max-width:800px){
 body .product-card.promotion-card .card-image-toolbar{min-height:34px;padding:2px 6px}
 body .product-card.promotion-card .card-image-toolbar .favorite-button{width:28px;height:28px;min-height:28px;padding:5px}
 body .product-card.promotion-card .card-image-toolbar .stock-badge{height:25px;padding:4px 5px;line-height:15px}
 body .product-card.promotion-card .product-info h2{display:block;min-width:0;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 body .product-card.promotion-card .product-info h2 .promotion-link{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
}
/* Keep existing badge sizes, move only their positions above the photograph. */
body .product-card.promotion-card .card-image-toolbar{position:static;z-index:auto;background:transparent}
body .product-card.promotion-card .card-image-toolbar .stock-badge{position:absolute;top:6px;left:6px;bottom:auto;z-index:3}
body .product-card.promotion-card .card-image-toolbar .favorite-button{position:absolute;top:6px;right:6px;bottom:auto;z-index:3}
body .product-card.promotion-card .card-image-toolbar:not(:has(.gallery-dots)){min-height:0;height:0;padding:0}
/* Soft raised badges blend into the photo without changing their dimensions. */
body .product-card.promotion-card .card-image-toolbar .stock-badge,
body .product-card.promotion-card .card-image-toolbar .favorite-button{
 background:linear-gradient(145deg,#fffffff5,#fff4e8ed);
 border-color:#f0d5bc;
 box-shadow:0 7px 15px #5933154d,0 3px 5px #59331533,inset 0 2px 0 #ffffff,inset 0 -1px 2px #c38e6133;
 -webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);
}
body .product-card.promotion-card .card-image-toolbar .favorite-button:hover{
 box-shadow:0 9px 18px #59331559,0 3px 6px #5933153d,inset 0 2px 0 #ffffff;
}
body .promotion-detail .account-profile>h1,
body .promotion-detail .detail-copy-heading h2{
 font-family:var(--ui-font,Arial,sans-serif);font-size:19px;font-weight:700;
 line-height:1.4;color:#343b38;letter-spacing:normal;
}
body .promotion-detail .account-profile .detail-payout,
body .promotion-detail .account-profile .detail-payout:hover{
 background:#ED6D0D;background-image:none;color:#fff!important;
 -webkit-text-fill-color:#fff;border:1px solid #e66a0c;
 font-weight:700;box-shadow:0 3px 9px #ed6d0d24;
}
@media(max-width:800px){
 body .promotion-detail .account-profile>h1,
 body .promotion-detail .detail-copy-heading h2{font-size:17px}
}
/* One visual size and finish for the amount and receipt action in details. */
body .promotion-detail .account-profile .detail-payout,
body .promotion-detail .account-profile .detail-primary-action .receipt-banner{
 display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;
 width:180px;max-width:100%;min-width:0;height:40px;min-height:40px;padding:8px 12px;
 border:1px solid #f47a16;border-radius:14px;
 background:linear-gradient(180deg,#ffa447,#f47a16);background-clip:border-box;
 color:#fff!important;-webkit-text-fill-color:#fff;
 font-family:var(--ui-font,Arial,sans-serif);font-size:14px;font-weight:650;
 line-height:1.2;letter-spacing:normal;white-space:nowrap;text-align:center;
 box-shadow:0 3px 9px #ed6d0d24;
}
body .promotion-detail .account-profile .detail-payout:hover,
body .promotion-detail .account-profile .detail-primary-action .receipt-banner:hover{background:#f58a1c;color:#fff!important}
body .promotion-detail .account-profile .detail-primary-action .receipt-banner:active{background:#ef790d}
@media(max-width:800px){
 body .promotion-detail .account-profile .detail-payout,
 body .promotion-detail .account-profile .detail-primary-action .receipt-banner{height:38px;min-height:38px}
}

.photo-ai-pair{grid-template-columns:repeat(3,minmax(0,1fr))}@media(max-width:600px){.photo-ai-pair{grid-template-columns:1fr}.photo-ai-pair .image-ai-preview{max-height:260px}}
/* Size the details box to its image instead of stretching to the text column. */
body .promotion-detail-grid>.detail-photo{
 align-self:start;width:100%;min-width:0;height:auto;padding:0;overflow:hidden;
}
body .promotion-detail-grid>.detail-photo>img[data-gallery-image]{
 display:block;width:100%;height:auto;aspect-ratio:1;object-fit:contain;margin:0;padding:0;
}
body .promotion-detail-grid>.detail-photo>.gallery-dots{
 position:static;transform:none;display:flex;justify-content:center;
 min-height:30px;margin:0;padding:0;background:transparent;
}
