/* Generated by astro-product/scripts/sync-core.mjs from packages/foundation/components/tabs. Do not edit. */
/*
 * Tabs (blog-single, shop-product): the HTML reference. WP counterpart: core/tabs with block settings and the block
 * styles tabs-boxed and tabs-strip (themes/<theme>/wp/block-styles/), see tabs.wp.njk.
 *
 * Boxed: 1px frame; 60px tab bar in the bar grey, the active tab white so it joins the panel; labels 16px medium,
 * 25px from the left edge; panel padding 29/25/38, paragraphs 17px apart, the lead paragraph larger.
 * Strip: 82px grey band between 1px lines, tabs centred (241px wide, 140px apart), labels 18px; the active tab is
 * a white box raised 18px above the band with a bold label; the panel starts 81px below the band.
 */
.rt-tabs--boxed {
	border: 1px solid var(--rt-tabs-border);
	color: var(--rt-color-body);
	font-family: var(--rt-font-family-body);
	font-size: var(--rt-font-size-base);
}

.rt-tabs__list {
	display: flex;
	flex-wrap: wrap;
	gap: 0;
	background-color: var(--rt-tabs-bar);
}

.rt-tabs__tab {
	margin: 0;
	border: 0;
	padding: 1.25rem var(--rt-spacing-50) 1.25rem 1.5625rem;
	background: none;
	color: var(--rt-color-contrast);
	font: inherit;
	font-weight: var(--rt-font-weight-medium);
	line-height: 1.25;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.rt-tabs__tab:hover {
	background-color: var(--rt-tabs-hover);
}

.rt-tabs__tab:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: -0.375rem;
}

.rt-tabs__tab[aria-selected="true"] {
	background-color: var(--rt-tabs-active);
}

.rt-tabs__panel {
	padding: 1.8125rem 1.5625rem 2.375rem;
	/* The text's own line height (core/tabs sets none: 1.5625 in a post, the page's elsewhere) */
	line-height: inherit;
}

.rt-tabs__panel[hidden] {
	display: none;
}

.rt-tabs__panel > * {
	margin: 0;
}

.rt-tabs__panel > * + * {
	margin-top: 1.0625rem;
}

/* Design 18/26; the theme's medium size (18 on mobile, 20 at 1440) keeps WP's fluid type from shrinking it. */
.rt-tabs__lead {
	font-size: var(--rt-font-size-medium);
	line-height: 1.4;
}

/* Strip: the active tab's raised top is drawn by ::after, its side lines and the gap in the band's bottom line by
   box-shadow, so the tab keeps the band's height (WP's flex layout resets the margins of the list's children). */
.rt-tabs--strip {
	border: 0;
	padding-top: 1.125rem;
	color: var(--rt-color-body);
	font-family: var(--rt-font-family-body);
	font-size: var(--rt-font-size-base);
}

.rt-tabs--strip .rt-tabs__list {
	justify-content: center;
	column-gap: 8.75rem;
	border-block: 1px solid var(--rt-tabs-border);
}

.rt-tabs--strip .rt-tabs__tab {
	position: relative;
	min-width: 15.0625rem;
	padding: 1.796875rem 2rem;
	font-size: var(--rt-font-size-base-plus);
	font-weight: inherit;
	text-align: center;
}

.rt-tabs--strip .rt-tabs__tab[aria-selected="true"] {
	box-shadow: inset 1px 0 var(--rt-tabs-border), inset -1px 0 var(--rt-tabs-border), 0 1px var(--rt-tabs-active);
	font-weight: var(--rt-font-weight-bold);
}

.rt-tabs--strip .rt-tabs__tab[aria-selected="true"]::after {
	content: "";
	position: absolute;
	inset: calc(-1.125rem - 1px) 0 auto;
	height: 1.125rem;
	border: 1px solid var(--rt-tabs-border);
	border-bottom: 0;
	background-color: var(--rt-tabs-active);
}

.rt-tabs--strip .rt-tabs__panel {
	padding: 5.0625rem 0 0;
}

@media (max-width: 64rem) {
	.rt-tabs--strip .rt-tabs__list {
		column-gap: 0;
	}
}

/* Mobile: the tab list scrolls sideways in one row; the strip's active tab is no longer raised. */
@media (max-width: 37.5rem) {
	.rt-tabs__list {
		flex-wrap: nowrap;
		overflow-x: auto;
		scrollbar-width: none;
	}

	/* core/tabs keeps the boxed tabs' and panel's padding on phones; the strip narrows its tabs */
	.rt-tabs__tab {
		flex: none;
	}

	.rt-tabs--strip .rt-tabs__tab {
		padding-inline: 1.25rem;
	}

	.rt-tabs--strip {
		padding-top: 0;
	}

	.rt-tabs--strip .rt-tabs__list {
		justify-content: flex-start;
	}

	.rt-tabs--strip .rt-tabs__tab {
		min-width: 0;
		padding-block: 1.25rem;
		font-size: var(--rt-font-size-base);
	}

	.rt-tabs--strip .rt-tabs__tab[aria-selected="true"] {
		box-shadow: none;
	}

	.rt-tabs--strip .rt-tabs__tab[aria-selected="true"]::after {
		display: none;
	}

	.rt-tabs--strip .rt-tabs__panel {
		padding: var(--rt-spacing-50) 0 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.rt-tabs__tab {
		transition: none;
	}
}

/* A table panel (WooCommerce's Product Details table): label and value rows with a line under each */
.rt-tabs__table {
	width: 100%;
	border-collapse: collapse;
}

.rt-tabs__table th,
.rt-tabs__table td {
	padding: 0.875rem 0;
	border-bottom: 1px solid var(--rt-color-line);
	line-height: 1.5;
	text-align: start;
	vertical-align: top;
}

.rt-tabs__table th {
	width: 30%;
	color: var(--rt-color-contrast);
	font-weight: var(--rt-font-weight-medium);
}

.rt-tabs__table td p {
	margin: 0;
}
