/**
 * TELOS House - commerce components.
 * Loaded on WooCommerce pages only. Tokens from style.css (design-system/telos-house/MASTER.md).
 */

/* Stock badge on the catalogue tile */
.woocommerce ul.products li.product {
	position: relative;
}

.telos-badge {
	position: absolute;
	z-index: 1;
	top: 12px;
	left: 12px;
	padding: 6px 10px;
	background: var(--telos-paper);
	color: var(--telos-ink);
	font-family: var(--telos-font-ui);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.14em;
	line-height: 1.2;
	text-transform: uppercase;
	border: 1px solid var(--telos-line);
}

.telos-badge--last,
.telos-badge--ready {
	border-color: var(--telos-bronze);
	color: var(--telos-bronze);
}

.telos-badge--edition-closed,
.telos-badge--showcase,
.telos-badge--archive {
	background: var(--telos-ink);
	border-color: var(--telos-ink);
	color: var(--telos-paper);
}

/* Product page: availability line follows the same states */
.woocommerce div.product .stock {
	font-family: var(--telos-font-ui);
	font-size: 13px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--telos-muted);
}

/* Dimensions */
.telos-spec {
	display: flex;
	flex-wrap: wrap;
	/* Label and value centred on one line. The capitals sit a touch low
	   on their own line box, so the label is nudged to meet the figures. */
	align-items: center;
	gap: 4px 12px;
	margin: 16px 0;
	padding: 12px 0;
	border-top: 1px solid var(--telos-line);
	border-bottom: 1px solid var(--telos-line);
}

/* Consecutive spec lines read as one small table: one rule between them. */
.telos-spec + .telos-spec {
	margin-top: -16px;
	border-top: 0;
}

.telos-spec > span {
	line-height: 1;
}

.telos-spec__label {
	padding-top: 0.12em;
}

.telos-spec__label,
.telos-package__label {
	font-family: var(--telos-font-ui);
	font-size: 12px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--telos-muted);
}

/* Archive: a quiet line in place of the purchase form */
.telos-archive-line {
	margin: 24px 0;
	padding: 16px 0;
	border-top: 1px solid var(--telos-line);
	color: var(--telos-ink-soft);
}

