/**
 * Area: EDGE STATES — the "nothing here" screens (404 extras, empty search, empty filter result,
 * empty bag, empty wishlist, sold-out product).
 *
 * Only .yb-edge* selectors: nothing here restyles another area's blocks.
 * Colours, spacing and the container width all come from 00-tokens.css.
 */

.yb .yb-edge {
	box-sizing: border-box;
	max-width: var(--yb-container, 1342px);
	margin: 0 auto;
	padding: 0 0 32px;
	color: var(--yb-ink, #000);
	text-align: center;
}

.yb .yb-edge__title {
	margin: 0 0 8px;
	font-family: var(--yb-font);
	font-size: 20px;
	font-weight: 600;
	line-height: 28px;
	letter-spacing: 0;
	text-transform: none;
	color: var(--yb-ink, #000);
}

.yb .yb-edge__label,
.yb .yb-edge__text {
	margin: 0 auto 16px;
	max-width: 640px;
	font-size: 16px;
	font-weight: 400;
	line-height: 24px;
	color: var(--yb-muted, #57585B);
}

.yb .yb-edge__label {
	margin-bottom: 8px;
	font-weight: 500;
	color: var(--yb-ink, #000);
}

.yb .yb-edge__link,
.yb .yb-edge-links a {
	font-size: 16px;
	font-weight: 500;
	color: var(--yb-ink, #000);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.yb .yb-edge__link:hover,
.yb .yb-edge__link:focus-visible,
.yb .yb-edge-links a:hover,
.yb .yb-edge-links a:focus-visible {
	color: var(--yb-red, #D31334);
}

.yb .yb-edge-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px 32px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.yb .yb-edge-links li {
	margin: 0;
}

/* Primary action ("Clear all filters" / "Back to the full list") */
.yb .yb-edge__actions {
	margin: 0 0 20px;
}

.yb .yb-edge__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-width: 200px;
	height: var(--yb-cta-h, 52px);
	padding: 0 24px;
	border: 1px solid var(--yb-ink, #000);
	border-radius: var(--yb-pill, 4px);
	background: var(--yb-ink, #000);
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: 1.4px;
	text-transform: uppercase;
	text-decoration: none;
}

.yb .yb-edge__btn:hover,
.yb .yb-edge__btn:focus-visible {
	background: #fff;
	color: var(--yb-ink, #000) !important;
}

/* ==========================================================================
   Per-state tweaks
   ========================================================================== */

/* 404: sits under content-polish.php's "Try searching instead" block. */
.yb.error404 .yb-edge--404 {
	padding: 0 0 56px;
}

/* Empty search: above search.php's own no-results block. */
.yb .yb-edge--search {
	padding-top: 24px;
}

/* Empty filter result / empty page of an archive. */
.yb .yb-edge--archive {
	padding: 32px 0 48px;
	border-top: 1px solid var(--yb-line, #E0E0E0);
}

/* Empty bag: a quiet row under WooCommerce's "Continue shopping" button. */
.yb .yb-edge--bag {
	padding: 8px 0 40px;
}

/* Empty wishlist: only shown when WoodMart's empty-wishlist node is on the page. */
.yb .yb-edge--wish {
	display: none;
	padding: 0 0 48px;
}

body.yb:has(.wd-empty-wishlist) .yb-edge--wish,
body.yb:has(.wd-wishlist-empty) .yb-edge--wish {
	display: block;
}

/* Sold-out product: inside the product summary, so left-aligned like the rest of it. */
.yb.single-product .summary .yb-edge--soldout {
	max-width: none;
	margin: 16px 0 0;
	padding: 16px;
	border: 1px solid var(--yb-line, #E0E0E0);
	border-radius: var(--yb-radius, 4px);
	background: var(--yb-band, #F2F2F2);
	text-align: left;
}

.yb .yb-edge__badge {
	margin: 0 0 4px;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 1.4px;
	text-transform: uppercase;
	color: var(--yb-ink, #000);
}

.yb.single-product .summary .yb-edge--soldout .yb-edge__text {
	margin: 0 0 12px;
	max-width: none;
}

.yb.single-product .summary .yb-edge--soldout .yb-edge-links {
	justify-content: flex-start;
	gap: 8px 24px;
}

/* Screen-reader-only text used by assets/js/areas/fix-edge-states.js. */
.yb .yb-edge-sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

@media (max-width: 767px) {
	.yb .yb-edge {
		padding-left: 16px;
		padding-right: 16px;
	}

	.yb .yb-edge-links {
		gap: 12px 24px;
	}

	.yb .yb-edge__btn {
		width: 100%;
		min-width: 0;
	}
}
