.lc-app {
    --lc-red: #c8102e;
    --lc-red-dark: #9f0c24;
    --lc-ink: #20242a;
    --lc-muted: #6e747c;
    --lc-line: #dfe3e8;
    --lc-soft: #f4f6f8;
    --lc-blue: #eaf2f8;
    position: relative;
    padding: 12px 0;
    color: var(--lc-ink);
    font-family: Arial, sans-serif;
}

.lc-header {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 24px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 3px solid var(--lc-ink);
}

.lc-header h1,
.lc-section-heading h2,
.lc-context h2 {
    margin: 0;
    color: var(--lc-ink);
    font-weight: 700;
}

.lc-header h1 { font-size: 28px; letter-spacing: -.5px; }
.lc-section-heading h2 { font-size: 19px; }
.lc-context h2 { font-size: 24px; }
.lc-context__brand-block h2 { font-size: 17px; }

.lc-text-button {
    color: var(--lc-red);
    font-size: 13px;
    font-weight: 700;
}

.lc-text-button:hover,
.lc-text-button:focus { color: var(--lc-red-dark); }

.lc-eyebrow,
.lc-step {
    margin: 0 0 3px;
    color: var(--lc-muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.3px;
    text-transform: uppercase;
}

.lc-match-count {
    padding: 7px 10px;
    border-radius: 3px;
    background: var(--lc-soft);
    color: #4f555d;
    font-size: 12px;
    font-weight: 700;
}

.lc-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 24px;
}

.lc-workspace {
    min-width: 0;
}

.lc-context {
    align-self: start;
    position: sticky;
    top: 130px;
    z-index: 5;
    max-height: calc(100vh - 140px);
    overflow-x: hidden;
    overflow-y: auto;
    padding: 14px;
    border: 1px solid var(--lc-line);
    border-top: 4px solid var(--lc-red);
    background: #fff;
    -webkit-overflow-scrolling: touch;
}

.lc-context .lc-summary {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--lc-line);
}

.lc-context .lc-summary .lc-section-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    margin-bottom: 10px;
}

.lc-context .lc-summary .lc-section-heading h2 {
    font-size: 16px;
}

.lc-context .lc-selected-list {
    flex-direction: column;
}

.lc-context .lc-selected-chip {
    width: 100%;
    box-sizing: border-box;
}

.lc-context__visual {
    display: flex;
    height: 150px;
    margin: 0 0 14px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: radial-gradient(circle, #fff 0, #f5f7f9 70%);
}

.lc-context__visual img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.lc-lens-mark {
    width: 104px;
    height: 104px;
    border: 2px solid #9fb0bc;
    border-radius: 50%;
    box-shadow: inset 12px -8px 22px rgba(87, 126, 151, .13), 7px 7px 0 rgba(200, 16, 46, .08);
}

.lc-context__brand {
    margin: 0 0 2px;
    color: var(--lc-red);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .8px;
    text-transform: uppercase;
}

.lc-context__name,
.lc-context__hint {
    margin: 8px 0 0;
    color: var(--lc-muted);
    font-size: 12px;
    line-height: 1.45;
}
.lc-context__hint { font-size: 10px; }

.lc-workspace > section {
    margin-bottom: 12px;
    padding: 16px;
    border: 1px solid var(--lc-line);
    background: #fff;
}

.lc-matrix-section {
    overflow: hidden;
    min-width: 0;
}

.lc-manufacturer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
    gap: 10px;
}

.lc-manufacturer-card {
    display: flex;
    min-height: 158px;
    flex-direction: column;
    align-items: stretch;
    padding: 8px;
    border: 1px solid #b9c0c7;
    border-radius: 3px;
    background: #fff;
    color: var(--lc-ink);
    text-align: center;
}

.lc-manufacturer-card:hover,
.lc-manufacturer-card:focus {
    border-color: var(--lc-red);
    outline: none;
}

.lc-manufacturer-card.is-selected {
    border-color: var(--lc-red);
    box-shadow: inset 0 0 0 1px var(--lc-red), 0 0 0 2px rgba(200, 16, 46, .12);
}

.lc-manufacturer-card__visual {
    display: flex;
    height: 104px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: radial-gradient(circle, #fff 0, #f5f7f9 70%);
}

.lc-manufacturer-card__visual img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.lc-manufacturer-card__label {
    display: block;
    margin-top: 8px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
}

.lc-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 13px;
}

