/* Keep the optional driver on its own centered row below the purchase button. */
form.cart:has(> .rd-extra-product),
.woocommerce-variation-add-to-cart:has(> .rd-extra-product) {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px;
}
.rd-extra-product {
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 100%;
    order: 20;
    box-sizing: border-box;
    clear: both;
    margin: 12px 0 0 !important;
    padding: 0 !important;
    border: 0 !important;
    text-align: center !important;
}
.rd-extra-product .rd-extra-choice {
    display: grid;
    grid-template-columns: 20px minmax(0, auto);
    align-items: center;
    justify-content: center;
    column-gap: 8px;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto;
}
.rd-extra-product input[type="checkbox"] {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    margin: 0 !important;
    padding: 0 !important;
    cursor: pointer;
    accent-color: #e61535;
}
.rd-extra-product label {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0 5px;
    min-height: 44px;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 1.5 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    cursor: pointer;
}
.rd-extra-product .rd-extra-price { white-space: nowrap; }
.rd-extra-product .rd-extra-detail {
    display: none !important;
    grid-column: 1 / -1;
    max-width: 480px;
    margin: 4px auto 0;
    padding: 10px 12px;
    border-radius: 6px;
    background: #f6f6f6;
    box-sizing: border-box;
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 1.6 !important;
    text-align: center;
}
.rd-extra-product input:checked ~ .rd-extra-detail { display: block !important; }
