.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: 0.75rem 0;
    border-radius: 14px;
    border: 0;
    background: transparent;
    color: inherit;
}

.lwa-upsell--icons {
    margin-bottom: 0.6rem;
}

.lwa-upsell__heading {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    justify-content: flex-start;
    margin: 0 0 0.35rem;
    flex-wrap: wrap;
}

.lwa-upsell__heading h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.2;
}

.lwa-upsell__heading.is-compact {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.35rem;
}

.lwa-upsell__heading.is-compact h3 {
    font-size: 1rem;
    font-weight: 600;
}

.lwa-upsell__eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.66rem;
    color: #6f6f6f;
    line-height: 1.1;
}

.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;
    max-height: 210px;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f7f7f7;
}

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

.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.6rem;
    margin: 0 auto;
    justify-content: flex-start;
    align-items: stretch;
    width: 100%;
    max-width: none;
}

.lwa-swatch {
    position: relative;
    padding: 0.6rem 0.7rem 0.8rem;
    border-radius: 12px;
    border: 1px solid #e3e7f0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    background: #fff;
    box-shadow: 0 12px 26px -24px rgba(9, 16, 40, 0.28);
    transition: transform 0.12s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    text-align: left;
    flex: 0 0 calc(25% - 0.6rem);
    max-width: calc(25% - 0.6rem);
    min-width: 220px;
    height: 100%;
}

.lwa-swatch::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    width: 24px;
    height: 24px;
    border-radius: 8px;
    border: 2px solid #d5d9e5;
    background: linear-gradient(180deg, #f6f8fb 0%, #f1f4fa 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
    opacity: 0;
    transform: scale(0.7);
    transition: opacity 0.15s ease, transform 0.15s ease, border-color 0.2s ease, background 0.2s ease;
}

.lwa-swatch.is-selected::before {
    opacity: 1;
    transform: scale(1);
    background: #0f7a3a;
    border-color: #0f7a3a;
}

.lwa-swatch.is-selected {
    border-color: #cce9d6;
    background: #f4fff6;
    box-shadow: 0 16px 34px -26px rgba(15, 122, 58, 0.4);
}

.lwa-swatch.is-selected::after {
    content: '✓';
    position: absolute;
    top: 13px;
    left: 16px;
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    opacity: 1;
}

.lwa-swatch:hover {
    border-color: #cdd5e5;
    box-shadow: 0 18px 38px -28px rgba(9, 16, 40, 0.28);
    transform: translateY(-2px);
}

.lwa-swatch.is-hidden {
    display: none;
}

.lwa-swatch__thumb {
    width: 100%;
    aspect-ratio: 4 / 3;
    max-height: 240px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f7f7f7;
    flex: 0 0 auto;
}

.lwa-swatch__thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    align-self: center;
}

.lwa-swatch__meta {
    text-align: left;
    font-size: 0.82rem;
    line-height: 1.25;
    min-height: 2.6em;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.lwa-swatch__content {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    flex: 1;
}

.lwa-swatch__footer {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-top: auto;
}

.lwa-swatch__name {
    display: -webkit-box;
    color: #0b1f2a;
    font-weight: 600;
    font-size: clamp(0.9rem, 1vw + 0.1rem, 1.05rem);
    line-height: 1.25;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: left;
    width: 100%;
}

.lwa-swatch__price {
    display: block;
    color: #c9191c;
    font-weight: 800;
    margin-top: 0.15rem;
    text-align: left;
}

.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: 10px;
    border: 1px solid #0071c2;
    background: linear-gradient(180deg, #0a7de0 0%, #006ab7 100%);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    padding: 0.6rem 0.95rem;
    text-align: center;
    width: 100%;
    transition: border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.1s ease;
}

.lwa-swatch__button:hover {
    border-color: #005b98;
    box-shadow: 0 10px 24px -14px rgba(0, 107, 183, 0.65);
    transform: translateY(-1px);
}

.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;
    box-shadow: none;
    transform: none;
}

.lwa-more {
    margin: 0.3rem auto 0;
    display: block;
    width: 100%;
    text-align: center;
    padding: 0.2rem 0;
    border-radius: 8px;
    border: 0;
    background: transparent;
    color: #4a5a7a;
    font-weight: 600;
    font-size: 0.82rem;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.1s ease;
    text-transform: uppercase;
}

.lwa-more:hover {
    color: #1f62d3;
    transform: translateY(-1px);
}

