/* YJ Trust Slider — edit the ring gaps in includes/config.php. */
.yj-trust-slider {
    isolation: isolate;
}

.yj-trust-slider * {
    box-sizing: border-box;
}

.yj-trust-slider__intro {
    width: 100%;
}

.yj-trust-slider__text {
    min-height: var(--yj-text-height, 0px);
}

.yj-trust-slider__title,
.yj-trust-slider__description {
    margin: 0;
    transition: opacity 180ms ease, transform 180ms ease;
}

.yj-trust-slider__intro.is-changing .yj-trust-slider__title,
.yj-trust-slider__intro.is-changing .yj-trust-slider__description {
    opacity: 0;
    transform: translateY(6px);
}

.yj-trust-slider__arrow {
    display: grid;
    place-items: center;	
	width: 48px;
    height: 48px;
    padding: 8px;
    border: 0;
    cursor: pointer;
    transition: transform 180ms ease;
}

button.yj-trust-slider__arrow img {
    width: 24px;
}
button.yj-trust-slider__arrow[data-yj-direction="prev"] img {
    margin-right: 4px;
}
button.yj-trust-slider__arrow[data-yj-direction="next"] img {
    margin-left: 4px;
}

.yj-trust-slider__arrow:hover {
    transform: scale(1.12);
}

.yj-trust-slider__arrow:focus-visible {
    outline: 2px solid #f6a769;
    outline-offset: 5px;
}

/* SVG viewBox stays fixed as slides are added or removed. */
.yj-trust-slider__viewport {
	position: relative;
	margin: 0 0 -38% 0 !important;
}

.yj-trust-slider__graphic {
    display: block;
    overflow: visible;
}

.yj-trust-slider__wheel {
    transform-origin: 500px 500px;
    transform: rotate(var(--yj-wheel-rotation, 0deg));
    transition: transform 850ms cubic-bezier(.2, .72, .2, 1);
}

.yj-trust-slider__segment {
	filter: drop-shadow(0 0 6px rgba(255, 119, 0, 0.5)) drop-shadow(0 0 3px rgba(255, 135, 12, 0.1));
}

.yj-trust-slider__slide image {
    pointer-events: none;
}

@media (max-width: 767px) {
    .yj-trust-slider__intro {
        padding: 0 12px;
    }

    .yj-trust-slider__arrow {
        width: 32px;
        height: 32px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .yj-trust-slider__wheel,
    .yj-trust-slider__title,
    .yj-trust-slider__description,
    .yj-trust-slider__arrow {
        transition-duration: .01ms;
    }
}
