/**
 * This site's own look for the wakefly-private-files dialog, scoped to
 * `.wakefly-private-files-dialog`.
 *
 * @since Washington Mills 1.0
 */

.wakefly-private-files-dialog {
	width: min(600px, calc(100vw - 20px));
	background-color: rgb(255, 255, 255);
	color: rgb(51, 51, 51);
	font-family: Arial, Helvetica, sans-serif;
	font-size: 16px;
	line-height: 24px;
	padding: 3.2px;
	border: 1px solid rgb(197, 197, 197);
	border-radius: 3px;
}

@media (max-width: 600px) {
	.wakefly-private-files-dialog {
		width: 100vw;
		/* Overrides the browser's own default <dialog> max-width. */
		max-width: 100vw;
	}
}

.wakefly-private-files-dialog::backdrop {
	background-color: rgb(170, 170, 170);
	opacity: 0.3;
}

.wakefly-private-files-dialog__titlebar {
	background-color: rgb(233, 233, 233);
	color: rgb(51, 51, 51);
	font-family: Arial, Helvetica, sans-serif;
	font-size: 16px;
	font-weight: 700;
	line-height: 24px;
	padding: 6.4px 16px;
	border: 1px solid rgb(221, 221, 221);
	border-radius: 3px 3px 0 0;
}

.wakefly-private-files-dialog__title {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 16px;
	font-weight: 700;
	line-height: 24px;
	color: rgb(51, 51, 51);
	margin: 1.6px 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.wakefly-private-files-dialog__close {
	background-color: rgb(246, 246, 246);
	color: rgb(69, 69, 69);
	border: 1px solid rgb(197, 197, 197);
	padding: 1px;
}

.wakefly-private-files-dialog__close:hover,
.wakefly-private-files-dialog__close:focus-visible {
	color: rgb(43, 43, 43);
	background-color: rgb(237, 237, 237);
}

.wakefly-private-files-dialog__body {
	padding: 8px 16px;
}

.wakefly-private-files-dialog .gform_wrapper .gform_required_legend {
	display: none;
}

.wakefly-private-files-dialog .gform_wrapper .gform_description {
	color: rgb(0, 0, 0);
	font-family: Arial, Helvetica, sans-serif;
	font-size: 16px;
	font-weight: 700;
	line-height: 28.8px;
	margin-bottom: var(--wp--preset--spacing--25);
}

.wakefly-private-files-dialog .gform_wrapper .gfield_label,
.wakefly-private-files-dialog .gform_wrapper .gform-field-label {
	font-weight: 700;
	color: var(--wp--preset--color--black);
}

/* Visually hidden; kept for screen readers. */
.wakefly-private-files-dialog .gform_wrapper .gfield--type-checkbox > legend {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.wakefly-private-files-dialog .gform_wrapper .gfield {
	margin-bottom: var(--wp--preset--spacing--25);
}

.wakefly-private-files-dialog .gform_wrapper .gform_fields {
	gap: var(--wp--preset--spacing--30) var(--wp--preset--spacing--25);
}

.wakefly-private-files-dialog .gform_wrapper input[type="text"],
.wakefly-private-files-dialog .gform_wrapper input[type="email"],
.wakefly-private-files-dialog .gform_wrapper input[type="tel"],
.wakefly-private-files-dialog .gform_wrapper textarea,
.wakefly-private-files-dialog .gform_wrapper select {
	width: 100%;
	background-color: var(--wp--preset--color--white);
	color: var(--wp--preset--color--black);
	padding: var(--wp--preset--spacing--20);
	border: 1px solid var(--wp--preset--color--border-gray);
	border-radius: 0;
}

.wakefly-private-files-dialog .gform_wrapper select {
	/* Extra right padding clears the select's own dropdown-arrow icon. */
	padding: 0 24px 0 var(--wp--preset--spacing--20);
}

.wakefly-private-files-dialog .gform_wrapper input[type="text"]:focus,
.wakefly-private-files-dialog .gform_wrapper input[type="email"]:focus,
.wakefly-private-files-dialog .gform_wrapper input[type="tel"]:focus,
.wakefly-private-files-dialog .gform_wrapper textarea:focus,
.wakefly-private-files-dialog .gform_wrapper select:focus {
	border-color: var(--wp--preset--color--dark-gray);
	outline: 2px solid var(--wp--preset--color--secondary);
	outline-offset: 1px;
}

.wakefly-private-files-dialog .gform_wrapper .gchoice {
	display: flex;
	align-items: flex-end;
}

.wakefly-private-files-dialog .gform_wrapper input.gfield-choice-input {
	flex-shrink: 0;
}

.wakefly-private-files-dialog .gform_wrapper label.gform-field-label--type-inline {
	display: inline-block;
	color: var(--wp--preset--color--black);
	font-weight: 700;
}

.wakefly-private-files-dialog .gform_wrapper .gfield--type-checkbox .gfield_description {
	display: inline;
	color: var(--wp--preset--color--dark-gray);
	font-size: 0.8rem;
}

.wakefly-private-files-dialog .gform_wrapper a {
	color: currentColor;
}

.wakefly-private-files-dialog .gform_wrapper a:hover {
	color: var(--wp--preset--color--primary);
	text-decoration: none;
}

.wakefly-private-files-dialog .gform_wrapper .gform-footer,
.wakefly-private-files-dialog .gform_wrapper .gform_footer {
	/* Keeps the submit button visible while the body scrolls. */
	position: sticky;
	bottom: 0;
	display: flex;
	justify-content: flex-end;
	background-color: rgb(255, 255, 255);
	padding: 4.8px 16px 8px 6.4px;
	margin-top: 8px;
	border-width: 1px 0 0;
	border-style: solid;
	border-color: rgb(221, 221, 221);
}

.wakefly-private-files-dialog .gform_wrapper .gform_footer input[type="submit"],
.wakefly-private-files-dialog .gform_wrapper .gform_footer .gform_button {
	/* !important: a higher-specificity stylesheet already loaded sets these two properties. */
	background-color: var(--wp--preset--color--primary) !important;
	color: var(--wp--preset--color--white) !important;
	font-weight: 700;
	text-transform: uppercase;
	padding: var(--wp--preset--spacing--30) var(--wp--preset--spacing--40);
	margin: var(--wp--preset--spacing--20) 0;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}

.wakefly-private-files-dialog .gform_wrapper .gform_footer input[type="submit"]:hover,
.wakefly-private-files-dialog .gform_wrapper .gform_footer .gform_button:hover {
	opacity: 0.85;
}

.wakefly-private-files-dialog .gform_confirmation_wrapper {
	text-align: center;
	font-family: var(--wp--preset--font-family--jura);
	font-size: 1rem;
	font-weight: 400;
	line-height: 24px;
	color: var(--wp--preset--color--black);
	margin-bottom: 16px;
}

.wakefly-private-files-dialog .gform_confirmation_wrapper h6 {
	font-family: var(--wp--preset--font-family--roboto-slab);
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.4;
	margin-bottom: var(--wp--preset--spacing--20);
}

.wakefly-private-files-dialog .gform_confirmation_wrapper p img {
	width: 250px;
	height: auto;
	margin-bottom: 0;
}

.wakefly-private-files-dialog .gform_confirmation_wrapper h6 a {
	color: var(--wp--preset--color--primary);
	font-family: var(--wp--preset--font-family--roboto-slab);
	font-weight: 700;
}

.wakefly-private-files-dialog .gform_confirmation_wrapper h6 a:hover {
	color: var(--wp--preset--color--secondary-dark);
	text-decoration: none;
}
