.banki-format-card__picture {
    position: relative;
}

.banki-format-card__media {
    display: contents;
}

.banki-format-card__picture > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.banki-format-card__layer {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
}

.banki-format-card__layer--loaded {
    opacity: 1;
}

.banki-format-card__swatch,
.banki-format-card__arrow {
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    padding: 0;
    font: inherit;
    cursor: pointer;
}

.banki-format-card__swatch {
    display: block;
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    border: 1px solid rgba(13, 44, 67, 0.18);
    border-radius: 50%;
    scroll-snap-align: center;
}

.banki-format-card__swatch[aria-checked='true'] {
    box-shadow:
        0 0 0 3px #fff,
        0 0 0 5px #35afe4;
}

.banki-format-card__swatch:focus-visible,
.banki-format-card__arrow:focus-visible {
    outline: 2px solid #168ac0;
    outline-offset: 4px;
}

.banki-format-card__arrow {
    position: relative;
    display: grid;
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    place-items: center;
    background: #fff;
    border: 1px solid #d7e4eb;
    border-radius: 50%;
    box-shadow: 0 3px 10px rgba(13, 44, 67, 0.12);
}

.banki-format-card__arrow::before {
    width: 8px;
    height: 8px;
    content: '';
    border-top: 2px solid #168ac0;
    border-left: 2px solid #168ac0;
    transform: rotate(45deg) translate(2px, 2px);
}

.banki-format-card__arrow--down::before {
    transform: rotate(225deg) translate(2px, 2px);
}

.banki-format-card__arrow:disabled,
.banki-format-card__arrow.swiper-button-disabled {
    cursor: default;
    opacity: 0.35;
}

.banki-format-card__color-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.banki-format-card__colors {
    display: flex;
    gap: 18px;
}

.banki-format-card__swatches {
    width: 42px;
    height: 252px;
    padding: 5px;
    box-sizing: border-box;
}

.banki-format-card__color-slide {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Keep the palette usable if JavaScript is delayed or unavailable. */
.banki-format-card__swatches:not(.swiper-initialized) .swiper-wrapper {
    flex-direction: column;
    gap: 10px;
}

.banki-format-card__swatches:not(.swiper-initialized) .banki-format-card__color-slide {
    flex: 0 0 32px;
    height: 32px;
}

@media (max-width: 767px) {
    .banki-format-card__media {
        display: block;
        position: relative;
        min-height: 300px;
    }

    .banki-format-card__picture {
        margin-right: 48px;
        margin-left: 48px;
    }

    .banki-format-card__colors {
        position: absolute;
        top: 16px;
        right: 12px;
        left: 12px;
        z-index: 2;
        justify-content: space-between;
        gap: 0;
        pointer-events: none;
    }

    .banki-format-card__color-column {
        flex-direction: column;
        gap: 4px;
        pointer-events: auto;
    }

    .banki-format-card__color-column[data-colour-control='body'] {
        order: -1;
    }

    .banki-format-card__color-title {
        flex: 0 0 auto;
        min-height: 28px;
        font-size: 11px;
        line-height: 1.15;
        text-align: center;
    }

    .banki-format-card__swatches {
        width: 30px;
        height: 164px;
        padding: 3px;
    }

    .banki-format-card__swatch {
        width: 24px;
        height: 24px;
    }

    .banki-format-card__swatch[aria-checked='true'] {
        box-shadow:
            0 0 0 2px #fff,
            0 0 0 3px #35afe4;
    }

    .banki-format-card__arrow {
        flex-basis: 22px;
        width: 22px;
        height: 22px;
        background: transparent;
        border: 0;
        box-shadow: none;
    }

    .banki-format-card__arrow::before {
        width: 7px;
        height: 7px;
        transform: rotate(45deg) translate(2px, 2px);
    }

    .banki-format-card__arrow--down::before {
        transform: rotate(225deg) translate(2px, 2px);
    }

    .banki-format-card__swatches:not(.swiper-initialized) .swiper-wrapper {
        flex-direction: column;
    }

    .banki-format-card__swatches:not(.swiper-initialized) .banki-format-card__color-slide {
        flex-basis: 24px;
        height: 24px;
        width: auto;
    }
}
.banki-format-card__swatch--white {
    background-color: #fff;
}

.banki-format-card__swatch--black {
    background-color: #000;
}

.banki-format-card__swatch--navy {
    background-color: #20285b;
}

.banki-format-card__swatch--blue {
    background-color: #0184d4;
}

.banki-format-card__swatch--green {
    background-color: #00873a;
}

.banki-format-card__swatch--brown {
    background-color: #874920;
}

.banki-format-card__swatch--lightbrown {
    background-color: #b97103;
}

.banki-format-card__swatch--red {
    background-color: #c11314;
}

.banki-format-card__swatch--pink {
    background-color: #fccfd2;
}

.banki-format-card__swatch--gray {
    background-color: #969696;
}

.banki-format-card__swatch--beige {
    background-color: #efd3ab;
}

.banki-format-card__swatch--darkgray {
    background-color: #4a4a4a;
}
@media (prefers-reduced-motion: no-preference) {
    .banki-format-card__picture > img,
    .banki-format-card__swatch {
        transition:
            opacity 0.2s ease,
            box-shadow 0.2s ease,
            transform 0.2s ease;
    }

    .banki-format-card__swatch:hover {
        transform: scale(1.12);
    }
}
