/**
 * SW Linked Products Mini Cards Pro
 */

.sw-lpmc-pro {
    margin: var(--sw-lpmc-section-margin, 24px) 0;
    width: 100%;
    box-sizing: border-box;
}

.sw-lpmc-pro *,
.sw-lpmc-pro *::before,
.sw-lpmc-pro *::after {
    box-sizing: border-box;
}

.sw-lpmc-section {
    margin-bottom: var(--sw-lpmc-section-margin, 24px);
}

.sw-lpmc-title,
.sw-lpmc-bundle-title {
    color: var(--sw-lpmc-title-color, #222);
    font-size: var(--sw-lpmc-title-size, 18px);
    line-height: 1.4;
    font-weight: 800;
    margin: 0 0 6px;
}

.sw-lpmc-bundle-subtitle {
    color: #666;
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 12px;
}

.sw-lpmc-grid,
.sw-lpmc-bundle-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--sw-lpmc-grid-gap, 10px);
}

.sw-lpmc-bundle {
    background: #fff;
    border: 1px solid #ececec;
    border-radius: calc(var(--sw-lpmc-card-radius, 14px) + 4px);
    padding: 14px;
    box-shadow: 0 4px 18px rgba(0,0,0,.035);
}

.sw-lpmc-bundle-row {
    align-items: stretch;
}

.sw-lpmc-bundle-item {
    min-width: 0;
}

.sw-lpmc-plus {
    display: none;
}

