/* furnica WordPress bridge — @rtthemes/builder üretir; elle düzenlemeyin. */
/*
 * WP'ye özgü ince düzeltmeler. Yalnız WP paketine (components.css) girer.
 * Core layout kuralları (.is-layout-*) komponent iç boşluklarını ezdiğinde burada geri alınır.
 */
/*
 * core/search block styles (styles/blocks/search-icon.json, search-panel.json): the variations register the styles;
 * their rules are here because core's search CSS (two and three classes) outranks theme.json. Keyed on the style
 * class, so choosing Default in the editor gives the block WordPress's own look back.
 * Icon (the header): only the magnifier; core opens the field on click.
 */
.wp-block-search.is-style-icon .wp-block-search__inside-wrapper {
	align-items: center;
}

/* Palette colours instead of the browser's field defaults, so Styles changes reach the opened field */
.wp-block-search.is-style-icon .wp-block-search__input {
	color: var(--rt-color-contrast, var(--wp--preset--color--contrast));
	background-color: var(--rt-color-base, var(--wp--preset--color--base));
}

.wp-block-search.is-style-icon .wp-block-search__button {
	align-self: center;
	height: auto;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
}

.wp-block-search.is-style-icon .wp-block-search__button svg {
	width: 1.5rem;
	height: 1.5rem;
	min-width: 0;
	min-height: 0;
	fill: currentColor;
}

/* Panel (the blog and shop sidebars): a surface panel with a border-coloured edge, a transparent field whose
   placeholder reads as a title, and the magnifier inside */
.wp-block-search.is-style-panel .wp-block-search__inside-wrapper {
	align-items: center;
	min-height: 3.75rem;
	padding: 0;
	border: 0;
	border-inline-start: 0.625rem solid var(--rt-color-line, var(--wp--preset--color--line));
	background-color: var(--rt-color-surface, var(--wp--preset--color--surface));
}

.wp-block-search.is-style-panel .wp-block-search__inside-wrapper:focus-within {
	outline: 1px solid var(--rt-color-contrast, var(--wp--preset--color--contrast));
}

.wp-block-search.is-style-panel .wp-block-search__inside-wrapper .wp-block-search__input {
	min-width: 0;
	margin: 0;
	padding: 0 0 0 1.1875rem;
	border: 0;
	background: transparent;
	color: var(--rt-color-contrast, var(--wp--preset--color--contrast));
	font: inherit;
	font-size: var(--wp--preset--font-size--medium);
	font-weight: var(--wp--custom--font--weight--bold);
}

.wp-block-search.is-style-panel .wp-block-search__input::placeholder {
	color: var(--rt-color-contrast, var(--wp--preset--color--contrast));
	opacity: 1;
}

.wp-block-search.is-style-panel .wp-block-search__input:focus {
	outline: none;
}

.wp-block-search.is-style-panel .wp-block-search__inside-wrapper .wp-block-search__button {
	margin: 0;
	padding: 0 1.25rem;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: var(--rt-color-contrast, var(--wp--preset--color--contrast));
}

.wp-block-search.is-style-panel .wp-block-search__button svg {
	width: 1.25rem;
	height: 1.25rem;
	fill: currentColor;
}

/*
 * A text colour set on a module's root block (sidebar: Color > Text, or a preset) reaches the module's texts: WP marks
 * the block with has-text-color, and the module's own text colours give way to it. Elements that set their own
 * colour in the editor keep it (preset classes and inline styles win).
 */
.has-text-color[class*="rt-"] [class*="rt-"] {
	color: inherit;
}

