/**
 * Eighteen_Swatches - Low Stock Indicator Styles
 */

.swatch-attribute.size .swatch-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.swatch-attribute.size .size-number {
    display: block;
}
.product-options-wrapper .swatch-option.text {
    line-height: unset !important;
    padding: 0 !important;
    min-width: 50px !important;
    height: 53px !important;
}
.swatch-attribute.size .alpha-size {
    margin: 0;
    display: flex;
    width: 100%;
    text-align: center;
    align-items: center;
    justify-content: center;
    background: #000000;
    color: #ffffff;
    padding-top: 0;
    font-size: 10px;
    font-weight: 600;
}
.swatch-option.text.selected {
    outline-offset: -1px;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    padding: 0 !important;
    align-items: normal !important;
    justify-content: normal !important;
}

.swatch-option.text.selected .size-number {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
}

.product-options-wrapper .swatch-option.text .size-number {
    font-weight: 700;
    font-size: 13px;
}
/* ---- Red dot on swatch ---- */
.swatch-attribute.size .swatch-option {
    position: relative !important;
    overflow: visible !important;
}

.low-stock-dot {
    position: absolute !important;
    top: 12px !important;
    left: 0px !important;
    width: 6px !important;
    height: 6px !important;
    background-color: #e22626 !important;
    border-radius: 50% !important;
    border: 2px solid #fff !important;
    display: block !important;
    z-index: 999 !important;
    animation: lowStockPulse 1.5s infinite;
}

@keyframes lowStockPulse {
    0%   { transform: scale(1);   opacity: 1; }
    50%  { transform: scale(1.3); opacity: 0.7; }
    100% { transform: scale(1);   opacity: 1; }
}

/* ---- "Few pieces left" label ---- */
.few-pieces-left {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 8px 0 0 0;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.few-pieces-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #e22626;
    border-radius: 50%;
    flex-shrink: 0;
    animation: lowStockPulse 1.5s infinite;
}