.sw-lpmc-card {
    width: 100%;
    display: flex;
    align-items: center;
    gap: var(--sw-lpmc-card-gap, 10px);
    min-height: var(--sw-lpmc-card-min-height, 82px);
    padding: var(--sw-lpmc-card-padding, 8px);
    background: var(--sw-lpmc-card-bg, #fff);
    border: 1px solid var(--sw-lpmc-card-border, #e6e6e6);
    border-radius: var(--sw-lpmc-card-radius, 14px);
    text-decoration: none !important;
    color: inherit !important;
    overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
    cursor: pointer;
    text-align: start;
    font-family: inherit;
    appearance: none;
    -webkit-appearance: none;
}

button.sw-lpmc-card {
    border-style: solid;
}

.sw-lpmc-img-left .sw-lpmc-card {
    flex-direction: row-reverse;
}

.sw-lpmc-card:hover {
    transform: translateY(-1px);
    border-color: var(--sw-lpmc-card-hover-border, #111);
    box-shadow: 0 8px 22px rgba(0, 0, 0, .08);
}

.sw-lpmc-image {
    width: var(--sw-lpmc-image-size, 64px);
    height: var(--sw-lpmc-image-size, 64px);
    min-width: var(--sw-lpmc-image-size, 64px);
    border-radius: calc(var(--sw-lpmc-card-radius, 14px) - 2px);
    background: #f6f6f6;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sw-lpmc-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    margin: 0;
}

.sw-lpmc-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sw-lpmc-badge {
    width: fit-content;
    padding: 3px 8px;
    border-radius: 999px;
    background: var(--sw-lpmc-badge-bg, #fff3cd);
    color: var(--sw-lpmc-badge-color, #8a5a00);
    font-size: var(--sw-lpmc-badge-size, 11px);
    line-height: 1.2;
    font-weight: 800;
}

.sw-lpmc-name {
    color: var(--sw-lpmc-name-color, #222);
    font-size: var(--sw-lpmc-name-size, 13px);
    line-height: 1.45;
    font-weight: 800;
    display: -webkit-box;
    -webkit-line-clamp: var(--sw-lpmc-name-lines, 2);
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

.sw-lpmc-sku {
    color: var(--sw-lpmc-sku-color, #777);
    font-size: var(--sw-lpmc-sku-size, 11px);
    line-height: 1.3;
    font-weight: 600;
}

.sw-lpmc-price {
    color: var(--sw-lpmc-price-color, #008000);
    font-size: var(--sw-lpmc-price-size, 14px);
    line-height: 1.3;
    font-weight: 900;
}

.sw-lpmc-price del,
.sw-lpmc-summary-line del {
    color: var(--sw-lpmc-old-price-color, #999);
    font-size: .85em;
    font-weight: 500;
    margin-inline-start: 5px;
    opacity: .9;
}

.sw-lpmc-price ins,
.sw-lpmc-summary-line ins {
    color: var(--sw-lpmc-price-color, #008000);
    text-decoration: none;
    font-weight: 900;
}

.sw-lpmc-button {
    width: fit-content;
    margin-top: 3px;
    padding: 4px 9px;
    border-radius: 999px;
    background: #111;
    color: #fff;
    font-size: 11px;
    line-height: 1.3;
    font-weight: 700;
}

.sw-lpmc-bundle-summary {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed #e6e6e6;
    display: grid;
    gap: 8px;
}

.sw-lpmc-summary-line,
.sw-lpmc-saving {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    line-height: 1.5;
}

.sw-lpmc-summary-line span {
    color: #555;
    font-size: 13px;
    font-weight: 700;
}

.sw-lpmc-summary-line strong {
    color: var(--sw-lpmc-price-color, #008000);
    font-size: 17px;
    font-weight: 900;
}

.sw-lpmc-separate-total strong {
    color: #777;
    text-decoration: line-through;
}

.sw-lpmc-saving {
    background: var(--sw-lpmc-saving-bg, #e8f7ec);
    color: var(--sw-lpmc-saving-color, #008000);
    border-radius: 12px;
    padding: 9px 10px;
    font-weight: 900;
}

.sw-lpmc-saving span {
    font-size: 13px;
}

.sw-lpmc-saving strong {
    font-size: 16px;
}

.sw-lpmc-saving em {
    font-style: normal;
    background: var(--sw-lpmc-saving-color, #008000);
    color: #fff;
    border-radius: 999px;
    padding: 3px 8px;
    font-size: 12px;
}

.sw-lpmc-cta {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 42px;
    border-radius: 12px;
    background: var(--sw-lpmc-cta-bg, #ffd31a);
    color: var(--sw-lpmc-cta-color, #111) !important;
    text-decoration: none !important;
    font-weight: 900;
    font-size: 15px;
}

/* Columns */
.sw-lpmc-cols-1 .sw-lpmc-grid,
.sw-lpmc-cols-1 .sw-lpmc-bundle-row { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.sw-lpmc-cols-2 .sw-lpmc-grid,
.sw-lpmc-cols-2 .sw-lpmc-bundle-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sw-lpmc-cols-3 .sw-lpmc-grid,
.sw-lpmc-cols-3 .sw-lpmc-bundle-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sw-lpmc-cols-4 .sw-lpmc-grid,
.sw-lpmc-cols-4 .sw-lpmc-bundle-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* New useful modal */
.sw-lpmc-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: rgba(0,0,0,.52);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 14px;
}

.sw-lpmc-modal-overlay.is-open {
    display: flex;
}

.sw-lpmc-modal {
    width: min(480px, 100%);
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 18px 60px rgba(0,0,0,.25);
    overflow: hidden;
    direction: rtl;
    animation: swLpmcModalIn .18s ease both;
}

@keyframes swLpmcModalIn {
    from { opacity: 0; transform: translateY(10px) scale(.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.sw-lpmc-modal-head {
    position: relative;
    padding: 18px 18px 12px;
    border-bottom: 1px solid #f2f2f2;
}

.sw-lpmc-modal-title {
    font-size: 17px;
    font-weight: 900;
    color: #202124;
    padding-inline-end: 48px;
    line-height: 1.5;
}

.sw-lpmc-modal-close {
    position: absolute;
    top: 13px;
    inset-inline-start: 14px;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: #f3f4f6;
    color: #222;
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
}

.sw-lpmc-modal-body {
    padding: 16px 18px 14px;
}

.sw-lpmc-modal-top {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
}

.sw-lpmc-modal-image {
    width: 112px;
    height: 112px;
    border-radius: 18px;
    background: #f6f7f8;
    overflow: hidden;
    border: 1px solid #f0f0f0;
}

.sw-lpmc-modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sw-lpmc-modal-info {
    min-width: 0;
}

.sw-lpmc-modal-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 5px 10px;
    border-radius: 999px;
    background: #fff3cd;
    color: #8a5a00;
    font-size: 12px;
    font-weight: 900;
    margin-bottom: 8px;
}

.sw-lpmc-modal-name {
    font-size: 16px;
    line-height: 1.45;
    font-weight: 900;
    color: #202124;
    margin-bottom: 8px;
}

.sw-lpmc-modal-stock {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #087a24;
    background: #eaf7ee;
    border-radius: 999px;
    padding: 4px 9px;
    font-size: 12px;
    font-weight: 800;
}

.sw-lpmc-modal-stock::before {
    content: "";
    width: 7px;
    height: 7px;
    background: currentColor;
    border-radius: 50%;
}

.sw-lpmc-modal-prices {
    margin-top: 14px;
    display: grid;
    gap: 8px;
}

.sw-lpmc-modal-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: #f8fafc;
    border: 1px solid #eef1f4;
    border-radius: 14px;
    padding: 10px 12px;
}

.sw-lpmc-modal-price-row span {
    color: #555;
    font-size: 13px;
    font-weight: 800;
}

.sw-lpmc-modal-price-row strong {
    color: #111;
    font-size: 15px;
    font-weight: 900;
}

.sw-lpmc-modal-price-row.is-current strong {
    color: var(--sw-lpmc-price-color, #008000);
    font-size: 18px;
}

.sw-lpmc-modal-price-row.is-regular strong {
    color: #777;
    text-decoration: line-through;
}

.sw-lpmc-modal-bundle-note {
    margin-top: 12px;
    border-radius: 16px;
    padding: 12px;
    background: linear-gradient(135deg, #fff8d7, #fff);
    border: 1px dashed #f0c400;
}

.sw-lpmc-modal-bundle-note strong {
    display: block;
    color: #111;
    font-size: 14px;
    font-weight: 900;
    margin-bottom: 5px;
}

.sw-lpmc-modal-bundle-note p {
    margin: 0;
    color: #555;
    font-size: 13px;
    line-height: 1.65;
    font-weight: 700;
}

.sw-lpmc-modal-saving-box {
    margin-top: 10px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.sw-lpmc-modal-saving-item {
    background: #e8f7ec;
    border-radius: 14px;
    padding: 9px 8px;
    text-align: center;
    min-width: 0;
}

.sw-lpmc-modal-saving-item span {
    display: block;
    color: #3b6f45;
    font-size: 11px;
    font-weight: 800;
    margin-bottom: 3px;
}

.sw-lpmc-modal-saving-item strong {
    display: block;
    color: #008000;
    font-size: 13px;
    line-height: 1.35;
    font-weight: 900;
    word-break: break-word;
}

.sw-lpmc-modal-meta {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sw-lpmc-modal-sku,
.sw-lpmc-modal-tip {
    display: inline-flex;
    align-items: center;
    background: #f4f5f6;
    color: #666;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 800;
}

.sw-lpmc-modal-footer {
    padding: 0 18px 18px;
}

.sw-lpmc-modal-link {
    display: flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: #111;
    color: #fff !important;
    font-size: 15px;
    font-weight: 900;
    text-decoration: none !important;
}

/* responsive */
@media (max-width: 1024px) {
    .sw-lpmc-cols-tablet-1 .sw-lpmc-grid,
    .sw-lpmc-cols-tablet-1 .sw-lpmc-bundle-row { grid-template-columns: repeat(1, minmax(0, 1fr)); }
    .sw-lpmc-cols-tablet-2 .sw-lpmc-grid,
    .sw-lpmc-cols-tablet-2 .sw-lpmc-bundle-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sw-lpmc-cols-tablet-3 .sw-lpmc-grid,
    .sw-lpmc-cols-tablet-3 .sw-lpmc-bundle-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .sw-lpmc-cols-tablet-4 .sw-lpmc-grid,
    .sw-lpmc-cols-tablet-4 .sw-lpmc-bundle-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
    .sw-lpmc-cols-mobile-1 .sw-lpmc-grid,
    .sw-lpmc-cols-mobile-1 .sw-lpmc-bundle-row { grid-template-columns: repeat(1, minmax(0, 1fr)); }
    .sw-lpmc-cols-mobile-2 .sw-lpmc-grid,
    .sw-lpmc-cols-mobile-2 .sw-lpmc-bundle-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .sw-lpmc-bundle {
        padding: 12px;
    }

    .sw-lpmc-card {
        min-height: 72px;
    }

    .sw-lpmc-modal {
        border-radius: 22px;
    }

    .sw-lpmc-modal-top {
        grid-template-columns: 92px minmax(0, 1fr);
        gap: 12px;
    }

    .sw-lpmc-modal-image {
        width: 92px;
        height: 92px;
        border-radius: 16px;
    }

    .sw-lpmc-modal-saving-box {
        grid-template-columns: 1fr;
    }
}


/* v2.3 cleaner price modal */
.sw-lpmc-modal-saving-box {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sw-lpmc-modal-saving-item strong {
    font-size: 14px;
    line-height: 1.35;
}

.sw-lpmc-modal-saving-item.sw-lpmc-modal-offer strong {
    color: #006b1b;
}

.sw-lpmc-modal-price-row strong,
.sw-lpmc-modal-saving-item strong {
    direction: rtl;
    unicode-bidi: plaintext;
}

@media (max-width: 767px) {
    .sw-lpmc-modal-saving-box {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
    }

    .sw-lpmc-modal-saving-item {
        padding: 8px 5px;
    }

    .sw-lpmc-modal-saving-item span {
        font-size: 10px;
    }

    .sw-lpmc-modal-saving-item strong {
        font-size: 12px;
    }
}


/* v2.4 compact bundle + clean price summary */
.sw-lpmc-compact .sw-lpmc-bundle {
    padding: 12px;
    border-radius: 18px;
}

.sw-lpmc-compact .sw-lpmc-bundle-head {
    margin-bottom: 10px;
}

.sw-lpmc-compact .sw-lpmc-bundle-title {
    font-size: 18px;
    margin-bottom: 2px;
}

.sw-lpmc-compact .sw-lpmc-bundle-subtitle {
    font-size: 13px;
    margin-bottom: 0;
}

.sw-lpmc-compact .sw-lpmc-card {
    min-height: 74px;
    padding: 8px;
}

.sw-lpmc-compact .sw-lpmc-badge {
    padding: 3px 8px;
}

.sw-lpmc-compact .sw-lpmc-bundle-summary.sw-lpmc-summary-clean {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #e7e7e7;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.sw-lpmc-compact .sw-lpmc-summary-clean .sw-lpmc-summary-line,
.sw-lpmc-compact .sw-lpmc-summary-clean .sw-lpmc-saving {
    min-height: 58px;
    border-radius: 14px;
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 3px;
    text-align: center;
}

.sw-lpmc-compact .sw-lpmc-summary-clean .sw-lpmc-summary-line {
    background: #f8fafc;
    border: 1px solid #eef1f4;
}

.sw-lpmc-compact .sw-lpmc-summary-clean .sw-lpmc-summary-line span,
.sw-lpmc-compact .sw-lpmc-summary-clean .sw-lpmc-saving span {
    font-size: 12px;
    line-height: 1.25;
    color: #666;
    font-weight: 900;
}

.sw-lpmc-compact .sw-lpmc-summary-clean .sw-lpmc-summary-line strong,
.sw-lpmc-compact .sw-lpmc-summary-clean .sw-lpmc-saving strong {
    font-size: 15px;
    line-height: 1.25;
    font-weight: 900;
    color: var(--sw-lpmc-price-color, #008000);
    text-decoration: none;
    direction: rtl;
    unicode-bidi: plaintext;
}

.sw-lpmc-compact .sw-lpmc-summary-clean .sw-lpmc-separate-total strong {
    color: #777;
    text-decoration: line-through;
}

.sw-lpmc-compact .sw-lpmc-summary-clean .sw-lpmc-saving {
    background: var(--sw-lpmc-saving-bg, #e8f7ec);
    color: var(--sw-lpmc-saving-color, #008000);
}

.sw-lpmc-compact .sw-lpmc-summary-clean .sw-lpmc-saving em {
    margin-top: 2px;
    font-size: 11px;
    line-height: 1;
    padding: 4px 7px;
}

@media (max-width: 767px) {
    .sw-lpmc-compact .sw-lpmc-bundle-summary.sw-lpmc-summary-clean {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
    }

    .sw-lpmc-compact .sw-lpmc-summary-clean .sw-lpmc-summary-line,
    .sw-lpmc-compact .sw-lpmc-summary-clean .sw-lpmc-saving {
        min-height: 54px;
        padding: 7px 5px;
    }

    .sw-lpmc-compact .sw-lpmc-summary-clean .sw-lpmc-summary-line span,
    .sw-lpmc-compact .sw-lpmc-summary-clean .sw-lpmc-saving span {
        font-size: 10px;
    }

    .sw-lpmc-compact .sw-lpmc-summary-clean .sw-lpmc-summary-line strong,
    .sw-lpmc-compact .sw-lpmc-summary-clean .sw-lpmc-saving strong {
        font-size: 12px;
    }
}


/* v2.5 flexible layouts + per-item modal pricing */
.sw-lpmc-pro .sw-lpmc-grid:empty,
.sw-lpmc-pro .sw-lpmc-bundle-row:empty,
.sw-lpmc-pro .sw-lpmc-bundle-summary:empty {
    display: none !important;
}

.sw-lpmc-compact .sw-lpmc-bundle-summary.sw-lpmc-summary-clean {
    grid-template-columns: repeat(var(--sw-summary-cols, 3), minmax(0, 1fr));
}

.sw-lpmc-summary-count-1 { --sw-summary-cols: 1; }
.sw-lpmc-summary-count-2 { --sw-summary-cols: 2; }
.sw-lpmc-summary-count-3 { --sw-summary-cols: 3; }

.sw-lpmc-summary-count-1 .sw-lpmc-summary-line,
.sw-lpmc-summary-count-1 .sw-lpmc-saving {
    flex-direction: row !important;
    justify-content: space-between !important;
    text-align: start !important;
}

.sw-lpmc-card:not(:has(.sw-lpmc-image)) .sw-lpmc-content {
    padding: 4px 2px;
}

.sw-lpmc-card:not(:has(.sw-lpmc-badge)) .sw-lpmc-name {
    margin-top: 0;
}

.sw-lpmc-modal-top:not(:has(.sw-lpmc-modal-image[style*="display: none"])) {
    align-items: center;
}

.sw-lpmc-modal-saving-box.sw-lpmc-modal-saving-count-1 {
    grid-template-columns: 1fr;
}

.sw-lpmc-modal-saving-box.sw-lpmc-modal-saving-count-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sw-lpmc-modal-saving-box.sw-lpmc-modal-saving-count-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sw-lpmc-modal-saving-count-1 .sw-lpmc-modal-saving-item,
.sw-lpmc-modal-saving-count-2 .sw-lpmc-modal-saving-item {
    min-height: 58px;
}

.sw-lpmc-modal-saving-item strong {
    white-space: normal;
    overflow-wrap: anywhere;
}

@media (max-width: 767px) {
    .sw-lpmc-compact .sw-lpmc-bundle-summary.sw-lpmc-summary-clean {
        grid-template-columns: repeat(var(--sw-summary-cols, 3), minmax(0, 1fr));
    }

    .sw-lpmc-summary-count-1 .sw-lpmc-summary-line,
    .sw-lpmc-summary-count-1 .sw-lpmc-saving {
        min-height: 48px;
    }

    .sw-lpmc-summary-count-2 .sw-lpmc-summary-line,
    .sw-lpmc-summary-count-2 .sw-lpmc-saving {
        min-height: 54px;
    }
}

/* Fallback for browsers without :has support */
@supports not selector(:has(*)) {
    .sw-lpmc-card .sw-lpmc-content {
        min-width: 0;
    }
}


/* v2.6 modal close position control */
.sw-lpmc-modal-overlay.sw-lpmc-modal-close-left .sw-lpmc-modal-close {
    left: 14px;
    right: auto;
    inset-inline-start: auto;
    inset-inline-end: auto;
}

.sw-lpmc-modal-overlay.sw-lpmc-modal-close-right .sw-lpmc-modal-close {
    right: 14px;
    left: auto;
    inset-inline-start: auto;
    inset-inline-end: auto;
}

.sw-lpmc-modal-overlay.sw-lpmc-modal-close-left .sw-lpmc-modal-title {
    padding-left: 52px;
    padding-right: 0;
}

.sw-lpmc-modal-overlay.sw-lpmc-modal-close-right .sw-lpmc-modal-title {
    padding-right: 52px;
    padding-left: 0;
}


/* v2.7 text close button + safer header spacing */
.sw-lpmc-modal-close {
    width: auto !important;
    min-width: 58px;
    height: 36px !important;
    padding: 0 14px !important;
    border-radius: 999px !important;
    background: #f3f4f6 !important;
    color: #222 !important;
    cursor: pointer;
    font-size: 14px !important;
    line-height: 36px !important;
    font-weight: 900 !important;
    text-align: center;
}

.sw-lpmc-modal-overlay.sw-lpmc-modal-close-left .sw-lpmc-modal-close {
    left: 14px;
    right: auto;
    inset-inline-start: auto;
    inset-inline-end: auto;
}

.sw-lpmc-modal-overlay.sw-lpmc-modal-close-right .sw-lpmc-modal-close {
    right: 14px;
    left: auto;
    inset-inline-start: auto;
    inset-inline-end: auto;
}

.sw-lpmc-modal-overlay.sw-lpmc-modal-close-left .sw-lpmc-modal-title {
    padding-left: 82px !important;
    padding-right: 0 !important;
}

.sw-lpmc-modal-overlay.sw-lpmc-modal-close-right .sw-lpmc-modal-title {
    padding-right: 82px !important;
    padding-left: 0 !important;
}

@media (max-width: 420px) {
    .sw-lpmc-modal-close {
        min-width: 52px;
        height: 34px !important;
        line-height: 34px !important;
        padding: 0 11px !important;
        font-size: 13px !important;
    }

    .sw-lpmc-modal-overlay.sw-lpmc-modal-close-left .sw-lpmc-modal-title {
        padding-left: 72px !important;
    }

    .sw-lpmc-modal-overlay.sw-lpmc-modal-close-right .sw-lpmc-modal-title {
        padding-right: 72px !important;
    }
}


/* v3.2 Feature Checks layout */
.sw-lpmc-layout-feature_checks .sw-lpmc-feature-layout {
    background: #fff;
    border: 1px solid #ececec;
    border-radius: calc(var(--sw-lpmc-card-radius, 14px) + 6px);
    padding: 14px;
    box-shadow: 0 4px 18px rgba(0,0,0,.035);
}

.sw-lpmc-layout-feature_checks .sw-lpmc-feature-row {
    display: flex;
    align-items: stretch;
    gap: 10px;
    flex-wrap: wrap;
}

.sw-lpmc-layout-feature_checks .sw-lpmc-feature-col {
    flex: 1 1 280px;
    min-width: 0;
}

.sw-lpmc-layout-feature_checks .sw-lpmc-plus {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    min-width: 28px;
    font-size: 20px;
    font-weight: 900;
    color: #6b7280;
    align-self: center;
}

.sw-lpmc-feature-item {
    width: 100%;
    display: block;
    border: 1px solid #e7e9ef;
    border-radius: 16px;
    background: #f9fafc;
    padding: 12px;
    text-decoration: none !important;
    color: inherit !important;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    text-align: start;
}

.sw-lpmc-feature-item:hover {
    transform: translateY(-1px);
    border-color: #111;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .08);
}

.sw-lpmc-feature-top {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.sw-lpmc-feature-thumb {
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #edf0f4;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sw-lpmc-feature-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sw-lpmc-feature-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sw-lpmc-feature-head {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.sw-lpmc-feature-check {
    width: 18px;
    min-width: 18px;
    height: 18px;
    border-radius: 6px;
    background: #008000;
    color: #fff;
    font-size: 11px;
    line-height: 18px;
    font-weight: 900;
    text-align: center;
    margin-top: 2px;
}

.sw-lpmc-feature-name {
    color: #202124;
    font-size: 15px;
    line-height: 1.45;
    font-weight: 900;
    word-break: break-word;
}

.sw-lpmc-feature-price {
    color: var(--sw-lpmc-price-color, #008000);
    font-size: 15px;
    line-height: 1.35;
    font-weight: 900;
}

.sw-lpmc-feature-price del {
    color: var(--sw-lpmc-old-price-color, #999);
    margin-inline-start: 5px;
}

.sw-lpmc-feature-price ins {
    color: var(--sw-lpmc-price-color, #008000);
    text-decoration: none;
}

.sw-lpmc-feature-list {
    display: grid;
    gap: 5px;
    margin-top: 2px;
}

.sw-lpmc-feature-line {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    color: #4b5563;
    font-size: 12px;
    line-height: 1.55;
    font-weight: 700;
}

.sw-lpmc-feature-line i {
    color: #008000;
    font-style: normal;
    line-height: 1.3;
}

@media (max-width: 767px) {
    .sw-lpmc-layout-feature_checks .sw-lpmc-feature-row {
        flex-direction: column;
        gap: 8px;
    }

    .sw-lpmc-layout-feature_checks .sw-lpmc-plus {
        width: 100%;
        min-width: 100%;
        height: 16px;
        line-height: 16px;
    }

    .sw-lpmc-feature-thumb {
        width: 48px;
        height: 48px;
        min-width: 48px;
    }

    .sw-lpmc-feature-name {
        font-size: 14px;
    }
}


/* v3.5 Feature Checks layout fixes */
.sw-lpmc-layout-feature_checks .sw-lpmc-feature-layout {
    padding: 16px;
}

.sw-lpmc-layout-feature_checks .sw-lpmc-feature-row {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: stretch;
    gap: 12px;
}

.sw-lpmc-layout-feature_checks .sw-lpmc-feature-col {
    flex: 1 1 0;
    min-width: 0;
}

.sw-lpmc-layout-feature_checks .sw-lpmc-plus {
    width: 34px;
    min-width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    color: #475569;
    font-size: 22px;
    line-height: 1;
    box-shadow: 0 3px 10px rgba(0,0,0,.04);
    align-self: center;
}

.sw-lpmc-feature-item {
    min-height: unset;
    height: auto;
    padding: 14px;
    border-radius: 18px;
    background: #fbfcfe;
}

.sw-lpmc-feature-top {
    align-items: center;
}

.sw-lpmc-feature-thumb {
    width: 64px;
    height: 64px;
    min-width: 64px;
    border-radius: 14px;
}

.sw-lpmc-feature-main {
    gap: 5px;
}

.sw-lpmc-feature-head {
    align-items: center;
}

.sw-lpmc-feature-name {
    font-size: 16px;
    line-height: 1.45;
}

.sw-lpmc-feature-price {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    font-size: 15px;
    line-height: 1.4;
}

.sw-lpmc-feature-price .amount {
    white-space: nowrap;
}

.sw-lpmc-feature-list {
    margin-top: 4px;
}

.sw-lpmc-feature-line {
    font-size: 12px;
    line-height: 1.6;
}

@media (max-width: 991px) {
    .sw-lpmc-layout-feature_checks .sw-lpmc-feature-row {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .sw-lpmc-layout-feature_checks .sw-lpmc-feature-col {
        width: 100%;
        flex: 1 1 auto;
    }

    .sw-lpmc-layout-feature_checks .sw-lpmc-plus {
        width: 36px;
        min-width: 36px;
        height: 36px;
        margin: 0 auto;
    }
}

@media (max-width: 767px) {
    .sw-lpmc-layout-feature_checks .sw-lpmc-feature-layout {
        padding: 12px;
    }

    .sw-lpmc-feature-item {
        padding: 12px;
    }

    .sw-lpmc-feature-thumb {
        width: 58px;
        height: 58px;
        min-width: 58px;
    }

    .sw-lpmc-feature-name {
        font-size: 15px;
    }

    .sw-lpmc-feature-price {
        font-size: 14px;
    }
}
