.as-pack-sizes {
    margin: 0 0 18px;
}

.as-pack-sizes__label {
    font-weight: 600;
    margin: 0 0 12px;
}

.as-pack-sizes__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.as-pack-sizes__button {
    border: 1px solid currentColor;
    border-radius: 999px;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font: inherit;
    line-height: 1.15;
    padding: 12px 16px;
    min-width: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.15s ease, color 0.15s ease, opacity 0.15s ease, transform 0.15s ease;
}

.as-pack-sizes__button:hover,
.as-pack-sizes__button:focus-visible {
    transform: translateY(-1px);
}

.as-pack-sizes__button.is-selected {
    background: currentColor;
}

.as-pack-sizes__button.is-selected .as-pack-sizes__button-label {
    color: #fff;
}

.as-pack-sizes__button:disabled {
    cursor: not-allowed;
    opacity: 0.35;
    text-decoration: line-through;
}

.as-pack-sizes__button-label {
    white-space: nowrap;
}

.as-pack-sizes__price {
    margin: 12px 0 0;
    font-size: 1em;
}

.as-pack-sizes__price del {
    opacity: 0.75;
    margin-right: 6px;
}

.as-pack-sizes__price ins {
    text-decoration: none;
}

.as-pack-sizes__stock-note {
    margin: 8px 0 0;
    font-size: 0.9em;
    opacity: 0.75;
}


.as-pack-sizes__availability-note {
    margin: 12px 0 0;
    font-size: 0.95em;
    opacity: 0.85;
}

.as-pack-sizes__notices {
    margin-top: 12px;
    clear: both;
}

.as-pack-sizes__notices:empty {
    display: none;
}

.as-pack-sizes__notices .woocommerce-error,
.as-pack-sizes__notices .woocommerce-message,
.as-pack-sizes__notices .woocommerce-info {
    margin: 0 0 12px;
}

/* WooCommerce briefly injects a "View cart" link after AJAX add-to-cart.
   Pack-size products reload after add-to-cart so the stock limits stay correct,
   so the temporary link only creates a flicker. */
form.cart .single_add_to_cart_button + .added_to_cart.wc-forward,
form.cart .added_to_cart.wc-forward {
    display: none !important;
}