.lc-collapse > .lc-section-heading {
    margin-bottom: 0;
}

.lc-collapse.is-open > .lc-section-heading {
    margin-bottom: 13px;
}

.lc-collapse-toggle {
    display: flex;
    width: 100%;
    min-height: 48px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: left;
}

.lc-collapse-toggle:hover,
.lc-collapse-toggle:focus {
    outline: none;
}

.lc-collapse-toggle:focus .lc-collapse-toggle__icon {
    box-shadow: 0 0 0 2px rgba(200, 16, 46, .25);
}

.lc-collapse-toggle__text {
    min-width: 0;
}

.lc-collapse-toggle__text .lc-step {
    display: block;
    margin-bottom: 2px;
}

.lc-collapse-title {
    display: block;
    margin: 0;
    color: var(--lc-ink);
    font-size: 19px;
    font-weight: 700;
    line-height: 1.25;
}

.lc-collapse-summary {
    display: block;
    margin-top: 3px;
    overflow: hidden;
    color: var(--lc-muted);
    font-size: 12px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lc-collapse.is-open .lc-collapse-summary {
    display: none;
}

.lc-collapse-toggle__icon {
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    border: 1px solid #c5ccd3;
    border-radius: 3px;
    background: #fff;
    position: relative;
}

.lc-collapse-toggle__icon:before,
.lc-collapse-toggle__icon:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    background: #4f555d;
    transition: transform .15s ease;
}

.lc-collapse-toggle__icon:before {
    width: 12px;
    height: 2px;
    margin: -1px 0 0 -6px;
}

.lc-collapse-toggle__icon:after {
    width: 2px;
    height: 12px;
    margin: -6px 0 0 -1px;
}

.lc-collapse.is-open .lc-collapse-toggle__icon:after {
    transform: scaleY(0);
}

.lc-collapse-panel[hidden] {
    display: none !important;
}

.lc-text-button {
    padding: 5px 0;
    border: 0;
    background: none;
}

.lc-selected-list,
.lc-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.lc-selected-chip {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    gap: 7px;
    padding: 5px 7px 5px 10px;
    border: 1px solid #c6ccd2;
    border-radius: 3px;
    background: #fff;
}

.lc-selected-chip--fixed { background: var(--lc-soft); }
.lc-selected-chip--from-sku {
    border-style: dashed;
    background: #faf6f6;
}
.lc-selected-chip > span {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}
.lc-selected-chip small { display: block; color: var(--lc-muted); font-size: 9px; line-height: 1; text-transform: uppercase; }
.lc-selected-chip strong { display: block; font-size: 12px; line-height: 1.2; }
.lc-selected-chip button {
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    border-radius: 2px;
    background: transparent;
    color: #777;
    font-size: 20px;
    line-height: 28px;
}
.lc-selected-chip button:hover,
.lc-selected-chip button:focus { background: #f4e7ea; color: var(--lc-red); outline: none; }

.lc-chip-group + .lc-chip-group { margin-top: 13px; }
.lc-optical-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 13px;
    align-items: flex-end;
}
.lc-optical-row + .lc-chip-group,
.lc-optical-row + .lc-optical-row { margin-top: 13px; }
.lc-optical-row .lc-chip-group {
    flex: 0 1 205px;
    width: 100%;
    max-width: 205px;
    margin-top: 0;
    min-width: 0;
}
.lc-optical-row .lc-chip-group--checkbox {
    flex: 1 1 220px;
    max-width: none;
    display: flex;
    align-items: center;
    min-height: 42px;
}
.lc-optical-row .lc-multiselect,
.lc-optical-row .lc-multiselect__toggle {
    width: 100%;
    max-width: 205px;
}
.lc-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 0;
    min-height: 42px;
    border: 0;
    background: transparent;
    color: #31363c;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    cursor: pointer;
    user-select: none;
}
.lc-checkbox input {
    width: 18px;
    height: 18px;
    margin: 0;
    flex: 0 0 auto;
    accent-color: var(--lc-red);
    cursor: pointer;
}
.lc-checkbox.is-disabled {
    opacity: .55;
    cursor: not-allowed;
}
.lc-checkbox.is-disabled input {
    cursor: not-allowed;
}
.lc-chip-group h3,
.lc-control-label {
    display: block;
    margin: 0 0 7px;
    color: #4f555d;
    font-size: 12px;
    font-weight: 700;
}

