.upe-offer {
    display: flex; flex-wrap: wrap; align-items: center; gap: clamp(1.25rem, 3vw, 2.5rem);
    margin: 2rem 0; padding: clamp(1.3rem, 3vw, 2.4rem); border: 1px solid #e0e7eb;
    border-radius: 1.2rem; background: #fffdf8; box-shadow: 0 10px 30px #102e400a;
    color: #102e40; font-family: system-ui, sans-serif; line-height: 1.6;
}
.upe-offer .upe-offer-media { flex: 1 1 12rem; min-width: 0; max-width: 19rem; }
.upe-offer .upe-offer-image { box-sizing: border-box; width: 100%; padding: 1rem; background: #edf5f8; border-radius: 1rem; }
.upe-offer .upe-offer-image img { display: block; width: 100%; height: auto; max-height: 22rem; object-fit: contain; border-radius: .4rem; }
.upe-offer .upe-offer-copy { flex: 2 1 18rem; min-width: 0; }
.upe-offer .upe-offer-label { display: inline-block; font-size: .75rem; font-weight: 750; color: #005e99; text-transform: uppercase; letter-spacing: .04em; }
.upe-offer .upe-offer-copy h2 { margin: .5rem 0 .75rem; color: #102e40; font-size: clamp(1.45rem, 3vw, 2rem); line-height: 1.17; letter-spacing: -.02em; font-family: system-ui, sans-serif; }
.upe-offer .upe-offer-copy p { margin: .7rem 0 1rem; }
.upe-offer .upe-offer-copy ul { padding-left: 1.2rem; margin: 1rem 0; }
.upe-offer .upe-offer-copy li + li { margin-top: .3rem; }
.upe-offer .upe-offer-price { font-size: 1.5rem; font-weight: 750; }
.upe-offer .upe-buy-button { display: inline-flex; gap: 1.2rem; align-items: center; justify-content: space-between; padding: .8rem 1.05rem; min-height: 48px; background: #ffb825; color: #102e40; border-radius: .6rem; text-decoration: none; font-weight: 750; line-height: 1.4; }
.upe-offer .upe-buy-button:hover { background: #ffc94e; box-shadow: 0 6px 18px #102e4014; }
.upe-offer .upe-buy-button:focus-visible { outline: 3px solid #005e99; outline-offset: 4px; }
.upe-offer .upe-offer-copy .upe-offer-disclosure { font-size: .8rem; color: #4b5f6a; margin: .85rem 0 0; }
.upe-offer.upe-offer-hero { background: #edf5f8; padding: clamp(1.4rem, 4vw, 3rem); }
.upe-offer-hero .upe-offer-image { background: #fffdf8; }
.upe-offer.upe-offer-hero .upe-offer-copy h2 { font-size: clamp(1.8rem, 4vw, 2.85rem); }
.upe-sales-page .upe-sales-section { margin-block: 1.5rem; padding: clamp(1.2rem, 3vw, 2rem); background: #fffdf8; border: 1px solid #e0e7eb; border-radius: 1rem; }
.upe-sales-page .upe-sales-section:nth-child(3) { background: #fff4d8; }
@media (max-width: 36rem) { .upe-offer { padding: 1.15rem; } .upe-offer .upe-offer-media { max-width: 100%; } .upe-offer .upe-buy-button { width: 100%; } }
.upe-buy-button .upe-link-mark { margin-left: 0; position: relative; display: inline-block; flex: 0 0 17px; width: 17px; height: 17px; }
.upe-buy-button .upe-link-mark::before, .upe-buy-button .upe-link-mark::after { content: ''; position: absolute; width: 7px; height: 13px; border-radius: 5px; transform: rotate(24deg); }
.upe-buy-button .upe-link-mark::before { background: #005e99; left: 1px; top: 4px; }
.upe-buy-button .upe-link-mark::after { background: #102e40; right: 1px; top: 0; }

/* The recommendation badge is editorial branding, not a test certification. */
.upe-offer { position: relative; padding-top: clamp(1.8rem, 3vw, 2.4rem); }
.upe-offer-badge {
    position: absolute; top: 0; left: 1.25rem; transform: translateY(-50%);
    display: inline-flex; align-items: center; gap: .5rem; max-width: calc(100% - 2.5rem);
    padding: .35rem .75rem; border: 1px solid #f2c760; border-radius: .65rem;
    background: #fff0c7; color: #102e40; font-size: .78rem; font-weight: 750;
    line-height: 1.3; box-shadow: 0 4px 10px #102e400a;
}
.upe-offer .upe-offer-badge img { display: block; width: 18px; height: 22px; max-width: none; border: 0; border-radius: 0; object-fit: contain; }
.upe-offer .upe-offer-copy .upe-offer-checkout { margin: .6rem 0 0; color: #455f6b; font-size: .8rem; line-height: 1.5; }
.upe-offer .upe-offer-copy .upe-offer-disclosure { margin: .55rem 0 0; line-height: 1.5; color: #455f6b; }
.upe-product-photos { position: relative; aspect-ratio: var(--upe-photo-ratio, 1); max-height: 25rem; width: 100%; overflow: hidden; isolation: isolate; }
.upe-product-photo { position: absolute; inset: 0; min-width: 0; min-height: 0; display: grid; place-items: center; visibility: hidden; transform: translateX(110%); pointer-events: none; }
.upe-product-photo.upe-photo-active { visibility: visible; transform: translateX(0); }
.upe-offer .upe-offer-image .upe-product-photo img {
    position: absolute; inset: 0; display: block; width: 100%; height: 100%;
    min-width: 0; min-height: 0; max-width: 100%; max-height: 100%;
    object-fit: contain; object-position: center;
}
.upe-offer .upe-offer-image > img { max-width: 100%; max-height: 25rem; object-fit: contain; }

/* These controls are siblings of the image box, using the home control geometry. */
.upe-photo-controls { display: flex; align-items: center; gap: .65rem; padding: .1rem 0 0; margin: .3rem 0 0; background: transparent; }
.upe-photo-controls .upe-slide-dots { display: flex; align-items: center; gap: .15rem; }
.upe-offer .upe-photo-controls button,
.upe-offer .upe-photo-controls button:is(:hover,:focus,:active) {
    appearance: none; -webkit-appearance: none; box-sizing: border-box; position: relative;
    display: inline-grid; place-items: center; flex: 0 0 auto;
    width: 36px; height: 40px; min-width: 36px; min-height: 40px;
    border: 0; border-radius: 50%; margin: 0; padding: 0; color: #005e99;
    background: transparent !important; background-image: none !important;
    font: 650 .78rem/1 system-ui, sans-serif; box-shadow: none !important; transform: none; cursor: pointer;
}
.upe-offer .upe-photo-controls .upe-photo-playback { width: 32px; min-width: 32px; }
.upe-offer .upe-photo-controls button:focus-visible { outline: 2px solid #005e99; outline-offset: 2px; }
.upe-photo-controls .upe-play-icon { display: block; width: 9px; height: 10px; border: 0; border-left: 2px solid currentColor; border-right: 2px solid currentColor; }
.upe-photo-playback[data-state="play"] .upe-play-icon { width: 0; height: 0; border: 0; border-top: 5px solid transparent; border-bottom: 5px solid transparent; border-left: 8px solid currentColor; }
.upe-photo-controls .upe-photo-dot::before,
.upe-photo-controls .upe-progress-fill {
    content: ''; position: absolute; top: calc(50% - 1.5px); bottom: auto;
    left: 4px; right: 4px; display: block; height: 3px; border: 0; border-radius: 99px; pointer-events: none;
}
.upe-photo-controls .upe-photo-dot::before { background: #102e4033; }
.upe-photo-controls .upe-photo-dot:hover::before { background: #102e4055; }
.upe-photo-controls .upe-progress-fill { transform-origin: left center; background: #ffb825; opacity: 0; }
.upe-photo-controls .upe-photo-dot[aria-current="true"] .upe-progress-fill { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
    .upe-gallery-moving .upe-product-photo { transition: transform .6s cubic-bezier(.22,.61,.36,1); }
    .upe-offer .upe-buy-button { transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease; }
    .upe-offer .upe-buy-button:focus-visible { transform: translateY(-3px); box-shadow: 0 9px 20px #102e4026; }
    .upe-offer .upe-buy-button:focus-visible .upe-link-mark { animation: upe-cta-mark .5s ease both; }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .upe-offer .upe-buy-button:hover { transform: translateY(-3px); box-shadow: 0 9px 20px #102e4026; }
    .upe-offer .upe-buy-button:hover .upe-link-mark { animation: upe-cta-mark .5s ease both; }
}
@media (prefers-reduced-motion: reduce) {
    .upe-photo-playback[data-state="ready"] .upe-play-icon { width: 0; height: 0; border: 0; border-block: 4px solid transparent; border-left: 6px solid currentColor; }
}
@keyframes upe-cta-mark { 0%,100% { transform: translateX(0) rotate(0); } 30% { transform: translateX(2px) rotate(-12deg); } 65% { transform: translateX(1px) rotate(8deg); } }

/* Self-contained utility controls: no inherited button or first-hover geometry. */
.upe-carousel-controls { --upe-control-ink: #c4d5de; --upe-control-track: #ffffff30; --upe-control-focus: #ffb825; }
.upe-photo-controls { --upe-control-ink: #005e99; --upe-control-track: #102e4033; --upe-control-focus: #005e99; }
:is(.upe-carousel-controls,.upe-photo-controls) .upe-slide-dots {
    display: grid !important; grid-auto-flow: column !important; grid-auto-columns: 36px !important;
    align-items: center !important; gap: .15rem !important; flex: 0 0 auto !important;
}
:is(.upe-carousel-controls,.upe-photo-controls) :is(.upe-slide-dot,.upe-playback),
:is(.upe-carousel-controls,.upe-photo-controls) :is(.upe-slide-dot,.upe-playback):is(:hover,:focus,:active,:disabled) {
    all: unset !important;
    box-sizing: border-box !important; appearance: none !important;
    position: relative !important; display: grid !important; place-items: center !important;
    width: 36px !important; min-width: 36px !important; max-width: 36px !important;
    height: var(--upe-control-height,40px) !important; min-height: var(--upe-control-height,40px) !important;
    flex: 0 0 36px !important; margin: 0 !important; padding: 0 !important;
    border: 0 !important; background: transparent !important; box-shadow: none !important;
    color: var(--upe-control-ink) !important; opacity: 1 !important; cursor: pointer !important;
    transform: none !important; translate: none !important; rotate: none !important; scale: none !important;
    animation: none !important; transition: none !important;
}
:is(.upe-carousel-controls,.upe-photo-controls) .upe-playback,
:is(.upe-carousel-controls,.upe-photo-controls) .upe-playback:is(:hover,:focus,:active,:disabled) {
    width: 32px !important; min-width: 32px !important; max-width: 32px !important; flex-basis: 32px !important;
}
:is(.upe-carousel-controls,.upe-photo-controls) :is(.upe-slide-dot,.upe-playback):focus-visible {
    outline: 2px solid var(--upe-control-focus) !important; outline-offset: 2px !important;
}
:is(.upe-carousel-controls,.upe-photo-controls) .upe-play-icon {
    position: absolute !important; inset: 50% auto auto 50% !important;
    display: block !important; width: 10px !important; height: 10px !important;
    margin: 0 !important; padding: 0 !important; border: 0 !important;
    transform: translate(-50%,-50%) !important; animation: none !important; transition: none !important;
}
:is(.upe-carousel-controls,.upe-photo-controls) .upe-play-icon::before,
:is(.upe-carousel-controls,.upe-photo-controls) .upe-play-icon::after { content: none !important; display: none !important; }
:is(.upe-carousel-controls,.upe-photo-controls) .upe-play-icon svg { display: block !important; width: 10px !important; height: 10px !important; fill: currentColor; }
.upe-play-icon .upe-glyph-play { display: none; }
.upe-playback[data-state="play"] .upe-glyph-pause { display: none; }
.upe-playback[data-state="play"] .upe-glyph-play { display: block; }
:is(.upe-carousel-controls,.upe-photo-controls) .upe-slide-dot::before,
:is(.upe-carousel-controls,.upe-photo-controls) .upe-progress-fill {
    position: absolute !important; inset: calc(50% - 1.5px) 4px auto 4px !important;
    display: block !important; height: 3px !important; border: 0 !important;
    padding: 0 !important; margin: 0 !important; border-radius: 99px !important; pointer-events: none;
}
:is(.upe-carousel-controls,.upe-photo-controls) .upe-slide-dot::before { content: ''; background: var(--upe-control-track) !important; }
/* Only this fill is allowed to transform: it represents remaining reading time. */
:is(.upe-carousel-controls,.upe-photo-controls) .upe-progress-fill { transform-origin: left center; }
@media (max-width: 43rem) { :is(.upe-carousel-controls,.upe-photo-controls) { --upe-control-height: 44px; } }
@media (prefers-reduced-motion: reduce) {
    .upe-playback:is([data-state="ready"],[data-state="pending"]) .upe-glyph-pause { display: none; }
    .upe-playback:is([data-state="ready"],[data-state="pending"]) .upe-glyph-play { display: block; }
}

/* Horizontal gestures on photos keep vertical page scrolling and pinch zoom. */
.upe-product-photos { touch-action: pan-y pinch-zoom; user-select: none; -webkit-user-select: none; }
.upe-product-photos img { -webkit-user-drag: none; }

/* Compact local-listing notice. Existing product card and purchase-button styles are retained. */
.upe-offer:has(>.upe-market-info){position:relative;padding-bottom:3.2rem}
.upe-offer>.upe-market-info{position:absolute;left:.5rem;right:.5rem;bottom:.25rem;display:flex;align-items:center;justify-content:flex-end;gap:.2rem;pointer-events:none}
.upe-offer .upe-market-info-button{pointer-events:auto;flex:0 0 44px;display:inline-flex;align-items:center;justify-content:center;width:44px;min-width:44px;height:44px;min-height:44px;margin:0;padding:0;border:0;border-radius:.6rem;background:transparent;color:#4b5f6a;box-shadow:none;cursor:pointer;line-height:1}
.upe-offer .upe-market-info-button:hover,.upe-offer .upe-market-info-button:active,.upe-offer .upe-market-info-button:focus{background:transparent;color:#4b5f6a;box-shadow:none}
.upe-offer .upe-market-info-button:focus-visible{outline:3px solid #005e99;outline-offset:2px}
.upe-offer .upe-market-tooltip{order:-1;position:static;flex:0 1 auto;max-width:calc(100% - 48px);padding:0;border:0;border-radius:0;background:transparent;color:#4b5f6a;font:400 .7rem/1.4 system-ui,sans-serif;letter-spacing:0;text-transform:none;text-align:right;white-space:normal;overflow-wrap:anywhere;box-shadow:none;pointer-events:none}
.upe-offer .upe-market-tooltip[hidden]{display:none!important}

