/* cart_2019compact - product selector (step 0) */

.orderpage-cart_2019compact .hbc-table-wrap {
    margin-top: 0.5rem;
}

.orderpage-cart_2019compact .hbc-table th,
.orderpage-cart_2019compact .hbc-table td {
    vertical-align: middle;
    padding: 0.75rem 1rem;
}

.orderpage-cart_2019compact .hbc-col-order {
    text-align: right;
    white-space: nowrap;
}

.orderpage-cart_2019compact .hbc-col-price {
    white-space: nowrap;
}

.orderpage-cart_2019compact .hbc-cycle-select {
    display: inline-block;
    width: auto;
    min-width: 140px;
}

.orderpage-cart_2019compact .hbc-price-na {
    font-size: 0.9em;
}

.orderpage-cart_2019compact .hbc-product-desc {
    max-width: 46ch;
}

/* Sortable column headers */

.orderpage-cart_2019compact .hbc-sortable {
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
}

.orderpage-cart_2019compact .hbc-sortable:hover {
    opacity: 0.85;
}

.orderpage-cart_2019compact .hbc-sort-icon {
    vertical-align: middle;
    margin-left: 2px;
    opacity: 0.6;
    transition: opacity 0.15s;
}

.orderpage-cart_2019compact .hbc-sortable.hbc-sort-asc .hbc-sort-icon,
.orderpage-cart_2019compact .hbc-sortable.hbc-sort-desc .hbc-sort-icon {
    opacity: 1;
}

/* Tags column / chips */

.orderpage-cart_2019compact .hbc-tag-cell {
    display: block;
}

.orderpage-cart_2019compact .hbc-tag {
    display: inline-block;
    font-size: 0.85em;
    word-break: break-word;
    margin-right: 0.4em;
    margin-bottom: 0.15em;
    transition: opacity 0.15s;
}

.orderpage-cart_2019compact .hbc-tag-clickable {
    cursor: pointer;
}

.orderpage-cart_2019compact .hbc-tag-clickable:hover {
    text-decoration: underline;
}

