/* ─────────────────────────────────────────────────────────────────
   Meat Master — WooCommerce Variation Swatches
   Enqueued via mm_enqueue_variation_swatches() on product pages only.
   Uses the same CSS variables (--accent, --base, --contrast) as the
   live site so colours stay in sync with the GeneratePress theme.
   ───────────────────────────────────────────────────────────────── */

.variation-buttons {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
}

button.variant-button {
    background-color: var(--base);
    color: var(--contrast);
    font-size: 14px;
    font-weight: 400;
    border: 1px solid #ccc;
    cursor: pointer;
    display: inline-block;
    overflow: hidden;
    padding: 5px 15px;
    position: relative;
    transition: .2s;
}

button.variant-button.selected {
    border: 1px solid var(--accent);
}

button.variant-button.selected:before {
    border: 16px solid transparent;
    border-bottom: 16px solid var(--accent);
    bottom: -1px;
    content: "";
    inset-inline-end: -16px;
    position: absolute;
}

button.variant-button.selected:after {
    content: '';
    position: absolute;
    bottom: -3px;
    inset-inline-end: -4px;
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5.5 9.5L3 7l-1.5 1.5L5.5 12 14 3.5 12.5 2l-7 7.5z'/%3E%3C/svg%3E");
    background-size: 10px;
    background-repeat: no-repeat;
    background-position: center;
    pointer-events: none;
}

/* Hide the native WooCommerce <select> — preserved in the DOM for
   WooCommerce's variation.js but never shown to the user. */
.variations select.mm-variation-select {
    display: none !important;
}
