.nel-product-carousel,
.nel-product-carousel * {
    box-sizing: border-box;
}

.nel-product-carousel {
    --nel-carousel-accent: #7d36ff;
    --nel-carousel-divider: #000028;
    --nel-carousel-surface: #fefefe;
    --nel-carousel-text: #333333;
    --nel-carousel-content-offset: -135px;
    --nel-carousel-stage-height: 450px;
    width: 100%;
    overflow: hidden;
    padding-bottom: 2rem;
    background: var(--nel-carousel-surface);
    color: var(--nel-carousel-text);
    font-family: Larsseit, Arial, sans-serif;
}

.nel-product-carousel [hidden] {
    display: none !important;
}

.nel-product-carousel .nel-carousel-container {
    position: relative;
    width: 100%;
    min-height: var(--nel-carousel-stage-height);
    padding: 40px 0;
    overflow: visible;
}

.nel-product-carousel .nel-carousel-container::before {
    position: absolute;
    z-index: 0;
    top: 0;
    right: 0;
    left: 0;
    width: 100%;
    height: 200px;
    background: var(--nel-carousel-divider);
    content: "";
    pointer-events: none;
}

.nel-product-carousel .nel-carousel-swiper {
    position: relative;
    z-index: 1;
    width: 100%;
    overflow: visible;
}

.nel-product-carousel .swiper-wrapper {
    align-items: center;
}

.nel-product-carousel .nel-carousel-slide {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: auto;
    opacity: 1;
    transform: scale(0.6);
    transform-origin: center;
    transition-property: transform, opacity;
    will-change: transform;
}

.nel-product-carousel .nel-carousel-image-link {
    display: block;
    width: 100%;
    color: inherit;
    text-decoration: none;
}

.nel-product-carousel .nel-carousel-image {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

.nel-product-carousel[data-nel-carousel-state="fallback"] .swiper-wrapper {
    justify-content: center;
    transform: none !important;
}

.nel-product-carousel[data-nel-carousel-state="fallback"] .nel-carousel-slide {
    display: none;
    flex: 0 0 33.333333%;
    width: 33.333333% !important;
}

.nel-product-carousel[data-nel-carousel-state="fallback"] .nel-carousel-slide:first-child,
.nel-product-carousel[data-nel-carousel-state="fallback"] .nel-carousel-slide:nth-child(2),
.nel-product-carousel[data-nel-carousel-state="fallback"] .nel-carousel-slide:last-child {
    display: flex;
}

.nel-product-carousel[data-nel-carousel-state="fallback"] .nel-carousel-slide:last-child {
    z-index: 0;
    order: -1;
    transform: scale(0.6);
}

.nel-product-carousel[data-nel-carousel-state="fallback"] .nel-carousel-slide:first-child {
    z-index: 10;
    order: 0;
    transform: scale(1.5);
}

.nel-product-carousel[data-nel-carousel-state="fallback"] .nel-carousel-slide:nth-child(2) {
    z-index: 0;
    order: 1;
    transform: scale(0.6);
}

.nel-product-carousel .nel-carousel-navigation {
    position: absolute;
    z-index: 20;
    top: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-top: -21px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--nel-carousel-accent);
    box-shadow: 0 2px 8px rgb(0 0 0 / 15%);
    color: #ffffff;
    cursor: pointer;
    appearance: none;
}

.nel-product-carousel .nel-carousel-navigation-prev {
    right: auto;
    left: 10px;
}

.nel-product-carousel .nel-carousel-navigation-next {
    right: 10px;
    left: auto;
}

.nel-product-carousel .nel-carousel-navigation::after {
    display: none;
}

.nel-product-carousel .nel-carousel-navigation-icon {
    display: block;
    width: 32px;
    height: 32px;
    fill: currentcolor;
}

.nel-product-carousel .nel-carousel-navigation:hover,
.nel-product-carousel .nel-carousel-navigation:focus-visible {
    background: #6724e6;
    color: #ffffff;
}

.nel-product-carousel .nel-carousel-image-link:focus-visible,
.nel-product-carousel .nel-carousel-title a:focus-visible,
.nel-product-carousel .nel-carousel-button:focus-visible,
.nel-product-carousel .nel-carousel-navigation:focus-visible,
.nel-product-carousel .swiper-pagination-bullet:focus-visible {
    outline: 3px solid #ffffff;
    outline-offset: 3px;
}

.nel-product-carousel .nel-carousel-title a:focus-visible,
.nel-product-carousel .nel-carousel-button:focus-visible,
.nel-product-carousel .swiper-pagination-bullet:focus-visible {
    outline-color: var(--nel-carousel-accent);
}

.nel-product-carousel .nel-carousel-content {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: end;
    margin-top: var(--nel-carousel-content-offset);
}

.nel-product-carousel .nel-content-item {
    grid-area: 1 / 1;
    width: 700px;
    max-width: 100%;
    margin: 0 auto;
    padding: 2em;
    align-self: end;
    opacity: 0;
    pointer-events: none;
    text-align: center;
    transition: opacity 300ms ease;
    z-index: 0;
}

