/**
 * Component CSS that theme.json tokens cannot express.
 * Colors and sizes: only var(--wp--preset--*).
 */

:where(
	a,
	button,
	input,
	select,
	textarea,
	summary,
	[tabindex]:not([tabindex="-1"]),
	.wp-element-button,
	.wp-block-navigation-item__content
):focus-visible {
	outline: 2px solid var(--wp--preset--color--teal);
	outline-offset: 2px;
}

:where(input, select, textarea):focus-visible {
	outline-offset: 0;
	border-color: var(--wp--preset--color--teal);
}

:where(
	button,
	.wp-element-button,
	input[type="submit"],
	input[type="button"],
	input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
	select,
	textarea
) {
	min-height: 44px;
}

:where(.wp-block-navigation-item__content) {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms;
		animation-iteration-count: 1;
		transition-duration: 0.01ms;
		scroll-behavior: auto;
	}
}

.rp-product-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	min-height: 100%;
	background-color: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--preset--border-radius--card, 4px);
	box-sizing: border-box;
}

.wp-block-post-template.is-layout-grid {
	align-items: stretch;
}

.wp-block-post-template.is-layout-grid > .wp-block-post,
.wp-block-post-template.is-layout-grid > li {
	height: auto;
	display: flex;
	flex-direction: column;
}

.wp-block-post-template .wp-block-template-part,
.wp-block-post-template .wp-block-template-part > .rp-product-card,
.wp-block-post-template .wp-block-group.rp-product-card {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	height: 100%;
}

.rp-product-card > .wp-block-woocommerce-product-image,
.rp-product-card > .wp-block-post-featured-image {
	flex: 0 0 auto;
	width: 100%;
	aspect-ratio: 1 / 1;
	background-color: #ffffff;
	padding: 8px;
	box-sizing: border-box;
}

.rp-product-card .wp-block-woocommerce-product-image img,
.rp-product-card .wp-block-post-featured-image img {
	width: 100%;
	height: auto;
	max-height: 100%;
	aspect-ratio: 1 / 1;
	object-fit: contain;
	background-color: transparent;
	border: 0;
}

.rp-product-card > .rp-product-cta {
	margin-top: auto;
	width: 100%;
	flex: 0 0 auto;
}

.rp-product-card .wp-block-post-title {
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--base);
	font-weight: 600;
	letter-spacing: 0;
	line-height: 1.3;
}

.rp-product-card .wp-block-post-title a {
	color: var(--wp--preset--color--ink);
	text-decoration: none;
}

.rp-product-card .wp-block-post-title a:hover {
	color: var(--wp--preset--color--teal);
}

.wp-block-woocommerce-product-image-gallery,
.woocommerce-product-gallery {
	background-color: #ffffff;
	padding: 8px;
	box-sizing: border-box;
}

.wp-block-woocommerce-product-image-gallery img,
.woocommerce-product-gallery img {
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: contain;
	background-color: transparent;
	border: 0;
}

.rp-product-card .wp-block-button,
.rp-product-card .wp-block-woocommerce-product-button,
.rp-product-card .rp-product-cta {
	width: 100%;
	margin-top: auto;
}

.rp-product-card .wp-element-button,
.rp-product-card .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	box-sizing: border-box;
}

.single-product .stock,
.woocommerce-product-details__short-description {
	display: none;
}

.rp-product__excerpt {
	margin: 0;
	max-width: none;
	width: 100%;
	text-align: left;
	color: var(--wp--preset--color--ink);
	font-size: var(--wp--preset--font-size--lead);
	font-weight: 400;
}

.wp-block-post-excerpt .wp-block-post-excerpt__excerpt {
	margin: 0;
}

.wp-block-add-to-cart-form .quantity .qty,
.woocommerce .quantity .qty {
	min-height: 44px;
	min-width: 44px;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--preset--border-radius--control, 6px);
	background-color: var(--wp--preset--color--white);
}

.wp-block-search {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	gap: var(--wp--preset--spacing--20);
}

.wp-block-search .wp-block-search__input,
.wp-block-search .wp-block-search__button {
	min-height: 44px;
}

.wp-block-search .wp-block-search__input {
	flex: 1 1 12rem;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--preset--border-radius--control, 6px);
	background-color: var(--wp--preset--color--white);
	padding: 0 var(--wp--preset--spacing--40);
}

.wc-block-components-text-input input,
.wc-block-components-textarea textarea,
.wc-block-components-combobox input,
.wc-block-checkout input[type="text"],
.wc-block-checkout input[type="email"],
.wc-block-checkout input[type="tel"],
.wc-block-cart input[type="text"] {
	min-height: 44px;
	border-radius: var(--wp--preset--border-radius--control, 6px);
}