.telos-archive-line a {
	display: inline-block;
	min-height: 44px;
	line-height: 44px;
	color: var(--telos-ink);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.telos-archive-line--showcase p {
	margin: 0 0 16px;
}

.telos-archive-line--showcase .telos-showcase-ask {
	display: block;
	margin-bottom: 8px;
	color: var(--telos-paper, #f3ede2);
	text-align: center;
	text-decoration: none;
}

/* In the box: a card with the real photo of the box */
.telos-package {
	display: flex;
	align-items: center;
	gap: 16px;
	margin: 24px 0 8px;
	padding: 16px;
	border: 1px solid var(--telos-line);
	background: var(--telos-white);
}

.telos-package__image {
	flex: none;
	display: block;
	width: 88px;
	height: 88px;
	overflow: hidden;
	background: var(--telos-paper-deep);
}

.telos-package__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform var(--telos-transition-medium);
}

.telos-package__image:hover img,
.telos-package__image:focus-visible img {
	transform: scale(1.05);
}

.telos-package__label {
	margin: 0 0 4px;
	color: var(--telos-ink);
	font-family: var(--telos-font-ui);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.telos-package__body {
	margin: 0;
	color: var(--telos-ink-soft);
	font-size: 16px;
	line-height: 1.45;
}

.telos-package__link {
	display: inline-block;
	min-height: 44px;
	padding-top: 10px;
	color: var(--telos-ink);
	font-family: var(--telos-font-ui);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	text-decoration: underline;
	text-underline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
	.telos-package__image img {
		transition: none;
	}
}

/* Companion work */
.telos-similar a {
	display: inline-block;
	min-height: 44px;
	line-height: 44px;
	color: var(--telos-ink);
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* The deeper creation file */
.telos-more {
	clear: both;
	max-width: 75ch;
	margin: 48px 0;
	border-top: 1px solid var(--telos-line);
}

.telos-more__item {
	border-bottom: 1px solid var(--telos-line);
}

.telos-more__item summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 56px;
	padding: 12px 0;
	cursor: pointer;
	font-family: var(--telos-font-display);
	font-size: 20px;
	list-style: none;
}

.telos-more__item summary::-webkit-details-marker {
	display: none;
}

/* A chevron: the "-" of an open section read as a stray hyphen (Sharon 03.11.2026). */
.telos-more__item summary::after {
	content: "";
	flex: none;
	width: 8px;
	height: 8px;
	margin-right: 4px;
	border-right: 1.5px solid var(--telos-bronze);
	border-bottom: 1.5px solid var(--telos-bronze);
	transform: rotate(45deg);
}

.telos-more__item[open] summary::after {
	transform: rotate(-135deg);
}

.telos-more__item summary:focus-visible {
	outline: 2px solid var(--telos-focus);
	outline-offset: 4px;
}

.telos-more__body {
	padding: 0 0 24px;
}

.telos-more__body img {
	max-width: 100%;
	height: auto;
}

/* ------------------------------------------------------------------
 * Core WooCommerce components, restyled (TM-005 interface standard v0.3).
 * CSS only on core templates: no template is overridden.
 * ------------------------------------------------------------------ */

/* !important: Woo's own .variations select rules (width: 100%) are more specific. */
.telos-visually-hidden {
	position: absolute !important;
	width: 1px !important;
	min-width: 0 !important;
	height: 1px !important;
	min-height: 0 !important;
	margin: -1px !important;
	padding: 0 !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

/* Buttons: primary action, 56px, ink */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.woocommerce #respond input#submit.alt,
.woocommerce .wc-proceed-to-checkout a.checkout-button,
.woocommerce #payment #place_order {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 56px;
	padding: 14px 28px;
	border: 1px solid var(--telos-ink);
	border-radius: 0;
	background: var(--telos-ink);
	color: var(--telos-white);
	font-family: var(--telos-font-ui);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.14em;
	line-height: 1.2;
	text-transform: uppercase;
	transition: background var(--telos-transition-fast), border-color var(--telos-transition-fast);
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover,
.woocommerce .wc-proceed-to-checkout a.checkout-button:hover,
.woocommerce #payment #place_order:hover {
	background: var(--telos-ink-soft);
	border-color: var(--telos-ink-soft);
	color: var(--telos-white);
}

.woocommerce a.button:focus-visible,
.woocommerce button.button:focus-visible,
.woocommerce input.button:focus-visible {
	outline: 2px solid var(--telos-focus);
	outline-offset: 3px;
}

/* Disabled: "sold out" look, never hidden */
.woocommerce button.button.alt.disabled,
.woocommerce button.button.alt.disabled:hover,
.woocommerce button.button.alt:disabled,
.woocommerce button.button.alt:disabled[disabled],
.woocommerce button.button:disabled[disabled],
.woocommerce div.product form.cart button.button.alt.disabled,
.woocommerce div.product form.cart button.button.alt.disabled:hover {
	background: #cdc6ba;
	border-color: #cdc6ba;
	color: #5c564d;
	opacity: 1;
	cursor: not-allowed;
}

/* Loading: WooCommerce adds .loading while adding to the bag */
.woocommerce a.button.loading,
.woocommerce button.button.loading {
	opacity: 1;
	padding-right: 28px;
}

.woocommerce a.button.loading::after,
.woocommerce button.button.loading::after {
	position: static;
	margin-left: 10px;
}

/* Secondary buttons in tables and notices: outlined */
.woocommerce .cart .button[name="update_cart"],
.woocommerce .coupon .button,
.woocommerce .telos-checkout-code__field .button,
.woocommerce-message .button,
.woocommerce-info .button {
	background: transparent;
	color: var(--telos-ink);
}

.woocommerce .cart .button[name="update_cart"]:hover,
.woocommerce .coupon .button:hover,
.woocommerce .telos-checkout-code__field .button:hover,
.woocommerce-message .button:hover,
.woocommerce-info .button:hover {
	background: var(--telos-ink);
	color: var(--telos-white);
}

/* Catalogue grid: every tile in a row is the same height and the action
   sits on one line across the row, however long each product name is. */
.woocommerce ul.products {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 40px 16px;
	margin: 0 0 48px;
	padding: 0;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
	display: none;
}

@media (min-width: 768px) {
	.woocommerce ul.products {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 48px 24px;
	}
}

@media (min-width: 1024px) {
	.woocommerce ul.products.columns-4 {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

/* !important: WooCommerce's float layout sets width 48% / 22.05% and margins
   on [class*="columns-"] tiles with higher specificity; the grid owns layout now. */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
	display: flex;
	flex-direction: column;
	float: none !important;
	clear: none !important;
	width: auto !important;
	margin: 0 !important;
	padding: 0;
}

.woocommerce ul.products li.product > a.woocommerce-LoopProduct-link {
	position: relative;
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
}

/* Hover image: the piece on the body, over the main image. Pointer devices
   only; on touch screens it is not displayed, so it is not downloaded. */
.woocommerce ul.products li.product img.telos-tile-image--hover {
	position: absolute;
	top: 0;
	left: 0;
	display: none;
	opacity: 0;
	transition: opacity var(--telos-transition-medium);
	pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
	.woocommerce ul.products li.product img.telos-tile-image--hover {
		display: block;
	}

	.woocommerce ul.products li.product:hover img.telos-tile-image--hover,
	.woocommerce ul.products li.product:focus-within img.telos-tile-image--hover {
		opacity: 1;
	}
}

@media (prefers-reduced-motion: reduce) {
	.woocommerce ul.products li.product img.telos-tile-image--hover {
		transition: none;
	}
}

/* Catalogue tile */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
	padding: 12px 0 4px;
	font-family: var(--telos-font-display);
	font-size: 18px;
	font-weight: 400;
	line-height: 1.3;
}

.woocommerce ul.products li.product .price,
.woocommerce div.product p.price,
.woocommerce div.product span.price {
	color: var(--telos-ink);
	font-family: var(--telos-font-ui);
	font-size: 16px;
	letter-spacing: 0.02em;
}

.woocommerce div.product p.price {
	font-size: 20px;
}

.woocommerce ul.products li.product .button {
	display: flex;
	justify-content: center;
	text-align: center;
	width: 100%;
	min-height: 48px;
	margin-top: auto;
	padding: 12px;
	font-size: 12px;
	letter-spacing: 0.1em;
	white-space: nowrap;
}

.woocommerce ul.products li.product img {
	background: var(--telos-paper-deep);
}

/* Square field; the object is placed by its focal point (inc/tile-image.php). */
.woocommerce ul.products li.product img.telos-tile-image {
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	object-position: 50% 50%;
}

/* Product page */
/* The Baskerville J hooks left under an opening bracket: room for it. */
.telos-paren {
	display: inline-block;
	margin: 0 0.03em;
}

.telos-paren--open {
	margin-right: 0.16em;
}

.woocommerce div.product .product_title {
	font-family: var(--telos-font-display);
	font-size: clamp(34px, 4.5vw, 52px);
	font-weight: 400;
	line-height: 1.08;
}

/* One square frame for every image, so the strip below never jumps when
   moving between images of different shapes. */
.woocommerce div.product div.images .flex-viewport,
.woocommerce div.product div.images .woocommerce-product-gallery__image > a {
	background: var(--telos-ink);
}

.woocommerce div.product div.images .woocommerce-product-gallery__image > a {
	display: block;
	aspect-ratio: 1 / 1;
}

.woocommerce div.product div.images .woocommerce-product-gallery__image > a > img {
	width: 100%;
	height: 100% !important;
	object-fit: cover;
}

/* Gallery: one strip of all images below the main one, scrolling sideways
   (TM-005 v1.0-r3). Six fit on a wide screen; on a phone the strip swipes. */
.woocommerce div.product div.images .flex-control-thumbs {
	display: flex;
	flex-wrap: nowrap;
	gap: 8px;
	margin: 0;
	padding: 12px 0 0;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	background: var(--telos-paper);
	counter-reset: telos-thumb;
}

.woocommerce div.product div.images .flex-control-thumbs::-webkit-scrollbar {
	display: none;
}

.woocommerce div.product div.images .flex-control-thumbs li {
	position: relative;
	flex: 0 0 calc((100% - 40px) / 6);
	width: auto;
	margin: 0;
	float: none;
	scroll-snap-align: start;
	counter-increment: telos-thumb;
}

.woocommerce div.product div.images .flex-control-thumbs li::after {
	content: "0" counter(telos-thumb);
	position: absolute;
	left: 8px;
	bottom: 6px;
	color: var(--telos-white);
	font-family: var(--telos-font-ui);
	font-size: 11px;
	letter-spacing: 0.12em;
	pointer-events: none;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.woocommerce div.product div.images .flex-control-thumbs li img {
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	outline: 1px solid transparent;
	outline-offset: -1px;
	opacity: 0.55;
	transition: opacity var(--telos-transition-fast);
}

.woocommerce div.product div.images .flex-control-thumbs li img.flex-active {
	outline-color: var(--telos-bronze-light);
}

.telos-gallery-count {
	margin: 10px 0 0;
	color: var(--telos-ink);
	font-family: var(--telos-font-ui);
	font-size: 11px;
	letter-spacing: 0.14em;
	text-align: right;
	background: var(--telos-paper);
}

.woocommerce div.product div.images .flex-viewport {
	position: relative;
	height: auto !important;
}

.woocommerce div.product div.images .flex-direction-nav {
	margin: 0;
	padding: 0;
	list-style: none;
}

.woocommerce div.product div.images .flex-direction-nav a {
	position: absolute;
	top: 50%;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin-top: -22px;
	overflow: hidden;
	background: rgba(23, 22, 19, 0.45);
	color: transparent;
	font-size: 0;
	text-decoration: none;
	transition: background var(--telos-transition-fast);
}

.woocommerce div.product div.images .flex-direction-nav a::before {
	content: "";
	width: 12px;
	height: 12px;
	border-top: 1px solid var(--telos-white);
	border-left: 1px solid var(--telos-white);
}

.woocommerce div.product div.images .flex-direction-nav .flex-prev {
	left: 12px;
}

.woocommerce div.product div.images .flex-direction-nav .flex-prev::before {
	margin-left: 5px;
	transform: rotate(-45deg);
}

.woocommerce div.product div.images .flex-direction-nav .flex-next {
	right: 12px;
}

.woocommerce div.product div.images .flex-direction-nav .flex-next::before {
	margin-right: 5px;
	transform: rotate(135deg);
}

.woocommerce div.product div.images .flex-direction-nav a:hover,
.woocommerce div.product div.images .flex-direction-nav a:focus-visible {
	background: rgba(23, 22, 19, 0.75);
}

/* The arrows go round (gallery-strip.js): an arrow at either end stays visible and active. */
.woocommerce div.product div.images .flex-direction-nav .flex-disabled {
	opacity: 1;
	pointer-events: auto;
}

@media (max-width: 767px) {
	.woocommerce div.product div.images .flex-control-thumbs li {
		flex-basis: calc((100% - 24px) / 4.4);
	}
}

.woocommerce div.product div.images .flex-control-thumbs li img.flex-active,
.woocommerce div.product div.images .flex-control-thumbs li img:hover {
	opacity: 1;
}

.woocommerce div.product div.images .woocommerce-product-gallery__trigger {
	border-radius: 0;
	background: var(--telos-paper);
}

/* Variation choice: label above, buttons 48px */
.woocommerce div.product form.cart .variations,
.woocommerce div.product form.cart .variations tbody,
.woocommerce div.product form.cart .variations tr,
.woocommerce div.product form.cart .variations th,
.woocommerce div.product form.cart .variations td {
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
	background: none;
	text-align: left;
}

.woocommerce div.product form.cart .variations {
	margin-bottom: 8px;
}

.woocommerce div.product form.cart .variations th.label label,
.woocommerce div.product form.cart .variations td.label label {
	display: block;
	margin: 16px 0 10px;
	color: var(--telos-ink);
	font-family: var(--telos-font-ui);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.14em;
	line-height: 16px;
	text-transform: uppercase;
}

.woocommerce div.product form.cart .variations select {
	width: 100%;
	min-height: 48px;
	margin: 0;
	padding: 0 12px;
	border: 1px solid var(--telos-line);
	border-radius: 0;
	background-color: var(--telos-white);
	color: var(--telos-ink);
	font-size: 16px;
}

.telos-choices {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.telos-choice {
	flex: 1 1 calc(50% - 4px);
	min-height: 48px;
	padding: 10px 14px;
	border: 1px solid var(--telos-line);
	border-radius: 0;
	background: var(--telos-white);
	color: var(--telos-ink);
	font-family: var(--telos-font-ui);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.1em;
	line-height: 1.3;
	text-transform: uppercase;
	cursor: pointer;
	transition: background var(--telos-transition-fast), color var(--telos-transition-fast), border-color var(--telos-transition-fast);
}

.telos-choices--list .telos-choice {
	flex-basis: 100%;
	text-align: left;
}

.telos-choice:hover {
	border-color: var(--telos-ink);
}

.telos-choice[aria-pressed="true"] {
	border-color: var(--telos-ink);
	background: var(--telos-ink);
	color: var(--telos-white);
}

.telos-choice:focus-visible {
	outline: 2px solid var(--telos-focus);
	outline-offset: 3px;
}

.telos-choice.is-unavailable {
	color: var(--telos-muted);
	text-decoration: line-through;
	cursor: not-allowed;
}

.woocommerce div.product form.cart .reset_variations {
	display: inline-block;
	min-height: 44px;
	margin-top: 4px;
	line-height: 44px;
	color: var(--telos-muted);
	font-family: var(--telos-font-ui);
	font-size: 13px;
}

.woocommerce div.product .woocommerce-variation-price {
	margin: 16px 0 4px;
}

/* Purchase row: quantity beside a full-width action */
.woocommerce div.product form.cart:not(.variations_form),
.woocommerce div.product form.cart .woocommerce-variation-add-to-cart {
	display: flex;
	gap: 8px;
	margin-top: 16px;
}

.woocommerce div.product form.cart div.quantity {
	float: none;
	margin: 0;
}

.woocommerce .quantity .qty {
	width: 64px;
	min-height: 56px;
	border: 1px solid var(--telos-line);
	border-radius: 0;
	background: var(--telos-white);
	color: var(--telos-ink);
	font-size: 16px;
}

.woocommerce div.product form.cart .button {
	flex: 1;
	float: none;
}

/* The details list sits below the two columns on desktop */
.woocommerce div.product .telos-more {
	max-width: 75ch;
}

.woocommerce div.product .telos-more .woocommerce-product-attributes {
	margin: 0;
	border: 0;
}

.woocommerce div.product .telos-more .woocommerce-product-attributes th,
.woocommerce div.product .telos-more .woocommerce-product-attributes td {
	padding: 8px 0;
	border: 0;
	border-bottom: 1px solid var(--telos-line);
	background: none;
	font-style: normal;
	text-align: left;
}

.woocommerce div.product .telos-more .woocommerce-product-attributes th {
	width: 40%;
	font-family: var(--telos-font-ui);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.woocommerce div.product .telos-more .woocommerce-product-attributes td p {
	margin: 0;
	padding: 0;
}

/* Categories double as tags in the current data (up to 20 per product).
   Hidden until the taxonomy is rebuilt (TM-005 requirements, section 6). */
.woocommerce div.product .product_meta .posted_in,
.woocommerce div.product .product_meta .tagged_as {
	display: none;
}

/* YITH wishlist: the secondary action, an outlined button under the primary one */
.woocommerce div.product .yith-wcwl-add-to-wishlist {
	width: 100%;
	margin: 8px 0 0;
	text-align: left;
}

.woocommerce div.product .yith-wcwl-add-to-wishlist a,
.woocommerce div.product .yith-wcwl-add-to-wishlist .yith-wcwl-wishlistexistsbrowse a,
.woocommerce div.product .yith-wcwl-add-to-wishlist .yith-wcwl-wishlistaddedbrowse a {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	min-height: 48px;
	padding: 12px 20px;
	border: 1px solid var(--telos-ink);
	background: transparent;
	color: var(--telos-ink);
	font-family: var(--telos-font-ui);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	text-decoration: none;
	transition: background var(--telos-transition-fast), color var(--telos-transition-fast);
}

.woocommerce div.product .yith-wcwl-add-to-wishlist a:hover,
.woocommerce div.product .yith-wcwl-add-to-wishlist a:focus-visible {
	background: var(--telos-ink);
	color: var(--telos-white);
}

.woocommerce div.product .yith-wcwl-add-to-wishlist a svg,
.woocommerce div.product .yith-wcwl-add-to-wishlist a img {
	width: 18px;
	height: 18px;
}

.woocommerce div.product .product_meta {
	color: var(--telos-muted);
	font-family: var(--telos-font-ui);
	font-size: 13px;
}

/* Related products */
.woocommerce .related.products > h2 {
	margin: 64px 0 24px;
	font-family: var(--telos-font-display);
	font-size: clamp(28px, 3.4vw, 40px);
	font-weight: 400;
}

/* Form fields: 56px, persistent label, error beside the field */
.woocommerce form .form-row label,
.woocommerce-page form .form-row label {
	margin-bottom: 8px;
	color: var(--telos-ink);
	font-family: var(--telos-font-ui);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.12em;
	line-height: 16px;
	text-transform: uppercase;
}

.woocommerce form .form-row .input-text,
.woocommerce form .form-row select,
.woocommerce-page form .form-row .input-text,
.woocommerce-page form .form-row select,
.woocommerce .coupon .input-text,
.woocommerce form .form-row textarea {
	min-height: 56px;
	padding: 14px 16px;
	border: 1px solid var(--telos-line);
	border-radius: 0;
	background: var(--telos-white);
	color: var(--telos-ink);
	font-family: var(--telos-font-ui);
	font-size: 16px;
	line-height: 24px;
}

.woocommerce form .form-row textarea {
	min-height: 112px;
}

.woocommerce form .form-row .input-text:focus,
.woocommerce form .form-row select:focus {
	border-color: var(--telos-ink);
	outline: 2px solid var(--telos-focus);
	outline-offset: 2px;
}

/* A valid field needs no colour: no green outside the palette */
.woocommerce form .form-row.woocommerce-validated input.input-text,
.woocommerce form .form-row.woocommerce-validated select,
.woocommerce form .form-row.woocommerce-validated .select2-container:not(.select2-container--open) .select2-selection {
	border-color: var(--telos-line);
}

.woocommerce form .form-row.woocommerce-invalid input.input-text,
.woocommerce form .form-row.woocommerce-invalid select,
.woocommerce form .form-row.woocommerce-invalid .select2-container .select2-selection {
	border-color: var(--telos-danger);
}

.woocommerce form .form-row.woocommerce-invalid label,
.woocommerce form .form-row .checkout-inline-error-message,
.woocommerce form .form-row .required {
	color: var(--telos-danger);
}

.woocommerce form .form-row .checkout-inline-error-message {
	margin-top: 6px;
	font-family: var(--telos-font-ui);
	font-size: 14px;
}

.woocommerce .select2-container .select2-selection--single {
	height: 56px;
	border: 1px solid var(--telos-line);
	border-radius: 0;
	background: var(--telos-white);
}

.woocommerce .select2-container .select2-selection--single .select2-selection__rendered {
	padding: 0 16px;
	line-height: 54px;
	font-family: var(--telos-font-ui);
	font-size: 16px;
}

.woocommerce .select2-container .select2-selection--single .select2-selection__arrow {
	height: 54px;
}

/* Notices */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	border-top: 0;
	border-left: 3px solid var(--telos-bronze);
	background: var(--telos-white);
	color: var(--telos-ink);
	font-family: var(--telos-font-ui);
	font-size: 15px;
}

.woocommerce-error {
	border-left-color: var(--telos-danger);
}

.woocommerce-message::before,
.woocommerce-info::before {
	color: var(--telos-bronze);
}

.woocommerce-error::before {
	color: var(--telos-danger);
}

/* Cart and checkout tables: fine rules, no boxes */
.woocommerce table.shop_table {
	border: 0;
	border-top: 1px solid var(--telos-line);
	border-radius: 0;
	font-family: var(--telos-font-ui);
	font-size: 15px;
}

.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
	padding: 16px 8px;
	border-top: 0;
	border-bottom: 1px solid var(--telos-line);
}

.woocommerce table.shop_table th {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.woocommerce table.shop_table td.product-name a {
	color: var(--telos-ink);
	font-family: var(--telos-font-display);
	font-size: 18px;
	text-decoration: none;
}

.woocommerce table.cart img {
	width: 72px;
	background: var(--telos-paper-deep);
}

/* "Remove" is a word (inc/commerce-words.php), so it sizes to its text and is
   not clipped under the thumbnail on wide screens. */
.woocommerce a.remove {
	width: auto;
	height: auto;
	padding: 0 4px;
	border-radius: 0;
	background: none !important;
	color: var(--telos-muted) !important; /* WooCommerce sets it with !important */
	font-family: var(--telos-font-ui);
	font-size: 12px;
	font-weight: 400;
	letter-spacing: 0.12em;
	line-height: 44px;
	text-decoration: underline;
	text-transform: uppercase;
}

.woocommerce a.remove:hover {
	background: none !important;
	color: var(--telos-ink) !important;
}

.woocommerce .cart-collaterals .cart_totals h2,
.woocommerce-checkout h3,
#order_review_heading {
	font-family: var(--telos-font-display);
	font-size: 28px;
	font-weight: 400;
}

.woocommerce .wc-proceed-to-checkout a.checkout-button {
	width: 100%;
	margin-bottom: 0;
}

/* Payment box */
.woocommerce-checkout #payment {
	border-radius: 0;
	background: var(--telos-paper-deep);
}

.woocommerce-checkout #payment div.payment_box {
	border-radius: 0;
	background: var(--telos-white);
	color: var(--telos-ink);
}

.woocommerce-checkout #payment div.payment_box::before {
	border-bottom-color: var(--telos-white);
}

