.kj-sticky-panel {
    position:fixed; z-index:1000; left:50%; transform:translateX(-50%);
    width:calc(100% - 24px); max-width:760px; box-sizing:border-box;
    display:flex; align-items:center; gap:14px; padding:10px 14px;
    padding-bottom:calc(10px + env(safe-area-inset-bottom, 0px));
    border:1px solid #ddd; border-radius:8px 8px 0 0; background:#fff;
    box-shadow:0 -3px 16px rgba(0,0,0,.12); color:#333;
}
.kj-sticky-panel[hidden], .kj-sticky-panel [hidden] {display:none!important}
.kj-sticky-panel .kj-sticky-info {display:flex; flex:1; flex-wrap:wrap; align-items:center; gap:4px 18px; min-width:0}
.kj-sticky-panel .kj-sticky-camera {border:0; background:transparent; padding:3px 0; color:inherit; text-decoration:underline; cursor:pointer}
.kj-sticky-panel .kj-sticky-sum {font-weight:700; overflow-wrap:anywhere}
.kj-sticky-panel .kj-sticky-reason {flex-basis:100%; font-size:12px; color:#a94442}
.kj-sticky-panel .kj-sticky-add {flex-shrink:0; white-space:normal; min-width:125px}
.kj-sticky-space {height:0; clear:both}
body.kj-sticky-page .scroll_up, body.kj-sticky-page .fly_callback {
    bottom:calc(var(--kj-sticky-height, 0px) + var(--kj-sticky-bottom, 0px) + 20px);
}
body.kj-sticky-page .fly_callback {right:84px}
@media(max-width:540px) {
    .kj-sticky-panel {width:calc(100% - 16px); padding:8px 10px; padding-bottom:calc(8px + env(safe-area-inset-bottom, 0px)); flex-direction:column; align-items:stretch; gap:6px}
    .kj-sticky-panel .kj-sticky-info {justify-content:space-between; font-size:13px; gap:3px 8px}
    .kj-sticky-panel .kj-sticky-camera {text-align:left}
    .kj-sticky-panel .kj-sticky-add {width:100%; min-width:0}
}

.kjseries .kj-clear-selection { padding: 4px 8px; }
@media (max-width: 767px) {
    .kjseries .kj-clear-selection { min-width: 36px; min-height: 44px; }
}

.kjseries .kj-price-pending td.total, .kjseries .kj-price-pending td.price_special,
.kjseries .kj-price-failed td.total, .kjseries .kj-price-failed td.price_special {opacity:.55}
.kjseries .kj-photo {display:inline-block}
.kjseries .kj-mobile-table td .kj-uah-suffix {font:inherit; display:inline; margin:0}
@media (max-width: 540px) {
    .kjseries .kj-mobile-table {table-layout:fixed; width:100%; overflow-wrap:anywhere}
    .kjseries .kj-mobile-table th.in_series {width:41px}
    .kjseries .kj-mobile-table th.image {width:52px}
    .kjseries .kj-mobile-table th.input_qty {width:66px}
    .kjseries .kj-mobile-table th.price_special, .kjseries .kj-mobile-table th.total {width:35px}
    .kjseries .kj-mobile-table td.image img {width:47px; height:47px; max-width:none; object-fit:contain}
    .kjseries .kj-mobile-table td .kj-uah-suffix {display:none}
    .kjseries .kj-mobile-table td.total span, .kjseries .kj-mobile-table td.price_special span {margin:0; white-space:normal}
    .kjseries .kj-mobile-table .input_qty .input-group {width:100%}
    .kjseries .kj-mobile-table tfoot .add-check-kjseries, .kjseries .kj-mobile-table .btn-group .btn {white-space:normal}
    .kjseries .kj-mobile-table .input_qty .btn-number {padding-inline:4px}
}

.kjseries .kj-mobile-table .kj-heading-mobile {display:none}
@media (max-width:540px) {
    .kjseries .kj-mobile-table .kj-heading-full {display:none}
    .kjseries .kj-mobile-table .kj-heading-mobile {display:inline; font-size:15px}
}
.kjseries .kj-cable-switch.btn-group {
    display:inline-flex; flex-wrap:wrap; justify-content:center; gap:7px; max-width:100%;
}
.kjseries .kj-cable-switch.btn-group::before,
.kjseries .kj-cable-switch.btn-group::after {display:none}
.kjseries .kj-cable-switch.btn-group > .btn {
    float:none; margin:0; border-radius:5px; padding:5px 9px; white-space:normal; max-width:100%;
}
.kjseries .kj-cable-switch.btn-group > .btn.active {
    background:#e8f0ff !important; border:1px solid #007bff !important; color:#005dbb !important;
    outline:none; box-shadow:inset 0 0 0 1px #007bff;
}
.kjseries .kj-cable-switch.btn-group > .btn {border-width:1px !important}
.kjseries .kj-cable-switch.btn-group > .btn:focus-visible {outline:2px solid #005dbb; outline-offset:2px}
.kjseries .kj-mobile-table tr.kj-row-checked > td {background-color:#eaf5ff}
.kjseries .kj-mobile-table tr.kj-row-checked > td.in_series {box-shadow:inset 3px 0 #2386c8}

body.kj-sticky-page > .kj-sticky-space {display:block!important}
/* KIT appearance: installation badge and section headings only. */
.kjseries .kj-camera-name {display:flex; align-items:flex-start; gap:6px; text-align:left}
.kjseries .kj-camera-name-text {flex:1; min-width:0; overflow-wrap:anywhere; word-break:break-word}
.kjseries .kj-camera-location.btn {
    flex:0 0 28px; min-width:28px; min-height:28px; padding:4px;
    line-height:1; color:#246139; background:#edf7ee; border:1px solid #b1d6b7;
    border-radius:5px; text-decoration:none; vertical-align:top;
}
.kjseries .kj-camera-location.btn:hover {color:#1e4f2d; background:#e2f1e5; border-color:#91c59c; text-decoration:none}
.kjseries .kj-camera-location.btn:focus {color:#246139; outline:2px solid #2d6b3b; outline-offset:1px; text-decoration:none}
.kjseries .kj-cctv-header > td {background:#edf7ee !important; color:#244832; border-color:#c7e3cd !important; padding:0 !important}
.kjseries .kj-cctv-header > td > .alert {background:transparent; color:inherit; border:0; border-radius:0; box-shadow:none; margin:0; padding:12px 10px; font-weight:700}

/* Desktop cable controls: keep existing mobile layout. */
@media (min-width:768px) {
    .kjseries .kj-cctv-header .kj-cable-switch {margin-left:8px}
}
