.pwst-carousel {
    --pwst-quote-color: #2f3437;
    --pwst-quote-size: 18px;
    --pwst-name-color: #132a2d;
    --pwst-name-size: 16px;
    --pwst-sub-color: #748083;
    --pwst-sub-size: 14px;
    --pwst-card-bg: #fff;
    --pwst-border-color: #dfe7e7;
    --pwst-radius: 22px;
    --pwst-divider: #16a7a1;
    --pwst-accent: #16a7a1;
    --pwst-nav: #16a7a1;
    --pwst-image-size: 52px;
    --pwst-stack-offset: 14px;
    --pwst-transition: 500ms;

    width: 100%;
    max-width: 100%;
    min-width: 0;
    outline: none;
}

.pwst-stage-wrap {
    position: relative;
    padding-right: calc(var(--pwst-stack-offset) * 2);
    padding-bottom: calc(var(--pwst-stack-offset) * 2);
}

.pwst-stack-no .pwst-stage-wrap {
    padding-right: 0;
    padding-bottom: 0;
}

.pwst-stage {
    position: relative;
    min-width: 0;
    transition: height var(--pwst-transition) cubic-bezier(.22,.61,.36,1);
}

.pwst-card {
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    box-sizing: border-box;
    background: var(--pwst-card-bg);
    border: 1px solid var(--pwst-border-color);
    border-radius: var(--pwst-radius);
    box-shadow: 0 16px 42px rgba(18, 48, 51, .08);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform-origin: center center;
    transform: translate3d(0,0,0) scale(1);
    transition:
        transform var(--pwst-transition) cubic-bezier(.22,.61,.36,1),
        opacity var(--pwst-transition) ease,
        box-shadow var(--pwst-transition) ease;
    will-change: transform, opacity;
}

.pwst-card-content {
    padding: clamp(26px, 4vw, 44px);
    opacity: 0;
    transform: translateY(7px);
    transition:
        opacity var(--pwst-transition) ease,
        transform var(--pwst-transition) ease;
}

.pwst-card.is-active {
    z-index: 5;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate3d(0,0,0) scale(1);
}

.pwst-card.is-active .pwst-card-content {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 80ms;
}

.pwst-card.is-next-1,
.pwst-card.is-next-2 {
    visibility: visible;
    opacity: 1;
}

.pwst-card.is-next-1 {
    z-index: 4;
    transform: translate3d(var(--pwst-stack-offset), var(--pwst-stack-offset), 0) scale(.985);
    box-shadow: 0 12px 28px rgba(18, 48, 51, .06);
}

.pwst-card.is-next-2 {
    z-index: 3;
    transform: translate3d(calc(var(--pwst-stack-offset) * 2), calc(var(--pwst-stack-offset) * 2), 0) scale(.97);
    box-shadow: 0 8px 20px rgba(18, 48, 51, .04);
}

.pwst-stack-no .pwst-card.is-next-1,
.pwst-stack-no .pwst-card.is-next-2 {
    opacity: 0;
    transform: translate3d(28px,0,0) scale(.99);
}

.pwst-card.is-next-1 .pwst-card-content,
.pwst-card.is-next-2 .pwst-card-content {
    opacity: 0;
    transform: translateY(7px);
    transition-delay: 0ms;
}

.pwst-card.is-exit-left {
    z-index: 7;
    visibility: visible;
    opacity: 0;
    transform: translate3d(-42px, 0, 0) scale(.985);
    pointer-events: none;
}

.pwst-card.is-exit-left .pwst-card-content {
    opacity: 0;
    transform: translateY(-3px);
    transition-delay: 0ms;
}

.pwst-card.is-incoming-left {
    z-index: 7;
    visibility: visible;
    opacity: 0;
    transform: translate3d(-42px, 0, 0) scale(.985);
}

.pwst-card.is-incoming-left .pwst-card-content {
    opacity: 0;
    transform: translateY(7px);
    transition-delay: 0ms;
}

.pwst-quote-mark {
    color: var(--pwst-accent);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(48px, 7vw, 76px);
    line-height: .72;
    font-weight: 700;
    margin-bottom: 18px;
}

.pwst-quote {
    color: var(--pwst-quote-color);
    font-size: var(--pwst-quote-size);
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.pwst-quote p {
    margin: 0 0 1em;
}

.pwst-quote p:last-child {
    margin-bottom: 0;
}

.pwst-divider {
    width: 64px;
    height: 2px;
    background: var(--pwst-divider);
    margin: 28px 0 22px;
}

.pwst-author {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.pwst-image {
    flex: 0 0 var(--pwst-image-size);
    width: var(--pwst-image-size);
    height: var(--pwst-image-size);
    overflow: hidden;
    background: rgba(0,0,0,.04);
}

.pwst-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pwst-image-circle .pwst-image {
    border-radius: 50%;
}

.pwst-image-rounded .pwst-image {
    border-radius: 12px;
}

.pwst-image-square .pwst-image {
    border-radius: 0;
}

.pwst-author-copy {
    min-width: 0;
}

.pwst-name {
    color: var(--pwst-name-color);
    font-size: var(--pwst-name-size);
    line-height: 1.3;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.pwst-sub-text {
    margin-top: 4px;
    color: var(--pwst-sub-color);
    font-size: var(--pwst-sub-size);
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.pwst-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 18px;
    min-width: 0;
}

.pwst-arrow,
.pwst-dot {
    -webkit-appearance: none;
    appearance: none;
    border: 0;
    padding: 0;
    background: transparent;
    cursor: pointer;
}

.pwst-arrow {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--pwst-nav);
    border-radius: 50%;
    color: var(--pwst-nav);
    font-size: 20px;
    line-height: 1;
    transition: transform .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
}

.pwst-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 0;
}

.pwst-dot {
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    border-radius: 50%;
    background: #d8e3e3;
    transition: width .25s ease, background-color .25s ease, border-radius .25s ease;
}

.pwst-dot.is-active {
    width: 22px;
    flex-basis: 22px;
    border-radius: 999px;
    background: var(--pwst-nav);
}

.pwst-counter {
    min-width: 46px;
    color: var(--pwst-sub-color);
    font-size: 13px;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
}

.pwst-current {
    color: var(--pwst-nav);
    font-weight: 700;
}

.pwst-counter-sep {
    margin: 0 5px;
    opacity: .55;
}

.pwst-arrow:focus-visible,
.pwst-dot:focus-visible,
.pwst-carousel:focus-visible {
    outline: 2px solid var(--pwst-nav);
    outline-offset: 3px;
}

@media (hover: hover) and (pointer: fine) {
    .pwst-arrow:hover {
        background: var(--pwst-nav);
        border-color: var(--pwst-nav);
        color: #fff;
        transform: translateY(-1px);
    }
}

@media (max-width: 767px) {
    .pwst-stage-wrap {
        padding-right: calc(var(--pwst-stack-offset) * 1.25);
        padding-bottom: calc(var(--pwst-stack-offset) * 1.25);
    }

    .pwst-card-content {
        padding: 26px;
    }

    .pwst-controls {
        gap: 10px;
        margin-top: 15px;
    }

    .pwst-arrow {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
    }
}

@media (max-width: 420px) {
    .pwst-card-content {
        padding: 22px;
    }

    .pwst-quote-mark {
        margin-bottom: 14px;
    }

    .pwst-divider {
        margin-top: 22px;
        margin-bottom: 18px;
    }

    .pwst-controls {
        flex-wrap: wrap;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pwst-stage,
    .pwst-card,
    .pwst-card-content,
    .pwst-arrow,
    .pwst-dot {
        transition-duration: 1ms !important;
    }
}