/* theme.json elements.button geçiş tanımlayamaz; buton hover'ı (button.wp.json) yumuşak geçsin. */
.wp-element-button {
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

/* A button's 2px border is drawn in its background colour (elements.button, :hover). A button with its own background
   colour keeps it on hover (the preset class is !important), but the hover border turned contrast: a black frame.
   Without its own border colour, its border is transparent, so the background shows through it in every state. */
.wp-element-button.has-background:not(.has-border-color) {
	border-color: transparent;
}

/* Varyasyon css'i (button.wp.json) iç içe @media taşıyamaz; hareket azaltma burada. */
@media (prefers-reduced-motion: reduce) {
	.wp-element-button,
	.wp-element-button::after {
		transition: none;
	}
}

/*
 * Tam genişlik (alignfull) bölümler kök iç boşluğu olan kapta negatif margin'le kenara uzanır (useRootPaddingAwareAlignments).
 * O durumda padding'deki % kabın genişliğine göre hesaplanır; --rt-bleed bu farkı komponent formüllerine ekler.
 */
.has-global-padding > .alignfull {
	--rt-bleed: var(--wp--style--root--padding-left, 0px);
}

/*
 * Page content keeps the block gap (Styles > Layout > Block spacing) for the blocks a user writes. Modules and the
 * spacers between them carry the page rhythm, so they take no gap. Specificity 0,1,1 (`:not(template)` adds a type):
 * it beats core's `:root :where(.is-layout-constrained) > *`, which loads after the theme CSS in the editor, and loses
 * to modules' own overlap rules (two classes). A margin set on the block itself (inline) still wins. Only page content
 * (post-content directly in main), not a post body inside a module. Modules moved to the platform split have no rt-*
 * class, so the block after a spacer takes no gap either: the spacer is the gap.
 */
:where(main > .wp-block-post-content) > [class^="rt-"]:not(template),
:where(main > .wp-block-post-content) > [class*=" rt-"]:not(template),
:where(main > .wp-block-post-content) > .wp-block-spacer:not(template),
:where(main > .wp-block-post-content > .wp-block-spacer) + [class]:not(template) {
	margin-block-start: 0;
}

/* WooCommerce wraps the single product template's blocks between header and footer in div.product. That wrapper takes the
   root block gap that the templates' main zeroes (margin-top 0), so it does the same: the title band starts at the
   top, under the overlay header. */
.wp-site-blocks > .product:has(> main) {
	margin-block-start: 0;
}

/*
 * "Show above nearby sections" (sidebar: Theme features; class rt-on-top): the block is drawn over the blocks it
 * overlaps through a negative margin, the footer included (the bands that close a page: newsletter, the white
 * cta-band, collection-banner). Above the content and core's sticky blocks (10), below the header (20).
 */
.rt-on-top {
	position: relative;
	z-index: 15;
}

/* Band gradients (theme.json "Page colour to N%", Background > Gradient) switch off on phones: their stops collapse to
   0, so the block's background colour shows in full. The presets are declared on :root, where the variable is read. */
@media (max-width: 37.5rem) {
	:root {
		--rt-band-gradient: 0;
	}
}

/* team-grid: the cards' grid (Columns 4) shows two per row on phones. Core's Minimum column width would do this, but
   WP 7.1 writes an invalid template when the grid also has separate row and column gaps. */
@media (max-width: 37.5rem) {
	.rt-team-grid__items.wp-block-group-is-layout-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/*
 * Benefits list (pattern furnica/benefits-list): boxed heading and numbered list on the left (x227 at 1440, like the
 * promo cover's content), the cut-out photo (366×879) on the right, ending at x1269. After a promo cover the section
 * moves 98px up onto the band (home-6: photo top 98px, heading 82px above the band's bottom); the band is a plain
 * core/cover, so the rule follows any cover.
 */
.rt-benefits-list.wp-block-columns {
	position: relative;
	z-index: 1;
	align-items: flex-start;
	margin-block: 0;
	padding-inline: 7.3125rem 3.8125rem;
}

.wp-block-cover + .rt-benefits-list.wp-block-columns {
	margin-block-start: -6.125rem;
}

.rt-benefits-list__content.wp-block-column {
	padding-top: 1rem;
}

.rt-benefits-list__content.wp-block-column > .wp-block-list {
	margin-block-start: 5.625rem;
}

.rt-benefits-list .rt-benefits-list__image {
	margin: 0;
}

.rt-benefits-list .rt-benefits-list__image img {
	display: block;
	width: 100%;
	max-width: 22.875rem;
	height: auto;
	margin-inline-start: auto;
}

@media (max-width: 80rem) {
	.rt-benefits-list.wp-block-columns {
		padding-inline: 0;
	}
}

/* Core stacks the columns under 782px: the photo goes under the list, smaller and centred. */
@media (max-width: 781px) {
	.wp-block-cover + .rt-benefits-list.wp-block-columns {
		margin-block-start: calc(-1 * var(--wp--custom--spacing--50));
	}

	.rt-benefits-list__content.wp-block-column > .wp-block-list {
		margin-block-start: var(--wp--custom--spacing--60);
	}

	.rt-benefits-list .rt-benefits-list__image img {
		max-width: 15rem;
		margin-inline: auto;
	}
}

/*
 * About story (pattern furnica/about-story, about-1): heading and paragraphs on the left (487px column), a collage of
 * three overlapping photos on the right (555×837 box, right edge on the 1140 column). Photo frames as fractions of the
 * box: back 463×764 at (92, 0), middle 329×489 at (0, 158), front 308×483 at (192, 354).
 */
.rt-about-story.wp-block-columns {
	justify-content: space-between;
	align-items: flex-start;
	margin-block: 0;
}

.rt-about-story .rt-about-story__title {
	line-height: var(--wp--custom--font--line-height--heading);
}

.rt-about-story .rt-about-story__text {
	padding-top: 2rem;
	line-height: 1.7778;
}

.rt-about-story .rt-about-story__title + .rt-about-story__text {
	padding-top: 3.6875rem;
}

.rt-about-story.wp-block-columns > .rt-about-story__media {
	position: relative;
	aspect-ratio: 555 / 837;
}

.rt-about-story .rt-about-story__image {
	position: absolute;
	margin: 0;
}

.rt-about-story .rt-about-story__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.rt-about-story .rt-about-story__image--back {
	top: 0;
	left: 16.5766%;
	width: 83.4234%;
	height: 91.2784%;
}

.rt-about-story .rt-about-story__image--middle {
	top: 18.8769%;
	left: 0;
	width: 59.2793%;
	height: 58.4229%;
}

.rt-about-story .rt-about-story__image--front {
	top: 42.2939%;
	left: 34.5946%;
	width: 55.4955%;
	height: 57.7061%;
}

/* Core stacks the columns under 782px: the collage goes under the text, at most 30rem wide. */
@media (max-width: 781px) {
	.rt-about-story.wp-block-columns > .rt-about-story__media {
		flex-basis: auto;
		width: 100%;
		max-width: 30rem;
		margin-top: var(--wp--custom--spacing--60);
	}
}

/*
 * Services care sections (patterns furnica/services-collage and furnica/services-band, services-1): heading, text and a
 * button in a 352px column next to the photos, both centred vertically on the 1140 column. The collage is a 695×724
 * box: back 544×724 at (0, 0), middle 544×347 at (151, 129), front 328×334 at (314, 309). The band section puts one
 * 687×724 photo on the right of a full-width grey band that starts 67px below the photo's top and ends 58px above its
 * bottom.
 */
.rt-services-care.wp-block-columns {
	justify-content: space-between;
	margin-block: 0;
}

.rt-services-care .rt-services-care__title {
	line-height: var(--wp--custom--font--line-height--heading);
}

.rt-services-care .rt-services-care__text {
	padding-top: 2.625rem;
	line-height: 1.7778;
}

.rt-services-care .rt-services-care__actions {
	padding-top: 5rem;
}

.rt-services-care .rt-services-care__image {
	margin: 0;
}

.rt-services-care .rt-services-care__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.rt-services-care--collage.wp-block-columns > .rt-services-care__media {
	position: relative;
	aspect-ratio: 695 / 724;
}

.rt-services-care--collage .rt-services-care__image {
	position: absolute;
}

.rt-services-care--collage .rt-services-care__image--back {
	top: 0;
	left: 0;
	width: 78.2734%;
	height: 100%;
}

.rt-services-care--collage .rt-services-care__image--middle {
	top: 17.8177%;
	left: 21.7266%;
	width: 78.2734%;
	height: 47.9282%;
}

.rt-services-care--collage .rt-services-care__image--front {
	top: 42.6796%;
	left: 45.1799%;
	width: 47.1942%;
	height: 46.1326%;
}

.rt-services-band.wp-block-group {
	background: linear-gradient(transparent 9.2541%, var(--rt-color-surface, var(--wp--preset--color--surface)) 9.2541% 91.989%, transparent 91.989%);
}

.rt-services-care--band .rt-services-care__image img {
	aspect-ratio: 687 / 724;
}

/* Core stacks the columns under 782px: photos go full width (the collage at most 30rem), the band starts above the
   text and the photo overlaps its bottom edge. */
@media (max-width: 781px) {
	.rt-services-care.wp-block-columns {
		row-gap: var(--wp--custom--spacing--50);
	}

	.rt-services-care.wp-block-columns > .rt-services-care__media {
		flex-basis: auto;
		width: 100%;
	}

	.rt-services-care--collage.wp-block-columns > .rt-services-care__media {
		max-width: 30rem;
	}

	.rt-services-care .rt-services-care__actions {
		padding-top: var(--wp--custom--spacing--50);
	}

	.rt-services-band.wp-block-group {
		padding-top: var(--wp--custom--spacing--60);
		background: linear-gradient(var(--rt-color-surface, var(--wp--preset--color--surface)) calc(100% - var(--wp--custom--spacing--70)), transparent calc(100% - var(--wp--custom--spacing--70)));
	}
}

/* Services text columns (pattern furnica/services-columns): two 499px columns on the 1140 column, 24/45 medium
   headings and 18/32 text 27px under them. */
.rt-services-columns.wp-block-columns {
	justify-content: space-between;
	row-gap: var(--wp--custom--spacing--50);
	margin-block: 0;
}

.rt-services-columns .rt-services-columns__title {
	font-weight: var(--wp--custom--font--weight--medium);
	line-height: 1.875;
}

.rt-services-columns .rt-services-columns__text {
	padding-top: 1.6875rem;
	line-height: 1.7778;
}

/* Services history band (pattern furnica/services-history): 512px dimmed photo, a 500px year at 10% white whose digits
   sit on the band's bottom edge at the column start, and a 32/45 statement centred over it (706px wide for two
   lines; 800px here, because the x-large preset is 36px). */
section.rt-services-history.wp-block-cover {
	min-height: 32rem;
	padding-block: var(--wp--custom--spacing--60);
	padding-inline: var(--wp--style--root--padding-left, 1rem) var(--wp--style--root--padding-right, 1rem);
}

.rt-services-history > .wp-block-cover__inner-container {
	position: static;
	max-width: var(--wp--style--global--wide-size, 76.25rem);
	margin-inline: auto;
}

.rt-services-history .rt-services-history__year {
	position: absolute;
	z-index: 1;
	bottom: 0;
	inset-inline-start: max(var(--wp--style--root--padding-left, 1rem), calc((100% - var(--wp--style--global--content-size, 71.25rem)) / 2));
	margin: 0;
	color: color-mix(in srgb, var(--wp--preset--color--on-image) 10%, transparent);
	font-size: clamp(8rem, 34.7222vw, 31.25rem); /* preset-exempt: decorative year drawn as an image */
	font-weight: var(--wp--custom--font--weight--medium);
	line-height: 0.8;
	pointer-events: none;
	user-select: none;
}

.rt-services-history .rt-services-history__text {
	position: relative;
	z-index: 1;
	max-width: 50rem;
	margin: 0;
	color: var(--wp--preset--color--on-image);
	font-weight: var(--wp--custom--font--weight--regular);
	line-height: 1.4063;
}

@media (max-width: 781px) {
	section.rt-services-history.wp-block-cover {
		min-height: 20rem;
	}
}

/*
 * Contact section (pattern furnica/contact-section, contact-1): the stacked contact form (455px) on the left and the
 * showroom list (585px) on the right, both tops on one line, the list's featured card ending on the 1140 column.
 * Under 64rem the showrooms go under the form.
 */
.rt-contact-section.wp-block-columns {
	justify-content: space-between;
	align-items: flex-start;
	margin-block: 0;
}

@media (max-width: 64rem) {
	.rt-contact-section.wp-block-columns:not(.is-not-stacked-on-mobile) {
		flex-direction: column;
		row-gap: var(--wp--preset--spacing--section-small);
	}

	.rt-contact-section.wp-block-columns:not(.is-not-stacked-on-mobile) > .wp-block-column {
		flex-basis: auto !important;
		width: 100%;
	}
}

/*
 * Posts and single post templates (patterns furnica/blog-archive and blog-single): the posts or the post on the left,
 * filling the Wide row, and the blog sidebar (330px) on the right, 90px apart (the columns' settings), both tops on
 * one line. Under 64rem the
 * sidebar goes under them.
 */
.rt-blog-archive.wp-block-columns {
	justify-content: space-between;
	align-items: flex-start;
	margin-block: 0;
}

.rt-blog-archive.wp-block-columns > .rt-blog-archive__posts {
	min-width: 0;
}

@media (max-width: 64rem) {
	.rt-blog-archive.wp-block-columns:not(.is-not-stacked-on-mobile) {
		flex-direction: column;
		row-gap: var(--wp--preset--spacing--section-small);
	}

	.rt-blog-archive.wp-block-columns:not(.is-not-stacked-on-mobile) > .wp-block-column {
		flex-basis: auto !important;
		width: 100%;
	}
}

/*
 * Product archive templates (pattern furnica/shop-archive): the products (68.5%) and the shop sidebar beside them,
 * both tops on one line. The widths and the gap are the columns' own settings and the row is Wide (the constrained
 * layout's wide width); under 64rem the sidebar goes under the products (sidebar-widgets' two-column
 * tablet layout needs the full width).
 */
.rt-shop-archive.wp-block-columns {
	align-items: flex-start;
	margin-block: 0;
}

.rt-shop-archive.wp-block-columns > .wp-block-column {
	min-width: 0;
}

@media (max-width: 64rem) {
	.rt-shop-archive.wp-block-columns:not(.is-not-stacked-on-mobile) {
		flex-direction: column;
		row-gap: var(--wp--preset--spacing--section-small);
	}

	.rt-shop-archive.wp-block-columns:not(.is-not-stacked-on-mobile) > .wp-block-column {
		flex-basis: auto !important;
		width: 100%;
	}
}

/*
 * Single product template (pattern furnica/product-single): WooCommerce's own blocks. The gallery (60%) and the summary
 * share one row on the wide column, both tops on one line; under 64rem the summary goes under the gallery.
 */
.rt-product-single.wp-block-columns {
	align-items: flex-start;
}

.rt-product-single.wp-block-columns > .wp-block-column {
	min-width: 0;
}

@media (max-width: 64rem) {
	.rt-product-single.wp-block-columns:not(.is-not-stacked-on-mobile) {
		flex-direction: column;
	}

	.rt-product-single.wp-block-columns:not(.is-not-stacked-on-mobile) > .wp-block-column {
		flex-basis: auto !important;
		width: 100%;
	}
}

/* Related products render nothing when the product has no siblings; the spacer they would have used goes too. */
body.single-product main .wp-block-spacer + .wp-block-spacer {
	display: none;
}

/*
 * Product Details (woocommerce/product-details without inner blocks prints WooCommerce's classic tabs, plugin tabs
 * included): every style but WooCommerce's Minimal gets the look of the theme's default core/tabs (tabs boxed): a
 * framed box, a grey tab bar, the active tab on the active colour. The selectors outrank woocommerce.css
 * (.woocommerce div.product .woocommerce-tabs ul.tabs li, 0,4,3).
 */
body .wp-block-woocommerce-product-details:not(.is-style-minimal) .woocommerce-tabs.wc-tabs-wrapper {
	border: 1px solid var(--wp--custom--tabs--border);
	color: var(--rt-color-body, var(--wp--preset--color--body));
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--base);
}

body .wp-block-woocommerce-product-details:not(.is-style-minimal) .woocommerce-tabs ul.tabs.wc-tabs {
	display: flex;
	margin: 0;
	padding: 0;
	overflow: visible;
	background-color: var(--wp--custom--tabs--bar);
}

body .wp-block-woocommerce-product-details:not(.is-style-minimal) .woocommerce-tabs ul.tabs.wc-tabs::before,
body .wp-block-woocommerce-product-details:not(.is-style-minimal) .woocommerce-tabs ul.tabs.wc-tabs::after,
body .wp-block-woocommerce-product-details:not(.is-style-minimal) .woocommerce-tabs ul.tabs.wc-tabs li::before,
body .wp-block-woocommerce-product-details:not(.is-style-minimal) .woocommerce-tabs ul.tabs.wc-tabs li::after {
	content: none;
}

body .wp-block-woocommerce-product-details:not(.is-style-minimal) .woocommerce-tabs ul.tabs.wc-tabs li {
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	transition: background-color 0.2s ease;
}

body .wp-block-woocommerce-product-details:not(.is-style-minimal) .woocommerce-tabs ul.tabs.wc-tabs li:hover {
	background-color: var(--wp--custom--tabs--hover);
}

body .wp-block-woocommerce-product-details:not(.is-style-minimal) .woocommerce-tabs ul.tabs.wc-tabs li.active {
	background-color: var(--wp--custom--tabs--active);
}

body .wp-block-woocommerce-product-details:not(.is-style-minimal) .woocommerce-tabs ul.tabs.wc-tabs li a {
	display: block;
	padding: 1.25rem 2.5rem 1.25rem 1.5625rem;
	color: var(--rt-color-contrast, var(--wp--preset--color--contrast));
	font-weight: var(--wp--custom--font--weight--medium);
	line-height: 1.25;
	text-decoration: none;
}

body .wp-block-woocommerce-product-details:not(.is-style-minimal) .woocommerce-tabs ul.tabs.wc-tabs li a:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: -0.375rem;
}

