/*
 * OneTrust cookie consent — presentation only.
 *
 * The "Cookie Preferences" control has to be a real <button> so it is
 * keyboard-operable and announced correctly, but it sits in a row of plain
 * text links in the bottom bar. Browsers give buttons native chrome
 * (background, border, padding, their own font), so this strips that back so
 * it reads as one of the links beside it.
 *
 * The .ot-sdk-show-settings class is what the OneTrust SDK binds its
 * click handler to — do not rename it.
 *
 * Note: id="ot-sdk-btn" is deliberately NOT used. That id pulls in
 * OneTrust's own default button styling, which is a heavy boxed button and
 * would look wrong next to "Privacy Policy | Web Mail".
 */

/*
 * padding/margin carry !important because iq_child/style.css sets
 *     button, input[type="button"], ... { padding: 5px 20px !important; }
 * which otherwise wins on !important alone, regardless of specificity, and
 * leaves a 20px gap either side of the label in the bottom bar.
 */
#bottom-bar .ot-sdk-show-settings,
#footer .ot-sdk-show-settings {
	display: inline;
	margin: 0 !important;
	padding: 0 !important;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	line-height: inherit;
	letter-spacing: inherit;
	text-transform: inherit;
	vertical-align: baseline;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}

#bottom-bar .ot-sdk-show-settings:hover,
#bottom-bar .ot-sdk-show-settings:focus-visible,
#footer .ot-sdk-show-settings:hover,
#footer .ot-sdk-show-settings:focus-visible {
	text-decoration: underline;
}

/* Keep a visible focus ring for keyboard users. */
#bottom-bar .ot-sdk-show-settings:focus-visible,
#footer .ot-sdk-show-settings:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

/*
 * Cookie policy page: the OneTrust SDK injects its cookie table into
 * #ot-sdk-cookie-policy. Until the SDK is installed this stays empty, so give
 * it a little breathing room rather than collapsing the page to nothing.
 */
#ot-sdk-cookie-policy {
	min-height: 1px;
	margin: 0 0 20px;
}
