/* "Something wrong? Tell us" — mu-plugins/qtw-tell-us.php. Explicit colours so every theme reads it. */
.qtw-tellus {
	clear: both;
	padding: 16px;
	text-align: center;
	background: #f6f7f7;
	border-top: 1px solid #dcdcde;
}

.qtw-tellus__open,
.qtw-tellus__send,
.qtw-tellus__close {
	min-height: 44px;
	padding: 10px 18px;
	border-radius: 6px;
	font-size: 16px;
	line-height: 1.3;
	cursor: pointer;
	font-family: inherit;
}

.qtw-tellus__open {
	background: #fff;
	color: #1d2327;
	border: 2px solid #2d6a4f;
}

.qtw-tellus__open:hover,
.qtw-tellus__open:focus-visible {
	background: #2d6a4f;
	color: #fff;
}

.qtw-tellus__dialog {
	width: min(560px, calc(100vw - 32px));
	max-height: calc(100vh - 32px);
	overflow: auto;
	padding: 20px;
	border: 0;
	border-radius: 10px;
	background: #fff;
	color: #1d2327;
	font-size: 16px;
	line-height: 1.5;
	text-align: left;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.qtw-tellus__dialog::backdrop {
	background: rgba(0, 0, 0, 0.55);
}

.qtw-tellus__title {
	margin: 0 0 8px;
	font-size: 22px;
	color: #1d2327;
}

.qtw-tellus__dialog p {
	margin: 0 0 12px;
	color: #1d2327;
}

.qtw-tellus__dialog label {
	display: block;
	margin-bottom: 4px;
	font-weight: 600;
	color: #1d2327;
}

.qtw-tellus__dialog textarea,
.qtw-tellus__dialog input[type="email"] {
	box-sizing: border-box;
	width: 100%;
	padding: 10px;
	font-size: 16px;
	color: #1d2327;
	background: #fff;
	border: 1px solid #8c8f94;
	border-radius: 6px;
}

.qtw-tellus__small {
	font-size: 14px;
}

.qtw-tellus__small a {
	color: #135e96;
	text-decoration: underline;
}

.qtw-tellus__hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.qtw-tellus__status {
	font-weight: 600;
	min-height: 1.5em;
}

.qtw-tellus__buttons {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}

.qtw-tellus__send {
	background: #2d6a4f;
	color: #fff;
	border: 2px solid #2d6a4f;
}

.qtw-tellus__send[disabled] {
	opacity: 0.6;
	cursor: default;
}

.qtw-tellus__close {
	background: #fff;
	color: #1d2327;
	border: 2px solid #8c8f94;
}

/* Some themes (News) force light text with !important on p, span, div and
   headings, and reset every margin. Win back the dialog's own colours. */
.qtw-tellus .qtw-tellus__open {
	color: #1d2327 !important;
}

.qtw-tellus .qtw-tellus__open:hover,
.qtw-tellus .qtw-tellus__open:focus-visible {
	color: #fff !important;
}

dialog.qtw-tellus__dialog {
	margin: auto !important;
	inset: 0 !important;
	height: fit-content;
	background: #fff !important;
}

.qtw-tellus__dialog .qtw-tellus__title,
.qtw-tellus__dialog p,
.qtw-tellus__dialog span,
.qtw-tellus__dialog div,
.qtw-tellus__dialog label,
.qtw-tellus__dialog textarea,
.qtw-tellus__dialog input,
.qtw-tellus__dialog .qtw-tellus__close {
	color: #1d2327 !important;
	text-align: left !important;
}

.qtw-tellus__dialog .qtw-tellus__small a {
	color: #135e96 !important;
}

.qtw-tellus__dialog .qtw-tellus__send {
	color: #fff !important;
}

.qtw-tellus__dialog p {
	margin: 0 0 12px !important;
}