body .wp-block-woocommerce-product-details:not(.is-style-minimal) .woocommerce-tabs .wc-tab {
	margin: 0;
	padding: 1.8125rem 1.5625rem 2.375rem;
	line-height: 1.625;
}

body .wp-block-woocommerce-product-details .wc-tab > *,
body .wp-block-woocommerce-product-details .wc-tab #comments > *,
body .wp-block-woocommerce-product-details .wc-tab .comment-form > * {
	margin-block: 0;
}

body .wp-block-woocommerce-product-details .wc-tab > * + *,
body .wp-block-woocommerce-product-details .wc-tab #comments > * + *,
body .wp-block-woocommerce-product-details .wc-tab .comment-form > * + * {
	margin-block-start: 1.0625rem;
}

/* Additional information: WooCommerce's attribute table as rows with a line between them */
body .wp-block-woocommerce-product-details .woocommerce-product-attributes {
	width: 100%;
	margin: 0;
	border: 0;
	border-collapse: collapse;
}

body .wp-block-woocommerce-product-details .woocommerce-product-attributes th,
body .wp-block-woocommerce-product-details .woocommerce-product-attributes td {
	padding: 0.875rem 0;
	border: 0;
	border-bottom: 1px solid var(--wp--custom--tabs--border);
	background: none;
	font-style: normal;
	text-align: start;
	vertical-align: top;
}

