div.amshopby-column {
    float: left;
    width: 49%;
    overflow: hidden;
}

select.amshopby-select {
    width: 170px;
}

.amshopby-logo {
    padding: 0 10px 10px 0;
    float: left;
}

.amshopby-featured {
    padding: 5px;
}

.amshopby-link {
    padding: 5px 0 0 5px;
}

.amshopby-clearer {
    display: block;
    clear: both;
    overflow: hidden;
}

div.block-layered-nav dd a {
    padding: 0 5px 0 0;
    display: block;
    float: left;
}

.block-layered-nav .amshopby-attr,
.block-layered-nav .amshopby-attr:hover {
    padding-left: 15px;
    background: url(../images/amshopby-cb1.gif) left center no-repeat;
}

.block-layered-nav .amshopby-attr::before,
.block-layered-nav .amshopby-attr-selected::before {
    border-style: none;
}

.block-layered-nav .amshopby-attr-selected,
.block-layered-nav .amshopby-attr-selected:hover {
    font-weight: bold;
    padding-left: 15px;
    background: url(../images/amshopby-cb2.gif) left center no-repeat;
}

.block-layered-nav .amshopby-attr-inactive {
    pointer-events: none;
    color: #666
}

.block-layered-nav dd a img {
    float: left;
}

.block-layered-nav .single-choice a.amshopby-attr,
.block-layered-nav .single-choice a.amshopby-attr:hover {
    background-image: url(../images/amshopby-rb1.gif);
}

.block-layered-nav .single-choice a.amshopby-attr-selected,
.block-layered-nav .single-choice a.amshopby-attr-selected:hover {
    background-image: url(../images/amshopby-rb2.gif);
}

.amshopby-swatch {
    background: url(../images/amshopby-cb1.gif) left center no-repeat;
}

.block-layered-nav .amshopby-cat-level-2 {
    padding-left: 10px;
}

.block-layered-nav .amshopby-cat-level-3 {
    padding-left: 20px;
}

.block-layered-nav .amshopby-cat-selected {
    font-weight: bold;
    color: black;
    text-decoration: none;
    cursor: text;
}

.block-layered-nav .amshopby-cat-multi a {
    padding-left: 15px;
    background: url(../images/amshopby-cb1.gif) left center no-repeat;
}

.block-layered-nav .amshopby-cat-multiselected a,
.block-layered-nav .amshopby-cat-multiselected a:hover {
    font-weight: bold;
    background: url(../images/amshopby-cb2.gif) left center no-repeat;
}

.block-layered-nav span.amshopby-plusminus {
    float: left;
    display: block;
    width: 15px;
    height: 15px;
    cursor: pointer;
    background: transparent url(../images/amshopby-plus.gif) no-repeat;
}

.block-layered-nav span.minus {
    background: transparent url(../images/amshopby-minus.gif) no-repeat;
}

.block-layered-nav li:after {
    display: block;
    content: ".";
    clear: both;
    font-size: 0;
    line-height: 0;
    height: 0;
    overflow: hidden;
}

.main .block-layered-nav.amshopby-collapse-enabled dt {
    cursor: pointer;
    padding-left: 15px;
    background: url(../images/amshopby-expanded.gif) center left no-repeat;
}

.block-layered-nav.amshopby-collapse-enabled dt::after {
    border-style: none;
}

.block-layered-nav.amshopby-collapse-enabled dt.amshopby-collapsed {
    background: url(../images/amshopby-collapsed.gif) center left no-repeat;
}

.block-layered-nav.amshopby-collapse-enabled .toggle-content .no-display {
    display: block;
}

.block-layered-nav .amshopby-slider {
    position: relative;
    margin: 10px 4px 5px;
    z-index: 9;
    height: 18px;
    background: url(../images/amshopby-slider-bg.gif) repeat-x 0 50%;
    cursor: pointer;
}

.block-layered-nav .amshopby-slider .handle {
    margin-left: -4px;
    width: 8px;
    top: 3px;
    height: 14px;
    background: transparent url(../images/amshopby-hadle.png) no-repeat;
    position: absolute;
    cursor: move;
    z-index: 2;
}

/*
 * Slider labels
 */
.amshopby-slider-price {
    color: #798794;
}

.amshopby-slider-price-from {
    float: left;
}

.amshopby-slider-price-to {
    float: right;
}

.amshopby-slider-handle-right,
.amshopby-slider-handle-left {
    position: absolute;
    top: 14px;
}