.lc-chip {
    min-width: 135px;
    min-height: 42px;
    padding: 8px 13px;
    border: 1px solid #b9c0c7;
    border-radius: 3px;
    background: #fff;
    color: #31363c;
    font-size: 12px;
    font-weight: 600;
}

.lc-chip:hover,
.lc-chip:focus { border-color: var(--lc-red); color: var(--lc-red); outline: none; }
.lc-chip.is-selected {
    border-color: var(--lc-red);
    background: var(--lc-red);
    color: #fff;
    box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .12);
}
.lc-chip.is-from-sku:not(.is-selected) {
    border-color: var(--lc-red);
    box-shadow: inset 0 0 0 1px rgba(200, 16, 46, .2);
}
.lc-chip-group[data-group="pokrytieOchkovoyLinzy"] .lc-chip {
    min-width: 65px;
}
.lc-chip--compact { min-width: 54px; min-height: 40px; }

.lc-multiselect {
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 205px;
}

.lc-multiselect__toggle {
    display: inline-flex;
    width: 100%;
    max-width: 205px;
    min-width: 0;
    min-height: 42px;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 12px;
    border: 1px solid #b9c0c7;
    border-radius: 3px;
    background: #fff;
    color: #31363c;
    font-size: 12px;
    font-weight: 600;
    text-align: left;
    box-sizing: border-box;
}

.lc-multiselect__toggle:hover,
.lc-multiselect__toggle:focus { border-color: var(--lc-red); color: var(--lc-red); outline: none; }
.lc-multiselect__toggle.has-selection {
    border-color: var(--lc-red);
    box-shadow: inset 0 0 0 1px rgba(200, 16, 46, .2);
}