.woocommerce-checkout #payment #place_order {
	width: 100%;
	float: none;
}

.woocommerce-checkout #payment ul.payment_methods li label {
	font-family: var(--telos-font-ui);
	font-size: 16px;
}

/* 44px touch target for radio and checkbox rows */
.woocommerce-checkout #payment ul.payment_methods li,
.woocommerce ul#shipping_method li,
.woocommerce form .form-row .woocommerce-form__label-for-checkbox {
	min-height: 44px;
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.woocommerce-checkout #payment ul.payment_methods li .payment_box {
	flex-basis: 100%;
}

/* Account */
.woocommerce-account .woocommerce-MyAccount-navigation ul {
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--telos-line);
	font-family: var(--telos-font-ui);
}

.woocommerce-account .woocommerce-MyAccount-navigation li a {
	display: block;
	min-height: 44px;
	padding: 12px 0;
	border-bottom: 1px solid var(--telos-line);
	color: var(--telos-ink);
	text-decoration: none;
}

.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a {
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
	.telos-choice,
	.woocommerce a.button,
	.woocommerce button.button {
		transition: none;
	}
}

/* Tradition and intention pages (TM-008 T05, T06): the text under the
   title, before the grid. */
.woocommerce-products-header .term-description {
	max-width: 720px;
	margin: 16px 0 48px;
	font-size: 18px;
	line-height: 1.6;
}

