/**
 * WCAG 2.2 AA overlays for Shop KnoWyo.
 * Loaded after main.css so contrast and focus win over the brand teal.
 */

:root {
	--knowyo-text-teal: #0d6b80;
	--knowyo-focus: #0d6b80;
	--knowyo-focus-on-dark: #eec230;
	--knowyo-charcoal: #23262b;
}

/* 1.4.3 — teal #1b9fb9 fails 4.5:1 on gray/white. Keep decorative teal; darken text. */
.content-area a,
.site-main a,
.entry-content a,
.woocommerce-loop-product__title,
.woocommerce a.woocommerce-loop-product__title,
.woocommerce-account a,
.lost_password a,
.woocommerce-LostPassword a,
h1,
h2,
h3,
.h1,
.h2,
.h3 {
	color: var(--knowyo-text-teal);
}

.woocommerce-loop-product__title {
	background-image: none;
	padding-bottom: 0;
}

/* Shop H1 sits on the yellow swath, centered with the product column. */
.content-area .site-main,
.content-area .site-main .main-container {
	max-width: 1024px;
}

.content-area .site-main h1,
.content-area .site-main h1.page-heading,
.content-area .site-main p,
.content-area .site-main .woocommerce-products-header,
.content-area .site-main .woocommerce-products-header p,
.content-area .site-main ul.products {
	max-width: 1024px;
}

.content-area .site-main h1.page-heading,
.content-area .site-main h1 {
	text-align: center;
	background-position: center bottom;
}

/* Header Shop mark — theme file so it survives a files-only push. */
.site-branding .site-title a {
	background-image: url("../images/Knowyo_Shop_logo.png") !important;
	background-size: contain;
	background-repeat: no-repeat;
	background-position: left center;
	width: 209px;
	height: 107px;
}

/* Pagination: brand colors, no Woo table chrome, 4.5:1 current state. */
.woocommerce nav.woocommerce-pagination ul,
.woocommerce nav.woocommerce-pagination ul li {
	border: 0;
}

.woocommerce nav.woocommerce-pagination ul {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 4px;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span,
.page-numbers {
	min-width: 44px;
	min-height: 44px;
	line-height: 44px;
	padding: 0 10px;
	border: 0;
	background: transparent;
}

.page-numbers.current,
.woocommerce nav.woocommerce-pagination ul li span.current,
.woocommerce nav.woocommerce-pagination ul li a.current {
	color: #eec230;
	background: #23262b;
}

/* Footer CTA stays on charcoal — keep light type. */
.footer-cta h1,
.footer-cta h2,
.footer-cta h3,
.footer-cta h4,
.footer-cta h5,
.footer-cta h6,
.footer-cta p,
.footer-cta a:not(.btn),
.footer-cta .footer-cta-heading,
.footer-cta .footer-cta-subhead {
	color: #fff;
	background-image: none;
	padding-bottom: 0.25em;
}

.footer-cta h1 strong,
.footer-cta h2 strong,
.footer-cta h3 strong,
.footer-cta .footer-cta-heading strong {
	color: #eec230;
}

.footer-cta a,
.footer-cta .btn a {
	color: #eec230;
}

.footer-cta-box-content {
	text-align: center;
}

.footer-cta .btn,
.footer-cta a.btn {
	display: inline-block;
	margin: 0 auto;
}

.footer-cta .btn a,
.footer-cta a.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	padding: 12px 56px 12px 28px;
	line-height: 1;
	min-height: 0;
}

.footer-cta .btn a::before,
.footer-cta a.btn::before {
	top: 50%;
	margin-top: 0;
	transform: translateY(-50%);
}

#utility-menu a {
	color: #23262b;
}

/* 1.4.3 — gold on charcoal (~9:1). Woo default is gold on gray. */
.button,
a.button,
a.add_to_cart_button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce ul.products li.product .button,
.woocommerce #respond input#submit,
.woocommerce input.button {
	box-sizing: border-box !important;
	background-color: #23262b !important;
	background-image: none !important;
	color: #eec230 !important;
	border: 2px solid #eec230 !important;
	border-radius: 0 !important;
	text-transform: uppercase;
	min-height: 44px;
	height: 44px;
	padding: 0 16px !important;
	line-height: 40px !important;
	font-size: 16px;
}

.button:hover,
a.button:hover,
a.add_to_cart_button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce ul.products li.product .button:hover {
	background-color: #eec230 !important;
	color: #23262b !important;
}

/* 2.4.7 — theme zeroes outlines; restore a visible focus ring. */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus,
.button:focus,
select2-selection:focus {
	outline: 2px solid var(--knowyo-focus);
	outline-offset: 2px;
}

.header a:focus,
.footer a:focus,
.footer-cta a:focus,
.button:focus,
a.button:focus,
#utility-menu a:focus {
	outline-color: var(--knowyo-focus-on-dark);
}

/* WAVE still scores clipped header labels against the charcoal bar. */
.header .screen-reader-text,
.header label.screen-reader-text,
.dgwt-wcas-search-wrapp .screen-reader-text {
	color: #fff;
	background-color: #23262b;
}

/* Skip link is clipped by .screen-reader-text / hide-text even on :focus. */
.skip-link.screen-reader-text {
	position: absolute;
	left: 8px;
	top: 0;
	z-index: 100000;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	text-indent: 0;
	white-space: nowrap;
}

.skip-link.screen-reader-text:focus {
	width: auto;
	height: auto;
	clip: auto;
	clip-path: none;
	overflow: visible;
	white-space: normal;
	padding: 12px 16px;
	background: var(--knowyo-charcoal);
	color: var(--knowyo-focus-on-dark);
	outline: 2px solid var(--knowyo-focus-on-dark);
	outline-offset: 2px;
}

.page-heading {
	margin: 25px 0 15px;
	text-transform: uppercase;
	letter-spacing: 1px;
}

form.woocommerce-checkout h2,
#order_review_heading,
h2.knowyo-wc-heading {
	font-size: 24px;
	line-height: 1.1;
	background-image: none;
	padding-bottom: 0;
}

.footer-knowyo-logo {
	width: 209px;
	height: auto;
}

/* 2.5.8 Target Size (Minimum) — WooCommerce show-password control is 22px. */
.show-password-input,
button.show-password-input {
	min-width: 24px;
	min-height: 24px;
}

/* 1.4.3 — WooCommerce highlight #958e09 is 3.41:1 on white (need 4.5:1). */
.woocommerce div.product p.price,
.woocommerce div.product span.price,
.woocommerce ul.products li.product .price,
.woocommerce div.product .stock,
.woocommerce div.product p.stock,
.woocommerce div.product .stock.in-stock,
.woocommerce div.product .available-on-backorder {
	color: #3f3c00;
}

.woocommerce div.product .out-of-stock,
.woocommerce div.product .stock.out-of-stock {
	color: #8a1f1f;
}

.woocommerce span.onsale {
	background-color: #3f3c00;
	color: #fff;
}

/* Placeholders at #999 are 2.85:1 on white. */
input::placeholder,
textarea::placeholder,
input[type="search"]::placeholder,
.dgwt-wcas-sf-wrapp input[type="search"].dgwt-wcas-search-input::placeholder,
.dgwt-wcas-sf-wrapp input[type="search"].dgwt-wcas-search-input::-webkit-input-placeholder {
	color: #595959;
	opacity: 1;
}

