.product-detail-wrapper theme-product-detail,
.product-detail-wrapper .product-detail[data-desktop-direction="row"] {
    position: relative;
    z-index: 4;
}

.product-sticky-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 30;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
    transform: translateY(-100%);
    pointer-events: none;
    margin: 0 !important;
    transition: transform 0.25s;
}

.product-sticky-bar.is-visible {
    pointer-events: auto;
    transform: translateY(calc(0px + var(--common-pc-trigger-offset)));
}

.product-sticky-bar.is-hiding {
    pointer-events: none;
}

.product-sticky-bar__inner {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-block: 10px;
    justify-content: space-between;
}

.product-sticky-bar_main-left {
    display: flex;
    align-items: center;
    justify-content: left;
    width: 45%;
}

.product-sticky-bar_main-right {
    display: flex;
    align-items: center;
    max-width: 54%;
}

.product-sticky-bar__info {
    display: flex;
    padding-left: 20px;
    align-items: center;
}

.product-sticky-bar__media {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-radius: 6px;
    overflow: hidden;
    background: var(--color-image-background, #f8f8f8);
}

.product-sticky-bar__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-sticky-bar__info {
    flex: 1 1 auto;
    min-width: 0;
}

.product-sticky-bar__title {
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-sticky-bar__price {
    font-size: 14px;
    color: #000;
    white-space: nowrap;
}

.product-sticky-bar__options {
    flex: 0 0 auto;
    display: flex;
    max-width: 460px;
    overflow-x: auto;
    scrollbar-width: thin;
    padding-left: 1px;
}

.product-sticky-bar__option {
    position: relative;
    flex-shrink: 0;
    margin-left: -1px;
}

.product-sticky-bar__option::after {
    content: '';
    position: absolute;
    right: 14px;
    top: 50%;
    width: 8px;
    height: 8px;
    margin-top: -6px;
    border-right: 1.5px solid rgba(0, 0, 0, .45);
    border-bottom: 1.5px solid rgba(0, 0, 0, .45);
    transform: rotate(45deg);
    pointer-events: none;
    transition: border-color .15s ease;
}

.product-sticky-bar__option:hover::after {
    border-color: rgba(0, 0, 0, .75);
}

.product-sticky-bar__select {
    height: 48px;
    padding: 0 30px 0 14px;
    border: 1px solid rgba(0, 0, 0, .15);
    background: #fff;
    font-size: 13px;
    color: #1a1a1a;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.product-sticky-bar__select:hover {
    border-color: rgba(0, 0, 0, .35);
}

.product-sticky-bar__select:focus-visible {
    outline: none;
    border-color: #000;
    box-shadow: 0 0 0 1px #000;
    position: relative;
    z-index: 1;
}

.product-sticky-bar__select option {
    background-color: #fff;
    color: #1a1a1a;
}

.product-sticky-bar__select option:hover,
.product-sticky-bar__select option:checked,
.product-sticky-bar__select option:focus {
    background-color: #f0f0f0;
}

.product-sticky-bar__cta {
    white-space: nowrap;
    border-radius: 8px;
    margin-left: 10px;
}

.product-sticky-bar__icon {
    padding: 0 6px;
    font-weight: 900;
}

@media (max-width: 768px) {
    theme-sticky-add-to-cart.product-sticky-bar{
        display: none;
    }

    .product-sticky-bar.is-visible {
        transform: translateY(calc(0px + var(--common-mb-trigger-offset)));
    }

    .product-sticky-bar__inner {
        flex-wrap: wrap;
        gap: 8px;
        padding-block: 8px;
    }

    .product-sticky-bar__options {
        order: 3;
        flex: 1 1 100%;
        max-width: 100%;
    }

    .product-sticky-bar__cta {
        order: 4;
        flex: 1 1 100%;
    }

    .product-sticky-bar__select {
        flex: 1 1 auto;
    }
}