.woocommerce-products-header .term-description > * + * {
	margin-top: 1em;
}

.woocommerce-products-header .term-description h2 {
	margin: 0 0 0.6em;
	font-size: clamp(22px, 2.4vw, 28px);
	font-weight: 400;
	line-height: 1.25;
}

.woocommerce-products-header .term-description .telos-signature {
	margin-top: 1.4em;
	font-family: var(--telos-font-display);
	font-style: italic;
	font-size: 22px;
}

/* A portrait image (the piece on the body) fills the square frame, placed by
   its focal point (inline object-position, inc/gallery.php). Only a portrait
   image without a focal point gets this class and is shown whole on the ink
   ground, so the piece is never cut. */
.woocommerce div.product div.images .woocommerce-product-gallery__image > a > img.telos-gallery-portrait {
	object-fit: contain;
}

/* Breadcrumb: WooCommerce's grey #767676 is 3.92:1 on paper; the house muted
   ink is 5.38:1 (WCAG 2.1 AA, accessibility test 07.10.2026). */
.woocommerce .woocommerce-breadcrumb,
.woocommerce .woocommerce-breadcrumb a {
	color: var(--telos-muted, #666057);
}

/* Cart (Omer, 11.10.2026: the old cart read better): the page uses the full
   width, the piece is shown large, and the totals run the width of the page
   under the list, with the way to the checkout at their foot. */
.woocommerce-cart .entry-header,
.woocommerce-cart .entry-content,
.woocommerce-checkout .entry-header,
.woocommerce-checkout .entry-content {
	width: min(100%, 1120px);
}

.woocommerce table.cart img {
	width: clamp(88px, 12vw, 148px);
}

.woocommerce table.cart td.product-thumbnail {
	width: clamp(104px, 14vw, 172px);
	padding-left: 0;
}

.woocommerce table.cart td.product-name a {
	font-size: clamp(19px, 1.8vw, 24px);
	line-height: 1.25;
}

.woocommerce table.cart td.product-name dl.variation,
.woocommerce table.cart td.product-name .variation {
	margin-top: 8px;
	color: var(--telos-muted);
	font-size: 14px;
}

.woocommerce table.cart td.product-price,
.woocommerce table.cart td.product-subtotal {
	font-size: 17px;
	white-space: nowrap;
}

.woocommerce table.cart .quantity .qty {
	width: 76px;
	min-height: 52px;
	font-size: 17px;
}

.woocommerce-cart .cart-collaterals {
	margin-top: clamp(40px, 5vw, 72px);
}

.woocommerce-cart .cart-collaterals .cart_totals {
	float: none;
	width: 100%;
}

.woocommerce-cart .cart-collaterals .cart_totals table.shop_table th {
	width: 34%;
}

.woocommerce-cart .cart-collaterals .cart_totals table.shop_table td {
	font-size: 17px;
}

.woocommerce-cart .cart-collaterals .cart_totals .order-total td {
	font-size: 20px;
}

.woocommerce-cart .wc-proceed-to-checkout {
	padding: 28px 0 0;
}

.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
	width: auto;
	min-width: min(100%, 320px);
	min-height: 56px;
	padding-inline: 40px;
	font-size: 13px;
}

