.epcs-widget,
.epcs-widget * {
    box-sizing: border-box;
}

.epcs-widget {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    font-family: Arial, Helvetica, sans-serif;
}

.epcs-section {
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    padding: 0 42px;
}

.epcs-viewport {
    width: 100%;
    overflow: hidden;
}

.epcs-track {
    --epcs-gap: 8px;
    --epcs-connector-space: 18px;
    width: 100%;
    display: flex;
    align-items: center;
    gap: var(--epcs-gap);
    justify-content: flex-start;
    transition-property: transform;
    transition-timing-function: ease;
    will-change: transform;
}

.epcs-carousel-enabled .epcs-track {
    cursor: grab;
}

.epcs-carousel-enabled .epcs-track.is-dragging {
    cursor: grabbing;
    transition: none !important;
}

.epcs-widget.epcs-full-width {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}


.epcs-card {
    position: relative;
    display: block;
    flex: 0 0 122px;
    width: 122px;
    min-width: 0;
    padding: 6px 6px 7px;
    background: #FFF8E8;
    border-radius: 12px;
    color: inherit;
    text-decoration: none;
    overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.epcs-card:hover {
    transform: translateY(-2px);
    background: #FFF8E8;
    color: inherit;
}

.epcs-image-wrap {
    position: relative;
    width: 100%;
    height: 82px;
    overflow: hidden;
    border-radius: 9px;
    background: #F2F2F2;
}

.epcs-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.epcs-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    background: #F5F5F5;
    color: #777;
    text-align: center;
    font-size: 10px;
}

.epcs-content {
    padding: 4px 1px 0;
    text-align: center;
}

.epcs-title {
    margin: 0 0 2px;
    color: #222;
    font-size: 10px;
    line-height: 1.1;
    font-weight: 800;
    text-align: center;
}

.epcs-subtitle {
    margin: 0;
    color: #363636;
    font-size: 7px;
    line-height: 1.2;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
}

.epcs-connector {
    flex: 0 0 var(--epcs-connector-space);
    width: var(--epcs-connector-space);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #EF7180;
    font-size: 14px;
    line-height: 1;
    font-weight: 700;
    pointer-events: none;
}

@media (max-width: 767px) {
    .epcs-section {
        padding-left: 36px;
        padding-right: 36px;
        overflow: hidden;
    }

    .epcs-viewport {
        overflow: hidden;
    }

    .epcs-track {
        width: 100%;
        min-width: 0;
        justify-content: flex-start;
    }

    .epcs-card {
        flex-shrink: 0;
    }
}

@media (max-width: 480px) {
    .epcs-card {
        flex-basis: 118px;
        width: 118px;
    }

    .epcs-image-wrap {
        height: 80px;
    }
}


.epcs-arrow {
    position: absolute;
    top: 50%;
    z-index: 5;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 50%;
    background: #FFFFFF;
    color: #EF7180;
    box-shadow: 0 3px 10px rgba(0,0,0,.10);
    font-size: 24px;
    line-height: 1;
    font-family: Arial, Helvetica, sans-serif;
    cursor: pointer;
    transition: transform .18s ease, opacity .18s ease, box-shadow .18s ease;
}

.epcs-arrow:hover {
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 5px 14px rgba(0,0,0,.14);
}

.epcs-arrow:disabled {
    opacity: .35;
    cursor: default;
    transform: translateY(-50%);
}

.epcs-prev {
    left: 4px;
}

.epcs-next {
    right: 4px;
}

.epcs-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 10px;
}

.epcs-dot {
    width: 7px;
    height: 7px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #E8C8CE;
    cursor: pointer;
    transition: transform .18s ease, background-color .18s ease;
}

.epcs-dot.is-active {
    background: #EF7180;
    transform: scale(1.25);
}

@media (max-width: 480px) {
    .epcs-section {
        padding-left: 34px;
        padding-right: 34px;
    }

    .epcs-arrow {
        width: 28px;
        height: 28px;
        font-size: 21px;
    }

    .epcs-prev {
        left: 2px;
    }

    .epcs-next {
        right: 2px;
    }
}
