.carousel-block {
    position: relative;
}

.carousel-layout {
    display: flex;
    gap: 24px;
    align-items: stretch;
    position: relative;
}

.carousel-block.carousel-nav-right .carousel-layout {
    flex-direction: row-reverse;
}

.carousel-side {
    width: 240px;
    flex: 0 0 240px;
}

.carousel-nav-select {
    display: none;
    margin-bottom: 12px;
}

.carousel-controls .carousel-nav-select {
    margin: 0 8px;
}

.carousel-nav-select select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d7d7d7;
    border-radius: 3px;
    background: #ffffff;
    color: #1b1b1b;
    font-family: "Oswald", sans-serif;
    font-size: 1em;
    font-weight: 300;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236d7a84' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px 8px;
    padding-right: 34px;
}

.carousel-nav {
    list-style: none;
    margin: 0;
    padding: 10px;
    border: 1px solid #d7d7d7;
    border-radius: 3px;
}

.carousel-nav li {
    margin: 0 0 12px;
}

.carousel-nav-button {
    width: 100%;
    text-align: left;
    padding: 10px 12px;
    border: 0;
    background: #ffffff;
    color: #1b1b1b;
    font-family: "Oswald", sans-serif;
    font-size: 0.7em;
    font-weight: 300;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.carousel-nav-button.is-active {
    background: #e40028;
    color: #ffffff;
    border-color: #e40028;
}

.carousel-main {
    flex: 1 1 auto;
    position: relative;
}

.carousel-panels {
    position: relative;
}

.carousel-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.carousel-panel.is-active {
    opacity: 1;
    pointer-events: auto;
    position: relative;
    z-index: 2;
}

.carousel-controls {
    position: absolute;
    top: 8px;
    left: calc(262px + 10px);
    right: 10px;
    display: flex;
    gap: 12px;
    align-items: center;
    pointer-events: none;
    z-index: 3;
}

.carousel-block.carousel-nav-right .carousel-controls {
    left: 10px;
    right: calc(262px + 10px);
}

.carousel-controls .carousel-next {
    margin-left: auto;
}

.carousel-controls button {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid #c9c9c9;
    background: #f5f5f5;
    color: #6d7a84;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    pointer-events: auto;
}

.carousel-controls button:hover {
    background: #ffffff;
    color: #1b1b1b;
    border-color: #b3b3b3;
}

.carousel-arrow {
    width: 16px;
    height: 16px;
}

@media (max-width: 900px) {
    .carousel-layout {
        flex-direction: column;
    }

    .carousel-block.carousel-nav-right .carousel-layout {
        flex-direction: column;
    }

    .carousel-side {
        width: 100%;
        flex: 0 0 auto;
    }

    .carousel-nav-select {
        display: block;
        margin-bottom: 0;
        flex: 1 1 auto;
    }

    .carousel-controls {
        position: static;
        left: auto;
        right: auto;
        top: auto;
        pointer-events: auto;
        margin-bottom: 12px;
    }

    .carousel-block.carousel-nav-right .carousel-controls {
        position: static;
        left: auto;
        right: auto;
    }

    .carousel-controls .carousel-next {
        margin-left: 0;
    }

    .carousel-controls button {
        pointer-events: auto;
    }

    .carousel-nav {
        display: none;
    }

    .carousel-nav li {
        margin: 0;
        flex: 1 1 160px;
    }
}
