/* ==========================================================================
   WC UOM Manager — Frontend Styles
   ========================================================================== */

.wc-uom-selector-wrap {
    margin: 16px 0 20px;
    padding: 14px 16px;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
}

/* Label above the buttons */
.wc-uom-label {
    font-size: 0.88em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #555;
    margin-bottom: 10px;
}

/* Button-group container */
.wc-uom-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Individual pill button */
.wc-uom-option {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 8px 16px;
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
    min-width: 72px;
    text-align: center;
    line-height: 1.3;
    user-select: none;
}

.wc-uom-option input[type="radio"] {
    /* Hidden — the label acts as the control */
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
}

.wc-uom-option:hover {
    border-color: #999;
    background: #f5f5f5;
}

.wc-uom-option.selected {
    border-color: #2271b1;
    background: #2271b1;
    color: #fff;
}

.wc-uom-option.selected .uom-price {
    color: rgba(255, 255, 255, 0.85);
}

.uom-name {
    font-weight: 600;
    font-size: 0.95em;
}

.uom-price {
    font-size: 0.80em;
    color: #666;
}

/* Pack price summary line */
.wc-uom-pack-info {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #e5e5e5;
    font-size: 0.9em;
    color: #333;
}

.wc-uom-pack-price-label {
    font-weight: 600;
}

.wc-uom-pack-price-value {
    font-weight: 700;
    color: #2271b1;
}

.wc-uom-price-separator {
    color: #ccc;
    margin: 0 4px;
}

.wc-uom-unit-price-label {
    font-weight: 600;
}

.wc-uom-unit-price-value {
    font-weight: 700;
    color: #555;
}

/* Quantity summary line */
.wc-uom-quantity-info {
    margin-top: 8px;
    font-size: 0.9em;
    color: #333;
}

.wc-uom-quantity-label {
    font-weight: 600;
}

.wc-uom-quantity-value {
    font-weight: 700;
    color: #2271b1;
}

/* ==========================================================================
   B2BKing bulk-order UOM selector
   ========================================================================== */

.wc-uom-bulkorder-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 5px;
}

.wc-uom-bulkorder-option {
    display: inline-block;
    padding: 2px 9px;
    border: 1px solid #d0d0d0;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    background: #fff;
    color: #444;
    transition: background 0.12s, border-color 0.12s, color 0.12s;
    user-select: none;
    white-space: nowrap;
}

.wc-uom-bulkorder-option:hover {
    border-color: #2271b1;
    color: #2271b1;
}

.wc-uom-bulkorder-option.selected {
    background: #2271b1;
    border-color: #2271b1;
    color: #fff;
}

/* Responsive */
@media (max-width: 480px) {
    .wc-uom-options {
        flex-direction: row;
    }

    .wc-uom-option {
        flex: 1 1 calc(50% - 4px);
    }
}