/* Pay for order (iCredit in a frame): the frame takes the width of the page. */
.woocommerce-order-pay .entry-header,
.woocommerce-order-pay .entry-content {
	width: min(100%, 1120px);
}

.woocommerce-order-pay iframe {
	display: block;
	width: 100%;
	border: 1px solid var(--telos-line);
	background: var(--telos-white);
}

/* Catalogue: the row of forms above the grid (inc/pages.php). Plain links to
   real catalogue pages; it scrolls sideways on a phone. */
.telos-forms {
	clear: both;
	margin: 0 0 clamp(24px, 3vw, 40px);
	border-top: 1px solid var(--telos-line);
	border-bottom: 1px solid var(--telos-line);
}

.telos-forms ul {
	display: flex;
	margin: 0;
	padding: 0;
	overflow-x: auto;
	gap: clamp(20px, 3vw, 44px);
	list-style: none;
	scrollbar-width: none;
}

.telos-forms ul::-webkit-scrollbar {
	display: none;
}

.telos-forms a {
	display: inline-flex;
	min-height: 52px;
	align-items: center;
	border-bottom: 2px solid transparent;
	color: var(--telos-muted);
	font-family: var(--telos-font-ui);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.15em;
	text-decoration: none;
	text-transform: uppercase;
	white-space: nowrap;
}

