.plus-upsell-actions {
    display: flex;
    flex: 1 1 100%;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    min-width: 0;
    text-align: left;
}
.plus-upsell-learn { align-self: center; font-size: 12px; text-decoration: underline; }

.plus-upsell-image { display: block; width: 100%; height: auto; border-radius: var(--radius-large); }
.plus-upsell-accessible-label { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.plus-upsell-popup .plus-upsell-actions { text-align: center; }
.plus-upsell-popup .plus-upsell-actions sl-button { width: 100%; }

/* Placeholder sized to the artwork (1006x1031) so the popup keeps its size while the image loads. */
.plus-upsell-image-frame { position: relative; width: 100%; aspect-ratio: 1006 / 1031; border-radius: var(--radius-large); overflow: hidden; background: rgba(127, 127, 127, 0.12); animation: plus-upsell-pulse 1.4s ease-in-out infinite; }
.plus-upsell-image-frame:has(.is-loaded) { animation: none; background: none; }
.plus-upsell-image-frame .plus-upsell-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; border-radius: 0; opacity: 0; transition: opacity 0.2s ease; }
.plus-upsell-image-frame .plus-upsell-image.is-loaded { opacity: 1; }
@keyframes plus-upsell-pulse { 50% { opacity: 0.6; } }
@media (prefers-reduced-motion: reduce) { .plus-upsell-image-frame { animation: none; } }

/* "See it in action": the Arcade demo takes the artwork's place, same size so the popup doesn't jump. */
.plus-upsell-demo { position: relative; width: 100%; aspect-ratio: 1006 / 1031; border-radius: var(--radius-large); overflow: hidden; }
.plus-upsell-demo iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; color-scheme: light; }
.plus-upsell-demo[hidden], .plus-upsell-image-frame[hidden] { display: none; }
.plus-upsell-links { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 6px 18px; }
.plus-upsell-links .plus-upsell-learn { align-self: auto; }
.plus-upsell-demo-toggle { border: 0; background: none; padding: 0; color: var(--Purple); font: inherit; font-size: 15px; font-weight: var(--fontweight_600, 600); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* post-yarn-checkout upsell (checkout_popup.js openYarnPlusUpsell): line under the CTA */
.yarn-plus-upsell-note { text-align: center; font-size: 13px; font-weight: var(--fontweight_600, 600); color: var(--Purple); }
