/* Variation Badge Styles */
.wc-smart-utility-badge-wrapper {
    position: absolute;
    bottom: 100%;
    /* Placed directly above */
    left: 50%;
    transform: translateX(-50%);
    z-index: 99;
    white-space: nowrap;
    line-height: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
    padding-bottom: 6px;
    /* Space for arrow */
    opacity: 0;
    animation: wc-smart-utility-badge-fade-in 0.3s ease-out forwards;
}

@keyframes wc-smart-utility-badge-fade-in {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(5px);
    }

    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.wc-smart-utility-badge-inner {
    font-size: 10px;
    font-weight: 800;
    /* Bolder text like image */
    text-transform: uppercase;
    padding: 5px 8px;
    /* Slightly more padding */
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    /* Softer shadow */
    display: block;
    letter-spacing: 0.5px;
    line-height: 1;
}

.wc-smart-utility-badge-arrow {
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid;
    /* Color from inline style */
    margin-top: -1px;
    /* Slight overlap to fix sub-pixel rendering gaps */
}

/* Helper to ensure visibility */
.has-wc-smart-utility-badge {
    position: relative !important;
    overflow: visible !important;
}

/* Overlap Fix: Create space above chips in rows that have badges */
.wc-smart-utility-has-badge-row .neo-attribute-options,
.wc-smart-utility-has-badge-row .value,
/* Standard WC */
.wc-smart-utility-has-badge-row .variation-selector-wrapper {
    margin-top: 28px !important;
    /* Height of badge + arrow + buffer */
    display: block;
    /* Ensure margin applies if table-cell isn't cooperative */
}

/* Fix for Neo specifically if flex */
.wc-smart-utility-has-badge-row .neo-attribute-options {
    margin-top: 28px !important;
}

/* Standard WC table cell fix */
tr.wc-smart-utility-has-badge-row td.value {
    padding-top: 28px !important;
    margin-top: 0 !important;
    /* Prefer padding for cells */
}

/* Hide Product Meta elements */
body.wc-smart-utility-hide-categories .product_meta .posted_in {
    display: none !important;
}

body.wc-smart-utility-hide-tags .product_meta .tagged_as {
    display: none !important;
}

body.wc-smart-utility-hide-sharing .woocommerce-sharing,
body.wc-smart-utility-hide-sharing .social-icons,
body.wc-smart-utility-hide-sharing .share-links {
    display: none !important;
}