/**
 * @copyright Copyright © TRIC Solutions. All rights reserved.
 * @license   https://www.tric.dk/TRIC-LICENSE-COMMUNITY.txt
 * @link      https://www.tric.dk
 */
#nexus-filters [data-filter-value] .count {
    margin-left: 10px;
}
#nexus-filters [data-filter-value] .count:before {
    content : '(';
}
#nexus-filters [data-filter-value] .count:after {
    content : ')';
}


.nexus-product-list .product-image-photo {
    position: relative !important;
}

@media (max-width: 767px) {
    [x-data^="Nexus"] .filters-overlay:after {
        content: '';
        position: absolute;
        height: 100%;
        width: 20px;
        right: 0;
        top: 0;
        background: rgb(255,255,255);
        background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 100%);
    }
}

.nexus-price-slider {
    position: relative;
    height: 1.25rem;
    margin-top: 0.5rem;
}
.nexus-price-slider .slider-track,
.nexus-price-slider .slider-fill {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 0.25rem;
    border-radius: 9999px;
}
.nexus-price-slider .slider-track {
    width: 100%;
    background-color: var(--color-container-darker);
}
.nexus-price-slider .slider-fill {
    background-color: var(--color-primary);
}
.nexus-price-slider input[type="range"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
    pointer-events: none;
    -webkit-appearance: none;
    appearance: none;
}
.nexus-price-slider input[type="range"]:focus {
    outline: none;
    box-shadow: none;
}
.nexus-price-slider input[type="range"]:focus-visible::-webkit-slider-thumb {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}
.nexus-price-slider input[type="range"]:focus-visible::-moz-range-thumb {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}
.nexus-price-slider input[type="range"]::-webkit-slider-runnable-track {
    background: transparent;
    border: none;
}
.nexus-price-slider input[type="range"]::-moz-range-track {
    background: transparent;
    border: none;
}
.nexus-price-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    pointer-events: auto;
    height: 1.25rem;
    width: 1.25rem;
    border-radius: 9999px;
    background-color: #fff;
    border: 2px solid var(--color-primary);
    cursor: pointer;
}
.nexus-price-slider input[type="range"]::-moz-range-thumb {
    pointer-events: auto;
    height: 1.25rem;
    width: 1.25rem;
    border-radius: 9999px;
    background-color: #fff;
    border: 2px solid var(--color-primary);
    cursor: pointer;
}
.nexus-price-values span {
    cursor: pointer;
}
.nexus-price-values span:hover {
    text-decoration: underline;
}
.nexus-price-values input[type="number"] {
    width: 5.5rem;
    height: 1.75rem;
    padding: 0 0.25rem;
    font-size: inherit;
    -moz-appearance: textfield;
    appearance: textfield;
}
.nexus-price-values input[type="number"]::-webkit-outer-spin-button,
.nexus-price-values input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}



[data-swatch-tooltip-container] {
    position: relative;
}

.nexus-swatch {
    display: inline-block;
    border: 1px solid #d1d5db;
    border-radius: 0.25rem;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.nexus-swatch--chip {
    width: 0.75rem;
    height: 0.75rem;
    vertical-align: middle;
}

.nexus-swatch--option {
    min-width: 2rem;
    height: 2rem;
    cursor: pointer;
    outline: 1px solid transparent;
    outline-offset: 0;
}

.nexus-swatch--option.nexus-swatch--text {
    padding: 0 0.5rem;
    font-size: 0.75rem;
    background-color: #fff;
}

.nexus-swatch--option:hover,
.nexus-swatch--option:focus-visible,
.nexus-swatch--option.nexus-swatch--selected {
    border-color: #000;
    outline-color: #000;
}

.nexus-swatch--option:disabled {
    cursor: not-allowed;
    opacity: 0.4;
}

.nexus-swatch-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    border-radius: 0.25rem;
}

.nexus-swatch-select.outline + .nexus-swatch-options {
    outline: 1px solid #ef4444;
    outline-offset: 2px;
}

.nexus-variant {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.nexus-variant-part {
    display: inline-flex;
    align-items: center;
}

.nexus-variant--unavailable .nexus-variant-label {
    text-decoration: line-through;
}

.nexus-variant--unavailable .nexus-swatch {
    opacity: 0.5;
}

.nexus-swatch-tooltip {
    position: absolute;
    z-index: 30;
    transform: translate(-50%, calc(-100% - 4px));
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    background-color: #111827;
    color: #fff;
    font-size: 0.75rem;
    line-height: 1rem;
    white-space: nowrap;
    pointer-events: none;
}