body .wp-block-woocommerce-product-details .woocommerce-product-attributes th {
	width: 30%;
	color: var(--rt-color-contrast, var(--wp--preset--color--contrast));
	font-weight: var(--wp--custom--font--weight--medium);
}

body .wp-block-woocommerce-product-details .woocommerce-product-attributes td p {
	margin: 0;
	padding: 0;
}

/* Reviews: WordPress' comment form with WooCommerce's star rating; fields fill the width */
body .wp-block-woocommerce-product-details #review_form #respond {
	margin-block-start: var(--wp--custom--spacing--50);
}

body .wp-block-woocommerce-product-details .comment-reply-title {
	display: block;
	color: var(--rt-color-contrast, var(--wp--preset--color--contrast));
	font-size: var(--wp--preset--font-size--medium);
	font-weight: var(--wp--custom--font--weight--bold);
}

body .wp-block-woocommerce-product-details .comment-form label {
	display: block;
	margin-block-end: 0.5rem;
	color: var(--rt-color-contrast, var(--wp--preset--color--contrast));
}

body .wp-block-woocommerce-product-details .comment-form input[type="text"],
body .wp-block-woocommerce-product-details .comment-form input[type="email"],
body .wp-block-woocommerce-product-details .comment-form textarea {
	box-sizing: border-box;
	width: 100%;
	padding: 0.875rem 1.25rem;
	border: 1px solid var(--rt-color-line, var(--wp--preset--color--line));
	border-radius: 0;
	background: var(--rt-color-base, var(--wp--preset--color--base));
	color: var(--rt-color-contrast, var(--wp--preset--color--contrast));
	font: inherit;
}