.orderpage-cart_2019compact .hbc-tag.hbc-tag-active {
    color: var(--brand-warning, #f6bb42) !important;
    font-weight: bold;
}

.orderpage-cart_2019compact .hbc-tag.hbc-tag-active:hover {
    filter: brightness(0.85);
}

.orderpage-cart_2019compact .hbc-row.hbc-row-hidden,
.orderpage-cart_2019compact .hbc-row.hbc-page-hidden {
    display: none !important;
}

/* "Show other categories" toggle */

.orderpage-cart_2019compact .hbc-categories-toggle {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    white-space: nowrap;
}

.orderpage-cart_2019compact .hbc-categories-toggle-icon {
    transition: transform 0.2s ease;
}

.orderpage-cart_2019compact .hbc-categories-toggle.hbc-open .hbc-categories-toggle-icon {
    transform: rotate(180deg);
}

.orderpage-cart_2019compact .hbc-categories-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.orderpage-cart_2019compact .hbc-categories-panel.hbc-open {
    max-height: 600px;
}

/* Search / filters bar (mirrors the domain pricing widget's filter UX) */

.orderpage-cart_2019compact .hbc-sf-container {
    margin-bottom: 1.25rem;
}

.orderpage-cart_2019compact .hbc-sf-row {
    display: flex;
    align-items: stretch;
    gap: 0.5rem;
    background: var(--body-bg, #fff);
    padding: 0.375rem 0.625rem;
    border-radius: 8px;
    position: relative;
    z-index: 1;
}

.orderpage-cart_2019compact .hbc-sf-search-wrap {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
}

.orderpage-cart_2019compact .hbc-sf-search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(var(--body-color-rgb, 173, 181, 189), .45);
    font-size: 1.2rem;
    pointer-events: none;
    z-index: 2;
    line-height: 1;
}

.orderpage-cart_2019compact .hbc-sf-input {
    width: 100%;
    padding-left: 2.5rem !important;
    background: rgba(var(--body-color-rgb, 248, 249, 250), .05);
    color: var(--body-color, inherit);
    transition: border-color 0.15s, background 0.15s;
}

.orderpage-cart_2019compact .hbc-sf-input:focus {
    border-color: var(--border-color, #ced4da);
    background: var(--body-bg, #fff);
    box-shadow: none;
}

.orderpage-cart_2019compact .hbc-filters-btn {
    flex: 0 0 auto;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.orderpage-cart_2019compact .hbc-filters-btn:focus {
    box-shadow: none;
}

.orderpage-cart_2019compact .hbc-filters-btn.hbc-filters-btn-active {
    filter: brightness(0.92);
}

.orderpage-cart_2019compact .hbc-filters-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    position: relative;
    z-index: 1;
}

.orderpage-cart_2019compact .hbc-filters-panel.hbc-filters-open {
    max-height: 500px;
}

.orderpage-cart_2019compact .hbc-filters-panel.hbc-filters-overflow {
    overflow: visible;
}

.orderpage-cart_2019compact .hbc-filters-inner {
    border: 1px solid var(--border-color, #dee2e6);
    border-radius: 8px;
    padding: 0.875rem 0.75rem 1rem;
    background: rgba(var(--body-color-rgb, 248, 249, 250), .05);
    margin-top: 0.5rem;
}

.orderpage-cart_2019compact .hbc-filter-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.orderpage-cart_2019compact .hbc-filter-row + .hbc-filter-row {
    margin-top: 0.875rem;
}

.orderpage-cart_2019compact .hbc-filter-row-price {
    border-top: 1px solid var(--border-color, #dee2e6);
    padding-top: 0.875rem;
}

.orderpage-cart_2019compact .hbc-filter-group {
    display: flex;
    align-items: center;
}

.orderpage-cart_2019compact .hbc-filter-group-tags {
    flex: 0 0 auto;
}

.orderpage-cart_2019compact .hbc-filter-group-clear {
    margin-left: auto;
}

.orderpage-cart_2019compact .hbc-filter-group-price {
    flex: 1 1 100%;
    flex-direction: column;
    align-items: flex-start;
}

.orderpage-cart_2019compact .hbc-filter-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: rgba(var(--body-color-rgb, 108, 117, 125), .6);
    margin: 0 0 0.35rem;
}

.orderpage-cart_2019compact .hbc-clear-all-btn {
    color: var(--brand-danger, #dc3545);
    padding: 0;
    font-size: 0.8125rem;
    white-space: nowrap;
}

.orderpage-cart_2019compact .hbc-clear-all-btn:hover {
    color: var(--brand-danger, #b02a37);
    text-decoration: underline;
}

/* Tag dropdown (inside filters panel) */

.orderpage-cart_2019compact .hbc-tag-dropdown {
    position: relative;
    display: inline-block;
}

.orderpage-cart_2019compact .hbc-tag-btn {
    white-space: nowrap;
}

.orderpage-cart_2019compact .hbc-tag-menu {
    display: none;
    position: absolute;
    left: 0;
    top: calc(100% + 2px);
    z-index: 9999;
    min-width: 230px;
    background: var(--body-bg, #fff);
    border: 1px solid rgba(var(--body-color-rgb, 0, 0, 0), .15);
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .12);
    padding: 4px 0;
}

.orderpage-cart_2019compact .hbc-tag-menu.hbc-open {
    display: block;
}

.orderpage-cart_2019compact .hbc-tag-option {
    padding: 7px 14px;
    cursor: pointer;
    font-size: 0.875rem;
    user-select: none;
    transition: background 0.1s;
}

.orderpage-cart_2019compact .hbc-tag-option:hover {
    background: rgba(var(--body-color-rgb, 248, 249, 250), .08);
}

.orderpage-cart_2019compact .hbc-tag-option.hbc-active {
    background: rgba(246, 187, 66, 0.15);
}

.orderpage-cart_2019compact .hbc-tag-clear {
    padding: 6px 14px;
    font-size: 0.8rem;
    color: rgba(var(--body-color-rgb, 108, 117, 125), .6);
    border-top: 1px solid var(--border-color, #dee2e6);
    cursor: pointer;
    text-align: right;
    user-select: none;
}

.orderpage-cart_2019compact .hbc-tag-clear:hover {
    color: var(--brand-danger, #dc3545);
}

/* Tag cloud (below the search/filter bar) */

.orderpage-cart_2019compact .hbc-tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.orderpage-cart_2019compact .hbc-tag-cloud-btn {
    transition: background 0.12s, color 0.12s, border-color 0.12s;
}

/* Price range slider */

.orderpage-cart_2019compact .hbc-price-range-display {
    color: rgba(var(--body-color-rgb, 73, 80, 87), .75);
    font-weight: normal;
    font-size: 0.875rem;
}

.orderpage-cart_2019compact .hbc-price-slider-wrap {
    position: relative !important;
    height: 36px;
    width: 100%;
    display: block;
}

.orderpage-cart_2019compact .hbc-price-track {
    position: absolute !important;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 4px;
    background: var(--border-color, #dee2e6);
    border-radius: 2px;
    pointer-events: none;
}

.orderpage-cart_2019compact .hbc-price-fill {
    position: absolute;
    height: 100%;
    background: var(--brand-primary, #3891F2);
    border-radius: 2px;
    left: 0;
    width: 100%;
}

.orderpage-cart_2019compact .hbc-range {
    -webkit-appearance: none !important;
    appearance: none !important;
    position: absolute !important;
    left: 0 !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 100% !important;
    height: 4px !important;
    min-height: 0 !important;
    background: transparent !important;
    outline: none !important;
    pointer-events: none;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
    z-index: 1;
}

.orderpage-cart_2019compact .hbc-range::-webkit-slider-thumb {
    -webkit-appearance: none !important;
    appearance: none !important;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--body-bg, #fff);
    border: 2px solid var(--brand-primary, #3891F2);
    cursor: pointer;
    pointer-events: all;
    box-shadow: 0 1px 4px rgba(0,0,0,.2);
    margin-top: -7px;
}

.orderpage-cart_2019compact .hbc-range::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--body-bg, #fff);
    border: 2px solid var(--brand-primary, #3891F2);
    cursor: pointer;
    pointer-events: all;
    box-shadow: 0 1px 4px rgba(0,0,0,.2);
}

.orderpage-cart_2019compact .hbc-range::-webkit-slider-runnable-track {
    background: transparent !important;
    height: 4px;
}

.orderpage-cart_2019compact .hbc-range::-moz-range-track {
    background: transparent !important;
    height: 4px;
}

.orderpage-cart_2019compact .hbc-range-min {
    z-index: 1;
    transform: translateZ(0) translateY(-50%) !important;
}

.orderpage-cart_2019compact .hbc-range-max {
    z-index: 2;
    transform: translateZ(0) translateY(-50%) !important;
}

/* Lazy reveal (large catalogues, pagination disabled) */

.orderpage-cart_2019compact .hbc-lazy-hidden {
    display: none !important;
}

.orderpage-cart_2019compact .hbc-lazy-sentinel-cell {
    padding: 0 !important;
    height: 1px;
    border: none !important;
}

/* Pagination */

.orderpage-cart_2019compact .hbc-pagination-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color, #dee2e6);
}

.orderpage-cart_2019compact .hbc-perpage-wrap {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.orderpage-cart_2019compact .hbc-perpage-label {
    font-size: 0.875rem;
    color: rgba(var(--body-color-rgb, 108, 117, 125), .6);
    margin-right: 0.15rem;
}

.orderpage-cart_2019compact .hbc-perpage-btn {
    min-width: 42px;
}

.orderpage-cart_2019compact .hbc-page-nav {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    flex-wrap: wrap;
}

.orderpage-cart_2019compact .hbc-page-btn {
    min-width: 34px;
    padding-left: 0.4rem;
    padding-right: 0.4rem;
}

.orderpage-cart_2019compact .hbc-page-ellipsis {
    padding: 0 0.2rem;
    color: rgba(var(--body-color-rgb, 108, 117, 125), .6);
    font-size: 0.875rem;
    line-height: 1;
}

@media (max-width: 767px) {
    .orderpage-cart_2019compact .hbc-col-order {
        text-align: left;
    }

    .orderpage-cart_2019compact .hbc-filter-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .orderpage-cart_2019compact .hbc-filter-group-clear {
        margin-left: 0;
    }

    .orderpage-cart_2019compact .hbc-filter-group-price {
        width: 100%;
    }

    .orderpage-cart_2019compact .hbc-pagination-controls {
        flex-direction: column;
        align-items: flex-start;
    }
}