.lc-multiselect__label {
    overflow: hidden;
    max-width: 100%;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lc-multiselect__caret {
    flex: 0 0 auto;
    width: 0;
    height: 0;
    border-top: 5px solid currentColor;
    border-right: 4px solid transparent;
    border-left: 4px solid transparent;
    opacity: .6;
}

.lc-multiselect__panel {
    position: absolute;
    z-index: 10;
    top: calc(100% + 4px);
    left: 0;
    width: max-content;
    min-width: 100%;
    max-width: calc(100vw - 24px);
    border: 1px solid #b9c0c7;
    border-radius: 3px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(32, 36, 42, .16);
}

.lc-multiselect__panel[hidden] { display: none !important; }

.lc-multiselect__list {
    display: grid;
    grid-template-columns: repeat(4, max-content);
    gap: 4px;
    max-height: 280px;
    overflow-x: auto;
    overflow-y: auto;
    padding: 6px;
}

.lc-multiselect__option {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    box-sizing: border-box;
    min-height: 36px;
    padding: 6px 8px;
    border: 1px solid #b9c0c7;
    border-radius: 3px;
    background: #fff;
    color: #31363c;
    font-size: 12px;
    font-weight: 600;
    text-align: left;
    white-space: nowrap;
    cursor: pointer;
}

.lc-multiselect__option:hover {
    border-color: var(--lc-red);
    background: var(--lc-soft);
}
.lc-multiselect__option:has(input:checked) {
    border-color: var(--lc-red);
    box-shadow: inset 0 0 0 1px rgba(200, 16, 46, .2);
}
.lc-multiselect__option input {
    flex: 0 0 auto;
    width: 15px;
    height: 15px;
    margin: 0;
    accent-color: var(--lc-red);
}
.lc-multiselect__option span {
    flex: 0 0 auto;
    line-height: 1.15;
    white-space: nowrap;
}
.lc-multiselect__option input:disabled ~ span { color: #adb2b7; }
.lc-multiselect__option:has(input:disabled) {
    border-color: #d5d9dd;
    cursor: not-allowed;
    opacity: .65;
}

.lc-matrix-controls {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 12px;
    padding: 11px;
    background: var(--lc-soft);
}

.lc-matrix-legend { color: var(--lc-muted); font-size: 11px; }
.lc-matrix-legend i {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-right: 4px;
    border-radius: 2px;
    background: #dceaf3;
}

.lc-view-toggle {
    display: inline-flex;
    margin-bottom: 12px;
    border: 1px solid #b9c0c7;
    border-radius: 3px;
    overflow: hidden;
}

.lc-view-toggle__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 36px;
    padding: 7px 16px;
    border: 0;
    border-right: 1px solid #b9c0c7;
    background: #fff;
    color: #4f555d;
    font-size: 12px;
    font-weight: 700;
}

.lc-view-toggle__btn .glyphicon {
    font-size: 12px;
    top: 0;
}

.lc-view-toggle__btn:last-child { border-right: 0; }
.lc-view-toggle__btn:hover,
.lc-view-toggle__btn:focus { color: var(--lc-red); outline: none; }
.lc-view-toggle__btn.is-active {
    background: var(--lc-red);
    color: #fff;
}

.lc-list-scroll {
    max-height: 480px;
    overflow-x: auto;
    overflow-y: auto;
    border: 1px solid #cfd5da;
}

.lc-list-table {
    width: 100%;
    min-width: 520px;
    border-collapse: separate;
    border-spacing: 0;
}

.lc-list-table th {
    position: sticky;
    top: 0;
    z-index: 2;
    height: 38px;
    padding: 6px 10px;
    border-bottom: 1px solid #cfd5da;
    background: #f2f4f6;
    color: #4b5259;
    font-size: 11px;
    text-align: left;
}

.lc-list-table td {
    padding: 6px 10px;
    border-bottom: 1px solid #edf0f2;
    background: #fff;
    font-size: 12px;
    white-space: nowrap;
}

.lc-list-row--empty td { color: #adb2b7; }
.lc-list-row.is-selected td { background: #f3f8fb; }

.lc-list-pick {
    display: block;
    max-width: 320px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--lc-ink);
    font-size: 12px;
    font-weight: 700;
    text-align: left;
    white-space: normal;
}

.lc-list-pick:hover:not(:disabled),
.lc-list-pick:focus:not(:disabled) { color: var(--lc-red); outline: none; }
.lc-list-pick:disabled { color: #adb2b7; cursor: not-allowed; }
.lc-list-pick small { display: block; color: var(--lc-muted); font-size: 10px; font-weight: 400; }

.lc-variants {
    position: fixed;
    z-index: 1060;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    justify-content: flex-end;
}
.lc-variants[hidden] { display: none !important; }

.lc-variants__backdrop {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    border: 0;
    padding: 0;
    background: rgba(20, 24, 28, .42);
    cursor: pointer;
}

.lc-variants__panel {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    width: 460px;
    max-width: 100%;
    height: 100%;
    background: #fff;
    box-shadow: -12px 0 32px rgba(20, 24, 28, .18);
    outline: none;
    animation: lc-variants-in .22s ease-out;
}

.lc-variants__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px 12px;
    border-bottom: 3px solid var(--lc-ink);
}

.lc-variants__header h2 {
    margin: 0;
    font-size: 16px;
    line-height: 1.3;
}

.lc-variants__close {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    border: 1px solid var(--lc-line);
    border-radius: 3px;
    background: #fff;
    color: var(--lc-ink);
    font-size: 24px;
    line-height: 1;
}

.lc-variants__close:hover,
.lc-variants__close:focus {
    color: var(--lc-red);
    outline: 2px solid var(--lc-red);
    outline-offset: 1px;
}

.lc-variants__body {
    flex: 1 1 auto;
    overflow: auto;
    padding: 12px 14px 20px;
}

.lc-variants__bulk {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0 0 12px;
    padding: 10px 12px;
    border: 1px solid var(--lc-line);
    background: var(--lc-soft);
}

.lc-variants__bulk-qty {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lc-variants__bulk-qty-label {
    flex: 1 1 auto;
    margin: 0;
    color: var(--lc-ink);
    font-size: 12px;
    font-weight: 700;
}

.lc-variants__bulk-qty-input {
    flex: 0 0 88px;
    width: 88px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid #cfd5da;
    border-radius: 2px;
    background: #fff;
    color: var(--lc-ink);
    font-size: 14px;
    text-align: center;
}

.lc-variants__bulk-qty-input:focus {
    border-color: var(--lc-red);
    outline: 2px solid rgba(200, 16, 46, .18);
    outline-offset: 0;
}

.lc-variants__add-all {
    width: 100%;
    min-height: 40px;
    padding: 10px 14px;
    font-size: 13px;
}

.lc-variants__list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lc-variants__item {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--lc-line);
    border-top: 3px solid var(--lc-red);
    background: #fff;
}

.lc-variants__item.is-empty {
    border-top-color: #cfd5da;
    opacity: .72;
}

.lc-variants__meta strong {
    display: block;
    font-size: 13px;
    line-height: 1.35;
}

.lc-variants__meta small {
    display: block;
    margin-top: 2px;
    color: var(--lc-muted);
    font-size: 11px;
}

.lc-variants__specs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(64px, 1fr));
    gap: 6px 8px;
    margin-top: 8px;
}

