.dvfm-birthday-fieldset {
    margin: 1rem 0;
    padding: 0;
    border: 0;
}
.dvfm-birthday-fieldset legend {
    margin-bottom: .45rem;
    font-weight: 600;
}
.dvfm-birthday-group {
    display: grid;
    grid-template-columns: minmax(5.5rem, .7fr) minmax(9rem, 1.4fr) minmax(7rem, 1fr);
    gap: .6rem;
    max-width: 34rem;
}
.dvfm-birthday-group select {
    width: 100%;
    min-width: 0;
}
.woocommerce form .form-row.dvfm-birthday-part {
    float: none;
    width: auto;
    clear: none;
}
.woocommerce form .form-row.dvfm-birthday-day,
.woocommerce form .form-row.dvfm-birthday-month,
.woocommerce form .form-row.dvfm-birthday-year {
    display: inline-block;
    vertical-align: top;
    margin-right: .5rem;
}
.woocommerce form .form-row.dvfm-birthday-day { width: 7rem; }
.woocommerce form .form-row.dvfm-birthday-month { width: 10rem; }
.woocommerce form .form-row.dvfm-birthday-year { width: 8rem; margin-right: 0; }
@media (max-width: 520px) {
    .dvfm-birthday-group { grid-template-columns: 1fr; max-width: none; }
    .woocommerce form .form-row.dvfm-birthday-day,
    .woocommerce form .form-row.dvfm-birthday-month,
    .woocommerce form .form-row.dvfm-birthday-year {
        display: block;
        width: 100%;
        margin-right: 0;
    }
}

/* Checkout birthday is one semantic field wrapper; theme can style the group freely. */
.woocommerce form .dvfm-birthday-checkout-field {
    float: none;
    width: 100%;
    clear: both;
}
.woocommerce form .dvfm-birthday-checkout-field .dvfm-birthday-group {
    display: grid;
    grid-template-columns: minmax(5.5rem, .7fr) minmax(9rem, 1.4fr) minmax(7rem, 1fr);
    gap: .6rem;
    max-width: 34rem;
}
@media(max-width:480px) {
    .woocommerce form .dvfm-birthday-checkout-field .dvfm-birthday-group {
        grid-template-columns: 1fr;
    }
}