.telos-forms a:hover,
.telos-forms a[aria-current="page"] {
	border-bottom-color: var(--telos-ink);
	color: var(--telos-ink);
}

/* At the button: sending, duties, returns (inc/product-details.php). */
.telos-assurance {
	margin: 20px 0 0;
	padding: 16px 0 0;
	border-top: 1px solid var(--telos-line);
	color: var(--telos-muted);
	font-size: 15px;
	line-height: 1.5;
	list-style: none;
}

.telos-assurance li + li {
	margin-top: 6px;
}

.telos-assurance strong {
	color: var(--telos-ink);
	font-weight: 600;
}

.telos-assurance a {
	color: var(--telos-ink);
	text-underline-offset: 3px;
}

/* The first lines on a phone (inc/product-lead.php) */
.telos-intention {
	margin: 4px 0 6px;
	font-family: var(--telos-serif, Georgia, serif);
	font-size: 1.15rem;
	line-height: 1.45;
	color: var(--telos-ink);
}

.telos-cast {
	margin: 0 0 14px;
	font-size: 0.78rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--telos-ink-soft);
}

.telos-hour-line {
	margin: 14px 0 0;
	font-size: 0.92rem;
	color: var(--telos-ink);
}

.telos-readmore > summary {
	display: inline-block;
	min-height: 44px;
	line-height: 44px;
	cursor: pointer;
	text-decoration: underline;
	text-underline-offset: 3px;
	color: var(--telos-ink);
}

.telos-readmore[open] > summary {
	display: none;
}

