/* Cross-sell plugin — structural styles. Colours come from the active theme's tokens. */
.xs-box {
    --xs-primary: var(--color-theme-primary, var(--theme-primary, #4f46e5));
    --xs-on-primary: var(--color-theme-on-primary, var(--theme-on-primary, #fff));
    --xs-text: var(--color-theme-text, var(--theme-text, #18181b));
    --xs-muted: var(--color-theme-muted, var(--theme-text-muted, #71717a));
    --xs-border: var(--color-theme-border, var(--theme-border, #e4e4e7));
    --xs-surface: var(--color-theme-surface, var(--theme-surface, #fff));
    margin-top: 1.5rem; padding: 1.25rem; border: 1px solid var(--xs-border); border-radius: 1rem; background: var(--xs-surface); color: var(--xs-text);
}
.xs-box * { box-sizing: border-box; }
.xs-thank_you { max-width: 56rem; margin: 2rem auto; }
.xs-box h3 { margin: 0 0 .9rem; font-family: var(--font-title, inherit); font-size: 1.15rem; font-weight: 600; }
.xs-box { container-type: inline-size; }
.xs-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: .75rem; }
.xs-thank_you .xs-list { grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.xs-item { display: flex; align-items: center; gap: .75rem; min-width: 0; }
.xs-image { flex: none; display: block; width: 3.75rem; }
.xs-box .xs-image img { display: block; width: 3.75rem; height: 3.75rem; max-width: none; border-radius: .6rem; object-fit: cover; }
.xs-info { display: flex; flex: 1; flex-direction: column; min-width: 0; font-size: .875rem; }
.xs-headline { color: #dc2626; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.xs-name { overflow: hidden; color: inherit; font-weight: 600; text-decoration: none; white-space: nowrap; text-overflow: ellipsis; }
.xs-price del { margin-right: .35rem; color: var(--xs-muted); }
.xs-add { flex: none; padding: .45rem .9rem; border: 1px solid var(--xs-primary); border-radius: 999px; background: transparent; color: var(--xs-primary); font: inherit; font-size: .8125rem; font-weight: 600; cursor: pointer; white-space: nowrap; }
.xs-add:hover { background: var(--xs-primary); color: var(--xs-on-primary); }
.xs-note { margin: 1rem 0 0; color: var(--xs-muted); font-size: .8125rem; }
.xs-note a { color: var(--xs-primary); }

/* Narrow columns (checkout sidebar): the button moves under the name instead of overflowing. */
@container (max-width: 22rem) {
    .xs-item { flex-wrap: wrap; }
    .xs-info { flex-basis: calc(100% - 4.5rem); }
    .xs-add { margin-left: 4.5rem; padding: .35rem .8rem; }
}