.lc-variants__specs small {
    display: block;
    color: #aeb6bf;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
}

.lc-variants__specs b {
    font-size: 13px;
}

.lc-variants__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.lc-qty--compact button,
.lc-qty--compact input {
    height: 36px;
    background: #fff;
    border-color: #cfd5da;
    color: var(--lc-ink);
}

.lc-cart-button--compact {
    min-height: 36px;
    padding: 8px 14px;
    font-size: 12px;
}

.lc-variants__na {
    color: var(--lc-muted);
    font-size: 12px;
}

.lc-variants__empty {
    margin: 12px 0 0;
    color: var(--lc-muted);
    font-size: 13px;
}

body.lc-variants-open { overflow: hidden; }

.lc-auto-note {
    margin: 0 0 10px;
    padding: 8px 10px;
    border-left: 3px solid #4c8a62;
    background: #edf6f0;
    color: #356346;
    font-size: 12px;
}

.lc-debug-note {
    margin: 0 0 10px;
    padding: 6px 10px;
    border-left: 3px solid #c8a012;
    background: #fff8e1;
    color: #6b5a12;
    font-size: 12px;
    font-family: Consolas, Monaco, monospace;
}

.lc-cyl-nav {
    display: none;
    align-items: center;
    gap: 8px;
    margin: 0 0 8px;
}

.lc-cyl-nav__btn {
    flex: 0 0 32px;
    width: 32px;
    height: 36px;
    border: 1px solid #aeb5bd;
    border-radius: 3px;
    background: #fff;
    color: var(--lc-ink);
    font-size: 20px;
    line-height: 1;
}

.lc-cyl-nav__btn:disabled {
    color: #b8bfc6;
    background: #f3f5f7;
    cursor: not-allowed;
}

.lc-cyl-nav__btn:focus {
    outline: 2px solid var(--lc-red);
    outline-offset: 1px;
}

.lc-cyl-nav__current {
    flex: 1 1 auto;
    min-width: 0;
    padding: 6px 10px;
    border: 1px solid #cfd5da;
    border-radius: 3px;
    background: #f7f8fa;
    text-align: center;
}