/* ------------------------------------------------------------------
 * Phone pass, 25.10.2026 (inc/commerce-words.php)
 * ---------------------------------------------------------------- */

/* The sort: a quiet line, no box. */
.woocommerce .woocommerce-ordering {
	display: flex;
	align-items: baseline;
	gap: 12px;
	margin-bottom: 24px;
}
.telos-order-label {
	float: right;
	margin: 0 12px 0 0;
	color: var(--telos-muted);
	font-family: var(--telos-font-ui);
	font-size: 11px;
	letter-spacing: 0.16em;
	line-height: 44px;
	text-transform: uppercase;
}
.woocommerce .woocommerce-ordering select.orderby {
	min-height: 44px;
	padding: 0 22px 0 0;
	border: 0;
	border-bottom: 1px solid var(--telos-ink);
	border-radius: 0;
	background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23171613' stroke-width='1.2'/%3E%3C/svg%3E") no-repeat right center;
	color: var(--telos-ink);
	font-family: var(--telos-font-display);
	font-size: 17px;
	appearance: none;
	-webkit-appearance: none;
	cursor: pointer;
}

/* The bag on a phone: one card per piece, not a table with labels. */
@media (max-width: 767px) {
	.woocommerce-cart table.shop_table_responsive.cart tr.cart_item {
		display: grid;
		grid-template-columns: 1fr auto;
		gap: 6px 16px;
		padding: 20px 0;
		border-bottom: 1px solid var(--telos-line);
	}
	.woocommerce-cart table.shop_table_responsive.cart tr.cart_item td {
		display: block;
		padding: 0;
		border: 0;
		background: transparent;
		text-align: left;
	}
	.woocommerce-cart table.shop_table_responsive.cart tr.cart_item td::before {
		display: none;
	}
	.woocommerce-cart table.cart td.product-thumbnail,
	.woocommerce-cart table.cart td.product-subtotal {
		display: none !important;
	}
	.woocommerce-cart table.cart td.product-name {
		grid-column: 1;
		grid-row: 1;
		font-family: var(--telos-font-display);
		font-size: 18px;
		line-height: 1.35;
		text-align: left !important;
	}
	.woocommerce-cart table.cart td.product-name .variation,
	.woocommerce-cart table.cart td.product-name dl {
		margin-top: 6px;
		color: var(--telos-muted);
		font-family: var(--telos-font-ui);
		font-size: 12px;
		letter-spacing: 0.06em;
	}
	.woocommerce-cart table.cart td.product-price {
		grid-column: 2;
		grid-row: 1;
		font-family: var(--telos-font-ui);
		font-size: 15px;
		text-align: right !important;
	}
	.woocommerce-cart table.cart td.product-quantity {
		grid-column: 1;
		grid-row: 2;
		text-align: left !important;
	}
	.woocommerce-cart table.cart td.product-quantity .qty {
		width: 64px;
		min-height: 44px;
	}
	.woocommerce-cart table.cart td.product-remove {
		grid-column: 2;
		grid-row: 2;
		align-self: center;
		text-align: right !important;
	}
	.woocommerce-cart table.cart td.product-remove a.remove {
		width: auto;
		height: auto;
		border-radius: 0;
		background: none !important;
		color: var(--telos-muted) !important;
		font-family: var(--telos-font-ui);
		font-size: 12px;
		font-weight: 400;
		letter-spacing: 0.12em;
		line-height: 44px;
		text-decoration: underline;
		text-transform: uppercase;
	}
	.woocommerce-cart .cart_totals table.shop_table_responsive tr td::before,
	.woocommerce-cart .cart_totals th {
		color: var(--telos-muted);
		font-family: var(--telos-font-ui);
		font-size: 11px;
		font-weight: 400;
		letter-spacing: 0.16em;
		text-transform: uppercase;
	}
	.woocommerce-cart .cart_totals tr.order-total td {
		font-family: var(--telos-font-display);
		font-size: 20px;
	}
	.woocommerce-cart .cart_totals tr td,
	.woocommerce-cart .cart_totals tr th {
		background: transparent !important;
	}
}

/* The coupon behind "Have a code?" (assets/js/bag.js), and no "Update cart". */
.telos-coupon-toggle {
	min-height: 44px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--telos-ink);
	font-family: var(--telos-font-ui);
	font-size: 13px;
	text-decoration: underline;
	cursor: pointer;
}
.woocommerce-cart-form [name="update_cart"] {
	display: none !important;
}
.woocommerce-cart-form td.actions {
	background: transparent !important;
}

/* The line that takes the place of a purchase form on a piece that cannot be ordered now. */
.telos-archive-line--out,
.telos-archive-line--edition-closed {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 14px;
	margin: 24px 0;
}

/* reCAPTCHA: the badge is replaced by the line under the form (inc/commerce-words.php). */
.grecaptcha-badge {
	visibility: hidden !important;
}
.telos-recaptcha-note {
	margin-top: 14px;
	color: var(--telos-muted);
	font-family: var(--telos-font-ui);
	font-size: 11px;
	line-height: 1.5;
}
.telos-recaptcha-note a {
	color: inherit;
}

/* Catalogue tiles, less text (inc/commerce-words.php, 25.10.2026). */
ul.products li.product .woocommerce-loop-product__title {
	margin-bottom: 2px !important;
	font-size: 17px !important;
	line-height: 1.3 !important;
}
.telos-tile-date {
	display: block;
	margin: 2px 0 6px;
	color: var(--telos-muted);
	font-family: var(--telos-font-ui);
	font-size: 12px;
	letter-spacing: 0.04em;
}
ul.products li.product .price {
	font-size: 14px !important;
	letter-spacing: 0.04em;
}

