.wcsu-upsells {
    --wcsu-ink: #17211b;
    --wcsu-muted: #68756d;
    --wcsu-line: rgba(23, 33, 27, 0.12);
    --wcsu-surface: #fffaf0;
    --wcsu-accent: #2f6f4e;
    --wcsu-accent-dark: #1f5139;
    --wcsu-badge: #e35d36;
    margin: 28px 0;
    padding: clamp(18px, 3vw, 28px);
    border-radius: 24px;
    border: 1px solid var(--wcsu-line);
    background:
        radial-gradient(circle at top right, rgba(47, 111, 78, 0.12), transparent 36%),
        linear-gradient(135deg, #fffdf8 0%, #f3f7ef 100%);
    box-shadow: 0 18px 50px rgba(23, 33, 27, 0.08);
    color: var(--wcsu-ink);
    clear: both;
}

.wcsu-upsells *,
.wcsu-upsells *::before,
.wcsu-upsells *::after {
    box-sizing: border-box;
}

.wcsu-head {
    margin-bottom: 18px;
}

.wcsu-kicker {
    display: inline-flex;
    margin-bottom: 8px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(47, 111, 78, 0.1);
    color: var(--wcsu-accent-dark);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.wcsu-head h2 {
    margin: 0 0 6px;
    font-size: clamp(22px, 3vw, 32px);
    line-height: 1.1;
    color: var(--wcsu-ink);
}

.wcsu-head p {
    max-width: 660px;
    margin: 0;
    color: var(--wcsu-muted);
}

.wcsu-list--cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 14px;
}

.wcsu-product {
    overflow: hidden;
    border: 1px solid var(--wcsu-line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 12px 28px rgba(23, 33, 27, 0.07);
}

.wcsu-product__image {
    display: block;
    aspect-ratio: 1 / 0.78;
    background: #f6f0e5;
    overflow: hidden;
}

.wcsu-product__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.28s ease;
}

.wcsu-product:hover .wcsu-product__image img {
    transform: scale(1.04);
}

.wcsu-product__body {
    padding: 14px;
}

.wcsu-product h3 {
    margin: 8px 0 6px;
    font-size: 16px;
    line-height: 1.25;
}

.wcsu-product h3 a,
.wcsu-checkbox-item a {
    color: inherit;
    text-decoration: none;
}

.wcsu-price {
    margin-bottom: 12px;
    color: var(--wcsu-muted);
}

.wcsu-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 4px 9px;
    border-radius: 999px;
    background: rgba(227, 93, 54, 0.11);
    color: var(--wcsu-badge);
    font-size: 12px;
    font-weight: 800;
}

.wcsu-add-single,
.wcsu-add-selected,
.wcsu-modal-open,
.wcsu-product-link {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 42px;
    width: 100%;
    border: 0;
    border-radius: 999px;
    padding: 10px 16px;
    background: var(--wcsu-accent);
    color: #fff;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.18s ease, background 0.18s ease, opacity 0.18s ease;
}

.wcsu-product-link {
    background: #e6eadf;
    color: var(--wcsu-ink);
}

.wcsu-add-single:hover,
.wcsu-add-selected:hover,
.wcsu-modal-open:hover {
    background: var(--wcsu-accent-dark);
    color: #fff;
    transform: translateY(-1px);
}

.wcsu-add-single:disabled,
.wcsu-add-selected:disabled {
    opacity: 0.7;
    cursor: wait;
}

.wcsu-list--checkbox {
    display: grid;
    gap: 10px;
    margin-bottom: 14px;
}

.wcsu-checkbox-item {
    display: grid;
    grid-template-columns: auto 64px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--wcsu-line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.88);
    cursor: pointer;
}

.wcsu-checkbox-item.is-disabled {
    opacity: 0.7;
    cursor: default;
}

.wcsu-checkbox-item input {
    width: 20px;
    height: 20px;
    accent-color: var(--wcsu-accent);
}

.wcsu-checkbox-item__image img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 12px;
}

.wcsu-checkbox-item__content {
    display: grid;
    gap: 4px;
}

.wcsu-checkbox-item__content strong {
    color: var(--wcsu-ink);
}

.wcsu-checkbox-item__content > span:not(.wcsu-badge) {
    color: var(--wcsu-muted);
}

.wcsu-modal-open {
    max-width: 300px;
}

.wcsu-modal[aria-hidden="true"] {
    display: none;
}

.wcsu-modal[aria-hidden="false"] {
    position: fixed;
    z-index: 999999;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 20px;
}

.wcsu-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 22, 18, 0.62);
    backdrop-filter: blur(4px);
}

.wcsu-modal__panel {
    position: relative;
    z-index: 1;
    width: min(880px, 100%);
    max-height: min(760px, 88vh);
    overflow: auto;
    padding: clamp(18px, 3vw, 28px);
    border-radius: 24px;
    background: #fffdf8;
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.28);
}

.wcsu-modal__close {
    margin: 0 0 16px auto;
    display: flex;
    border: 0;
    border-radius: 999px;
    padding: 8px 12px;
    background: #edf1e8;
    color: var(--wcsu-ink);
    cursor: pointer;
}

body.wcsu-modal-active {
    overflow: hidden;
}

.wcsu-message {
    margin-top: 14px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(47, 111, 78, 0.1);
    color: var(--wcsu-accent-dark);
    font-weight: 700;
}

.wcsu-message:empty,
.wcsu-message[hidden] {
    display: none;
}

.wcsu-message.is-error {
    background: rgba(227, 93, 54, 0.1);
    color: #9a341f;
}

@media (max-width: 640px) {
    .wcsu-upsells {
        border-radius: 18px;
    }

    .wcsu-list--cards {
        grid-template-columns: 1fr;
    }

    .wcsu-checkbox-item {
        grid-template-columns: auto 54px minmax(0, 1fr);
    }

    .wcsu-checkbox-item > a {
        grid-column: 1 / -1;
    }

    .wcsu-checkbox-item__image img {
        width: 54px;
        height: 54px;
    }
}
