.hansdent-brand-slider {
    width: 100%;
    max-width: 100%;
    direction: rtl;
    --hbs-title-color: #202020;
    --hbs-accent: #47a4ae;
    --hbs-circle-bg: #e9e9e9;
    --hbs-circle-bg-hover: #e3e3e3;
    --hbs-arrow-bg: #ffffff;
    --hbs-arrow-color: #222222;
    --hbs-arrow-border: rgba(0, 0, 0, 0.08);
    --hbs-focus: rgba(71, 164, 174, 0.22);
    --hbs-current-visible: var(--hbs-visible-desktop);
}

.hansdent-brand-slider,
.hansdent-brand-slider *,
.hansdent-brand-slider *::before,
.hansdent-brand-slider *::after {
    box-sizing: border-box;
}

.hansdent-brand-slider__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    width: 100%;
    max-width: 100%;
    padding-block: 28px;
}

.hansdent-brand-slider__title {
    flex: 0 0 auto;
    max-width: 32%;
    margin: 0;
    color: var(--hbs-title-color);
    font-family: inherit;
    font-size: clamp(16px, 1.15vw, 18px);
    font-weight: 700;
    line-height: 1.7;
    text-align: right;
    white-space: normal;
}

.hansdent-brand-slider__title span {
    color: var(--hbs-accent);
}

.hansdent-brand-slider__viewport-wrap {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
    display: flex;
    align-items: center;
    direction: ltr;
}

.hansdent-brand-slider__viewport {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    outline: none;
    touch-action: pan-x pan-y;
}

.hansdent-brand-slider__viewport::-webkit-scrollbar {
    display: none;
}

.hansdent-brand-slider__viewport:focus-visible {
    box-shadow: 0 0 0 3px var(--hbs-focus);
    border-radius: 999px;
}

.hansdent-brand-slider__track {
    list-style: none;
    margin: 0;
    padding: 0;
    min-width: 100%;
    display: flex;
    align-items: center;
    gap: var(--hbs-gap);
}

.hansdent-brand-slider__item {
    flex: 0 0 calc((100% - (var(--hbs-gap) * (var(--hbs-current-visible) - 1))) / var(--hbs-current-visible));
    min-width: 0;
    display: flex;
    justify-content: center;
}

.hansdent-brand-slider__link {
    width: min(var(--hbs-circle-size), 100%);
    max-width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 999px;
    background: var(--hbs-circle-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-decoration: none !important;
    color: #777777;
    transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.025);
}

.hansdent-brand-slider__link:hover {
    transform: translateY(-2px);
    background: var(--hbs-circle-bg-hover);
}

.hansdent-brand-slider__link:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px var(--hbs-focus);
}

.hansdent-brand-slider__logo {
    display: block;
    width: 68%;
    height: 68%;
    object-fit: contain;
}

.hansdent-brand-slider__fallback {
    width: 78%;
    color: #777777;
    font-family: inherit;
    font-size: clamp(11px, 2.8vw, 14px);
    font-weight: 600;
    line-height: 1.25;
    text-align: center;
    direction: rtl;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.hansdent-brand-slider__nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid var(--hbs-arrow-border);
    border-radius: 999px;
    background: var(--hbs-arrow-bg);
    color: var(--hbs-arrow-color);
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transform: translateY(-50%);
    transition: opacity 160ms ease, transform 160ms ease, box-shadow 160ms ease;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.hansdent-brand-slider.is-overflow .hansdent-brand-slider__nav {
    display: inline-flex;
}

.hansdent-brand-slider__nav:hover {
    transform: translateY(-50%) scale(1.04);
}

.hansdent-brand-slider__nav:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px var(--hbs-focus);
}

.hansdent-brand-slider__nav:disabled {
    opacity: 0.25;
    cursor: default;
    pointer-events: none;
}

.hansdent-brand-slider__nav svg {
    width: 19px;
    height: 19px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hansdent-brand-slider__nav--prev {
    left: -17px;
}

.hansdent-brand-slider__nav--next {
    right: -17px;
}

.hansdent-brand-slider:not(.is-overflow) .hansdent-brand-slider__track {
    justify-content: flex-end;
}

@media (max-width: 991px) {
    .hansdent-brand-slider {
        --hbs-current-visible: var(--hbs-visible-tablet);
    }

    .hansdent-brand-slider__inner {
        gap: 22px;
    }

    .hansdent-brand-slider__title {
        max-width: 36%;
        font-size: 17px;
    }

    .hansdent-brand-slider__link {
        width: min(var(--hbs-circle-size), 88px, 100%);
    }
}

@media (max-width: 767px) {
    .hansdent-brand-slider {
        --hbs-current-visible: var(--hbs-visible-mobile);
    }

    .hansdent-brand-slider__inner {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        padding-block: 20px;
    }

    .hansdent-brand-slider__title {
        max-width: none;
        width: 100%;
        font-size: 17px;
        line-height: 1.6;
    }

    .hansdent-brand-slider__viewport-wrap {
        width: 100%;
        padding-inline: 2px;
    }

    .hansdent-brand-slider__link {
        width: min(var(--hbs-circle-size), 76px, 100%);
    }

    .hansdent-brand-slider__nav {
        width: 30px;
        height: 30px;
    }

    .hansdent-brand-slider__nav--prev {
        left: 2px;
    }

    .hansdent-brand-slider__nav--next {
        right: 2px;
    }
}

@media (max-width: 420px) {
    .hansdent-brand-slider {
        --hbs-current-visible: 3;
    }

    .hansdent-brand-slider__inner {
        gap: 12px;
    }

    .hansdent-brand-slider__track {
        gap: max(12px, calc(var(--hbs-gap) * 0.65));
    }

    .hansdent-brand-slider__link {
        width: min(var(--hbs-circle-size), 70px, 100%);
    }

    .hansdent-brand-slider__nav {
        display: none !important;
    }
}

@media (max-width: 340px) {
    .hansdent-brand-slider {
        --hbs-current-visible: 2;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hansdent-brand-slider__viewport {
        scroll-behavior: auto;
    }

    .hansdent-brand-slider__link,
    .hansdent-brand-slider__nav {
        transition: none;
    }
}
