/* Retain the real field for WooCommerce, add-ons, validation and form submission. */
form.cart select.jfm-option-source {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    border: 0 !important;
}
form.cart .jfm-option-buttons {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 6px 0 10px !important;
}
form.cart .jfm-option-buttons .jfm-option-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 1 auto !important;
    min-height: 40px !important;
    max-width: 100% !important;
    padding: 9px 15px !important;
    margin: 0 !important;
    border: 1px solid #9aaa9f !important;
    border-radius: 8px !important;
    background: #fff !important;
    color: #234331 !important;
    box-shadow: none !important;
    font-family: inherit !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    text-align: center !important;
    cursor: pointer !important;
}
form.cart .jfm-option-buttons .jfm-option-button:hover:not(:disabled):not([aria-pressed="true"]) { border-color: #126b36 !important; background: #f0f7f2 !important; }
form.cart .jfm-option-buttons .jfm-option-button[aria-pressed="true"] {
    background: #126b36 !important;
    border-color: #126b36 !important;
    color: #fff !important;
}
form.cart .jfm-option-button:focus-visible { outline: 3px solid #17894e !important; outline-offset: 3px !important; }
form.cart .jfm-option-buttons .jfm-option-button:disabled {
    opacity: .48 !important;
    cursor: not-allowed !important;
    text-decoration: line-through !important;
}
form.cart .jfm-option-buttons[aria-invalid="true"] { border-left: 3px solid #b42318; padding-left: 8px; }
form.cart .jfm-option-buttons .jfm-option-clear { border-color: transparent !important; background: transparent !important; text-decoration: underline; }
form.cart .jfm-option-buttons .jfm-option-button[hidden] { display: none !important; }
/* Add-on configuration sometimes restricts the dropdown's wrapper to 50–75%. */
form.cart .yith-wapo-addon-type-select .options:has(.jfm-option-buttons) { display: block !important; width: 100% !important; max-width: 100% !important; }
@media (pointer: coarse) {
    form.cart .jfm-option-buttons .jfm-option-button { min-height: 44px !important; }
}
@media (max-width: 600px) {
    body.single-product form.cart.variations_form table.variations tbody tr { display: block !important; }
    body.single-product form.cart.variations_form table.variations tbody tr > th.label,
    body.single-product form.cart.variations_form table.variations tbody tr > td.value {
        display: block !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        flex: none !important;
        text-align: left !important;
    }
    body.single-product form.cart.variations_form table.variations tbody tr > th.label { padding: 10px 12px 0 !important; }
    body.single-product form.cart.variations_form table.variations tbody tr > td.value { padding: 4px 12px 10px !important; }
}
