/* ===============================
   EBC Dynamic Carousel
   Every value an author can change arrives as a --dc-* variable on the
   element (see ebcpbe_render_dyncarousel); this sheet only lays things out.
================================ */

.ebc-dc {
    position: relative;
    font-family: var(--dc-font, inherit);
}

/* Swiper moves the track with transforms, so there is never a scrollbar.
   Overflow is clipped on the swiper box itself, sideways only: the slides
   are levelled to the tallest so every button lines up along the bottom,
   and a vertical clip at that same (often fractional) edge shaved the
   buttons' bottom border off on high-density screens. `hidden` stays as
   the fallback for browsers without `clip`. */
.ebc-dc .swiper {
    overflow: hidden;
    overflow: clip visible;
}
.ebc-dc .swiper-wrapper {
    align-items: stretch;
}
/* Touch screens, free scroll: the track is scrolled by the browser (the
   script turns on Swiper's CSS mode). A spacer stands in for the space after
   the last tile, a sideways swipe at either end stays in the carousel rather
   than turning the page back, and 1px of room below keeps the buttons'
   bottom border from being shaved by the track's own clip. */
.ebc-dc .swiper-css-mode > .swiper-wrapper {
    overscroll-behavior-x: contain;
    overflow-y: hidden;
    padding-bottom: 1px;
}
.ebc-dc .swiper-css-mode > .swiper-wrapper::before {
    content: '';
    flex: none;
    order: 9999;
    width: var(--dc-after, 0px);
}
.ebc-dc .swiper-css-mode > .swiper-wrapper > .swiper-slide:last-child {
    margin-inline-end: 0 !important;
}
/* Ease each slide change in and out (Swiper's default is plain `ease`).
   Free scroll is left alone: its momentum glide should only slow down. */
.ebc-dc .swiper:not(.swiper-free-mode) {
    --swiper-wrapper-transition-timing-function: cubic-bezier(0.65, 0, 0.35, 1);
}
.ebc-dc .swiper-slide.ebc-dc__slide {
    height: auto;
    display: flex;
}