.nel-product-carousel .nel-content-item.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 1;
}

.nel-product-carousel .nel-carousel-title {
    margin: 0 0 20px;
    color: var(--nel-carousel-text);
    font-family: Larsseit, Arial, sans-serif;
    font-size: 3rem;
    font-weight: 400;
    line-height: 1.2;
}

.nel-product-carousel .nel-carousel-title a {
    color: inherit;
    text-decoration: none;
}

.nel-product-carousel .nel-carousel-description {
    margin: 0 0 20px;
    color: var(--nel-carousel-text);
    font-size: 1.1rem;
    line-height: 1.5;
}

.nel-product-carousel .nel-data-blocks {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 0;
}

.nel-product-carousel .nel-data-block {
    display: flex;
    flex: 0 0 150px;
    flex-direction: column;
    justify-content: center;
    width: 150px;
    min-width: 0;
    height: 85px;
    min-height: 85px;
    padding: 5px;
    border: 1px solid #e0e0e0;
}

.nel-product-carousel .nel-data-label {
    margin-bottom: 5px;
    color: #666666;
    font-size: 0.8rem;
    line-height: 1.2;
    text-transform: uppercase;
}

.nel-product-carousel .nel-data-value {
    color: var(--nel-carousel-text);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

/*
 * Share the title, description and metric rows between every overlaid panel.
 * This keeps each row on the same vertical anchor without measuring content in
 * JavaScript. The bottom-aligned panel above remains the graceful fallback for
 * older browsers without CSS subgrid support.
 */
@supports (grid-template-rows: subgrid) {
    .nel-product-carousel .nel-carousel-content {
        grid-template-rows: repeat(3, auto);
        align-items: stretch;
        row-gap: 20px;
    }

    .nel-product-carousel .nel-content-item {
        display: grid;
        grid-column: 1;
        grid-row: 1 / 4;
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: subgrid;
        align-self: stretch;
    }

    .nel-product-carousel .nel-carousel-title {
        grid-column: 1;
        grid-row: 1;
        align-self: end;
        margin: 0;
        padding-bottom: 0;
    }

    .nel-product-carousel .nel-carousel-description {
        grid-column: 1;
        grid-row: 2;
        align-self: end;
        margin: 0;
        padding-bottom: 0;
    }

    .nel-product-carousel .nel-data-blocks {
        grid-column: 1;
        grid-row: 3;
    }
}

.nel-product-carousel .nel-carousel-button {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 51px;
    background: var(--nel-carousel-accent);
    color: #ffffff;
    line-height: 1.5;
    text-decoration: none;
    transition: background-color 300ms ease, opacity 300ms ease;
}

.nel-product-carousel .nel-carousel-button:hover {
    background: #6724e6;
    color: #ffffff;
}

.nel-product-carousel .nel-carousel-pagination.swiper-pagination {
    position: relative;
    inset: auto;
    z-index: 10;
    width: 100%;
    margin-top: 20px;
    padding: 0;
    text-align: center;
    transform: none;
}

.nel-product-carousel .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    margin: 0 4px;
    border: 0;
    background: var(--nel-carousel-accent);
    opacity: 0.2;
}

.nel-product-carousel .swiper-pagination-bullet-active {
    background: var(--nel-carousel-accent);
    opacity: 1;
}

@media (max-width: 768px) {
    .nel-product-carousel {
        margin-top: -2rem;
    }

    .nel-product-carousel .nel-carousel-container {
        min-height: 100px;
    }

    .nel-product-carousel .nel-carousel-container::before {
        height: 170px;
    }

    .nel-product-carousel .nel-carousel-navigation {
        top: 105px;
    }

    .nel-product-carousel .nel-carousel-content {
        margin-top: -65px;
    }

    .nel-product-carousel .nel-content-item {
        width: 300px;
        padding: 2em;
    }

    .nel-product-carousel .nel-carousel-title {
        font-size: 1.618rem;
        line-height: 1.2;
    }

    .nel-product-carousel .nel-data-blocks {
        flex-direction: column;
        flex-wrap: nowrap;
    }

    .nel-product-carousel .nel-data-block {
        flex: 0 0 auto;
        width: 100%;
        max-width: 220px;
        height: auto;
        min-height: 85px;
    }

    .nel-product-carousel .nel-carousel-button {
        align-self: center;
    }

    .nel-product-carousel[data-nel-carousel-state="fallback"] .nel-carousel-slide {
        display: none;
        flex-basis: 100%;
        width: 100% !important;
    }

    .nel-product-carousel[data-nel-carousel-state="fallback"] .nel-carousel-slide:first-child {
        display: flex;
        order: 0;
        transform: scale(1.25);
    }
}

@media (prefers-reduced-motion: reduce) {
    .nel-product-carousel .nel-carousel-slide,
    .nel-product-carousel .nel-content-item,
    .nel-product-carousel .nel-carousel-button {
        transition-duration: 0.01ms !important;
    }
}
