/*
 * Final control layer for the official theme.
 *
 * Route styles remain responsible for layout. This file is loaded last so
 * buttons, filters, cards and the floating support rail have one predictable
 * interaction contract on the homepage, catalogue, product and blog routes.
 */
.tgh-theme .btn,
.tgh-theme .button,
.tgh-theme a.button,
.tgh-theme button.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	padding: 10px 19px;
	border-width: 1px;
	border-style: solid;
	line-height: 1.2;
	text-align: center;
	text-decoration: none !important;
	vertical-align: middle;
	white-space: nowrap;
}

.tgh-theme .btn:focus-visible,
.tgh-theme .button:focus-visible,
.tgh-theme a.button:focus-visible {
	outline: 2px solid var(--champagne);
	outline-offset: 3px;
}

.tgh-theme.tgh-front-page .buttons {
	align-items: center;
	gap: 16px;
}

.tgh-theme.tgh-front-page .filter,
.tgh-theme.tgh-front-page .filter:visited {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	min-height: 37px;
	padding: 0 13px;
	border: 1px solid var(--line);
	border-radius: 999px;
	font: 500 .78rem/1.2 var(--font-ui);
	line-height: 1.2;
	text-align: center;
	text-decoration: none !important;
	white-space: nowrap;
	vertical-align: middle;
}

.tgh-theme.tgh-front-page .filter:hover,
.tgh-theme.tgh-front-page .filter:focus-visible,
.tgh-theme.tgh-front-page .filter.on,
.tgh-theme.tgh-front-page .filter[aria-selected="true"] {
	border-color: var(--green);
}

.tgh-theme.tgh-front-page .cat {
	display: flex;
	text-decoration: none !important;
}

.tgh-theme.tgh-front-page .product-bottom .add,
.tgh-theme.tgh-front-page .product-bottom .add:visited,
.tgh-theme .product-card .add-button,
.tgh-theme .product-card .add-button:visited {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	line-height: 1;
	text-decoration: none !important;
}

.tgh-theme.tgh-front-page .product-bottom .add svg,
.tgh-theme .product-card .add-button svg {
	display: block;
	flex: 0 0 auto;
}

/* The rail never becomes a visual layer over the content it is meant to
 * support. tgh-shell.js adds .is-obscured only while it intersects a key
 * image/occasion rail at the bottom of the viewport. */
.tgh-theme .tgh-support-widget {
	transition: opacity .18s ease, transform .18s ease;
}

.tgh-theme .tgh-support-widget.is-obscured {
	opacity: 0;
	pointer-events: none;
	transform: translateY(calc(100% + 18px));
}

@media (min-width: 821px) {
	.tgh-theme .tgh-support-link {
		min-height: 40px;
		padding: 5px 8px;
		gap: 7px;
	}

	.tgh-theme .tgh-support-mark {
		width: 27px;
		height: 27px;
	}
}

@media (max-width: 590px) {
	.tgh-theme.tgh-front-page .buttons {
		gap: 12px;
	}

	.tgh-theme.tgh-front-page .buttons .btn {
		min-height: 46px;
		padding-inline: 15px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.tgh-theme .tgh-support-widget {
		transition: none;
	}
}