.amshopby-slider-handle-left {
    left: 0;
}
.amshopby-slider-handle-right {
    right: 0;
}
.amshopby-tooltip {
    padding: 2px 5px;
    background: #FEC;
    border: 1px solid #FAA819;
    color: #1F5070;
    text-align: left;
    width: 200px;
    position: absolute;
    z-index: 1000;
}

.amshopby-slider-price-range {
    text-align: center;
    font-size: 0.9em;
}

.amshopby-tooltip-img {
    cursor: help;
    display: inline;
}

.block-layered-nav,
.amshopby-page-container,
.amshopby-filters-top {
    position: relative;
}

.amshopby-overlay {
    background-color: #FFFFFF;
    height: 100%;
    left: 0;
    opacity: 0.5;
    filter: alpha(opacity=50);
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 555;
}

.amshopby-overlay img {
    top: 100px;
    left: 45%;
    display: block;
    position: absolute;
}

.amshopby-overlay div {
    margin: 0 auto;
    display: block;
    width: 300px;
    height: 200px;
    background: url('../images/amshopby-overlay.gif') 50% 50% no-repeat;
}
/*
 * Advanced Categories
 */
.amshopby-advanced li {
    clear: both;
}

.amshopby-advanced .level1 {
    padding-left: 20px;
}

.amshopby-advanced .level2 {
    padding-left: 30px;
}

.amshopby-advanced .level3 {
    padding-left: 40px;
}

.amshopby-advanced .level4 {
    padding-left: 50px;
}

.amshopby-advanced li.active > a {
    font-weight: bold;
}

.amshopby-cat-toggle.amshopby-cat-toggle-hidden {
    display: none;
}
/*
 * Slider Bar
 */
.amshopby-slider-bar {
    position: absolute;
    background: #999;
    height: 6px;
    top: 6px;
    z-index: 1;
}

/*
 * Subcategories block
 */
.amshopby-subcategory-image {
    overflow: auto;
}

.btn-remove-inline {
    background: url('../images/am_btn_remove.gif') no-repeat;
    width: 13px;
    height: 12px;
    margin-left: 4px;
}

.amshopby-hightlighted {
    background: yellow;
}

.btn-remove-inline img {
    display: inline;
}

.block-layered-nav .amshopby-slider .handle.active {
    z-index: 3;
}

.amshopby-slider-ui {
    background: url(../images/amshopby-slider-bg.gif) repeat-x 0 50%;
    margin: 10px .4em;
}

.amshopby-slider-ui .ui-slider-handle {
    background-color: #f18200;
    border: 1px solid #de5400;
    box-sizing: border-box;
    outline: none;
}

.amshopby-slider-ui .ui-slider-range {
    background-color: #999999;
}

.ui-widget-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.ui-slider {
    cursor: pointer;
    position: relative;
    text-align: left;
}

.ui-slider .ui-slider-handle {
    position: absolute;
    z-index: 2;
    width: 0.8em;
    height: 1.2em;
    cursor: pointer;
    -ms-touch-action: none;
    touch-action: none;
}

.ui-slider .ui-slider-range {
    position: absolute;
    z-index: 1;
    font-size: .7em;
    display: block;
    border: 0;
    background-position: 0 0;
}

/* support: IE8 - See #6727 */
.ui-slider.ui-state-disabled .ui-slider-handle,
.ui-slider.ui-state-disabled .ui-slider-range {
    filter: inherit;
}

.ui-slider-horizontal {
    height: .8em;
}

.ui-slider-horizontal .ui-slider-handle {
    top: -.2em;
    margin-left: -.4em;
}

.ui-slider-horizontal .ui-slider-range {
    top: 0.2em;
    height: 8px;
}

.ui-slider-horizontal .ui-slider-range-min {
    left: 0;
}

.ui-slider-horizontal .ui-slider-range-max {
    right: 0;
}

.ui-slider-vertical {
    width: .8em;
    height: 100px;
}

.ui-slider-vertical .ui-slider-handle {
    left: -.3em;
    margin-left: 0;
    margin-bottom: -.6em;
}

.ui-slider-vertical .ui-slider-range {
    left: 0;
    width: 100%;
}

.ui-slider-vertical .ui-slider-range-min {
    bottom: 0;
}

.ui-slider-vertical .ui-slider-range-max {
    top: 0;
}

.amshopby-narrow-by-list td {
    vertical-align: top;
}

input[name^="amshopby"][id$="from"].input-text,
input[name^="amshopby"][id$="to"].input-text {
    width: auto;
}

.amshopby-item-top {
    max-width: 225px;
    min-width: 180px;
    display: inline-block;
    vertical-align: top;
    height: 100%;
}

.amshopby-filters-top .block-content ol {
    max-width: 250px;
}

