.product-anchor {
    position: absolute;
    inset-block-start: var(--desktop-top, 50%);
    inset-inline-start: var(--desktop-left, 50%);
    z-index: var(--z-index-popover);
    display: block;
    width: 0;
    height: 0;
}

@media (max-width: 959px) {
    .product-anchor {
        inset-block-start: var(--mobile-top, 50%);
        inset-inline-start: var(--mobile-left, 50%);
    }
}

/* A standalone button: no platform popover host, placeholder, or arrow. */
.product-anchor__trigger {
    position: absolute;
    inset: 0 auto auto 0;
    display: grid;
    width: 32px;
    height: 32px;
    padding: 0;
    margin: 0;
    color: #171613;
    appearance: none;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(23, 22, 19, 0.42);
    border-radius: 999px;
    outline: 0;
    box-shadow: 0 3px 12px rgba(23, 22, 19, 0.18);
    transform: translate(-50%, -50%);
    place-items: center;
    transition: background-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.product-anchor__trigger::before,
.product-anchor__trigger::after {
    display: none !important;
    content: none !important;
}

.product-anchor__trigger:hover,
.product-anchor__trigger:focus-visible,
.product-anchor.is-open .product-anchor__trigger {
    background: #fff;
    box-shadow: 0 4px 16px rgba(23, 22, 19, 0.24);
    transform: translate(-50%, -50%) scale(1.06);
}

.product-anchor__trigger:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

.product-anchor__trigger[aria-disabled="true"] {
    cursor: default;
}

.product-anchor__dot {
    display: block;
    width: 6px;
    height: 6px;
    pointer-events: none;
    background: currentColor;
    border-radius: 999px;
    transition: transform 180ms ease;
}

.product-anchor__trigger:hover .product-anchor__dot,
.product-anchor__trigger:focus-visible .product-anchor__dot,
.product-anchor.is-open .product-anchor__dot {
    transform: scale(1.22);
}

.product-anchor__content[hidden] {
    display: none !important;
}

.product-anchor__content {
    position: fixed;
    inset-block-start: var(--anchor-card-top, 0);
    inset-inline-start: var(--anchor-card-left, 0);
    z-index: calc(var(--z-index-popover) + 2);
    display: block;
    width: min(360px, calc(100vw - 32px));
    color: rgb(var(--color-text));
    text-align: start;
    pointer-events: auto;
}

.product-anchor__card {
    width: 100%;
    padding: 16px;
    background: rgb(var(--color-background));
    border: 1px solid rgba(var(--color-text), 0.12);
    border-radius: 0;
    box-shadow: 0 14px 40px rgba(23, 22, 19, 0.16);
    animation: relvoux-anchor-card-in 160ms ease both;
}

@keyframes relvoux-anchor-card-in {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .product-anchor__card {
        animation: none;
    }
}

.product-anchor__link {
    display: flex;
    gap: 16px;
    align-items: center;
    width: 100%;
    color: inherit;
    text-decoration: none;
    transition: opacity 180ms ease;
}

.product-anchor__link:hover {
    opacity: 0.76;
}

.product-anchor__link:focus-visible {
    outline: 1px solid currentColor;
    outline-offset: 4px;
}

.product-anchor__product-text {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 8px;
    justify-content: center;
    min-width: 0;
}

.product-anchor__product-image {
    flex: 0 0 72px;
    width: 72px;
    height: 72px;
    overflow: hidden;
    background: transparent;
}

.product-anchor__product-image > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-anchor__title {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: rgba(var(--color-text));
    font-family: "Figtree", var(--font-body-family, Arial, sans-serif) !important;
    font-size: 11.7px !important;
    font-weight: 400 !important;
    line-height: 1.4 !important;
    letter-spacing: 0 !important;
    text-overflow: ellipsis;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-anchor__description {
    display: -webkit-box;
    overflow: hidden;
    color: rgba(var(--color-text));
    text-overflow: ellipsis;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-anchor .product-price__sale,
.product-anchor .product-price,
.product-anchor .product-price__item,
.product-anchor .product-price__origin {
    color: rgba(var(--color-text));
    font-family: "Figtree", var(--font-body-family, Arial, sans-serif) !important;
    font-size: 10.4px !important;
    font-weight: 400 !important;
    line-height: 1.4 !important;
    letter-spacing: 0 !important;
}

@media (max-width: 959px) {
    .product-anchor__trigger {
        width: 30px;
        height: 30px;
    }

    .product-anchor__content {
        width: min(320px, calc(100vw - 28px));
    }

    .product-anchor__card {
        padding: 14px;
    }

    .product-anchor__product-image {
        flex-basis: 68px;
        width: 68px;
        height: 68px;
    }

    .product-anchor__text .product-anchor__title {
        -webkit-line-clamp: 1;
    }
}