/* ---- Grid layout (no Swiper): rows of the same tiles ---- */
.ebc-dc__grid {
    display: grid;
    align-items: stretch;
    margin: 0;
    padding: 0;
    list-style: none;
}
.ebc-dc__cell {
    display: flex;
    min-width: 0;
    margin: 0;
}
.ebc-dc-none {
    margin: 0;
    padding: 24px 0;
}
.ebc-dc__pages {
    margin-top: 40px;
}
.ebc-dc__pages ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.ebc-dc__pages a,
.ebc-dc__pages span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    border: 1px solid var(--dc-btn-border, #909090);
    border-radius: 6px;
    color: inherit;
    text-decoration: none;
}
.ebc-dc__pages .current {
    border-color: var(--dc-btn-bg-h, #000);
    background: var(--dc-btn-bg-h, #000);
    color: var(--dc-btn-text-h, #fff);
}
.ebc-dc__pages .dots {
    border: 0;
}

/* ---- Tile ----
   The tile does not clip (its button sits on its bottom edge, see above);
   the rounded corners only need clipping where the picture meets them, so
   the frame carries the tile's top radius. */
.ebc-dc-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    box-sizing: border-box;
    background: var(--dc-tile-bg, transparent);
    border-radius: var(--dc-tile-radius, 0);
}

.ebc-dc-tile__frame {
    position: relative;
    overflow: hidden;
    border-radius: var(--dc-tile-radius, 0) var(--dc-tile-radius, 0) 0 0;
}
.ebc-dc-tile__media {
    position: relative;
    display: block;
    aspect-ratio: var(--dc-ratio, 1/1);
    overflow: hidden;
    background: var(--dc-img-bg, transparent);
    border-radius: var(--dc-img-radius, 0);
}
.ebc-dc-tile__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: var(--dc-fit, cover);
    transform: scale(var(--dc-zoom, 1));
}
.ebc-dc-tile__img--hover {
    opacity: 0;
    transition: opacity .3s ease;
}
/* Only while the pointer is over the picture itself (the frame: image + heart),
   not anywhere on the tile. */
.ebc-dc-tile.has-hover .ebc-dc-tile__frame:hover .ebc-dc-tile__img--hover,
.ebc-dc-tile.has-hover .ebc-dc-tile__frame:focus-within .ebc-dc-tile__img--hover {
    opacity: 1;
}
/* Touch screens have no hover, so the second image would never be seen:
   hidden, the lazy image is never downloaded there. */
@media (hover: none) {
    .ebc-dc-tile__img--hover {
        display: none;
    }
}

/* Heart (from the design): the outline always; filled once saved. */
.ebc-dc-tile__fav {
    position: absolute;
    top: var(--dc-fav-top, 13.5%);
    right: var(--dc-fav-right, 4.9%);
    z-index: 2;
    display: block;
    width: var(--dc-fav-w, 8.5%);
    padding: 0;
    border: 0;
    background: none;
    color: var(--dc-fav, #000);
    line-height: 0;
    cursor: pointer;
    transition: color .3s ease;
}
.ebc-dc-tile__fav svg {
    width: 100%;
    height: auto;
}
.ebc-dc-tile__fav path {
    fill: currentColor;
}
.ebc-dc-tile__fav .ebc-dc-heart__line {
    stroke: currentColor;
}
.ebc-dc-tile__fav .ebc-dc-heart__fill {
    opacity: 0;
    transition: opacity .2s ease;
}
.ebc-dc-tile__fav[aria-pressed="true"] .ebc-dc-heart__fill {
    opacity: 1;
}
.ebc-dc-tile.has-hover .ebc-dc-tile__frame:hover .ebc-dc-tile__fav,
.ebc-dc-tile.has-hover .ebc-dc-tile__frame:focus-within .ebc-dc-tile__fav {
    color: var(--dc-fav-hover, #fff);
}

/* ---- Body ---- */
.ebc-dc-tile__body {
    display: flex;
    flex: 1 0 auto;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--dc-gap, 17px);
    margin-top: var(--dc-image-gap, 0);
    padding-bottom: var(--dc-btn-gap, 24px);
}
.ebc-dc .ebc-dc-tile__title {
    margin: 0;
    padding: 0;
    font-family: inherit;
    font-size: var(--dc-title-size, 18px);
    font-weight: var(--dc-title-weight, inherit);
    line-height: var(--dc-title-lh, 1.2);
    letter-spacing: 0;
    color: var(--dc-title-color, #000);
}
.ebc-dc .ebc-dc-tile__title a {
    color: inherit;
    text-decoration: none;
}
.ebc-dc-tile__title a {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: var(--dc-title-lines, 3);
    overflow: hidden;
}

.ebc-dc-tile__rating,
.ebc-dcd__rating {
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}
.ebc-dc-stars {
    display: block;
    height: var(--dc-star-h, 15px);
    width: auto;
}
.ebc-dc-stars__empty { fill: var(--dc-star-off, #d9d9d9); }
.ebc-dc-stars__full  { fill: var(--dc-star, #000); }
.ebc-dc-tile__reviews {
    font-size: var(--dc-review-size, 12px);
    line-height: 1.4;
    color: var(--dc-review-color, #231f20);
}

.ebc-dc-tile__price {
    font-size: var(--dc-price-size, 18px);
    font-weight: var(--dc-price-weight, inherit);
    line-height: 1.2;
    color: var(--dc-price-color, #000);
}
.ebc-dc-tile__price del {
    opacity: .6;
    margin-right: .3em;
}
.ebc-dc-tile__price ins {
    text-decoration: none;
}

.ebc-dc-tile__date,
.ebc-dc-tile__excerpt {
    margin: 0;
    font-size: var(--dc-meta-size, 14px);
    line-height: 1.4;
}

/* ---- Button (a real link to the item; the script turns it into the drawer opener) ---- */
.ebc-dc .ebc-dc-tile__btn {
    display: block;
    box-sizing: border-box;
    margin-top: auto;
    padding: var(--dc-btn-pad, 18px);
    border: var(--dc-btn-bw, 1px) solid var(--dc-btn-border, #909090);
    border-radius: var(--dc-btn-radius, 10px);
    background: var(--dc-btn-bg, #fff);
    color: var(--dc-btn-text, #000);
    font-family: inherit;
    font-size: var(--dc-btn-size, 15px);
    font-weight: var(--dc-btn-weight, 500);
    line-height: 1.2;
    text-align: center;
    text-transform: var(--dc-btn-case, uppercase);
    text-decoration: none;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.ebc-dc .ebc-dc-tile__btn:hover,
.ebc-dc .ebc-dc-tile__btn:focus-visible {
    background: var(--dc-btn-bg-h, #000);
    border-color: var(--dc-btn-border-h, #000);
    color: var(--dc-btn-text-h, #fff);
}
.ebc-dc .ebc-dc-tile__btn.is-loading {
    opacity: .6;
    cursor: progress;
}

/* ---- Navigation ----
   A see-through disc with the chevron cut out of it, centred on the tile
   pictures (the script sets --dc-arrow-top, and --dc-arrow-l / -r to keep
   them --dc-arrow-screen clear of the screen edge). They are hidden only
   when every tile fits; the one pointing at an end is dimmed and marked
   aria-disabled. */
.ebc-dc__arrow {
    position: absolute;
    top: var(--dc-arrow-top, 35%);
    z-index: 3;
    width: var(--dc-arrow-size, 60px);
    height: var(--dc-arrow-size, 60px);
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: none;
    color: var(--dc-nav, #000);
    opacity: .27;
    transform: translateY(-50%);
    transition: opacity .2s ease;
    cursor: pointer;
}
.ebc-dc__arrow::before {
    content: "";
    position: absolute;
    inset: 0;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 60'%3E%3Cpath fill-rule='evenodd' d='M30 0C13.43 0 0 13.43 0 30s13.43 30 30 30 30-13.43 30-30S46.57 0 30 0ZM23.98 21.02a2.73 2.73 0 0 1 3.86-3.86l10.91 10.91a2.73 2.73 0 0 1 0 3.86L27.84 42.84a2.73 2.73 0 0 1-3.86-3.86L32.96 30Z'/%3E%3C/svg%3E") center / 100% no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 60'%3E%3Cpath fill-rule='evenodd' d='M30 0C13.43 0 0 13.43 0 30s13.43 30 30 30 30-13.43 30-30S46.57 0 30 0ZM23.98 21.02a2.73 2.73 0 0 1 3.86-3.86l10.91 10.91a2.73 2.73 0 0 1 0 3.86L27.84 42.84a2.73 2.73 0 0 1-3.86-3.86L32.96 30Z'/%3E%3C/svg%3E") center / 100% no-repeat;
}
.ebc-dc__prev { left: var(--dc-arrow-l, var(--dc-arrow-x, 8px)); }
.ebc-dc__prev::before { transform: scaleX(-1); }
.ebc-dc__next { right: var(--dc-arrow-r, var(--dc-arrow-x, 8px)); }
.ebc-dc__arrow[hidden] { display: none; }
.ebc-dc__arrow:hover,
.ebc-dc__arrow:focus-visible { opacity: .5; }
.ebc-dc__arrow:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.ebc-dc__arrow[aria-disabled="true"] { opacity: .1; cursor: default; }

.ebc-dc__dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}
.ebc-dc__dots .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    margin: 0 !important;
    background: var(--dc-nav, #000);
    opacity: .25;
}
.ebc-dc__dots .swiper-pagination-bullet-active { opacity: 1; }
.ebc-dc__dots.swiper-pagination-lock { display: none; }

.ebc-dc-empty {
    padding: 16px;
    border: 1px dashed #c3c4c7;
    color: #646970;
    font-size: 14px;
}

/* ===============================
   Options drawer
   Desktop / tablet: a full-height panel from the right (CC design: 460 wide).
   Phones (≤ 600px): a sheet from the bottom.
================================ */

html.ebc-dcd-open {
    overflow: hidden;
}

.ebc-dcd[hidden] {
    display: none;
}
.ebc-dcd {
    position: fixed;
    inset: 0;
    z-index: 100000;
    font-family: var(--dcd-font, inherit);
    font-feature-settings: "liga" 0, "lnum" 1, "pnum" 1;
}
.ebc-dcd__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .35);
    opacity: 0;
    transition: opacity .3s ease;
}
.ebc-dcd.is-open .ebc-dcd__backdrop {
    opacity: 1;
}

.ebc-dcd__panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    width: min(var(--dcd-width, 460px), 100vw);
    background: var(--dcd-bg, #f5f5f5);
    color: #000;
    transform: translateX(100%);
    transition: transform .32s cubic-bezier(.2, .7, .2, 1);
    outline: none;
}
.ebc-dcd.is-open .ebc-dcd__panel {
    transform: none;
}

.ebc-dcd__close {
    position: absolute;
    top: 50.7px;
    right: 38px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 33.94px;
    height: 33.94px;
    padding: 0;
    border: 0;
    background: none;
    color: #000;
    cursor: pointer;
}
.ebc-dcd__close svg {
    width: 24px;
    height: 24px;
}

.ebc-dcd__body {
    flex: 1 1 auto;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 32px 0 32px;
}

.ebc-dcd__media {
    position: relative;
    width: 245px;
    height: 245px;
}
/* The image fades in once loaded (never showing its alt text); on an option
   change the previous image sits on top and fades out at the same time. */
.ebc-dcd__media .ebc-dcd__img-in {
    opacity: 0;
    transition: opacity .2s ease;
}
.ebc-dcd__media .ebc-dcd__img-in.is-shown {
    opacity: 1;
}
.ebc-dcd__media .ebc-dcd__img-out {
    position: absolute;
    inset: 0;
    transition: opacity .2s ease;
}
.ebc-dcd__media .ebc-dcd__img-out.is-gone {
    opacity: 0;
}
.ebc-dcd__media img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    /* White product backgrounds take the panel's colour, as in the design. */
    mix-blend-mode: multiply;
}

.ebc-dcd__info {
    display: grid;
    /* Design: a 245px name column, the price 66px after it. */
    grid-template-columns: minmax(0, 245px) auto;
    column-gap: 66px;
    row-gap: 12px;
    margin: 20px 38px 0 35px;
}
.ebc-dcd__titles { min-width: 0; }
.ebc-dcd .ebc-dcd__name {
    margin: 0;
    font-family: inherit;
    font-size: 18px;
    font-weight: var(--dcd-w-light, 300);
    line-height: 1.4;
    letter-spacing: 0;
    color: #000;
}
.ebc-dcd__chosen {
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
}
.ebc-dcd__price {
    margin: 0;
    font-size: 18px;
    font-weight: var(--dcd-w-regular, 400);
    line-height: 1.4;
    white-space: nowrap;
}
.ebc-dcd__price del {
    margin-right: .35em;
    font-weight: 400;
    opacity: .6;
}
.ebc-dcd__price ins {
    text-decoration: none;
}
.ebc-dcd__rating {
    grid-column: 1 / -1;
    gap: 12.19px;
}
.ebc-dcd__rating .ebc-dc-stars {
    height: 20.07px;
}
.ebc-dcd .ebc-dc-stars__empty { fill: var(--dcd-star-off, #d9d9d9); }
.ebc-dcd .ebc-dc-stars__full  { fill: var(--dcd-star, #000); }
.ebc-dcd__reviews {
    font-size: 13.546px;
    line-height: 1.4;
    color: #231f20;
}

.ebc-dcd__options {
    margin: 58px 38px 0 35px;
    padding-top: 32px;
    border-top: .5px solid #909090;
}
.ebc-dcd__group + .ebc-dcd__group {
    margin-top: 20px;
}
.ebc-dcd__group-label {
    margin: 0 0 10px;
    font-size: 14px;
}
.ebc-dcd__opts {
    display: flex;
    flex-wrap: wrap;
    gap: 17.016px;
}
.ebc-dcd__opt {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    height: 35.734px;
    padding: 5.105px 17.016px;
    border: 1px solid #909090;
    border-radius: 6.807px;
    background: #fff;
    color: #000;
    font-family: inherit;
    font-size: 16px;
    font-weight: var(--dcd-w-light, 300);
    line-height: 1.4;
    white-space: nowrap;
    cursor: pointer;
}
.ebc-dcd__opt:hover {
    border-color: var(--dcd-accent, #000);
}
.ebc-dcd__opt.is-on {
    border-color: var(--dcd-accent, #000);
    background: var(--dcd-accent, #000);
    color: var(--dcd-on-accent, #fff);
}
.ebc-dcd__opt:disabled {
    opacity: .4;
    text-decoration: line-through;
    cursor: not-allowed;
}

.ebc-dcd__error {
    margin: 16px 38px 0 35px;
    color: #b32d2e;
    font-size: 14px;
}
.ebc-dcd__error:empty { display: none; }

.ebc-dcd__footer {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 26px 35px;
    background: var(--dcd-footer, #e9e9e9);
}
.ebc-dcd__qty {
    display: flex;
    flex: 0 0 105px;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
    height: 42px;
    padding: 0 11px;
    border: 1.6px solid #cacaca;
    border-radius: var(--dcd-radius, 5px);
    background: #fff;
}
.ebc-dcd__qty button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    background: none;
    color: #000;
    cursor: pointer;
}
.ebc-dcd__qty button:disabled {
    opacity: .3;
    cursor: default;
}
.ebc-dcd__qty input {
    width: 32px;
    padding: 0;
    border: 0;
    background: none;
    color: #000;
    font-family: inherit;
    font-size: 20px;
    font-weight: var(--dcd-w-light, 300);
    text-align: center;
    -moz-appearance: textfield;
    appearance: textfield;
}
.ebc-dcd__qty input::-webkit-outer-spin-button,
.ebc-dcd__qty input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.ebc-dcd__add {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: center;
    gap: 44px;
    box-sizing: border-box;
    height: 42px;
    padding: 14px 16px 12px;
    border: 0;
    border-radius: var(--dcd-radius, 5px);
    background: var(--dcd-accent, #000);
    color: var(--dcd-on-accent, #fff);
    font-family: inherit;
    font-size: 16px;
    line-height: 1.2;
    white-space: nowrap;
    cursor: pointer;
}
.ebc-dcd__add-label {
    font-weight: var(--dcd-w-medium, 500);
    text-transform: uppercase;
}
.ebc-dcd__add-price {
    font-weight: var(--dcd-w-light, 300);
}
.ebc-dcd__add:disabled {
    opacity: .5;
    cursor: not-allowed;
}
.ebc-dcd__add.is-loading {
    cursor: progress;
}

/* ---- Phones: the bottom sheet (CC Mobile design, 375 wide) ---- */
@media (max-width: 600px) {
    .ebc-dcd__panel {
        top: auto;
        left: 0;
        width: 100%;
        max-height: 90vh;
        transform: translateY(100%);
    }
    .ebc-dcd__close {
        top: 10px;
        right: 19.5px;
        width: 27.338px;
        height: 27.338px;
    }
    .ebc-dcd__close svg {
        width: 19.331px;
        height: 19.331px;
    }
    .ebc-dcd__body {
        display: grid;
        grid-template-columns: 121px 1fr;
        align-content: start;
        padding: 17px 0 24px;
    }
    .ebc-dcd__media {
        grid-row: 1;
        width: 121px;
        height: 121px;
    }
    .ebc-dcd__info {
        grid-row: 1;
        align-self: start;
        margin: 38px 20px 0 -5px;
        grid-template-columns: minmax(0, 149px) auto;
        column-gap: 12px;
        row-gap: 8px;
    }
    .ebc-dcd .ebc-dcd__name {
        font-size: 16px;
        line-height: 1.2;
    }
    .ebc-dcd__chosen {
        font-size: 10px;
    }
    .ebc-dcd__price {
        padding-top: 2px;
        font-size: 12px;
    }
    .ebc-dcd__rating {
        gap: 7.12px;
    }
    .ebc-dcd__rating .ebc-dc-stars {
        height: 11.72px;
    }
    .ebc-dcd__reviews {
        font-size: 7.909px;
    }
    .ebc-dcd__options,
    .ebc-dcd__error {
        grid-column: 1 / -1;
        margin: 14px 20px 0;
    }
    .ebc-dcd__options {
        padding-top: 16.5px;
    }
    .ebc-dcd__opts {
        gap: 10px;
    }
    .ebc-dcd__opt {
        height: 21px;
        padding: 3px 10px;
        border-radius: 4px;
        font-size: 10px;
    }
    .ebc-dcd__footer {
        gap: 14px;
        padding: 15px 22px 18px;
    }
    .ebc-dcd__qty {
        flex-basis: 105px;
        height: 37px;
        padding: 0 9px;
        border-width: 1px;
        border-radius: var(--dcd-radius-m, 0);
    }
    .ebc-dcd__qty input {
        font-size: 16px;
    }
    .ebc-dcd__add {
        height: 37px;
        justify-content: space-between;
        gap: 12px;
        padding: 0 12px 0 16px;
        border-radius: var(--dcd-radius-m, 0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .ebc-dcd__panel,
    .ebc-dcd__backdrop,
    .ebc-dcd__media .ebc-dcd__img-in,
    .ebc-dcd__media .ebc-dcd__img-out,
    .ebc-dc-tile__img--hover {
        transition: none;
    }
}

/* ---- Favourites (Show: the visitor's favourites) ---- */
/* The "nothing saved" message: hidden while there are tiles, shown by the
   script once the last tile is un-hearted or the list is empty. */
.ebc-dc-favs__empty {
    margin: 0;
}
.ebc-dc-favs__empty[hidden] {
    display: none;
}
.ebc-dc--favs.is-empty .ebc-dc__grid,
.ebc-dc--favs.is-empty .swiper,
.ebc-dc--favs.is-empty .ebc-dc__arrow,
.ebc-dc--favs.is-empty .ebc-dc__dots {
    display: none;
}