.wc-block-components-text-input.is-error input,
.woocommerce form .form-row.woocommerce-invalid input.input-text {
	border-color: var(--wp--preset--color--coral);
}

.wc-block-components-validation-error,
.woocommerce form .form-row .woocommerce-error {
	color: var(--wp--preset--color--coral);
	font-size: var(--wp--preset--font-size--small);
}

.wp-block-table {
	overflow-x: auto;
}

.wp-block-table table {
	border-collapse: collapse;
	width: 100%;
}

.wp-block-table th,
.wp-block-table td {
	border: 1px solid var(--wp--preset--color--line);
	padding: var(--wp--preset--spacing--20) var(--wp--preset--spacing--30);
	text-align: left;
	vertical-align: top;
}

.wp-block-table thead th {
	background-color: var(--wp--preset--color--white);
	font-weight: 600;
}

img,
video,
iframe {
	max-width: 100%;
	height: auto;
}

.wp-block-group,
.wp-block-columns,
.wp-block-column,
.wp-block-query,
.wp-block-post-template,
.wp-block-woocommerce-cart,
.wp-block-woocommerce-checkout {
	min-width: 0;
}

.skip-link.screen-reader-text:focus {
	position: fixed;
	top: var(--wp--preset--spacing--20);
	left: var(--wp--preset--spacing--20);
	z-index: 100000;
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: var(--wp--preset--spacing--20) var(--wp--preset--spacing--40);
	clip: auto;
	clip-path: none;
	width: auto;
	height: auto;
	background-color: var(--wp--preset--color--abyss);
	color: var(--wp--preset--color--white);
	outline: 2px solid var(--wp--preset--color--paper);
	outline-offset: 2px;
	text-decoration: none;
}

.has-abyss-background-color a,
.wp-block-navigation__responsive-container.is-menu-open a {
	color: var(--wp--preset--color--white);
}

.has-abyss-background-color .rp-footer-nav__link {
	color: var(--wp--preset--color--teal-light);
}

.has-abyss-background-color .rp-footer-nav__link:hover {
	color: var(--wp--preset--color--paper);
}

.has-abyss-background-color .rp-nav__item.is-current > .rp-nav__toggle,
.has-abyss-background-color .rp-nav__item.is-current > .rp-nav__link,
.has-abyss-background-color .rp-nav__toggle:hover,
.has-abyss-background-color .rp-nav__link:hover,
.has-abyss-background-color .rp-nav__submenu .rp-nav__link:hover {
	color: var(--wp--preset--color--teal-light);
}

.has-abyss-background-color .wp-block-site-title a,
.has-deep-background-color .wp-block-site-title a {
	color: var(--wp--preset--color--teal-light);
}

.has-abyss-background-color .rp-hero-tile,
.has-deep-background-color .rp-hero-tile,
.has-abyss-background-color .rp-hero-tile a,
.has-deep-background-color .rp-hero-tile a {
	color: var(--wp--preset--color--teal-light);
}

.has-abyss-background-color a:hover,
.wp-block-navigation__responsive-container.is-menu-open a:hover {
	color: var(--wp--preset--color--paper);
}

.has-abyss-background-color :focus-visible,
.wp-block-navigation__responsive-container.is-menu-open :focus-visible {
	outline-color: var(--wp--preset--color--paper);
}

.wp-block-navigation__responsive-container-open,
.wp-block-navigation__responsive-container-close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
}

:where(input, select, textarea) {
	border: 1px solid var(--wp--preset--color--ink-muted);
	background-color: var(--wp--preset--color--white);
}

.wc-block-components-checkbox label,
.woocommerce-form__label-for-checkbox,
.wc-block-components-radio-control__option {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	gap: var(--wp--preset--spacing--20);
}

:where(button, .wp-element-button, input[type="submit"]):disabled {
	background-color: var(--wp--preset--color--line);
	color: var(--wp--preset--color--ink-muted);
	opacity: 1;
}

.wp-block-search .wp-block-search__inside-wrapper {
	display: flex;
	flex-wrap: wrap;
	gap: var(--wp--preset--spacing--20);
	width: 100%;
}

.wp-block-search .wp-block-search__button {
	min-width: 44px;
}

.wp-block-site-logo a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
}

.wp-block-site-logo img {
	display: block;
	width: auto;
	max-width: min(11.25rem, 70vw);
	max-height: var(--wp--preset--spacing--70);
	height: auto;
	object-fit: contain;
}

.wp-custom-logo .wp-block-site-title {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.rp-header-tools {
	display: flex;
	align-items: center;
}

.rp-header-tools a,
.rp-header-tools button,
.rp-header-tools .wc-block-mini-cart__button,
.rp-header-tools .wc-block-customer-account__account-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
}
