/**
 * Caplugs — Taxonomy Filter navigation arrows.
 */

/* Host = the immediate parent of the .e-filter scroller (widget container). */
.caplugs-tf-has-arrows {
    position: relative;
}

.caplugs-tf-arrow {
    /* Toggle: set to "none" by the widget control when arrows are disabled. */
    display: var(--caplugs-tf-arrow-display, inline-flex);
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;

    width: var(--caplugs-tf-arrow-size, 36px);
    height: var(--caplugs-tf-arrow-size, 36px);
    padding: 0 !important;
    margin: 0;

    color: var(--caplugs-tf-arrow-color, #231F20) !important;
    background-color: var(--caplugs-tf-arrow-bg, #ffffff) !important;
    border: 1px solid var(--caplugs-tf-arrow-border-color, #e0e0e0);
    border-radius: 50% !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);

    cursor: pointer !important;
    line-height: 1;
    -webkit-appearance: none;
    appearance: none;
    transition: opacity 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.caplugs-tf-arrow:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
}

.caplugs-tf-arrow:focus-visible {
    outline: 2px solid var(--caplugs-tf-arrow-color, #231F20);
    outline-offset: 2px;
}

/* Hidden via the [hidden] attribute when not scrollable in that direction. */
.caplugs-tf-arrow[hidden] {
    display: none;
}

.caplugs-tf-arrow--prev {
    left: 0;
}

.caplugs-tf-arrow--next {
    right: 0;
}

.caplugs-tf-arrow__icon {
    width: 60%;
    height: 60%;
    display: block;
    pointer-events: none;
}