body .wp-block-woocommerce-product-details .comment-form .comment-form-cookies-consent {
	display: flex;
	align-items: flex-start;
	gap: 0.625rem;
	font-size: var(--wp--preset--font-size--small);
}

body .wp-block-woocommerce-product-details .comment-form .comment-form-cookies-consent label {
	margin: 0;
	color: inherit;
}

@media (max-width: 37.5rem) {
	body .wp-block-woocommerce-product-details:not(.is-style-minimal) .woocommerce-tabs ul.tabs.wc-tabs {
		overflow-x: auto;
		scrollbar-width: none;
	}

	body .wp-block-woocommerce-product-details:not(.is-style-minimal) .woocommerce-tabs ul.tabs.wc-tabs li {
		flex: none;
	}

	body .wp-block-woocommerce-product-details:not(.is-style-minimal) .woocommerce-tabs ul.tabs.wc-tabs li a {
		padding-inline: 1.25rem;
	}

	body .wp-block-woocommerce-product-details:not(.is-style-minimal) .woocommerce-tabs .wc-tab {
		padding-inline: 1.25rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	body .wp-block-woocommerce-product-details .woocommerce-tabs ul.tabs.wc-tabs li {
		transition: none;
	}
}

/*
 * Page not found (pattern furnica/not-found, 404 template): the photo shows only inside the oversized number. The
 * cover's inner container fills the cover with the base colour and the number in the contrast colour; screened over the
 * photo, base (white) stays white and contrast (black) lets the photo through. The inner container is its own stacking
 * context (z-index 1), so the blend sits on it, not on the paragraph. Light palettes only: a dark base would show the
 * photo around the digits.
 */
.rt-not-found.wp-block-cover > .wp-block-cover__inner-container {
	display: flex;
	align-self: stretch;
	align-items: center;
	justify-content: center;
	/* 1px past every edge (the cover clips it): a fractional cover height would let the photo's last row through */
	width: calc(100% + 2px);
	margin: -1px;
	background-color: var(--rt-color-base, var(--wp--preset--color--base));
	mix-blend-mode: screen;
}

.rt-not-found__body.wp-block-group .rt-not-found__search .wp-block-search__inside-wrapper {
	padding: 0;
	border: 1px solid var(--rt-color-line, var(--wp--preset--color--line));
	background-color: var(--rt-color-base, var(--wp--preset--color--base));
}

.rt-not-found__body.wp-block-group .rt-not-found__search .wp-block-search__input {
	padding: 0.875rem 1.25rem;
	border: 0;
	color: var(--rt-color-contrast, var(--wp--preset--color--contrast));
	background-color: transparent;
}

.rt-not-found__body.wp-block-group .rt-not-found__search .wp-block-search__button {
	margin: 0;
	padding: 0 1.25rem;
	border: 0;
	border-radius: 0;
	color: var(--rt-color-contrast, var(--wp--preset--color--contrast));
	background: transparent;
}

/*
 * Coming soon (pattern furnica/coming-soon, coming-soon template): the photo fills its column next to the full-height
 * cream panel; stacked under 782px (core columns), where the photo keeps its own min-height above the panel.
 */
.rt-coming-soon.wp-block-columns {
	align-items: stretch;
}

.rt-coming-soon__media.wp-block-column > .rt-coming-soon__photo {
	height: 100%;
}

.rt-coming-soon__inner.wp-block-group {
	box-sizing: border-box;
}

/*
 * Catalog items (RT Themes Toolkit's Catalog post type; patterns furnica/catalog-*, templates single-catalog,
 * catalog-editorial and catalog-sticky; the archives are rtthemes/post-gallery patterns). Sizes and colours of the
 * texts are the blocks' own settings; these rules draw the lines, the photo surfaces, the gallery layouts and the
 * stacking. The item opens with a title band of block settings only (furnica/catalog-title-band, -split).
 * A section whose toolkit field is empty renders nothing (rtthemes-blocks, inc/catalog.php); the spacer it would have
 * used goes too.
 */
body.single-catalog main .wp-block-spacer + .wp-block-spacer {
	display: none;
}

.rt-catalog-facts__label {
	color: var(--rt-color-body, var(--wp--preset--color--body));
	font-family: var(--wp--preset--font-family--label);
}

/* Facts: label and value rows between hairlines (summary), or a grid of Surface boxes (editorial; block settings) */
.rt-catalog-facts__item.wp-block-group {
	padding-block: var(--wp--preset--spacing--30);
	border-bottom: var(--wp--custom--border-width--thin) solid var(--rt-color-line, var(--wp--preset--color--line));
}

.rt-catalog-facts__item.wp-block-group:first-child {
	border-top: var(--wp--custom--border-width--thin) solid var(--rt-color-line, var(--wp--preset--color--line));
}

.rt-catalog-facts__value {
	color: var(--rt-color-contrast, var(--wp--preset--color--contrast));
	font-weight: var(--wp--custom--font--weight--medium);
	text-align: end;
}

.rt-catalog-facts--row .rt-catalog-facts__item.wp-block-group {
	border: 0;
}

.rt-catalog-facts--row .rt-catalog-facts__value {
	text-align: start;
}

/* Item rows (slider, sticky): one wide row; under 64rem the summary goes under the photos */
.rt-catalog-single.wp-block-columns,
.rt-catalog-details.wp-block-columns {
	align-items: flex-start;
	margin-block: 0;
}

.rt-catalog-single.wp-block-columns > .wp-block-column,
.rt-catalog-details.wp-block-columns > .wp-block-column {
	min-width: 0;
}

/* Sticky columns: the summary stays in view while the gallery tiles scroll (sticky), the slider while the summary
   scrolls (slider), below the admin bar and a sticky site header (--rt-sticky-header, the Site header style). The
   column's vertical alignment Top (a block setting) keeps it from stretching to the row. In the description row both
   columns are sticky: the taller one is as tall as the row and cannot move, so only the shorter one stays in view. */
@media (min-width: 64.0625rem) {
	.rt-catalog-single--sticky .rt-catalog-single__summary.wp-block-column,
	.rt-catalog-single--slider .rt-catalog-single__media.wp-block-column,
	.rt-catalog-details.wp-block-columns > .wp-block-column {
		position: sticky;
		top: calc(var(--wp-admin--admin-bar--height, 0px) + var(--rt-sticky-header, 0px) + var(--wp--custom--spacing--50));
	}
}

@media (max-width: 64rem) {
	.rt-catalog-single.wp-block-columns:not(.is-not-stacked-on-mobile),
	.rt-catalog-details.wp-block-columns:not(.is-not-stacked-on-mobile) {
		flex-direction: column;
		align-items: stretch;
	}

	.rt-catalog-single.wp-block-columns:not(.is-not-stacked-on-mobile) > .wp-block-column,
	.rt-catalog-details.wp-block-columns:not(.is-not-stacked-on-mobile) > .wp-block-column {
		flex-basis: auto !important;
		width: 100%;
	}
}

/*
 * Gallery slider (Field Gallery with rt-gallery-slider, one column): core's gallery figure is the scroll-snap track,
 * one photo per view (the next one peeks in on phones); previous and next are two matching white circles in the bottom
 * corner that turn accent on hover (user's request: the old white and black squares looked heavy). The buttons come from rtthemes-blocks. Each slide keeps its photo's own height,
 * nothing is cropped: rtthemes-blocks sets the track's height to the slide in view (the height eases), and without
 * script the track is as tall as its tallest slide. A photo is at most the screen's height minus the sticky offsets, so
 * a tall portrait photo keeps the slider in view (it then sits on the Surface colour). The img selectors carry core's
 * `:not(#individual-image)` to beat its cropped gallery's `object-fit: cover` and `height: 100%`.
 */
.rt-gallery-slider {
	--rt-gallery-slider-button: clamp(2.5rem, 4vw, 3rem);
	--rt-gallery-slider-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 12h17M15 7l5 5-5 5' fill='none' stroke='%23000' stroke-width='1.5'/%3E%3C/svg%3E");
	position: relative;
}

.rt-gallery-slider .wp-block-gallery.has-nested-images {
	flex-wrap: nowrap;
	margin: 0;
	align-items: flex-start;
	overflow: auto hidden;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	transition: height 0.4s ease;
}

.rt-gallery-slider .wp-block-gallery.has-nested-images::-webkit-scrollbar {
	display: none;
}

.rt-gallery-slider .wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) {
	flex: 0 0 100%;
	width: 100%;
	background-color: var(--rt-color-surface, var(--wp--preset--color--surface));
	scroll-snap-align: start;
}

