/**
 * OE GF Enhanced Time CSS
 * Applies compact inline layout and stacked AM/PM radios strictly to Time fields
 * tagged with the custom class 'oe-custom-time'.
 */

/* 1. Force the container to be a row and stop wrapping */
.gform_wrapper .oe-custom-time .ginput_container_time {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 8px !important;
}

/* 2. Remove default Gravity Forms margin/padding that causes line drop */
.gform_wrapper .oe-custom-time .gfield_time_hour, 
.gform_wrapper .oe-custom-time .gfield_time_minute, 
.gform_wrapper .oe-custom-time .hour_minute_separator {
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
    width: auto !important;
    display: flex !important;
    align-items: center !important;
}

/* 3. Narrow and center the hour/minute input boxes */
.gform_wrapper .oe-custom-time input[type="text"],
.gform_wrapper .oe-custom-time input[type="number"] {
    width: 60px !important;
    text-align: center !important;
    padding: 8px 5px !important;
    height: auto !important;
}

/* 4. Vertical Stack for AM/PM Radio Buttons */
.gform_wrapper .oe-custom-time .gfield_time_ampm_radios {
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;
    margin-left: 5px !important;
}

.gform_wrapper .oe-custom-time .gfield_time_ampm_radios label {
    font-size: 11px !important;
    line-height: 1 !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    white-space: nowrap !important;
}

.gform_wrapper .oe-custom-time .gfield_time_ampm_radios input[type="radio"] {
    margin: 0 4px 0 0 !important;
    width: 14px !important;
    height: 14px !important;
}