/* Touch targets of at least 44px (accessibility review 27.10.2026). */
.woocommerce div.product div.images .woocommerce-product-gallery__trigger {
	min-width: 44px !important;
	min-height: 44px !important;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
}
.woocommerce .woocommerce-breadcrumb a {
	display: inline-block;
	padding: 12px 0;
}

/* Form field borders at 3:1 against the paper (WCAG 1.4.11; QA council 28.10.2026, A3). Dividers keep --telos-line. */
.woocommerce form .input-text,
.woocommerce form select,
.woocommerce .quantity .qty,
.woocommerce div.product form.cart .variations select,
.wpcf7 input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
.wpcf7 textarea,
.wpcf7 select {
	border-color: #8a8378;
}

/* ------------------------------------------------------------------
 * Sharon's notes, 03.11.2026
 * ---------------------------------------------------------------- */

/* The stock word on an image: quiet, on the image and not a white sticker. */
.telos-badge,
.telos-badge--last,
.telos-badge--ready {
	border: 0;
	background: rgba(23, 20, 16, 0.72);
	color: var(--telos-paper);
}

/* No magnifier in a white box: the image itself opens large (assets/js/gallery-strip.js). */
.woocommerce div.product div.images .woocommerce-product-gallery__trigger {
	opacity: 0;
	pointer-events: none;
}
.woocommerce div.product div.images .woocommerce-product-gallery__trigger:focus-visible {
	opacity: 1;
	pointer-events: auto;
}
.woocommerce div.product div.images .woocommerce-product-gallery__image {
	cursor: zoom-in;
}

/* Chain and metal: one line that opens. */
.woocommerce div.product form.cart .variations select {
	width: 100%;
	min-height: 48px;
	padding: 0 12px;
	border: 1px solid #8a8378;
	border-radius: 0;
	background-color: var(--telos-paper);
	color: var(--telos-ink);
	font-family: var(--telos-font-ui);
	font-size: 16px;
}

.telos-line-total {
	align-self: center;
	margin-left: 12px;
	font-family: var(--telos-font-ui);
	font-size: 15px;
	white-space: nowrap;
}

.telos-more-links {
	margin: -32px 0 48px;
}
.telos-more-links a {
	display: flex;
	align-items: center;
	min-height: 56px;
	border-bottom: 1px solid var(--telos-line);
	font-family: var(--telos-font-display);
	font-size: 20px;
	color: inherit;
	text-decoration: none;
}
.telos-more-links a:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* A portrait image shown whole: sand beside it, not black bars (Omer 03.11.2026). */
.woocommerce div.product div.images .woocommerce-product-gallery__image:has(> a > img.telos-gallery-portrait),
.woocommerce div.product div.images .woocommerce-product-gallery__image:has(> a > img.telos-gallery-portrait) > a,
.woocommerce div.product div.images .woocommerce-product-gallery__image > a > img.telos-gallery-portrait {
	background: var(--telos-paper-deep);
}

/* Order page (thank you, My Account): the billing and shipping boxes side by side at one height,
   so their bottoms line up even though only billing carries the email (Omer 25.11.2026). */
.woocommerce .woocommerce-customer-details .col2-set.addresses {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 24px 0;
}
.woocommerce .woocommerce-customer-details .col2-set.addresses::before,
.woocommerce .woocommerce-customer-details .col2-set.addresses::after {
	display: none;
}
.woocommerce .woocommerce-customer-details .col2-set.addresses .woocommerce-column {
	float: none;
	display: flex;
	flex-direction: column;
}
.woocommerce .woocommerce-customer-details .col2-set.addresses .woocommerce-column address {
	flex: 1 1 auto;
}
@media (max-width: 768px) {
	.woocommerce .woocommerce-customer-details .col2-set.addresses .woocommerce-column {
		width: 100%;
	}
}

/* The code field: not in the bag, at checkout in the order summary (inc/commerce-words.php,
   assets/js/checkout-code.js, Omer 25.11.2026). Full width, text at the size of the other fields. */
.woocommerce-cart-form .coupon {
	display: none !important;
}
/* With the code field and "Update cart" gone, the actions row is empty: no blank band under the pieces.
   bag.js still clicks the hidden "Update cart" button, which works while hidden. */
.woocommerce-cart-form tr:has(> td.actions) {
	display: none;
}
.telos-checkout-code {
	margin: 24px 0;
	padding: 16px 0;
	border-top: 1px solid var(--telos-line);
	border-bottom: 1px solid var(--telos-line);
}
.telos-checkout-code .telos-coupon-toggle {
	font-size: 16px;
	text-underline-offset: 3px;
}
.telos-checkout-code__field {
	display: flex;
	gap: 12px;
	margin-top: 12px;
}
.telos-checkout-code__field[hidden] {
	display: none;
}
.woocommerce .telos-checkout-code__field .input-text {
	flex: 1 1 auto;
	min-width: 0;
	min-height: 56px;
	padding: 14px 16px;
	border: 1px solid var(--telos-line);
	border-radius: 0;
	background: var(--telos-white);
	color: var(--telos-ink);
	font-family: var(--telos-font-ui);
	font-size: 16px;
	line-height: 24px;
	letter-spacing: 0.04em;
}
.woocommerce .telos-checkout-code__field .input-text[aria-invalid="true"] {
	border-color: var(--telos-danger);
}
.woocommerce .telos-checkout-code__field .button {
	flex: 0 0 auto;
	min-height: 56px;
}
.telos-checkout-code__error {
	margin-top: 8px;
	color: var(--telos-danger);
	font-family: var(--telos-font-ui);
	font-size: 15px;
	line-height: 22px;
}
.telos-checkout-code__notice .woocommerce-message {
	margin: 12px 0 0;
}