.rt-gallery-slider .wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) img {
	width: 100%;
	height: auto;
	max-height: calc(100vh - 2 * var(--wp--custom--spacing--50) - var(--wp-admin--admin-bar--height, 0px) - var(--rt-sticky-header, 0px));
	object-fit: contain;
}

.rt-gallery-slider__nav {
	position: absolute;
	z-index: 2;
	inset-block-end: var(--wp--preset--spacing--30);
	inset-inline-end: var(--wp--preset--spacing--30);
	display: flex;
	gap: var(--wp--preset--spacing--20);
}

.rt-gallery-slider__prev,
.rt-gallery-slider__next {
	position: relative;
	width: var(--rt-gallery-slider-button);
	aspect-ratio: 1;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background-color: var(--rt-color-base, var(--wp--preset--color--base));
	color: var(--rt-color-contrast, var(--wp--preset--color--contrast));
	box-shadow: 0 2px 10px rgb(0 0 0 / 12%);
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.rt-gallery-slider__prev:hover,
.rt-gallery-slider__next:hover {
	background-color: var(--rt-color-accent, var(--wp--preset--color--accent));
	color: var(--wp--preset--color--on-accent);
}

.rt-gallery-slider__prev::before,
.rt-gallery-slider__next::before {
	content: "";
	position: absolute;
	inset: 0;
	margin: auto;
	width: 40%;
	height: 40%;
	background-color: currentColor;
	-webkit-mask: var(--rt-gallery-slider-arrow) center / contain no-repeat;
	mask: var(--rt-gallery-slider-arrow) center / contain no-repeat;
	transition: translate 0.2s ease;
}

.rt-gallery-slider__prev::before {
	rotate: 180deg;
}

.rt-gallery-slider__next:hover::before {
	translate: 0.2rem 0;
}

.rt-gallery-slider__prev:hover::before {
	translate: -0.2rem 0;
}

.rt-gallery-slider__prev:focus-visible,
.rt-gallery-slider__next:focus-visible {
	outline: 2px solid var(--rt-color-accent, var(--wp--preset--color--accent));
	outline-offset: 2px;
}

@media (max-width: 37.5rem) {
	.rt-gallery-slider .wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) {
		flex-basis: 88%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.rt-gallery-slider .wp-block-gallery.has-nested-images {
		transition: none;
	}
}

/*
 * Gallery tiles (Field Gallery with rt-gallery-tiles, three columns): the first photo takes two columns and two rows;
 * two columns on phones. Gallery stack (rt-gallery-stack, two columns, sticky template): the first photo across the
 * column, the others in two columns. Every cell is a 3:2 box and the photo fits inside it whole on the Surface colour
 * (nothing is cropped, and core's lightbox, which keeps the cell's crop, opens the whole photo); only the stack's first
 * photo fills its box. The gap stays core's gallery gap.
 */
.rt-gallery-tiles .wp-block-gallery.has-nested-images,
.rt-gallery-stack .wp-block-gallery.has-nested-images {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin: 0;
}

.rt-gallery-stack .wp-block-gallery.has-nested-images {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rt-gallery-tiles .wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image),
.rt-gallery-stack .wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) {
	position: relative;
	width: auto;
	margin: 0;
	aspect-ratio: 3 / 2;
	background-color: var(--rt-color-surface, var(--wp--preset--color--surface));
}

.rt-gallery-tiles .wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image):first-child {
	grid-row: span 2;
	grid-column: span 2;
	aspect-ratio: auto;
}

/* The first stack photo takes the row, and so does the last one when an even count leaves it alone in its row */
.rt-gallery-stack .wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image):first-child,
.rt-gallery-stack .wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image):nth-child(even):last-child {
	grid-column: span 2;
}

.rt-gallery-tiles .wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) img,
.rt-gallery-stack .wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: contain;
	mix-blend-mode: multiply;
}

/* The stack's first photo (the item's main photo, any shape) fills its row */
.rt-gallery-stack .wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image):first-child img {
	object-fit: cover;
}

@media (max-width: 37.5rem) {
	.rt-gallery-tiles .wp-block-gallery.has-nested-images {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.rt-gallery-tiles .wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image):first-child {
		grid-row: auto;
		aspect-ratio: 3 / 2;
	}
}

