.lwa-upsell-shell {
    margin: 1.25rem 0;
    max-width: 560px;
}

body.woocommerce-cart .lwa-upsell-shell,
body.woocommerce-checkout .lwa-upsell-shell {
    max-width: none;
}

.lwa-upsell {
    font-family: 'Space Grotesk', 'Sora', sans-serif;
    padding: 1.25rem;
    border-radius: 14px;
    border: 1px solid #0f0f0f;
    background: #fff;
    color: inherit;
}

.lwa-upsell__heading {
    display: flex;
    gap: 0.5rem;
    align-items: baseline;
    justify-content: space-between;
    margin: 0 0 0.65rem;
}

.lwa-upsell__heading h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
}

.lwa-upsell__badge {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: #6f6f6f;
}

.lwa-upsell__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.lwa-card {
    border: 1px solid #e3e8f3;
    border-radius: 10px;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    background: #fff;
    box-shadow: 0 6px 18px rgba(15, 15, 15, 0.04);
}

.lwa-card.is-selected {
    border-color: #cce9d6;
    background: #f1fff6;
}

.lwa-card__thumb {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
    display: block;
    background: #f7f7f7;
}

.lwa-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lwa-card__body {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.lwa-card__title {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0;
}

.lwa-card__price {
    font-weight: 600;
    color: #111;
}

.lwa-card__button {
    width: 100%;
    border-radius: 999px;
    border: 1px solid #cddaf4;
    padding: 0.45rem 0.75rem;
    text-align: center;
    font-weight: 700;
    color: #1f62d3;
    background: #eaf2ff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    transition: all 0.2s ease;
    min-width: 110px;
}

.lwa-card__button:hover {
    border-color: #a5bdef;
    background: #dce9ff;
}

.lwa-card__button.is-disabled,
.lwa-card__button.is-disabled:hover {
    border-color: #0f7a3a !important;
    background: #0f7a3a !important;
    color: #fff !important;
    cursor: default;
    box-shadow: 0 10px 25px -18px rgba(15, 122, 58, 0.9);
}

.lwa-card__button-icon {
    font-size: 1rem;
    line-height: 1;
    color: inherit;
}

.lwa-card__button-label {
    font-size: 0.85rem;
}

.lwa-upsell .lwa-card__button.add_to_cart_button {
    width: 100% !important;
    min-width: 110px !important;
    height: auto !important;
    padding: 0.45rem 0.75rem !important;
    margin-left: 0 !important;
    background: #eaf2ff !important;
    border-color: #cddaf4 !important;
    color: #1f62d3 !important;
}

.lwa-placement-product .lwa-card__button.add_to_cart_button {
    width: auto !important;
    min-width: 90px !important;
    margin-left: auto !important;
    padding: 0.4rem 0.65rem !important;
}

.lwa-card__status {
    font-size: 0.75rem;
    font-weight: 600;
    color: #1a7e3b;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.lwa-icons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.lwa-icon {
    flex: 0 0 auto;
    width: 78px;
    text-align: center;
    font-size: 0.78rem;
}

.lwa-icon img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    margin-bottom: 0.3rem;
    background: #fff;
}

.lwa-swatch-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.lwa-swatch {
    position: relative;
    width: 128px;
    padding: 0.6rem 0.65rem;
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    background: none;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.04);
}

.lwa-swatch.is-selected {
    border-color: #cce9d6;
    background: #f4fff6;
    opacity: 0.75;
}

.lwa-swatch__thumb {
    width: 68px;
    height: 68px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f7f7f7;
}

.lwa-swatch__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lwa-swatch__meta {
    text-align: center;
    font-size: 0.8rem;
    line-height: 1.2;
    min-height: 3.1em;
}

.lwa-swatch__name {
    display: block;
    color: #111;
    font-weight: 600;
}

.lwa-swatch__price {
    display: block;
    color: #1a4fb0;
    font-weight: 700;
    margin-top: 0.1rem;
}

.lwa-stock {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
}

.lwa-stock__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid transparent;
}

.lwa-stock.is-out .lwa-stock__dot {
    background: #d72638;
    border-color: #d72638;
}

.lwa-stock.is-backorder .lwa-stock__dot {
    border-color: #d72638;
}

.lwa-stock.is-low .lwa-stock__dot {
    background: #f6c343;
    border-color: #f6c343;
}

.lwa-stock.is-available .lwa-stock__dot,
.lwa-stock.is-high .lwa-stock__dot,
.lwa-stock.is-max .lwa-stock__dot {
    background: #44c07b;
    border-color: #44c07b;
}