.amshopby-item-top .amshopby-column {
    width: auto;
}

.no-display-current,
.no-display {
    display: none;
}

.current .no-display-current,
.current td.no-display {
    display: block;
}

@media only screen and (max-width: 770px) {
    dl#narrow-by-list,
    dl#narrow-by-list2 {
        padding: 0;
    }

    .block-layered-nav.amshopby-collapse-enabled .toggle-content dt {
        background: url(../images/amshopby-collapsed.gif) center left no-repeat;
    }

    .block-layered-nav.amshopby-collapse-enabled .toggle-content.accordion-open dt.current {
        background: url(../images/amshopby-expanded.gif) center left no-repeat;
    }
}

.block-layered-nav ol:not(.single-choice) select option[selected] {
    color: white;
    background-color: rgba(171, 171, 171, 1);
}

.amshopby-apply-button {
    width: 180px;
    height: 40px;
    margin-top: 1em;
}

/**
 * All Brands page
 */
.content .ambrands-list {
    min-width: 180px;
}
.amshopby-subcategories-wrapper {
    position: relative;
    box-sizing: unset;
    flex-wrap: wrap;
}
.amshopby-subcategories-wrapper:after {
    content: '';
    position: absolute;
    bottom: 0;
    display: block;
    width: 100%;
    height: 1px;
    background: #fff;
    z-index: 999;
}
.amshopby-subcategory {
    float: left;
    height: auto;
    width: auto;
    padding-right: 5px;
    line-height: 50px;
    border-bottom: 1px solid #eee;
}
.amshopby-subcategory .am-item {
    width: 100%;
    display: flex;
    display: -webkit-flex;
    align-items: center;
    -webkit-align-items: center;
    text-align: left;
    vertical-align: middle;
    line-height: 1;
}
.amshopby-subcategory .am-img {
    max-width: 100%;
    display: block;
    float: left;
}
.amshopby-subcategory .am-title {
    margin-left: 5px;
    padding: 20px 0;
}
.amshopby-subcategories-img {
    display: inline;
    vertical-align: middle;
}
div.amshopby-overflow-scroll-enabled div.block-content dl dd > ol:first-of-type {
    overflow-y: auto;
}

/* Enhanced Dropdown (modern searchable UI) */
.amshopby-enhanced-dropdown.is-enhanced {
    position: relative;
    font-size: 14px;
    line-height: 1.4;
}

