/*
 * Consent section. Classes are added by the plugin when it sees the shortcodes.
 * "I'd like to hear from" gets rch-consent-options when its conditional logic
 * shows it from the marketing consent field.
 *
 * Bliss Pro weights are separate families with font-weight: normal.
 * font-weight: 700 on bliss-pro-bold faux-bolds that face.
 *
 * Dark forms: add rch-form-dark to the form CSS class.
 */

.gform_wrapper .rch-consent-title {
	display: block;
	font-family: bliss-pro-regular, sans-serif;
	font-size: 15px;
	font-weight: normal;
	line-height: 1.4;
	color: #43455a;
}

.gform_wrapper .rch-consent-sms .rch-consent-title {
	font-family: bliss-pro-bold, sans-serif;
	font-size: 16px;
}

.gform_wrapper .rch-consent-data .rch-consent-title {
	font-family: bliss-pro-medium, sans-serif;
	font-size: 15px;
}

/* The asterisk is rendered in the legend, which the theme hides. JS moves it here. */
.gform_wrapper .rch-consent-data .gfield_consent_label {
	display: grid !important;
	grid-template-columns: auto auto 1fr;
	column-gap: 4px;
	align-items: baseline;
	width: calc(100% - 40px);
}

.gform_wrapper .rch-consent-data .gform-field-label__text {
	display: contents;
}

.gform_wrapper .rch-consent-data .rch-consent-title {
	grid-column: 1;
	grid-row: 1;
}

.gform_wrapper .rch-consent-data .gfield_required {
	grid-column: 2;
	grid-row: 1;
	margin: 0 !important;
}

.gform_wrapper .rch-consent-data .rch-consent-sub {
	grid-column: 1 / -1;
	grid-row: 2;
}

.gform_wrapper .rch-consent-sub {
	display: block;
	margin-top: 4px;
	font-family: bliss-pro-regular, sans-serif;
	font-size: 14px;
	font-weight: normal;
	line-height: 1.45;
	color: #6b6d80;
	text-wrap: pretty;
}

.gform_wrapper .gfield.rch-consent-options {
	margin-top: -6px !important;
	margin-left: 35px !important;
	padding: 14px 16px 8px 16px !important;
	background: #f6f7f9;
	border-radius: 6px;
}

.gform_wrapper .rch-consent-options legend.gfield_label {
	float: left !important;
	width: 100% !important;
	margin: 0 0 10px 0 !important;
	padding: 0 !important;
	font-family: bliss-pro-medium, sans-serif !important;
	font-size: 14px !important;
	font-weight: normal !important;
	color: #43455a !important;
}

.gform_wrapper .rch-consent-options .ginput_container {
	clear: both !important;
}

.gform_wrapper .rch-consent-options .gfield_checkbox {
	width: 100%;
}

.gform_wrapper .rch-consent-options .gchoice {
	display: flex !important;
	align-items: center !important;
	margin: 0 0 8px 0 !important;
	padding: 0 !important;
	min-height: 0 !important;
}

.gform_wrapper .rch-consent-options .gchoice label,
.gform_wrapper .rch-consent-options .gchoice_select_all label {
	margin: 0 !important;
	padding-top: 0 !important;
	padding-bottom: 0 !important;
	min-height: 0 !important;
	font-family: bliss-pro-regular, sans-serif !important;
	font-size: 14px !important;
	font-weight: normal !important;
	line-height: 1.4 !important;
	color: #43455a !important;
}

.gform_wrapper .rch-consent-options .gchoice_select_all label,
.gform_wrapper .rch-consent-options .gchoice:first-child label {
	font-family: bliss-pro-medium, sans-serif !important;
}

.gform_wrapper .rch-consent-options .gchoice input[type="checkbox"] {
	background: #fff !important;
}

/* Modern markup renders Select All as a button after the choices. Make it a checkbox row at the top. */
.gform_wrapper .rch-consent-options .gfield-choice-toggle-all {
	order: -1;
	width: 100%;
	margin: 0 0 8px 0 !important;
}

.gform_wrapper .rch-consent-options button.gfield_choice_all_toggle {
	position: relative !important;
	display: block !important;
	width: 100% !important;
	margin: 0 !important;
	padding: 0 0 0 40px !important;
	min-height: 24px !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	font-family: bliss-pro-medium, sans-serif !important;
	font-size: 14px !important;
	font-weight: normal !important;
	line-height: 24px !important;
	color: #43455a !important;
	text-align: left !important;
	text-decoration: none !important;
	cursor: pointer;
}

.gform_wrapper .rch-consent-options button.gfield_choice_all_toggle::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	width: 24px;
	height: 24px;
	box-sizing: border-box;
	border: 2px solid #dbdbdb;
	background: #fff;
}

.gform_wrapper .rch-consent-options button.gfield_choice_all_toggle[data-checked="1"]::before {
	border-color: var(--theme--primary-color, #00b5e2);
}

.gform_wrapper .rch-consent-options button.gfield_choice_all_toggle[data-checked="1"]::after {
	content: var(--rch-consent-check);
	position: absolute;
	top: 1px;
	left: 0;
	width: 24px;
	height: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.gform_wrapper .rch-consent-legal,
.gform_wrapper .rch-consent-legal * {
	font-family: bliss-pro-regular, sans-serif;
	font-size: 14px;
	font-weight: normal;
	line-height: 1.5;
	color: #43455a;
	text-wrap: pretty;
}

.gform_wrapper .rch-consent-legal a {
	font-family: bliss-pro-bold, sans-serif;
	text-decoration: underline;
}

.rch-form-dark .rch-consent-title,
.rch-form-dark .rch-consent-legal,
.rch-form-dark .rch-consent-legal * {
	color: #ffffff;
}

.rch-form-dark .rch-consent-sub {
	color: rgba(255, 255, 255, 0.85);
}

.rch-form-dark .gfield.rch-consent-options {
	background: rgba(255, 255, 255, 0.1);
}

.rch-form-dark .rch-consent-options legend.gfield_label,
.rch-form-dark .rch-consent-options .gchoice label,
.rch-form-dark .rch-consent-options button.gfield_choice_all_toggle {
	color: #ffffff !important;
}

.rch-form-dark .rch-consent-options button.gfield_choice_all_toggle::before,
.rch-form-dark .rch-consent-options .gchoice input[type="checkbox"] {
	background: transparent !important;
}