.lwa-swatch__button {
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: none;
    color: #111;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    text-align: center;
    width: 100%;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.lwa-swatch__add {
    position: absolute;
    top: 8px;
    right: 10px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(16, 90, 223, 0.12);
    color: #0c4db1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.lwa-swatch__button:hover {
    border-color: rgba(0, 0, 0, 0.35);
}

.lwa-swatch__button.is-disabled,
.lwa-swatch__button.is-disabled:hover {
    border-color: rgba(0, 0, 0, 0.08);
    background: rgba(0, 0, 0, 0.04);
    color: #4b4b4b;
    cursor: default;
}

.lwa-diagnostics {
    margin: 1rem 0;
    padding: 0.75rem 1rem;
    border: 1px dashed rgba(0, 0, 0, 0.25);
    border-radius: 10px;
    background: #fffef2;
    color: #111;
    font-size: 0.85rem;
}

.lwa-diagnostics ul {
    margin: 0.25rem 0 0;
    padding-left: 1rem;
    list-style: disc;
}

.lwa-diagnostics li {
    margin: 0.1rem 0;
}

.lwa-upsell--checklist {
    border-color: #e5e5e5;
}

.lwa-checklist {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.lwa-check {
    display: grid;
    grid-template-columns: 56px 1fr 28px;
    align-items: center;
    gap: 0.65rem;
    padding: 0.65rem 0.85rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 14px;
    background: #fdfdfd;
    position: relative;
}

.lwa-check input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.lwa-check__box {
    width: 22px;
    height: 22px;
    border-radius: 8px;
    border: 1px solid rgba(25, 78, 190, 0.35);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eef4ff;
    color: #1f6fd3;
    font-size: 0.85rem;
    font-weight: 700;
    transition: all 0.2s ease;
}

.lwa-check input[type="checkbox"]:checked + .lwa-check__box {
    background: #0f7a3a;
    border-color: #0f7a3a;
    color: #fff;
    box-shadow: 0 8px 18px -10px rgba(15, 122, 58, 0.8);
}

.lwa-check input[type="checkbox"]:checked + .lwa-check__box::after {
    content: '✓';
    transform: translateY(1px);
}

.lwa-check__thumb {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f7f7f7;
}

.lwa-check__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lwa-check__body {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.lwa-check__name {
    font-weight: 600;
    font-size: 0.95rem;
}

.lwa-check__price {
    font-size: 0.85rem;
}

.lwa-check.is-selected {
    background: #f1fff6;
    border-color: #cce9d6;
}

.lwa-check.is-selected .lwa-check__box {
    background: #0f7a3a;
    border-color: #0f7a3a;
    color: #fff;
}

.lwa-check__box::after {
    content: '🛒';
    font-size: 0.9rem;
}

.lwa-placement-cart.lwa-upsell {
    border: 1px solid #e3e7f0;
    padding: 1rem;
    background: #f9fbff;
    border-radius: 20px;
    box-shadow: 0 18px 35px -28px rgba(9, 16, 40, 0.25);
}

.lwa-placement-cart.lwa-upsell--cards,
.lwa-placement-cart.lwa-upsell--icons {
    padding: 1rem;
}

.lwa-placement-cart .lwa-upsell__heading {
    margin-bottom: 0.65rem;
}

.lwa-placement-cart.lwa-upsell--icons .lwa-upsell__heading {
    display: none;
}

.lwa-placement-cart.lwa-upsell--icons .lwa-swatch-grid {
    gap: 0.75rem;
    flex-wrap: wrap;
}

body.woocommerce-cart .lwa-placement-cart .lwa-upsell__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.85rem;
}

body.woocommerce-cart .lwa-placement-cart .lwa-card {
    width: 100%;
    padding: 0.9rem 1rem;
    border-radius: 16px;
    border: 1px solid #e5e8f1;
    background: #fff;
    box-shadow: 0 10px 30px -22px rgba(12, 20, 44, 0.28);
    display: grid;
    grid-template-columns: 88px 1fr auto;
    gap: 0.9rem;
    align-items: center;
}

body.woocommerce-cart .lwa-placement-cart .lwa-card__thumb {
    height: 84px;
    width: 84px;
    border-radius: 12px;
    margin: 0 auto;
}

body.woocommerce-cart .lwa-placement-cart .lwa-card__body {
    gap: 0.25rem;
    padding-right: 0.5rem;
}

body.woocommerce-cart .lwa-placement-cart .lwa-card__button {
    font-size: 0.85rem;
    padding: 0.4rem;
    border-radius: 999px;
    width: 48px !important;
    min-width: 48px !important;
    height: 48px;
    background: #e9f2ff;
    border-color: #c3d5fa;
    color: #1c4d9f;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
}

body.woocommerce-cart .lwa-placement-cart .lwa-card__button-label {
    display: none;
}

body.woocommerce-cart .lwa-placement-cart .lwa-card.is-selected .lwa-card__button {
    background: #0f7a3a;
    border-color: #0f7a3a;
    color: #fff;
}

@media (max-width: 640px) {
    body.woocommerce-cart .lwa-placement-cart .lwa-upsell__grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }

    body.woocommerce-cart .lwa-placement-cart .lwa-card {
        grid-template-columns: 1fr;
    }
}

.lwa-placement-cart .lwa-swatch--inline {
    width: 120px;
    padding: 0.5rem;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: #fff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
    align-items: center;
}

.lwa-placement-cart .lwa-swatch--inline .lwa-swatch__thumb {
    width: 80px;
    height: 80px;
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #f7f7f7;
}

.lwa-placement-cart .lwa-swatch--inline .lwa-swatch__meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    font-size: 0.72rem;
    color: #111;
    min-height: 2.6em;
}