.lc-cyl-nav__label {
    display: block;
    margin: 0;
    color: var(--lc-muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .6px;
    text-transform: uppercase;
}

.lc-cyl-nav__select {
    display: block;
    width: 100%;
    margin-top: 2px;
    padding: 2px 24px 2px 4px;
    border: 1px solid #aeb5bd;
    border-radius: 3px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%234f555d' d='M1 1l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 8px center;
    background-size: 10px 6px;
    color: var(--lc-ink);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.lc-cyl-nav__select:focus {
    border-color: var(--lc-red);
    outline: 2px solid rgba(200, 16, 46, .2);
    outline-offset: 0;
}

.lc-cyl-nav__current span {
    display: block;
    margin-top: 2px;
    color: var(--lc-muted);
    font-size: 11px;
}

.lc-matrix-scroll {
    max-height: 480px;
    overflow-x: hidden;
    overflow-y: auto;
    border: 1px solid #cfd5da;
}

.lc-matrix-table {
    width: 100%;
    min-width: 0;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
}

.lc-matrix-table th {
    height: 42px;
    min-width: 0;
    padding: 6px 2px;
    border-right: 1px solid #dfe3e8;
    border-bottom: 1px solid #cfd5da;
    background: #f2f4f6;
    color: #4b5259;
    font-size: 11px;
    text-align: center;
}

.lc-matrix-table thead th { position: sticky; top: 0; z-index: 2; }
.lc-matrix-table tbody th { position: sticky; left: 0; z-index: 1; width: 74px; }
.lc-matrix-table .lc-axis-corner { left: 0; z-index: 3; width: 74px; }
.lc-matrix-table th.is-crosshair { background: #dceaf3; color: #213949; }

.lc-matrix-table td {
    height: 47px;
    min-width: 0;
    padding: 3px;
    border-right: 1px solid #edf0f2;
    border-bottom: 1px solid #edf0f2;
    background: #fff;
}

.lc-matrix-table tr.is-crosshair td { background: #f3f8fb; }
.lc-cell {
    position: relative;
    display: block;
    width: 100%;
    height: 39px;
    padding: 3px;
    border: 1px solid #b9ccd9;
    border-radius: 2px;
    background: var(--lc-blue);
    color: #233a49;
}
.lc-cell strong { display: block; font-size: 12px; }
.lc-cell small { display: block; font-size: 9px; }
.lc-cell--multi {
    height: auto;
    min-height: 39px;
    padding: 4px 3px 5px;
}
.lc-cell__more {
    display: block;
    margin-top: 1px;
    color: var(--lc-red);
    font-size: 9px;
    font-weight: 700;
    font-style: normal;
    line-height: 1.1;
    letter-spacing: .02em;
    white-space: nowrap;
}
.lc-cell.is-selected .lc-cell__more { color: #fff; }
.lc-cell-hint {
    position: fixed;
    z-index: 1070;
    max-width: 320px;
    padding: 8px 11px;
    border-radius: 3px;
    background: #20242a;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    pointer-events: none;
    box-shadow: 0 6px 18px rgba(20, 24, 28, .22);
}
.lc-chip[data-hint] {
    cursor: help;
}
.lc-cell-hint[hidden] { display: none !important; }
.lc-cell:hover,
.lc-cell:focus { border-color: var(--lc-red); box-shadow: 0 0 0 2px rgba(200, 16, 46, .14); outline: none; }
.lc-cell.is-selected { border-color: var(--lc-red); background: var(--lc-red); color: #fff; }
.lc-cell--empty,
.lc-cell--empty:hover {
    border-color: #e3e5e7;
    background: #eceeef;
    color: #adb2b7;
    box-shadow: none;
    cursor: not-allowed;
}
.lc-app--hide-empty .lc-cell--empty { visibility: hidden; }

.lc-empty-matrix,
.lc-empty-note {
    padding: 26px 14px;
    background: var(--lc-soft);
    color: var(--lc-muted);
    text-align: center;
}
.lc-empty-matrix p { margin: 7px 0 0; }

.lc-matrix-section #lc-sticky {
    margin: 0 -16px -16px;
    min-width: 0;
}

.lc-order {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 12px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 12px 16px;
    border-top: 3px solid var(--lc-red);
    background: #20242a;
    color: #fff;
    box-sizing: border-box;
}

.lc-order__identity {
    flex: 1 1 100%;
    min-width: 0;
}
.lc-order__identity strong,
.lc-order__identity small { display: block; }
.lc-order__identity strong {
    overflow: hidden;
    font-size: 13px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.lc-order__identity small,
.lc-order__status,
.lc-order__price small { color: #aeb6bf; font-size: 10px; }
.lc-order__status { display: block; margin-bottom: 2px; text-transform: uppercase; letter-spacing: .8px; }

.lc-order__specs {
    display: flex;
    flex: 1 1 200px;
    min-width: 0;
    gap: 0;
}
.lc-order__attrs {
    display: flex;
    flex: 1 1 100%;
    flex-wrap: wrap;
    min-width: 0;
    gap: 0;
}
.lc-order__specs span,
.lc-order__attrs span {
    flex: 1 1 0;
    min-width: 0;
    padding: 5px 7px;
    border-left: 1px solid #4a5057;
}
.lc-order__attrs span { flex: 0 1 auto; min-width: 72px; }
.lc-order__specs small,
.lc-order__specs strong,
.lc-order__attrs small,
.lc-order__attrs strong { display: block; }
.lc-order__specs small,
.lc-order__attrs small { color: #aeb6bf; font-size: 9px; text-transform: uppercase; }
.lc-order__specs strong,
.lc-order__attrs strong { font-size: 13px; }
.lc-order__price { flex: 0 0 auto; min-width: 0; }
.lc-order__price strong { display: block; font-size: 17px; white-space: nowrap; }
.lc-qty { flex: 0 0 auto; }
.lc-cart-button { flex: 0 0 auto; }
.lc-login-button { flex: 1 1 180px; }

.lc-qty { display: flex; max-width: 100%; }
.lc-qty button,
.lc-qty input {
    flex: 0 0 28px;
    width: 28px;
    height: 34px;
    border: 1px solid #5d646c;
    background: #2b3036;
    color: #fff;
    text-align: center;
    box-sizing: border-box;
}
.lc-qty button { font-size: 15px; line-height: 1; }
.lc-qty input { flex: 0 0 32px; width: 32px; border-right: 0; border-left: 0; font-size: 12px; }

.lc-cart-button,
.lc-login-button {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 12px 20px;
    border: 0;
    border-radius: 3px;
    background: var(--lc-red);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
}
.lc-cart-button:hover,
.lc-cart-button:focus,
.lc-login-button:hover,
.lc-login-button:focus { background: #e11a3a; color: #fff; outline: 2px solid #fff; outline-offset: 2px; }
.lc-cart-button:disabled { background: #60666d; color: #b8bdc2; cursor: not-allowed; }

.lc-variants .lc-qty button,
.lc-variants .lc-qty input {
    height: 36px;
    background: #fff;
    border-color: #cfd5da;
    color: var(--lc-ink);
}
.lc-variants .lc-cart-button {
    min-height: 36px;
    padding: 8px 14px;
    font-size: 12px;
    width: auto;
}

.lc-loading {
    position: absolute;
    z-index: 20;
    top: 58px;
    right: 0;
    left: 244px;
    height: 3px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}
.lc-loading span {
    display: block;
    width: 35%;
    height: 100%;
    background: var(--lc-red);
    transform: translateX(-110%);
}
.lc-app.is-loading .lc-loading { opacity: 1; }
.lc-app.is-loading .lc-loading span { animation: lc-loading 1s ease-in-out infinite; }
.lc-app.is-loading .lc-workspace { opacity: .68; }
.lc-error { margin-bottom: 12px; padding: 12px; border-left: 3px solid var(--lc-red); background: #fbebee; color: #782033; }

@keyframes lc-loading {
    to { transform: translateX(390%); }
}

@keyframes lc-variants-in {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

@media (max-width: 991px) {
    .lc-app { padding: 8px 0 18px; }
    .lc-order {
        display: grid;
        min-height: 0;
        grid-template-columns: minmax(0, 1fr) auto auto;
        grid-template-areas:
            "identity identity identity"
            "attrs attrs attrs"
            "specs specs specs"
            "price qty cart";
        gap: 8px 10px;
        padding: 10px 14px;
    }
    .lc-order__status,
    .lc-order__identity small { display: none; }
    .lc-order__identity { grid-area: identity; }
    .lc-order__identity strong {
        font-size: 13px;
    }
    .lc-order__attrs {
        grid-area: attrs;
        display: flex;
        flex-wrap: wrap;
        gap: 0;
    }
    .lc-order__specs {
        grid-area: specs;
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 0;
        min-width: 0;
    }
    .lc-order__specs span { min-width: 0; padding: 2px 6px; }
    .lc-order__specs small { font-size: 8px; }
    .lc-order__specs strong { font-size: 12px; }
    .lc-order__price { grid-area: price; min-width: 0; }
    .lc-order__price small { font-size: 9px; }
    .lc-order__price strong { font-size: 15px; }
    .lc-qty { grid-area: qty; width: auto; max-width: none; justify-self: end; }
    .lc-qty button,
    .lc-qty input {
        flex-basis: 26px;
        width: 26px;
        height: 32px;
    }
    .lc-qty input { flex: 0 0 30px; width: 30px; }
    .lc-cart-button,
    .lc-login-button {
        grid-area: cart;
        justify-self: stretch;
        min-width: 0;
        min-height: 36px;
        padding: 8px 12px;
        font-size: 12px;
    }
    .lc-login-button { grid-column: 1 / -1; width: 100%; text-align: center; }
}

@media (max-width: 767px) {
    .lc-manufacturer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lc-multiselect { display: block; width: 100%; max-width: 205px; }
    .lc-multiselect__toggle { width: 100%; min-width: 0; max-width: 205px; }
    .lc-multiselect__label { max-width: none; }
    .lc-multiselect__panel { right: 0; left: 0; width: auto; max-width: none; }
    .lc-multiselect__list { grid-template-columns: repeat(3, max-content); }
    .lc-app { padding: 5px 0 18px; }
    .lc-header { grid-template-columns: 1fr; gap: 8px; align-items: start; }
    .lc-header h1 { font-size: 23px; }
    .lc-match-count { justify-self: start; }
    .lc-layout { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .lc-workspace,
    .lc-workspace > section,
    .lc-matrix-section,
    .lc-matrix-scroll {
        min-width: 0;
        max-width: 100%;
    }
    .lc-context {
        position: static;
        z-index: auto;
        max-height: none;
        overflow: visible;
    }
    .lc-context__brand-block {
        display: grid;
        grid-template-columns: 82px minmax(0, 1fr);
        column-gap: 12px;
    }
    .lc-context__visual { grid-row: 1 / span 4; width: 82px; height: 82px; margin: 0; }
    .lc-context__brand,
    .lc-context__brand-block h2,
    .lc-context__name,
    .lc-context__hint { grid-column: 2; }
    .lc-context__brand-block h2 { font-size: 17px; }
    .lc-context__hint { display: none; }
    .lc-context .lc-summary { margin-top: 12px; }
    .lc-workspace > section { padding: 12px; }
    .lc-matrix-section #lc-sticky { margin: 0 -12px -12px; }
    .lc-chip-row { flex-wrap: wrap; overflow-x: visible; padding-bottom: 0; }
    .lc-chip { flex: 0 1 auto; }
    .lc-matrix-controls { align-items: stretch; flex-direction: column; gap: 12px; }
    .lc-matrix-heading { align-items: flex-start; flex-direction: column; }
    .lc-cyl-nav { display: flex; }
    .lc-matrix-scroll {
        max-height: min(520px, 60vh);
        overflow-x: hidden;
        overflow-y: auto;
    }
    .lc-matrix-table { min-width: 0; width: 100%; }
    .lc-matrix-table th[data-cyl-index]:not(.is-cyl-active),
    .lc-matrix-table td[data-cyl-index]:not(.is-cyl-active) {
        display: none;
    }
    .lc-matrix-table .lc-axis-corner,
    .lc-matrix-table tbody th {
        width: 72px;
        min-width: 72px;
        max-width: 72px;
        padding: 4px 2px;
        font-size: 11px;
    }
    .lc-matrix-table th.is-cyl-active,
    .lc-matrix-table td.is-cyl-active {
        width: auto;
        min-width: 0;
    }
    .lc-matrix-table th,
    .lc-matrix-table td { min-width: 0; padding: 2px; }
    .lc-matrix-table th {
        height: 32px;
    }
    .lc-matrix-table td {
        height: 34px;
    }
    .lc-matrix-table th.is-cyl-active {
        font-size: 12px;
        font-weight: 700;
    }
    .lc-cell {
        height: 30px;
        min-height: 30px;
        padding: 1px;
    }
    .lc-cell--multi {
        height: auto;
        min-height: 34px;
        padding: 3px 2px 4px;
    }
    .lc-cell strong { font-size: 12px; }
    .lc-order {
        padding: 10px 12px;
        gap: 8px;
    }
    .lc-order__identity strong { font-size: 12px; }
    .lc-order__specs {
        display: flex;
        flex-wrap: wrap;
        gap: 0;
    }
    .lc-order__specs span,
    .lc-order__attrs span {
        flex: 1 1 0;
        min-width: 0;
        padding: 2px 6px;
    }
    .lc-loading { top: 44px; left: 0; }
}

@media (max-width: 379px) {
    .lc-order {
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "identity identity"
            "attrs attrs"
            "specs specs"
            "price qty"
            "cart cart";
    }
    .lc-cart-button { width: 100%; }
}

@media (max-width: 767px) {
    .lc-variants__panel { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .lc-app.is-loading .lc-loading span { animation: none; transform: translateX(100%); }
    .lc-variants__panel { animation: none; }
}