.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.4rem;
}

.lwa-check {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 1rem;
    border: 1px solid #e5e9f1;
    border-radius: 16px;
    background: #fff;
    position: relative;
    box-shadow: 0 14px 32px -26px rgba(9, 16, 40, 0.32);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.12s ease;
    cursor: pointer;
}

.lwa-check__row {
    display: grid !important;
    grid-template-columns: 32px 72px 1fr !important;
    align-items: center;
    gap: 0.85rem;
    margin: 0;
    cursor: pointer;
    min-width: 0;
    width: 100%;
}

.lwa-check:hover {
    border-color: #ccd5e5;
    box-shadow: 0 18px 38px -28px rgba(9, 16, 40, 0.28);
}

.lwa-check input[type="checkbox"].js-lwa-upsell-toggle {
    position: absolute !important;
    left: -9999px !important;
    opacity: 0 !important;
    pointer-events: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}

.lwa-check__box {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    border: 2px solid #d5d9e5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #f6f8fb 0%, #f1f4fa 100%);
    color: #0f7a3a;
    font-size: 0.95rem;
    font-weight: 700;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
    transition: all 0.2s ease;
}

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

.lwa-check__thumb {
    width: 70px;
    height: 70px;
    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-check__thumb img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

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

.lwa-check__title-row {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
    justify-content: space-between;
}

.lwa-check__name {
    font-weight: 600;
    font-size: 0.98rem;
    line-height: 1.2;
    color: #0b1f2a;
}

.lwa-check__price {
    font-size: 0.95rem;
    font-weight: 700;
    color: #c9191c;
    white-space: nowrap;
}

.lwa-check__aside {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
    justify-self: end;
    min-width: 0;
    cursor: pointer;
}

.lwa-check.is-selected {
    background: #f3fff8;
    border-color: #b4e5c9;
    box-shadow: 0 16px 34px -24px rgba(15, 122, 58, 0.55);
    transform: translateY(-2px);
}

.lwa-check.is-hidden {
    display: none;
}

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

.lwa-check__box .lwa-check__tick {
    opacity: 0;
    transform: scale(0.7);
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.lwa-check input[type="checkbox"]:checked ~ .lwa-check__row .lwa-check__box .lwa-check__tick {
    opacity: 1;
    transform: scale(1);
}

.lwa-check__more {
    font-size: 0.8rem;
    font-weight: 600;
    color: #4a5a7a;
    text-decoration: none;
    white-space: nowrap;
}

.lwa-check__more:hover {
    color: #1f62d3;
    text-decoration: underline;
}

.lwa-check__meta {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.82rem;
}

.lwa-check__meta .lwa-stock {
    text-transform: none;
}

.lwa-placement-cart.lwa-upsell {
    border: 0;
    padding: 0.25rem 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    width: 100%;
}

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

.lwa-placement-cart .lwa-upsell__heading {
    margin-bottom: 0.25rem;
    flex-wrap: wrap;
}

.lwa-placement-cart.lwa-upsell--icons {
    background: transparent;
    border-radius: 0;
    border: 0;
    padding: 0.35rem 0 0.6rem;
    box-shadow: none;
    width: 100%;
}

.lwa-placement-cart.lwa-upsell--icons .lwa-upsell__heading {
    display: flex;
    margin-bottom: 0.35rem;
}

.lwa-placement-cart.lwa-upsell--icons .lwa-swatch-grid {
    width: 100%;
    max-width: none;
    margin: 0;
}

.lwa-placement-cart.lwa-upsell--icons .lwa-swatch {
    flex: 0 0 calc(25% - 0.6rem);
    max-width: calc(25% - 0.6rem);
    align-items: flex-start;
    text-align: left;
}

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;
}

/* Grouped Parent Variations (lgv-*) */
/* ================================
   LINNÉ – Gruppade pseudo-variationer
   ================================ */

.lgv-grouped-variations {
    margin-bottom: 1.25rem;
    width: 100%;
    clear: both;
}

.lgv-grouped-variations--fallback {
    margin: 1rem 0 1.25rem;
}

.lgv-parent-rail {
    margin: 0 0 1.1rem;
}

.lgv-parent-rail__list {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.75rem;
}

.lgv-parent-rail__item {
    display: flex !important;
    align-items: center;
    gap: 0.6rem;
    border: 1px solid rgba(0, 0, 0, 0.10) !important;
    border-radius: 14px;
    padding: 0.6rem 0.75rem;
    text-decoration: none !important;
    background: #fff;
    color: inherit !important;
    min-width: 0;
    box-sizing: border-box;
}

.lgv-parent-rail__item:hover {
    border-color: rgba(11, 31, 42, 0.3);
}

.lgv-parent-rail__item.is-current {
    border-color: #111 !important;
    box-shadow: 0 0 0 1px #111;
}

.lgv-parent-rail__item.is-out-of-stock {
    opacity: 0.55;
}

.lgv-parent-rail__thumb img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    border-radius: 12px;
    display: block;
    max-width: none;
    background: #f7f7f7;
}

