/**
 * Purchase status icons (PLP/rails) and chips (PDP/QuickView).
 * Placeholders stay hidden while empty to avoid CLS / guest noise.
 *
 * PLP placement is via Card Content Order (inline in .wiz-grid__card-body),
 * not hardcoded on the image — side-by-side with SKU matches Figma.
 *
 * Icon hover tip uses a fixed singleton (.wiz-purchase-status-tooltip) — same
 * method as WizWishlistSelection (one panel, reposition near trigger) because
 * .wiz-grid__card has overflow:hidden and would clip in-card ::after tips.
 */

.wiz-purchase-status:empty,
.wiz-purchase-status.wiz-purchase-status--empty {
    display: none;
}

.wiz-purchase-status {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    max-width: 100%;
}

.wiz-purchase-status__icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    background: transparent;
    cursor: default;
}

/* Floating hover tip (appended to body — escapes card overflow:hidden). */
.wiz-purchase-status-tooltip {
    position: fixed;
    z-index: 10050;
    box-sizing: border-box;
    max-width: 220px;
    padding: 10px 12px;
    border-radius: 6px;
    background: #fff;
    color: #1a1a1a;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.35;
    text-align: left;
    white-space: normal;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.16);
    border: 1px solid #eee;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease, visibility 0.15s ease;
}

.wiz-purchase-status-tooltip.is-visible {
    opacity: 1;
    visibility: visible;
}

.wiz-purchase-status-tooltip::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 100%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-bottom-color: #fff;
    filter: drop-shadow(0 -1px 0 #eee);
}

.wiz-purchase-status-tooltip--above::before {
    bottom: auto;
    top: 100%;
    border-bottom-color: transparent;
    border-top-color: #fff;
    filter: drop-shadow(0 1px 0 #eee);
}

.wiz-purchase-status__chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 6px;
    background: #f0f1f3;
    color: #1a1a1a;
    font-size: 12px;
    line-height: 1.3;
    white-space: nowrap;
}

.wiz-purchase-status__img {
    display: block;
    width: 16px;
    height: 16px;
    object-fit: contain;
    flex-shrink: 0;
}

.wiz-purchase-status__text {
    display: inline;
}