.amshopby-enhanced-dropdown.is-enhanced > select.amshopby-enhanced-select {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.amshopby-enhanced-dropdown__ui {
    position: relative;
    width: 100%;
}

.amshopby-enhanced-dropdown__toggle {
    position: relative;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    min-height: 44px;
    padding: 10px 42px 10px 14px;
    border: 1px solid #d6dae3;
    border-radius: 12px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    color: #1f2937;
    cursor: pointer;
    text-align: left;
    line-height: 1.3;
    font-weight: 600;
    box-shadow: 0 1px 2px rgba(17, 24, 39, 0.08), 0 10px 30px rgba(17, 24, 39, 0.08);
    transition: border-color 120ms ease, box-shadow 160ms ease, background-color 160ms ease, transform 120ms ease;
}

.amshopby-enhanced-dropdown__toggle:hover {
    border-color: #b7c2d6;
    box-shadow: 0 6px 18px rgba(17, 24, 39, 0.12);
    transform: translateY(-1px);
}

.amshopby-enhanced-dropdown__toggle:focus {
    outline: none;
    border-color: #5c7cfa;
    box-shadow: 0 0 0 2px rgba(92, 124, 250, 0.2), 0 12px 30px rgba(17, 24, 39, 0.14);
}

.amshopby-enhanced-dropdown__toggle:after {
    content: "";
    position: absolute;
    right: 14px;
    top: 50%;
    width: 10px;
    height: 6px;
    margin-top: -3px;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg width='14' height='9' viewBox='0 0 14 9' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L7 7.5L13 1.5' stroke='%23728699' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 160ms ease, filter 160ms ease;
    pointer-events: none;
}

.amshopby-enhanced-dropdown.is-open .amshopby-enhanced-dropdown__toggle:after {
    transform: rotate(180deg);
    filter: hue-rotate(10deg) saturate(1.2);
}

.amshopby-enhanced-dropdown__panel {
    position: absolute;
    left: 0;
    right: 0;
    z-index: 1000;
    margin-top: 8px;
    padding: 10px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(17, 24, 39, 0.18);
    max-height: 360px;
    overflow: hidden;
    transform-origin: top;
    animation: amshopbyDropdownPop 140ms ease;
}

@keyframes amshopbyDropdownPop {
    from { opacity: 0; transform: translateY(-4px) scale(.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.amshopby-enhanced-dropdown__search {
    width: 100%;
    box-sizing: border-box;
    padding: 11px 12px 11px 40px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #f8fafc;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg width='18' height='18' viewBox='0 0 18 18' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='8' cy='8' r='5.25' stroke='%238592a3' stroke-width='1.5'/%3E%3Cpath d='M12.5 12.5L16 16' stroke='%238592a3' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 12px 50%;
    color: #0f172a;
    font-size: 14px;
    transition: border-color 120ms ease, box-shadow 120ms ease, background-color 120ms ease;
}

.amshopby-enhanced-dropdown__search:focus {
    outline: none;
    border-color: #5c7cfa;
    background-color: #ffffff;
    box-shadow: 0 0 0 2px rgba(92, 124, 250, 0.18);
}

.amshopby-enhanced-dropdown__list {
    margin: 10px 0 0;
    padding: 0 6px 0 0;
    list-style: none;
    max-height: 300px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #c7d0df transparent;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 90%, rgba(0,0,0,0) 100%);
}

.amshopby-enhanced-dropdown__list::-webkit-scrollbar {
    width: 7px;
}

.amshopby-enhanced-dropdown__list::-webkit-scrollbar-thumb {
    background-color: #c7d0df;
    border-radius: 999px;
}

.amshopby-enhanced-dropdown__list::-webkit-scrollbar-track {
    background: transparent;
}

.amshopby-enhanced-dropdown__item {
    margin: 0;
    padding: 2px 0;
}

.amshopby-enhanced-dropdown__option {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    text-align: left;
    cursor: pointer;
    color: #111827;
    font-weight: 500;
    transition: background-color 120ms ease, color 120ms ease, transform 100ms ease;
}

.amshopby-enhanced-dropdown__option:hover,
.amshopby-enhanced-dropdown__option:focus {
    background: linear-gradient(90deg, #f2f4f8 0%, #eef2ff 100%);
    color: #dc4588;
    transform: translateX(2px);
    outline: none;
}

.amshopby-enhanced-dropdown__item.is-selected .amshopby-enhanced-dropdown__option {
    background: #eef2ff;
    color: #dc4588;
    font-weight: 700;
    box-shadow: 0 0 0 1px #d9e1ff inset;
}

.amshopby-enhanced-dropdown__item.is-disabled .amshopby-enhanced-dropdown__option {
    color: #9aa3b5;
    background: #f8fafc;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Active filter chips (Currently Shopping By) */
.block-layered-nav .currently .amshopby-chips {
    margin: 8px 0 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.block-layered-nav .currently .amshopby-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border: 1px solid #d9e1ff;
    background: linear-gradient(135deg, #f5f7ff 0%, #eef2ff 100%);
    box-shadow: 0 8px 20px rgba(17, 24, 39, 0.12);
    border-radius: 9999px;
    font-size: 13px;
    line-height: 1.4;
    max-width: 100%;
    color: #0f172a;
    transition: transform 120ms ease, box-shadow 160ms ease, border-color 120ms ease, background-color 120ms ease;
}

.block-layered-nav .currently .amshopby-chip:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(17, 24, 39, 0.16);
    border-color: #c7d2fe;
}

.block-layered-nav .currently .amshopby-chip__name {
    color: #dc4588;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.block-layered-nav .currently .amshopby-chip__name:after {
    content: ":";
    margin: 0 3px 0 1px;
    color: #9ca3af;
}

.block-layered-nav .currently .amshopby-chip__value {
    color: #0f172a;
    font-weight: 600;
}

.block-layered-nav .currently a.amshopby-chip__remove,
.block-layered-nav .currently a.amshopby-chip__remove:hover,
.block-layered-nav .currently a.amshopby-chip__remove:focus,
.block-layered-nav .currently a.amshopby-chip__remove.amshopby-attr,
.block-layered-nav .currently a.amshopby-chip__remove.amshopby-attr-selected {
    float: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: none;
    text-decoration: none;
    border: 0;
}

.block-layered-nav .currently a.amshopby-chip__remove {
    margin-left: 4px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #e5e5e5;
    color: #dc4588;
    font-weight: 700;
    line-height: 1;
    transition: background-color 140ms ease, color 140ms ease, box-shadow 140ms ease;
}

.block-layered-nav .currently a.amshopby-chip__remove:hover {
    background: #dc4588;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(29, 78, 216, 0.35);
}

.block-layered-nav .currently a.amshopby-chip__remove:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(92, 124, 250, 0.35);
}
