.woocommerce ul.products li.product,
.single-product div.product,
.single-product div.product div.images,
#yith-quick-view-content .product,
#yith-quick-view-content div.images,
.custom-yith-quickbuy-image-wrapper {
    position: relative;
    z-index: 0;
}

.woocommerce ul.products li.product .product-image-wrapper {
    position: relative;
}

.eskimo-offer-badge {
    position: absolute;
    z-index: 2;
    width: var(--eskimo-badge-size, 68px);
    height: var(--eskimo-badge-size, 68px);
    background: var(--eskimo-badge-bg, #df3038);
    color: var(--eskimo-badge-fg, #ffffff);
    border: var(--eskimo-badge-border-width, 2px) solid var(--eskimo-badge-border-color, #ffffff);
    font-size: clamp(10px, calc(var(--eskimo-badge-size, 68px) * 0.26), 20px);
    font-weight: 700;
    letter-spacing: 0.03em;
    line-height: 1;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
    pointer-events: none;
    font-family: var(--eskimo-badge-font, inherit);
}

.eskimo-offer-badge.shape-circle {
    border-radius: 999px;
}

.eskimo-offer-badge.shape-square {
    border-radius: 4px;
}

.eskimo-offer-badge.shape-star {
    clip-path: polygon(50% 0%, 61% 34%, 98% 35%, 68% 57%, 79% 92%, 50% 72%, 21% 92%, 32% 57%, 2% 35%, 39% 34%);
}

.eskimo-offer-badge.v-top {
    top: var(--eskimo-badge-pad-y, 12px);
}

.eskimo-offer-badge.v-middle {
    top: 50%;
    transform: translateY(-50%);
}

.eskimo-offer-badge.v-bottom {
    bottom: var(--eskimo-badge-pad-y, 12px);
}

.eskimo-offer-badge.h-left {
    left: var(--eskimo-badge-pad-x, 12px);
}

.eskimo-offer-badge.h-center {
    left: 50%;
}

.eskimo-offer-badge.v-top.h-center,
.eskimo-offer-badge.v-bottom.h-center {
    transform: translateX(-50%);
}

.eskimo-offer-badge.v-middle.h-center {
    transform: translate(-50%, -50%);
}

.eskimo-offer-badge.h-right {
    right: var(--eskimo-badge-pad-x, 12px);
}

.eskimo-countdown-wrap {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 8px;
    margin: 12px 0;
    padding: 8px 12px;
    border-radius: 6px;
    background: var(--eskimo-countdown-box, #faf4e8);
    border: 1px solid var(--eskimo-countdown-border, #d19a2a);
    color: var(--eskimo-countdown-fg, #232323);
    font-family: var(--eskimo-countdown-font, inherit);
    text-align: center;
}

.eskimo-countdown-wrap > * {
    display: block !important;
    width: 100% !important;
    flex: 0 0 100% !important;
    clear: both !important;
    float: none !important;
    text-align: center !important;
}

.eskimo-countdown-promotion-title {
    display: block;
    margin: 0;
    font-size: var(--eskimo-countdown-promo-title-size, 15px);
    font-family: var(--eskimo-countdown-promo-title-font, inherit);
    font-weight: 700;
    line-height: 1.3;
}

.eskimo-countdown-promotion-type {
    display: block;
    margin: 0;
    font-size: var(--eskimo-countdown-promo-type-size, 13px);
    font-weight: 600;
    line-height: 1.3;
    opacity: 0.9;
}

.eskimo-countdown-title {
    display: block !important;
    margin: 0;
    font-size: var(--eskimo-countdown-title-size, 16px);
    font-family: var(--eskimo-countdown-font, inherit);
    line-height: 1.3;
}

.eskimo-countdown {
    display: flex !important;
    justify-content: center;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 8px;
    padding: 4px 8px;
    border-radius: 4px;
    background: var(--eskimo-countdown-bg, #ffffff);
    border: 1px solid var(--eskimo-countdown-border, #d19a2a);
    color: var(--eskimo-countdown-fg, #232323);
    font-weight: 700;
    font-size: var(--eskimo-countdown-counter-size, 18px);
    font-family: var(--eskimo-countdown-font, inherit);
    min-width: 140px;
    text-align: center;
}

.eskimo-counter-unit {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 5px;
}

.eskimo-counter-digits {
    display: inline-flex;
    gap: 3px;
}

.eskimo-counter-digit {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 46px;
    border-radius: 4px;
    background: linear-gradient(180deg, color-mix(in srgb, var(--eskimo-countdown-bg, #ffffff) 88%, #000 12%) 0%, var(--eskimo-countdown-bg, #ffffff) 45%, color-mix(in srgb, var(--eskimo-countdown-bg, #ffffff) 82%, #000 18%) 100%);
    color: var(--eskimo-countdown-fg, #232323);
    border: 1px solid color-mix(in srgb, var(--eskimo-countdown-border, #d19a2a) 74%, #000 26%);
    box-shadow: inset 0 -4px 8px rgba(0, 0, 0, 0.12), 0 5px 8px rgba(0, 0, 0, 0.14);
    font-family: var(--eskimo-countdown-font, inherit);
    font-size: var(--eskimo-countdown-counter-size, 18px);
    font-weight: 700;
    line-height: 1;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.2), 0 2px 4px rgba(0, 0, 0, 0.35);
    transform-origin: 50% 60%;
}

.eskimo-counter-digit::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    border-top: 1px solid rgba(0, 0, 0, 0.16);
}

.eskimo-counter-digit.spin {
    animation: eskimoDigitSpin 520ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.eskimo-counter-label {
    font-size: 12px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    opacity: 0.85;
    display: block;
    width: 100%;
    text-align: center;
}

.eskimo-countdown.eskimo-countdown-ended {
    display: block !important;
    text-align: center;
}

@keyframes eskimoDigitSpin {
    0% {
        transform: translateY(-40%) rotateX(-90deg);
        opacity: 0;
    }
    60% {
        transform: translateY(4%) rotateX(14deg);
        opacity: 1;
    }
    100% {
        transform: translateY(0) rotateX(0);
        opacity: 1;
    }
}

.eskimo-countdown-promotion-title,
.eskimo-countdown-promotion-type,
.eskimo-countdown-title,
.eskimo-countdown {
    width: 100%;
    clear: both;
}

.eskimo-countdown-title > * {
    margin: 0;
    display: block;
}