.lwa-placement-cart .lwa-swatch--inline .lwa-stock {
    margin-top: 0.15rem;
}

.lwa-placement-cart .lwa-swatch--inline .lwa-swatch__button {
    position: static;
    width: auto;
    text-indent: 0;
    padding: 0.25rem 0.85rem;
    font-size: 0.7rem;
    margin-top: 0.2rem;
}

.lwa-placement-cart .lwa-swatch--inline .lwa-swatch__button.is-disabled,
.lwa-placement-cart .lwa-swatch--inline .lwa-swatch__button.is-disabled:hover {
    background: #111;
    color: #fff;
    border-color: #111;
}

.lwa-placement-checkout.lwa-upsell {
    border: 0;
    background: transparent;
    padding: 0;
}

body.woocommerce-checkout .lwa-placement-checkout .lwa-upsell__heading {
    margin-bottom: 0.5rem;
}

body.woocommerce-checkout .lwa-placement-checkout .lwa-card {
    width: 100%;
    max-width: 520px;
    padding: 0.75rem 0.9rem;
    border-radius: 16px;
    border: 1px solid #e6e8f2;
    background: #fff;
    box-shadow: 0 12px 32px -28px rgba(9, 16, 40, 0.28);
    display: grid;
    grid-template-columns: 72px 1fr auto;
    gap: 0.65rem;
    align-items: center;
    margin: 0 auto;
}

body.woocommerce-checkout .lwa-placement-checkout .lwa-card__thumb {
    width: 72px;
    height: 72px;
    border-radius: 10px;
    margin: 0 auto;
}

body.woocommerce-checkout .lwa-placement-checkout .lwa-card__body {
    gap: 0.25rem;
}

body.woocommerce-checkout .lwa-placement-checkout .lwa-card__button {
    font-size: 0.82rem;
    padding: 0.45rem 0.7rem;
    border-radius: 12px;
    min-width: 0;
    background: #eef3ff;
    border-color: #cfdaf5;
    color: #1c4d9f;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
}

body.woocommerce-checkout .lwa-placement-checkout .lwa-card__button-label {
    display: inline;
}

@media (max-width: 680px) {
    body.woocommerce-checkout .lwa-placement-checkout .lwa-card {
        grid-template-columns: 1fr;
        text-align: left;
    }

    body.woocommerce-checkout .lwa-placement-checkout .lwa-card__button {
        width: 100%;
        justify-content: center;
    }
}

.single-product .lwa-placement-product.lwa-upsell {
    border: 0;
    background: transparent;
    padding: 0;
    max-width: none;
}

.single-product .lwa-placement-product .lwa-upsell__heading {
    margin-bottom: 0.75rem;
}

.single-product .lwa-placement-product .lwa-upsell__grid {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.single-product .lwa-placement-product .lwa-card {
    flex-direction: row;
    align-items: center;
    padding: 0.55rem 0.85rem;
    gap: 0.65rem;
    border-radius: 18px;
    border-color: rgba(0, 0, 0, 0.06);
    box-shadow: none;
    background: #fff;
}

.single-product .lwa-placement-product .lwa-card__thumb {
    flex: 0 0 60px;
    width: 60px;
    height: 60px;
    aspect-ratio: 1 / 1;
    border-radius: 14px;
    background: #f7f7f7;
}

.single-product .lwa-placement-product .lwa-card__body {
    gap: 0.15rem;
    flex: 1;
}

.single-product .lwa-placement-product .lwa-card__title {
    font-size: 0.95rem;
}

.single-product .lwa-placement-product .lwa-card__button {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-width: 1.5px;
    border-color: #111;
    background: #111;
    color: #fff;
    padding: 0;
    margin-left: auto;
}

.single-product .lwa-placement-product .lwa-card__button:hover {
    border-color: #000;
    background: #000;
}

.single-product .lwa-placement-product .lwa-card__button-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

@media (min-width: 768px) {
    .single-product .summary .lwa-upsell-shell {
        margin-top: 1rem;
    }
}
