/* LEGAL-2 — controller block, checkout legal links, "Essential only" button.
   Everything here is prefixed .yb-legal2 and only styles markup this module prints. */

.yb-legal2-extra {
	margin-top: 32px;
	padding-top: 24px;
	border-top: 1px solid rgba(0, 0, 0, .12);
}

.yb-legal2-controller__title {
	margin: 0 0 8px;
	font-size: 18px;
	line-height: 1.3;
}

.yb-legal2-controller__text,
.yb-legal2-controller__contact {
	margin: 0 0 8px;
	font-size: 14px;
	line-height: 1.6;
}

.yb-legal2-controller__contact:last-child {
	margin-bottom: 0;
}

/* Checkout footer: extra legal links on their own line, matching .yb-co-foot__legal. */
.yb-legal2-co-links {
	margin: 4px 0 0;
	font-size: 12px;
	line-height: 1.6;
	text-align: center;
}

.yb-legal2-co-links a {
	text-decoration: underline;
}

.yb-legal2-co-links span[aria-hidden="true"] {
	opacity: .5;
}

/* "Essential only" must not look weaker than "Accept" — same size, same hit area. */
.yb-legal2-cc-essential {
	margin-inline-end: 8px;
	cursor: pointer;
}

.wd-cookies-popup .cookies-buttons .yb-legal2-cc-essential {
	font: inherit;
	font-size: inherit;
	line-height: inherit;
	padding: 8px 16px;
	min-height: 34px;
	border: 1px solid currentColor;
	border-radius: 0;
	background: transparent;
	color: inherit;
}

.wd-cookies-popup .cookies-buttons .yb-legal2-cc-essential:hover,
.wd-cookies-popup .cookies-buttons .yb-legal2-cc-essential:focus-visible {
	background: rgba(0, 0, 0, .06);
}

.yb-legal2-consent {
	display: none !important;
}

@media (max-width: 575px) {
	.wd-cookies-popup .cookies-buttons .yb-legal2-cc-essential {
		margin-inline-end: 6px;
		padding: 8px 12px;
	}
}