.lgv-parent-rail__meta {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.lgv-parent-rail__label {
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lgv-parent-rail__price {
    font-size: 0.9rem;
    color: rgba(11, 31, 42, 0.75);
    white-space: nowrap;
}

.lgv-parent-rail__price .woocommerce-Price-amount,
.lgv-parent-rail__price .woocommerce-Price-currencySymbol {
    font-size: inherit !important;
    line-height: inherit !important;
    float: none !important;
}

.lgv-fallback-list {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.75rem;
}

.lgv-fallback-item {
    display: flex !important;
    align-items: center;
    gap: 0.6rem;
    border: 1px solid rgba(0, 0, 0, 0.10) !important;
    border-radius: 14px;
    padding: 0.6rem 0.75rem;
    text-decoration: none !important;
    background: #fff;
    color: inherit !important;
    min-width: 0;
    box-sizing: border-box;
}

.lgv-fallback-item:hover {
    border-color: rgba(11, 31, 42, 0.3);
}

.lgv-fallback-item.is-out-of-stock {
    opacity: 0.55;
}

.lgv-fallback-thumb img {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: 12px;
    display: block;
    max-width: none;
}

.lgv-fallback-meta {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.lgv-fallback-title {
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lgv-fallback-price {
    font-size: 0.9rem;
    color: rgba(11, 31, 42, 0.75);
    white-space: nowrap;
}

.lgv-fallback-price .woocommerce-Price-amount,
.lgv-fallback-price .woocommerce-Price-currencySymbol {
    font-size: inherit !important;
    line-height: inherit !important;
    float: none !important;
}

@media (max-width: 900px) {
    .lgv-fallback-list {
        grid-template-columns: 1fr;
    }
}

.lgv-attribute {
    margin-bottom: 1rem;
}

.lgv-attribute__label {
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.lgv-attribute__options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-start;
}

/* Generella knappar */
.lgv-option {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 1px solid #dadada;
    padding: 0.35rem 0.75rem;
    min-width: 68px;
    text-decoration: none;
    font-size: 0.875rem;
    line-height: 1.25;
    color: inherit;
    background: #fff;
    box-sizing: border-box;
    transition:
        border-color .15s ease,
        box-shadow .15s ease,
        transform .1s ease,
        opacity .15s ease;
}

.lgv-option:hover {
    border-color: #111;
    box-shadow: 0 0 0 1px #111;
    transform: translateY(-1px);
}

.lgv-option.is-current {
    border-color: #111;
    box-shadow: 0 0 0 2px #111;
}

/* Textattribut (GB, sim osv) */
.lgv-option__label {
    white-space: nowrap;
}

.lgv-option__meta {
    font-size: 12px;
    color: #5a5a5a;
    margin-top: 2px;
}

.lgv-option:not(.lgv-option--color) {
    min-width: 74px;
    padding: 0.48rem 0.9rem;
    border-radius: 14px;
    background: #fff;
}

/* Färg som bild */
.lgv-option--color {
    padding: 0.35rem;
}

.lgv-option--color .lgv-option__image {
    display: block;
    max-width: 92px;
    height: auto;
    border-radius: 14px;
}

.lgv-option--color .lgv-option__label {
    margin-top: 0.25rem;
    font-size: 0.78rem;
}

/* Generiska bild-tiles (t.ex. när vi promotar storlek/pack) */
.lgv-option--image {
    padding: 0.35rem;
}

.lgv-option--image .lgv-option__image {
    display: block;
    max-width: 92px;
    height: auto;
    border-radius: 14px;
}

.lgv-option--image .lgv-option__label {
    margin-top: 0.25rem;
    font-size: 0.78rem;
}

/* Lager-chip – uppe till höger */
.lgv-option__stock-qty {
    position: absolute;
    right: 6px;
    top: 6px;
    bottom: auto;
    min-width: 32px;
    padding: 2px 6px;
    border-radius: 999px;
    background: #fff;
    font-size: 11px;
    line-height: 1.2;
    text-align: center;
    font-weight: 600;
    border: 1.5px solid currentColor;
}
.lgv-option__stock-qty.lgv-stock-red    { color: #e53935; }
.lgv-option__stock-qty.lgv-stock-yellow { color: #fb8c00; }
.lgv-option__stock-qty.lgv-stock-green  { color: #43a047; }

/* Slut i lager: rött kryss + lägre opacity */
.lgv-option.is-out-of-stock { opacity: .45; }
.lgv-option__stock-cross { pointer-events: none; }
.lgv-option.is-out-of-stock .lgv-option__stock-cross::before,
.lgv-option.is-out-of-stock .lgv-option__stock-cross::after {
    content: "";
    position: absolute;
    inset: 14%;
    border-top: 2px solid #d60000;
    border-radius: 999px;
}
.lgv-option.is-out-of-stock .lgv-option__stock-cross::before { transform: rotate(45deg); }
.lgv-option.is-out-of-stock .lgv-option__stock-cross::after { transform: rotate(-45deg); }

/* Finns inte för aktuell kombination */
.lgv-option.is-partial { opacity: .45; }
.lgv-option.is-current.is-partial { opacity: 1; }

/* Fyndvaror box */
.lgv-fynd {
    margin-top: 1.25rem;
    padding: 0.85rem 1rem;
    border: 1px solid #e4e7ec;
    border-radius: 12px;
    background: #fbfcff;
}
.lgv-fynd__summary {
    cursor: pointer;
    display: block;
    font-size: 0.9rem;
    color: #0b1f2a;
    outline: none;
    padding-right: 1.25rem;
}
.lgv-fynd__summary::-webkit-details-marker { display: none; }
.lgv-fynd__summary::after {
    content: '▾';
    float: right;
    font-size: 0.85rem;
    color: #6b7280;
}
.lgv-fynd[open] .lgv-fynd__summary::after { content: '▴'; }
.lgv-fynd__meta { font-size: 0.85rem; color: #6b7280; }
.lgv-fynd__list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.75rem;
    margin-top: 0.75rem;
}
.lgv-fynd__card {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    padding: 0.65rem 0.75rem;
    border: 1px solid #dde2ea;
    border-radius: 10px;
    background: #fff;
    text-decoration: none;
    color: inherit;
    transition: box-shadow .15s ease, transform .1s ease;
}
.lgv-fynd__card:hover {
    box-shadow: 0 8px 18px rgba(0,0,0,0.06);
    transform: translateY(-1px);
}
.lgv-fynd__thumb {
    width: 56px;
    height: 56px;
    object-fit: contain;
    border-radius: 8px;
    background: #f6f7fb;
    flex-shrink: 0;
}
.lgv-fynd__body {
    display: grid;
    grid-template-rows: auto auto auto;
    row-gap: 4px;
}
.lgv-fynd__title { font-weight: 600; font-size: 0.95rem; line-height: 1.2; }
.lgv-fynd__meta-row {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
}
.lgv-fynd__price { font-size: 0.95rem; font-weight: 700; color: #0b1f2a; }
.lgv-fynd__sku { font-size: 0.75rem; color: #6b7280; }
.lgv-fynd__badge {
    margin-top: 4px;
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    background: #e6f4ff;
    color: #0b6bdc;
    font-size: 0.75rem;
    border: 1px solid #c8e2ff;
}
.lgv-fynd__card.lgv-fynd__grade-2 .lgv-fynd__badge {
    background: #fff8e5;
    border-color: #fde6b5;
    color: #c17900;
}
.lgv-fynd__card.lgv-fynd__grade-3 .lgv-fynd__badge {
    background: #ffeaea;
    border-color: #fccccc;
    color: #c22626;
}
.lgv-fynd__link {
    font-size: 0.78rem;
    color: #1b4faf;
    font-weight: 600;
    margin-top: 2px;
}

/* ================================
   LINNÉ – Gruppade pseudo-variationer (override pack från design)
   ================================ */
.lgv-grouped-variations {
    margin-bottom: 1.5rem;
}
.lgv-attribute { margin-bottom: 1.25rem; }
.lgv-attribute__label {
    font-weight: 600;
    margin-bottom: 0.35rem;
}
.lgv-attribute__options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.lgv-option {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 1px solid #dadada;
    padding: 0.35rem 0.75rem;
    min-width: 64px;
    text-decoration: none;
    font-size: 0.875rem;
    line-height: 1.2;
    color: inherit;
    background: #fff;
    transition: border-color .15s ease, box-shadow .15s ease, transform .1s ease, opacity .15s ease;
}
.lgv-option:hover {
    border-color: #111;
    box-shadow: 0 0 0 1px #111;
    transform: translateY(-1px);
}
.lgv-option.is-current {
    border-color: #111;
    box-shadow: 0 0 0 2px #111;
}
.lgv-option__label { white-space: nowrap; }
.lgv-option--color { padding: 0.35rem; }
.lgv-option--color .lgv-option__image {
    display: block;
    max-width: 110px;
    max-height: 110px;
    height: auto;
}
.lgv-option--color .lgv-option__label {
    margin-top: 0.25rem;
    font-size: 0.75rem;
}
.lgv-option__stock-qty {
    position: absolute;
    right: 6px;
    top: 6px;
    bottom: auto;
    min-width: 32px;
    padding: 2px 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.95);
    font-size: 11px;
    line-height: 1.2;
    text-align: center;
    font-weight: 600;
    border: 1px solid currentColor;
}
.lgv-option__stock-qty.lgv-stock-red { color: #e53935; }
.lgv-option__stock-qty.lgv-stock-yellow { color: #fb8c00; }
.lgv-option__stock-qty.lgv-stock-green { color: #43a047; }
.lgv-option.is-out-of-stock { opacity: .45; }
.lgv-option__stock-cross { pointer-events: none; }
.lgv-option.is-out-of-stock .lgv-option__stock-cross::before,
.lgv-option.is-out-of-stock .lgv-option__stock-cross::after {
    content: "";
    position: absolute;
    inset: 14%;
    border-top: 2px solid #d60000;
    border-radius: 999px;
}
.lgv-option.is-out-of-stock .lgv-option__stock-cross::before { transform: rotate(45deg); }
.lgv-option.is-out-of-stock .lgv-option__stock-cross::after { transform: rotate(-45deg); }
.lgv-option.is-partial { opacity: .45; }
.lgv-option.is-current.is-partial { opacity: 1; }

@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-upsell--icons .lwa-swatch__button {
    width: 100%;
}

.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: calc(60px * 6 / 5);
    aspect-ratio: 5 / 6;
    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;
    }
}

/* Normalize product images and upsell thumbs to a 5:6 box. */
:root {
    --lwa-media-ratio-w: 5;
    --lwa-media-ratio-h: 6;
    --lwa-media-thumb: 60px;
}

/* Catalog cards (Flatsome) */
.product-small .box-image,
.product-small .box-image .image-zoom,
.product-small .box-image a {
    display: block;
    width: 100%;
}

.product-small .box-image {
    aspect-ratio: var(--lwa-media-ratio-w) / var(--lwa-media-ratio-h);
    background: #fff;
    display: grid;
    place-items: center;
    overflow: hidden;
}

.product-small .box-image img {
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    display: block;
}

.product-small .box-image .image-zoom {
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
}

.product-small .box-image .image-zoom img {
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
}

/* Upsell cards (all placements) */
.lwa-card__thumb {
    aspect-ratio: var(--lwa-media-ratio-w) / var(--lwa-media-ratio-h);
    display: grid;
    place-items: center;
    overflow: hidden;
}

.lwa-card__thumb img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

/* Single product gallery (Flatsome) */
.single-product .product-gallery .woocommerce-product-gallery__image a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(100%, calc(400px * var(--lwa-media-ratio-w) / var(--lwa-media-ratio-h)));
    aspect-ratio: var(--lwa-media-ratio-w) / var(--lwa-media-ratio-h);
    margin: 0 auto;
    background: #fff;
    overflow: hidden;
}

.single-product .product-gallery .woocommerce-product-gallery__image img {
    max-width: 100% !important;
    max-height: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    display: block;
}

.single-product .product-thumbnails {
    --cell-w: calc(var(--lwa-media-thumb) + 12px);
}

.single-product .product-thumbnails .col {
    width: var(--cell-w) !important;
    padding-left: 6px;
    padding-right: 6px;
    flex: 0 0 auto;
}

.single-product .product-thumbnails .col a {
    display: grid;
    place-items: center;
    width: var(--lwa-media-thumb);
    height: calc(var(--lwa-media-thumb) * var(--lwa-media-ratio-h) / var(--lwa-media-ratio-w));
    background: #fff;
    overflow: hidden;
    border-radius: 4px;
}

.single-product .product-thumbnails .col img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    display: block;
}

/* Cart layout polish to match the checkout shell styling. */
body.woocommerce-cart .woocommerce {
    max-width: 1200px;
    margin: 0 auto;
}

body.woocommerce-cart .woocommerce-cart-form {
    background: #fff;
    border: 1px solid #e7ebf3;
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 12px 24px rgba(16, 18, 37, 0.06);
}

body.woocommerce-cart .woocommerce-cart-form .shop_table {
    border-collapse: separate;
    border-spacing: 0 12px;
    width: 100%;
}

body.woocommerce-cart .woocommerce-cart-form thead th {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.72rem;
    color: #5b6477;
    border: 0;
    padding: 6px 8px 12px;
}

body.woocommerce-cart .woocommerce-cart-form .cart_item {
    background: transparent;
}

body.woocommerce-cart .woocommerce-cart-form .cart_item td {
    background: #fff;
    border-top: 1px solid #e7ebf3;
    border-bottom: 1px solid #e7ebf3;
    padding: 12px 10px;
    vertical-align: middle;
}

body.woocommerce-cart .woocommerce-cart-form .cart_item td:first-child {
    border-left: 1px solid #e7ebf3;
    border-radius: 14px 0 0 14px;
}

body.woocommerce-cart .woocommerce-cart-form .cart_item td:last-child {
    border-right: 1px solid #e7ebf3;
    border-radius: 0 14px 14px 0;
}

body.woocommerce-cart .woocommerce-cart-form .product-thumbnail img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    border-radius: 12px;
    border: 1px solid #edf0f6;
}

body.woocommerce-cart .woocommerce-cart-form .product-thumbnail a {
    display: grid;
    place-items: center;
    width: 64px;
    height: calc(64px * 6 / 5);
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
}

/* Mini cart thumbnail containment */
.woocommerce-mini-cart-item a {
    display: flex;
    align-items: center;
    gap: 10px;
}

.woocommerce-mini-cart-item img {
    width: 52px !important;
    height: calc(52px * 6 / 5) !important;
    max-width: 52px !important;
    max-height: calc(52px * 6 / 5) !important;
    object-fit: contain !important;
    display: block;
    border-radius: 10px;
    border: 1px solid #edf0f6;
    background: #fff;
}

body.woocommerce-cart .woocommerce-cart-form .product-name {
    font-weight: 600;
    color: #1b2233;
}

body.woocommerce-cart .woocommerce-cart-form .product-price,
body.woocommerce-cart .woocommerce-cart-form .product-subtotal {
    font-weight: 600;
    color: #1b2233;
    white-space: nowrap;
}

body.woocommerce-cart .woocommerce-cart-form .quantity .qty {
    max-width: 72px;
    border-radius: 10px;
    border: 1px solid #d9dfe8;
    padding: 6px 8px;
}

body.woocommerce-cart .woocommerce-cart-form .product-remove a {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid #e3e7f0;
    color: #7a869a !important;
    background: #f7f8fb;
}

body.woocommerce-cart .woocommerce-cart-form .product-remove a:hover {
    color: #1f2a44 !important;
    border-color: #cfd6e6;
}

body.woocommerce-cart .woocommerce-cart-form .actions {
    margin-top: 16px;
    border-top: 1px solid #eef1f7;
    padding-top: 16px;
}

body.woocommerce-cart .woocommerce-cart-form .coupon input.input-text {
    border-radius: 12px;
    border: 1px solid #d9dfe8;
    padding: 10px 12px;
    min-width: 220px;
}

body.woocommerce-cart .woocommerce-cart-form .button {
    border-radius: 12px;
    font-weight: 600;
}

body.woocommerce-cart .woocommerce-cart-form .actions button[name="update_cart"],
body.woocommerce-cart .woocommerce-cart-form .actions .button[name="update_cart"] {
    display: none !important;
}

body.woocommerce-cart .cart-collaterals {
    margin-top: 0;
}

body.woocommerce-cart .cart-collaterals .cart_totals {
    background: #fff;
    border: 1px solid #e7ebf3;
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 12px 24px rgba(16, 18, 37, 0.06);
}

body.woocommerce-cart .cart-collaterals .cart_totals h2 {
    font-size: 1.1rem;
    margin-top: 0;
}

body.woocommerce-cart .cart-collaterals .cart_totals table {
    border-collapse: separate;
    border-spacing: 0 10px;
    width: 100%;
}

body.woocommerce-cart .cart-collaterals .cart_totals .shipping {
    display: table-row;
}

body.woocommerce-cart .cart-collaterals .cart_totals .woocommerce-shipping-methods {
    margin: 6px 0 0;
    padding: 0;
    list-style: none;
}

body.woocommerce-cart .cart-collaterals .cart_totals .woocommerce-shipping-methods li {
    margin: 6px 0;
}

body.woocommerce-cart .cart-collaterals .cart_totals th,
body.woocommerce-cart .cart-collaterals .cart_totals td {
    border: 0;
    padding: 6px 0;
}

body.woocommerce-cart .wc-proceed-to-checkout .checkout-button {
    background: #2d7bdc;
    border-radius: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

body.woocommerce-cart .wc-proceed-to-checkout .checkout-button:hover {
    background: #2568b8;
}

@media (max-width: 640px) {
    body.woocommerce-cart .woocommerce-cart-form {
        padding: 14px;
    }
    body.woocommerce-cart .woocommerce-cart-form .product-price,
    body.woocommerce-cart .woocommerce-cart-form .product-subtotal {
        font-size: 0.95rem;
    }
}

/* =======================
   LINNE STORKUND PORTAL + BADGE
   ======================= */
.lwa-storkund-badge-wrap { display: block; margin-top: 4px; }
.lwa-storkund-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 2px 10px;
    border-radius: 999px;
    background: #1f2937;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.lwa-storkund-portal { max-width: 980px; }
.lwa-storkund-portal__header { margin-bottom: 18px; }
.lwa-storkund-portal__subtitle { color: #6b7280; margin: 4px 0 0; }
.lwa-storkund-portal__section {
    background: #fff;
    border-radius: 14px;
    padding: 18px;
    margin-bottom: 18px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}
.lwa-storkund-portal__section h3 { margin-top: 0; }
.lwa-storkund-portal__note { margin-top: 12px; color: #6b7280; font-size: 13px; }
.lwa-table-scroll { overflow-x: auto; }
.lwa-storkund-portal table.shop_table { width: 100%; border-collapse: collapse; }
.lwa-storkund-portal table.shop_table th,
.lwa-storkund-portal table.shop_table td {
    border-bottom: 1px solid #e5e7eb;
    padding: 10px 12px;
    text-align: left;
    vertical-align: middle;
}
.lwa-storkund-portal table.shop_table .num { text-align: right; white-space: nowrap; }

.lwa-bundles {
    margin-top: 20px;
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #f8fafc;
}
.lwa-bundles > h3 { margin-top: 0; }
.lwa-bundle {
    background: #fff;
    border-radius: 14px;
    padding: 14px;
    border: 1px solid #e2e8f0;
    margin-bottom: 16px;
}
.lwa-bundle:last-child { margin-bottom: 0; }
.lwa-bundle__header h4 { margin: 0 0 6px; }
.lwa-bundle__note { color: #64748b; margin: 0; font-size: 13px; }
.lwa-bundle__items { list-style: none; margin: 12px 0; padding: 0; }
.lwa-bundle__items li {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 8px;
    padding: 6px 0;
    border-bottom: 1px solid #f1f5f9;
}
.lwa-bundle__items li:last-child { border-bottom: 0; }
.lwa-bundle__name { font-weight: 600; }
.lwa-bundle__adjust { color: #475569; font-size: 13px; }
.lwa-bundle__price { font-weight: 600; }
.lwa-bundle__summary {
    display: flex;
    gap: 10px;
    align-items: baseline;
    justify-content: space-between;
    margin: 8px 0 12px;
}
.lwa-bundle__savings {
    color: #16a34a;
    font-weight: 600;
}
@media (max-width: 640px) {
    .lwa-bundle__items li {
        grid-template-columns: 1fr;
    }
    .lwa-bundle__summary {
        flex-direction: column;
        align-items: flex-start;
    }
}
