/* W13 — "Preferenze cookie" reopen control in the footer legal bar (inc/areas/fix-cookie-prefs.php).
   The control is a <button> (it opens a region, it does not navigate), so it has to be dressed as
   the legal links next to it: same size, weight, colour, hover underline and separator.
   Nothing here renders on its own — the button only exists when the cookie notice is switched on. */

html body.yb .yb-footer__legal .yb-ckp__btn,
html body.yb .yb-co-foot__legal .yb-ckp__btn {
	-webkit-appearance: none;
	appearance: none;
	display: inline-block;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
	color: inherit;
	font: inherit;
	letter-spacing: inherit;
	text-transform: none;
	text-align: left;
	line-height: inherit;
	cursor: pointer;
}

/* Global footer legal row — matches `.yb .yb-footer.yb-gf .yb-footer__legal a` in global-footer.css. */
html body.yb .yb-footer__legal .yb-ckp__btn {
	padding: 0 0 4px;
	font-size: 17px;
	font-weight: 300;
	line-height: 20px;
	color: #000;
	text-decoration: none;
}

html body.yb .yb-footer__legal .yb-ckp__btn:hover {
	background: none;
	color: #000;
	text-decoration: underline;
}

/* Minimal checkout footer — matches `.yb .yb-co-foot__legal a` in checkout.css (inherits 13px). */
html body.yb .yb-co-foot__legal .yb-ckp__btn {
	color: #111;
	text-decoration: none;
}

html body.yb .yb-co-foot__legal .yb-ckp__btn:hover {
	background: none;
	color: #111;
	text-decoration: underline;
}

/* Visible focus ring (fix-a11y3.css already rings every button; this one is explicit so the
   control keeps its ring even if a later theme rule resets outlines on footer controls). */
html body.yb .yb-ckp__btn:focus-visible {
	outline: 2px solid #000;
	outline-offset: 2px;
	border-radius: 2px;
}

html body.yb .yb-ckp__btn:focus:not(:focus-visible) {
	outline: none;
}

/* The list item behaves like the other legal items: the "|" separator comes from
   `.yb-footer__legal li + li::before` in global-footer.css, so nothing is added here. */
html body.yb .yb-footer__legal li.yb-ckp {
	margin: 0;
	padding: 0;
	line-height: 20px;
}

html body.yb .yb-footer__legal li.yb-ckp::before {
	content: none;
}

/* Checkout footer is a <p>, so the separator is a span we print ourselves. */
html body.yb .yb-co-foot__legal .yb-ckp__sep {
	color: inherit;
}

/* Touch target: same 44px rule fix-mobile2.css applies to the legal links. */
@media (max-width: 767px) {
	html body.yb .yb-footer__legal .yb-ckp__btn {
		padding-top: 10px;
		padding-bottom: 14px;
		margin-top: -10px;
		margin-bottom: -14px;
	}
}

/* Opt-in WoodMart fallback only (YB_COOKIE_PREFS_WOODMART): force the strip back into view when
   the visitor reopens it, whichever way the theme hid it after the first choice. */
html body.yb .wd-cookies-popup.yb-ckp-open {
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
	transform: none !important;
	pointer-events: auto !important;
}
