/**
 * Gravity Forms Date List — front end.
 *
 * Gravity Forms forces List inputs to width:100%
 * (.gform_wrapper.gravity-theme .gfield_list_group_item input) and only styles
 * the calendar trigger inside .ginput_container_date. Left alone, the trigger
 * jQuery UI inserts after the input wraps onto its own line below the field.
 *
 * The input and its trigger are wrapped in .gfdl-datepicker-wrap and laid out as
 * a flex row: the input shrinks to share the line instead of us overriding a
 * width GF sets more specifically. Sizing mirrors GF's own (max 25.6px, 12.8px
 * gap) so the icon matches the built-in Date field.
 */

.gfdl-datepicker-wrap {
	display: flex;
	align-items: center;
	width: 100%;
}

.gfdl-datepicker-wrap input.gfdl-datepicker {
	flex: 1 1 auto;
	/* Allows the input to shrink below its intrinsic width inside the flex row. */
	min-width: 0;
}

.gfdl-datepicker-wrap img.ui-datepicker-trigger,
.gfdl-datepicker-wrap button.ui-datepicker-trigger {
	display: block;
	flex: 0 0 auto;
	max-width: 25.6px;
	max-height: 25.6px;
	margin: 0 0 0 12.8px;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
}

html[dir="rtl"] .gfdl-datepicker-wrap img.ui-datepicker-trigger,
html[dir="rtl"] .gfdl-datepicker-wrap button.ui-datepicker-trigger {
	margin-left: 0;
	margin-right: 12.8px;
	order: 1;
}
