/*
 * TSV shop design system (2026-10-14 design feedback, "Simulare magazin
 * pervaz" mockup + rules):
 *   - one font (Raleway) and one size per text category: page title,
 *     section title, field label, field text, body text;
 *   - square corners on every frame (photos, buttons, boxes, fields);
 *   - everything left-aligned;
 *   - a larger gap between main sections than between a title and its
 *     explanatory text;
 *   - fields: green border, light-gray fill, gray text until something is
 *     chosen/typed, near-black after.
 *
 * Loaded only on the shop pages (tsv_ds_is_shop_page() in functions.php adds
 * the `tsv-ds` body class and enqueues this file): catalog, product pages,
 * cart, checkout, My Account (incl. the consultant's Oferte / Clienți
 * potențiali and Administrare tabs). The exterior sill calculator has its own
 * matching rules in sill-price-calculator.php (same values).
 *
 * Every selector starts with `#top.tsv-ds` (Enfold's body id + our class):
 * two ids out-rank Enfold's own "#top .main_color ..." rules and WooCommerce
 * Blocks' class-only rules regardless of stylesheet load order, so very few
 * !important are needed. Display only -- no rule here hides or moves any
 * checkout element (see DELIVERY-TAX-DESIGN.md's standing rule).
 */

#top.tsv-ds {
	--tsv-frame: #adadad;
	--tsv-field-border: #dade58;
	--tsv-field-bg: #f7f7f5;
	--tsv-text: #1a1a1a;
	--tsv-text-soft: #4a4a4a;
	--tsv-text-muted: #8f8f8f;
	--tsv-accent: #dade58;
	--tsv-accent-hover: #c7cb4e;
	--tsv-secondary: #adadad;
	--tsv-secondary-hover: #9a9a9a;
	--tsv-info-bg: #f2f5e3;

	--tsv-page-title: 32px;
	--tsv-title: 18px;
	--tsv-label: 14px;
	--tsv-field: 16px;
	--tsv-body: 14px;

	--tsv-section-gap: 40px;
	--tsv-inner-gap: 8px;
}

/* ---------------------------------------------------------------------
 * 1. Typography
 * ------------------------------------------------------------------ */
#top.tsv-ds #main,
#top.tsv-ds #main input,
#top.tsv-ds #main select,
#top.tsv-ds #main textarea,
#top.tsv-ds #main button {
	font-family: 'Raleway', sans-serif;
}

/* Page titles (the logged-out My Account pages use an <h2> for theirs, e.g.
 * "Autentificare" -- !important + the extra .main_color so it beats the
 * section-title rule below). */
#top.tsv-ds #main .main_color h1,
#top.tsv-ds #main .main_color .product_title,
#top.tsv-ds.woocommerce-account #main .main_color .woocommerce > h2,
#top.tsv-ds.woocommerce-account #main .main_color .tsv-login-wrap > h2 {
	font-size: var(--tsv-page-title) !important;
	font-weight: 700 !important;
	line-height: 1.15;
	color: var(--tsv-text);
	text-align: left;
	letter-spacing: 0 !important;
	text-transform: none !important;
}

/* Section titles (white-background content only: the dark "Produse
 * similare" band keeps its own light heading color). */
#top.tsv-ds #main .main_color h2,
#top.tsv-ds #main .main_color h3,
#top.tsv-ds #main .main_color legend,
#top.tsv-ds #main .wc-block-components-title,
#top.tsv-ds #main .wc-block-components-checkout-step__title,
#top.tsv-ds #main .wc-block-cart__totals-title,
#top.tsv-ds #main .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-checkout-order-summary__title-text,
#top.tsv-ds #main .woocommerce-tabs .panel h2 {
	font-size: var(--tsv-title) !important;
	font-weight: 700 !important;
	line-height: 1.35;
	color: var(--tsv-text);
	text-align: left;
	letter-spacing: 0 !important;
	text-transform: none !important;
}
#top.tsv-ds #main .alternate_color h2,
#top.tsv-ds #main .alternate_color h3 {
	font-size: var(--tsv-title);
	font-weight: 700;
	letter-spacing: 0;
	text-transform: none;
}

/* Body text */
#top.tsv-ds #main .main_color p,
#top.tsv-ds #main .main_color li,
#top.tsv-ds #main .main_color td,
#top.tsv-ds #main .main_color th,
#top.tsv-ds #main .main_color address,
#top.tsv-ds #main .main_color dd,
#top.tsv-ds #main .main_color dt,
#top.tsv-ds #main .main_color .woocommerce-MyAccount-content,
#top.tsv-ds #main .wp-block-woocommerce-cart,
#top.tsv-ds #main .wp-block-woocommerce-checkout {
	font-size: var(--tsv-body);
	line-height: 1.6;
	text-align: left;
}
#top.tsv-ds #main .main_color .woocommerce-tabs .panel p,
#top.tsv-ds #main .main_color .woocommerce-tabs .panel li {
	font-size: var(--tsv-body);
	color: var(--tsv-text-soft);
}

/* Field labels (classic forms + the variation table on product pages) */
#top.tsv-ds #main .main_color form label,
#top.tsv-ds #main .main_color form label span {
	font-size: var(--tsv-label);
	font-weight: 600;
	color: var(--tsv-text);
	text-align: left;
	text-transform: none;
	letter-spacing: 0;
}
#top.tsv-ds #main .main_color form label .required,
#top.tsv-ds #main .main_color form label abbr {
	color: var(--tsv-text);
}

/* Product names and prices: dark text, not the light lime link color
 * (cart lines, order summary, product page price, quote lists). */
#top.tsv-ds #main .main_color .wc-block-components-product-name,
#top.tsv-ds #main .main_color .woocommerce-table__product-name a,
#top.tsv-ds #main .main_color .product-name a {
	color: var(--tsv-text);
	font-weight: 700 !important;
	font-size: var(--tsv-body) !important;
	line-height: 1.4;
}
#top.tsv-ds #main .wc-block-components-order-summary-item__total-price,
#top.tsv-ds #main .wc-block-components-order-summary-item__individual-prices {
	font-size: var(--tsv-body);
	color: var(--tsv-text);
}
#top.tsv-ds #main .main_color .summary .price,
#top.tsv-ds #main .main_color .summary .price .amount,
#top.tsv-ds #main .wc-block-components-product-price,
#top.tsv-ds #main .wc-block-components-product-price .wc-block-components-formatted-money-amount,
#top.tsv-ds #main .wc-block-formatted-money-amount,
#top.tsv-ds #main .main_color .woocommerce-Price-amount {
	color: var(--tsv-text);
}
#top.tsv-ds #main .main_color .summary p.price {
	font-size: var(--tsv-title);
	font-weight: 700;
	margin: var(--tsv-inner-gap) 0 16px;
}

/* ---------------------------------------------------------------------
 * 2. Fields: green border, light-gray fill, square, 16px text; gray while
 *    empty / on a blank option, near-black once filled or chosen.
 *    (Blocks' floating-label inputs keep their own height/padding.)
 * ------------------------------------------------------------------ */
#top.tsv-ds #main input[type="text"],
#top.tsv-ds #main input[type="email"],
#top.tsv-ds #main input[type="tel"],
#top.tsv-ds #main input[type="password"],
#top.tsv-ds #main input[type="number"],
#top.tsv-ds #main input[type="search"],
#top.tsv-ds #main input[type="url"],
#top.tsv-ds #main input[type="date"],
#top.tsv-ds #main input[type="time"],
#top.tsv-ds #main input:not([type]),
#top.tsv-ds #main select,
#top.tsv-ds #main textarea {
	background-color: var(--tsv-field-bg);
	border: 1px solid var(--tsv-field-border) !important;
	border-radius: 0 !important;
	color: var(--tsv-text);
	font-size: var(--tsv-field);
	box-shadow: none;
}
#top.tsv-ds #main input::placeholder,
#top.tsv-ds #main textarea::placeholder {
	color: var(--tsv-text-muted);
	opacity: 1;
}
#top.tsv-ds #main select:has(option[value=""]:checked) {
	color: var(--tsv-text-muted);
}
/* Classic (non-Blocks) single-line fields: one height everywhere. */
#top.tsv-ds #main .main_color form input[type="text"],
#top.tsv-ds #main .main_color form input[type="email"],
#top.tsv-ds #main .main_color form input[type="tel"],
#top.tsv-ds #main .main_color form input[type="password"],
#top.tsv-ds #main .main_color form input[type="number"],
#top.tsv-ds #main .main_color form input[type="search"],
#top.tsv-ds #main .main_color form input[type="url"],
#top.tsv-ds #main .main_color form input[type="time"],
#top.tsv-ds #main .main_color form input:not([type]),
#top.tsv-ds #main .main_color form select {
	min-height: 44px;
	padding: 8px 12px;
	box-sizing: border-box;
	margin-bottom: 0;
	line-height: 1.4;
}
#top.tsv-ds #main .main_color form textarea {
	padding: 10px 12px;
	line-height: 1.5;
}
/* Blocks checkout/cart text inputs + selects (country/județ, Tip client). */
#top.tsv-ds #main .wc-block-components-text-input input,
#top.tsv-ds #main .wc-block-components-textarea,
#top.tsv-ds #main .wc-blocks-components-select .wc-blocks-components-select__select,
#top.tsv-ds #main .wc-block-components-combobox .components-combobox-control input {
	background-color: var(--tsv-field-bg) !important;
	border: 1px solid var(--tsv-field-border) !important;
	border-radius: 0 !important;
	color: var(--tsv-text) !important;
	font-size: var(--tsv-field) !important;
}
#top.tsv-ds #main .wc-blocks-components-select .wc-blocks-components-select__container {
	border-radius: 0;
	background: transparent;
}
/* Checkout labels sit above their field (see
 * sill_fix_checkout_style_to_match_calculator() in functions.php): same
 * label style as every other form. */
#top.tsv-ds #main .wc-block-components-text-input label,
#top.tsv-ds #main .wc-blocks-components-select label {
	font-size: var(--tsv-label) !important;
	font-weight: 600 !important;
	color: var(--tsv-text) !important;
}
/* Checkboxes: square, light-gray frame (radios stay round -- a glyph). */
#top.tsv-ds #main input[type="checkbox"],
#top.tsv-ds #main .wc-block-components-checkbox__input[type="checkbox"] {
	border-radius: 0 !important;
	border-color: var(--tsv-frame) !important;
}

/* ---------------------------------------------------------------------
 * 3. Buttons: square; primary = green, secondary = gray.
 * ------------------------------------------------------------------ */
#top.tsv-ds #main .main_color .button,
#top.tsv-ds #main .main_color button[type="submit"],
#top.tsv-ds #main .main_color input[type="submit"],
#top.tsv-ds #main .main_color .woocommerce-Button,
#top.tsv-ds #main .wc-block-components-button:not(.is-link),
#top.tsv-ds #main .wc-block-cart__submit-button,
#top.tsv-ds #main .wc-block-components-checkout-place-order-button {
	background: var(--tsv-accent);
	color: var(--tsv-text) !important;
	border: 2px solid var(--tsv-accent) !important;
	border-radius: 0 !important;
	font-family: 'Raleway', sans-serif;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;
	min-height: 48px;
	padding: 10px 20px;
	box-shadow: none;
	text-transform: none;
	letter-spacing: 0;
	text-decoration: none;
	cursor: pointer;
}
#top.tsv-ds #main .main_color .button:hover,
#top.tsv-ds #main .main_color button[type="submit"]:hover,
#top.tsv-ds #main .main_color input[type="submit"]:hover,
#top.tsv-ds #main .main_color .woocommerce-Button:hover,
#top.tsv-ds #main .wc-block-components-button:not(.is-link):hover,
#top.tsv-ds #main .wc-block-cart__submit-button:hover,
#top.tsv-ds #main .wc-block-components-checkout-place-order-button:hover {
	background: var(--tsv-accent-hover);
	border-color: var(--tsv-accent-hover) !important;
}
#top.tsv-ds #main .wc-block-components-button:not(.is-link) .wc-block-components-button__text {
	color: var(--tsv-text);
	font-weight: 600;
}
/* Secondary actions: the button inside notices ("Vezi coșul"), the quote
 * list's Editează / Anulează, "Ofertă nouă"-style secondary links. */
#top.tsv-ds #main .woocommerce-message .button,
#top.tsv-ds #main .woocommerce-info .button,
#top.tsv-ds #main .tsv-quote-actions .button {
	background: var(--tsv-secondary);
	border-color: var(--tsv-secondary) !important;
	min-height: 40px;
}
#top.tsv-ds #main .woocommerce-message .button:hover,
#top.tsv-ds #main .woocommerce-info .button:hover,
#top.tsv-ds #main .tsv-quote-actions .button:hover {
	background: var(--tsv-secondary-hover);
	border-color: var(--tsv-secondary-hover) !important;
}
/* Checkout's "Ai deja cont? [Autentifică-te]" row at the top of the
 * contact step, above the account/guest box (built by
 * tsv_reposition_checkout_login_prompt()): text on the left, a primary
 * button (same look as "Plasează comanda") on the right, closed off from
 * the rest of the form by a frame-colored rule. Wraps under the text on
 * narrow screens. */
#top.tsv-ds #main .tsv-checkout-login {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin: 0 0 20px;
	padding: 0 0 20px;
	border-bottom: 1px solid var(--tsv-frame);
}
#top.tsv-ds #main .tsv-checkout-login__text {
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-size: var(--tsv-body);
	line-height: 1.4;
	color: var(--tsv-text-soft);
}
#top.tsv-ds #main .tsv-checkout-login__text strong {
	font-size: var(--tsv-field);
	font-weight: 700;
	color: var(--tsv-text) !important;
}
#top.tsv-ds #main .tsv-checkout-login__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 10px 20px;
	background: var(--tsv-accent);
	border: 2px solid var(--tsv-accent);
	border-radius: 0;
	font-family: 'Raleway', sans-serif;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;
	color: var(--tsv-text) !important;
	text-decoration: none !important;
	white-space: nowrap;
	cursor: pointer;
}
#top.tsv-ds #main .tsv-checkout-login__button:hover {
	background: var(--tsv-accent-hover);
	border-color: var(--tsv-accent-hover);
}
/* Quantity +/- on simple/variable product pages. */
#top.tsv-ds #main .quantity input.qty,
#top.tsv-ds #main .quantity .plus,
#top.tsv-ds #main .quantity .minus {
	border-radius: 0 !important;
	border-color: var(--tsv-field-border) !important;
	height: 48px;
	min-height: 48px;
	box-sizing: border-box;
}
#top.tsv-ds #main .quantity .plus,
#top.tsv-ds #main .quantity .minus {
	background: var(--tsv-field-bg);
	color: var(--tsv-text);
}

/* ---------------------------------------------------------------------
 * 4. Square corners + light-gray #adadad frames on every box.
 * ------------------------------------------------------------------ */
#top.tsv-ds #main img,
#top.tsv-ds #main .woocommerce-product-gallery a,
#top.tsv-ds #main .woocommerce-message,
#top.tsv-ds #main .woocommerce-info,
#top.tsv-ds #main .woocommerce-error,
#top.tsv-ds #main .wc-block-components-notice-banner,
#top.tsv-ds #main .wc-block-components-panel,
#top.tsv-ds #main .wc-block-components-radio-control-accordion-option,
#top.tsv-ds #main .wc-block-components-radio-control__option,
#top.tsv-ds #main .wc-block-components-address-card,
#top.tsv-ds #main .wc-block-components-quantity-selector,
#top.tsv-ds #main .wc-block-components-quantity-selector__button,
#top.tsv-ds #main .wc-block-components-chip,
#top.tsv-ds #main .wc-block-components-product-badge,
#top.tsv-ds #main .wc-block-components-sale-badge,
#top.tsv-ds #main .wc-block-checkout__guest-checkout-notice,
#top.tsv-ds #main .wc-block-checkout__create-account,
#top.tsv-ds #main .tsv-checkout-guest,
#top.tsv-ds #main .shop_table,
#top.tsv-ds #main .woocommerce-tabs .tabs li,
#top.tsv-ds #main .woocommerce-tabs .tabs li a,
#top.tsv-ds #main .woocommerce-tabs .panel,
#top.tsv-ds #main .variations td,
#top.tsv-ds #main .variations th,
#top.tsv-ds #main .variations_form,
#top.tsv-ds #main .inner_product,
#top.tsv-ds #main .inner_product_header,
#top.tsv-ds #main .avia_cart_buttons,
#top.tsv-ds #main .onsale,
#top.tsv-ds #main form.login,
#top.tsv-ds #main form.register,
#top.tsv-ds #main form.lost_reset_password,
#top.tsv-ds .woocommerce-MyAccount-navigation {
	border-radius: 0 !important;
}

#top.tsv-ds #main .wp-block-woocommerce-checkout-order-summary-block,
#top.tsv-ds #main .wc-block-components-radio-control-accordion-option,
#top.tsv-ds #main .wc-block-components-address-card,
#top.tsv-ds #main .wc-block-components-quantity-selector,
#top.tsv-ds #main .main_color .shop_table,
#top.tsv-ds #main .main_color .woocommerce-tabs .tabs li,
#top.tsv-ds #main .main_color .woocommerce-tabs .panel,
#top.tsv-ds #main .main_color .variations_form,
#top.tsv-ds #main .main_color .woocommerce-product-gallery a {
	border-color: var(--tsv-frame) !important;
	border-radius: 0 !important;
}
#top.tsv-ds #main .wp-block-woocommerce-checkout-order-summary-block {
	border-radius: 0 !important;
}

/* Product pages: Enfold's 50px above the Descriere/Informații tabs was
 * sized for the "SKU / Categorie" line, which is no longer shown
 * (2026-10-20). With the summary's own ~26-30px bottom spacing this
 * leaves ~40-45px between the buy box and the tabs. */
#top.tsv-ds #main .single-product-summary .woocommerce-tabs {
	padding-top: 14px;
}
#top.tsv-ds #main .wc-block-components-radio-control-accordion-option {
	box-shadow: inset 0 0 0 1px var(--tsv-frame) !important;
}
#top.tsv-ds #main .wc-block-components-radio-control--highlight-checked .wc-block-components-radio-control-accordion-option--checked-option-highlighted {
	box-shadow: inset 0 0 0 2px var(--tsv-text) !important;
}

/* Login / register / lost-password boxes: flat #adadad frame, no shadow or
 * lime top bar. */
#top.tsv-ds #main form.login,
#top.tsv-ds #main form.register,
#top.tsv-ds #main form.lost_reset_password {
	border: 1px solid var(--tsv-frame) !important;
	box-shadow: none !important;
	padding: 24px;
	text-align: left;
}

/* Notices: square, flat, left-aligned. */
#top.tsv-ds #main .woocommerce-message,
#top.tsv-ds #main .woocommerce-info,
#top.tsv-ds #main .woocommerce-error {
	box-shadow: none;
	text-align: left;
	font-size: var(--tsv-body);
}
/* Notices with an action button ("Răsfoiește produsele", "Vezi coșul"):
 * button on the left, text vertically centered beside it. The floated
 * button otherwise left the text pinned to the top of the box. order:-1
 * because WooCommerce puts the button after the text in some notices and
 * before it in others. */
#top.tsv-ds #main .woocommerce-message:has(> .button),
#top.tsv-ds #main .woocommerce-info:has(> .button) {
	display: flex;
	align-items: center;
	gap: 16px;
}
#top.tsv-ds #main .woocommerce-message > .button,
#top.tsv-ds #main .woocommerce-info > .button {
	float: none;
	order: -1;
	flex: 0 0 auto;
	margin: 0;
}

/* ---------------------------------------------------------------------
 * 5. Product pages (non-calculator: Accesorii, interior gamas)
 * ------------------------------------------------------------------ */
/* Variation rows (TIP CAPAC / LATIME) read as a label + a field, not a
 * boxed uppercase table. Not on the exterior sill calculator, which lays out
 * its own variations table (Pasul 2) in sill-price-calculator.php. */
#top.tsv-ds #main .main_color form.variations_form:not(:has(.sill-calculator)) .variations,
#top.tsv-ds #main .main_color form.variations_form:not(:has(.sill-calculator)) .variations tbody,
#top.tsv-ds #main .main_color form.variations_form:not(:has(.sill-calculator)) .variations tr,
#top.tsv-ds #main .main_color form.variations_form:not(:has(.sill-calculator)) .variations th,
#top.tsv-ds #main .main_color form.variations_form:not(:has(.sill-calculator)) .variations td {
	border: 0 !important;
	background: transparent;
}
#top.tsv-ds #main .main_color form.variations_form:not(:has(.sill-calculator)) .variations th.label {
	padding: 0 12px 0 0;
	vertical-align: middle;
	text-align: left;
}
#top.tsv-ds #main .main_color form.variations_form:not(:has(.sill-calculator)) .variations th.label label {
	font-size: var(--tsv-label) !important;
	font-weight: 600 !important;
	text-transform: none !important;
	letter-spacing: 0 !important;
	color: var(--tsv-text) !important;
	margin: 0;
	text-align: left !important;
}
/* Colour swatches (Accesorii / interior): same as the sill calculator --
 * square, #adadad frame, left-aligned label gray -> black when selected. */
#top.tsv-ds #main .sill-swatch {
	border: 1px solid var(--tsv-frame) !important;
	border-radius: 0 !important;
	text-align: left;
	padding: 0 0 8px;
	box-shadow: none;
}
/* Selected: a ring in the swatch's own finish color (--swatch-accent /
 * --swatch-accent-soft, emitted inline per swatch; near-black fallback),
 * drawn OUTSIDE the frame -- an inset shadow paints underneath the content,
 * so the flush photo hid it everywhere except around the label. 1px border
 * + 1px shadow = 2px of color, then a thin neutral line (keeps light
 * finishes like Alb visible on white) and a soft colored halo. Same values
 * as sill-price-calculator.php's own .sill-swatch.selected. */
#top.tsv-ds #main .sill-swatch.selected {
	border-color: var(--swatch-accent, var(--tsv-text)) !important;
	border-width: 1px;
	padding: 0 0 8px;
	box-shadow:
		0 0 0 1px var(--swatch-accent, var(--tsv-text)),
		0 0 0 2px rgba(0, 0, 0, 0.12),
		0 0 0 5px var(--swatch-accent-soft, rgba(26, 26, 26, 0.18));
}
#top.tsv-ds #main .sill-swatch img {
	border-radius: 0;
	margin: 0 0 8px;
}
#top.tsv-ds #main .sill-swatch-label {
	padding: 0 8px;
	font-size: var(--tsv-body);
	line-height: 1.4;
	color: var(--tsv-text-muted);
}
#top.tsv-ds #main .sill-swatch.selected .sill-swatch-label {
	color: var(--tsv-text);
}
#top.tsv-ds #main .main_color form .sill-culoare-swatches > label,
#top.tsv-ds #main .main_color .sill-culoare-swatches > label {
	font-size: var(--tsv-title);
	font-weight: 700;
	color: var(--tsv-text);
	margin: 0 0 var(--tsv-inner-gap);
}

/* Two-button card footers ("Adaugă în coș" + "Afișare Detalii"): one row,
 * both buttons as tall as the taller (wrapped) one, an inner gap between
 * them instead of Enfold's "|" delimiter. */
#top.tsv-ds #main .avia_cart_buttons:not(.single_button) {
	display: flex;
	align-items: stretch;
	gap: var(--tsv-inner-gap);
}
#top.tsv-ds #main .avia_cart_buttons:not(.single_button) .button {
	float: none;
	flex: 1 1 0;
	width: auto;
	min-width: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	column-gap: 0.35em; /* flex trims the space between icon and label */
}
#top.tsv-ds #main .avia_cart_buttons .button-mini-delimiter {
	display: none;
}

/* Related products ("Produse similare") cards: square. */
#top.tsv-ds .related.products .inner_product,
#top.tsv-ds .related.products img,
#top.tsv-ds .related.products .avia_cart_buttons,
#top.tsv-ds .upsells.products .inner_product {
	border-radius: 0 !important;
}
/* Every card photo in one 16:9 frame (the photos' own ratio, same as the
 * product page gallery) -- served uncropped via
 * tsv_related_products_image_size() in functions.php. */
#top.tsv-ds .related.products .thumbnail_container img,
#top.tsv-ds .upsells.products .thumbnail_container img,
#top.tsv-ds.woocommerce-shop ul.products .thumbnail_container img,
#top.tsv-ds.tax-product_cat ul.products .thumbnail_container img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}
/* Shop archive grid: every card in a row the same height (longer titles or
 * a two-button footer no longer make one card taller), buttons pinned to
 * the bottom of the card. */
#top.tsv-ds.woocommerce-shop #main ul.products,
#top.tsv-ds.tax-product_cat #main ul.products {
	display: flex;
	flex-wrap: wrap;
}
#top.tsv-ds.woocommerce-shop #main ul.products::before,
#top.tsv-ds.woocommerce-shop #main ul.products::after,
#top.tsv-ds.tax-product_cat #main ul.products::before,
#top.tsv-ds.tax-product_cat #main ul.products::after {
	display: none;
}
#top.tsv-ds.woocommerce-shop #main ul.products li.product,
#top.tsv-ds.tax-product_cat #main ul.products li.product {
	display: flex;
	float: none;
}
#top.tsv-ds.woocommerce-shop #main ul.products .inner_product,
#top.tsv-ds.tax-product_cat #main ul.products .inner_product {
	display: flex;
	flex-direction: column;
	width: 100%;
}
#top.tsv-ds.woocommerce-shop #main ul.products .woocommerce-LoopProduct-link,
#top.tsv-ds.tax-product_cat #main ul.products .woocommerce-LoopProduct-link {
	flex: 1 0 auto;
}

/* ---------------------------------------------------------------------
 * 6. My Account
 * ------------------------------------------------------------------ */
#top.tsv-ds #main .woocommerce-MyAccount-content > h2,
#top.tsv-ds #main .woocommerce-MyAccount-content > h3,
#top.tsv-ds #main .woocommerce-MyAccount-content form > h3,
#top.tsv-ds #main .woocommerce-MyAccount-content fieldset legend {
	margin: var(--tsv-section-gap) 0 var(--tsv-inner-gap);
}
#top.tsv-ds #main .woocommerce-MyAccount-content > h2:first-child,
#top.tsv-ds #main .woocommerce-MyAccount-content > h3:first-child,
#top.tsv-ds #main .woocommerce-MyAccount-content > div:first-child > h3:first-child {
	margin-top: 0;
}
#top.tsv-ds #main .woocommerce-MyAccount-content fieldset {
	border: 0;
	padding: 0;
	margin: 0;
}
#top.tsv-ds #main .woocommerce-MyAccount-content .form-row {
	margin: 0 0 16px;
	padding: 0;
}
#top.tsv-ds #main .woocommerce-MyAccount-content .form-row label {
	display: block;
	margin: 0 0 4px;
	line-height: 1.3;
}
/* Field hints ("Așa va fi afișat numele tău...") -- body text, not italic. */
#top.tsv-ds #main .woocommerce-MyAccount-content .form-row em,
#top.tsv-ds #main .woocommerce-MyAccount-content .form-row .description {
	display: block;
	margin-top: 4px;
	font-style: normal;
	font-size: var(--tsv-body);
	color: var(--tsv-text-soft);
}
/* Password show/hide eye: square, unobtrusive. */
#top.tsv-ds #main .woocommerce-MyAccount-content .show-password-input,
#top.tsv-ds #main .show-password-input {
	border-radius: 0;
	background-color: transparent;
}
/* WordPress core's password show/hide toggle ships no front-end CSS, so on
 * Detalii cont it rendered as a bare gray pill under each field. Same eye
 * icon tucked inside the field's right edge as the login form
 * (tsv_style_login_page_css() in functions.php). */
#top.tsv-ds #main .woocommerce-MyAccount-content .password-input {
	position: relative;
	display: block;
}
#top.tsv-ds #main .woocommerce-MyAccount-content .password-input input {
	padding-right: 2.6em;
	width: 100%;
}
#top.tsv-ds #main .woocommerce-MyAccount-content .show-password-input {
	position: absolute;
	top: 50%;
	right: .6em;
	transform: translateY(-50%);
	width: 22px;
	height: 22px;
	min-height: 0;
	padding: 0;
	margin: 0;
	border: none;
	background: transparent;
	cursor: pointer;
	opacity: .55;
}
#top.tsv-ds #main .woocommerce-MyAccount-content .show-password-input:hover {
	opacity: .85;
}
#top.tsv-ds #main .woocommerce-MyAccount-content .show-password-input::before {
	content: "";
	display: block;
	width: 100%;
	height: 100%;
	background-color: var(--tsv-text);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M1 12s4-7 11-7 11 7 11 7-4 7-11 7-11-7-11-7Z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center / 60% no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M1 12s4-7 11-7 11 7 11 7-4 7-11 7-11-7-11-7Z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center / 60% no-repeat;
}
#top.tsv-ds #main .woocommerce-MyAccount-content .show-password-input.display-password::before {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M1 1l22 22M9.9 9.9a3 3 0 0 0 4.2 4.2M6.2 6.3C3.2 8 1 12 1 12s4 7 11 7c2 0 3.8-.5 5.3-1.3M17.9 17.9C20.6 16 23 12 23 12s-1.6-2.8-4.2-4.8'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M1 1l22 22M9.9 9.9a3 3 0 0 0 4.2 4.2M6.2 6.3C3.2 8 1 12 1 12s4 7 11 7c2 0 3.8-.5 5.3-1.3M17.9 17.9C20.6 16 23 12 23 12s-1.6-2.8-4.2-4.8'/%3E%3C/svg%3E");
}
#top.tsv-ds #main .woocommerce-MyAccount-content hr {
	margin: var(--tsv-section-gap) 0 0;
	border-color: var(--tsv-frame);
}
/* Floated submit buttons (Enfold) must stay inside their form's frame and
 * not pull the next heading up beside them. */
#top.tsv-ds #main .woocommerce-MyAccount-content form,
#top.tsv-ds #main form.lost_reset_password,
#top.tsv-ds #main form.login {
	display: flow-root;
}
#top.tsv-ds #main .woocommerce-MyAccount-content > h2,
#top.tsv-ds #main .woocommerce-MyAccount-content > h3 {
	clear: both;
}
/* Table headers (orders, potential clients...): field-label style, not
 * Enfold's small uppercase letter-spaced one; order numbers dark. */
#top.tsv-ds #main .main_color .shop_table th,
#top.tsv-ds #main .main_color .shop_table th a {
	font-size: var(--tsv-label);
	font-weight: 600;
	letter-spacing: 0;
	text-transform: capitalize; /* some source labels are lowercase ("comandă", "nr.15331") */
	color: var(--tsv-text);
}
#top.tsv-ds #main .main_color .woocommerce-orders-table__cell-order-number a {
	color: var(--tsv-text);
	font-weight: 700;
}
/* Județ (select2/selectWoo on the address forms): same field style. */
#top.tsv-ds #main .select2-container .select2-selection--single {
	height: 44px;
	background-color: var(--tsv-field-bg);
	border: 1px solid var(--tsv-field-border);
	border-radius: 0;
}
#top.tsv-ds #main .select2-container .select2-selection--single .select2-selection__rendered {
	line-height: 42px;
	padding-left: 12px;
	font-size: var(--tsv-field);
	color: var(--tsv-text);
}
#top.tsv-ds #main .select2-container .select2-selection--single .select2-selection__arrow {
	height: 42px;
}
/* Orders / addresses tables + address boxes. */
#top.tsv-ds #main .woocommerce-MyAccount-content .shop_table th,
#top.tsv-ds #main .woocommerce-MyAccount-content .shop_table td {
	text-align: left;
	font-size: var(--tsv-body);
}
#top.tsv-ds #main .woocommerce-MyAccount-content .woocommerce-Address {
	border: 1px solid var(--tsv-frame);
	padding: 16px 18px;
	box-sizing: border-box;
}
#top.tsv-ds #main .woocommerce-MyAccount-content .woocommerce-Address-title h2,
#top.tsv-ds #main .woocommerce-MyAccount-content .woocommerce-Address-title h3 {
	margin: 0 0 var(--tsv-inner-gap);
}

/* ---------------------------------------------------------------------
 * 7. Cart & checkout (Blocks)
 * ------------------------------------------------------------------ */
/* Main sections (checkout steps): the large gap between them, the small
 * one between a step's title and its description. */
#top.tsv-ds #main .wc-block-components-checkout-step {
	margin-bottom: var(--tsv-section-gap) !important;
}
#top.tsv-ds #main .wc-block-components-checkout-step__heading {
	margin: 0 0 var(--tsv-inner-gap) !important;
}
#top.tsv-ds #main .wc-block-components-checkout-step__description {
	margin: 0 0 16px !important;
	font-size: var(--tsv-body);
	color: var(--tsv-text-soft);
}
/* Cart table header / totals: left-aligned text (amounts stay in their
 * own right-hand column). */
#top.tsv-ds #main .wc-block-cart-items__header th,
#top.tsv-ds #main .wc-block-cart-items__header span {
	font-size: var(--tsv-label);
	font-weight: 600;
	letter-spacing: 0;
	text-transform: capitalize; /* source text is "produs" / "Total" */
	color: var(--tsv-text);
}
#top.tsv-ds #main .wc-block-components-product-metadata,
#top.tsv-ds #main .wc-block-components-product-details,
#top.tsv-ds #main .wc-block-components-product-details li {
	font-size: var(--tsv-body);
	color: var(--tsv-text-soft);
}
#top.tsv-ds #main .wc-block-components-totals-item__label,
#top.tsv-ds #main .wc-block-components-totals-item__value {
	font-size: var(--tsv-body);
}
#top.tsv-ds #main .wc-block-components-totals-footer-item .wc-block-components-totals-item__label,
#top.tsv-ds #main .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
	font-size: var(--tsv-title);
	font-weight: 700;
	color: var(--tsv-text);
}
/* The "Rezumat comandă" heading inside the order summary box. */
#top.tsv-ds #main .wc-block-components-checkout-order-summary__title-text {
	font-size: var(--tsv-title);
	font-weight: 700;
	color: var(--tsv-text);
}

/* ---------------------------------------------------------------------
 * 5b. Accesorii de montaj product pages: price + one framed buy box.
 *     Title -> price (the 2nd thing you read) with its VAT line -> a single
 *     #adadad-framed box (variable products already had it, simple ones
 *     now match) holding one left-aligned row: quantity, "Adaugă în coș"
 *     (primary, green) and "← Înapoi la catalog" (secondary: outline in the
 *     frame gray, same 48px height). Markup: tsv_accessory_back_to_catalog_button()
 *     / tsv_accessory_price_vat_note() in functions.php.
 * ------------------------------------------------------------------ */
#top.tsv-ds #main .main_color .product_cat-accesorii .summary p.price,
#top.tsv-ds #main .main_color .product_cat-accesorii .summary p.price .amount,
#top.tsv-ds #main .main_color .product_cat-accesorii .summary p.price bdi {
	font-size: 26px;
	font-weight: 700;
	line-height: 1.2;
}
#top.tsv-ds #main .main_color .product_cat-accesorii .summary p.price {
	margin: 12px 0 2px;
}
/* Variable products: the variation table sits at the top of the buy box
 * (its own top margin doubled the box's padding). */
#top.tsv-ds #main .main_color .product_cat-accesorii .summary form.variations_form .variations {
	margin: 0 0 16px;
}
#top.tsv-ds #main .product_cat-accesorii .summary p.tsv-price-note {
	font-size: 13px;
	line-height: 1.4;
	color: var(--tsv-text-muted);
	margin: 0 0 20px;
}
#top.tsv-ds #main .main_color .product_cat-accesorii .summary form.cart {
	border: 1px solid var(--tsv-frame);
	padding: 20px;
	margin: 0 0 16px;
	background: #fff;
}
/* Enfold indents the variable products' buy row to the variation table's
 * value column. */
#top.tsv-ds #main .product_cat-accesorii .summary .single_variation_wrap {
	margin: 0;
}
#top.tsv-ds #main .product_cat-accesorii .summary .single_variation {
	margin: 0 0 12px;
}
#top.tsv-ds #main .product_cat-accesorii .summary form.cart:not(.variations_form),
#top.tsv-ds #main .product_cat-accesorii .summary .woocommerce-variation-add-to-cart {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	gap: 12px;
}
#top.tsv-ds #main .product_cat-accesorii .summary form.cart .quantity,
#top.tsv-ds #main .product_cat-accesorii .summary form.cart .single_add_to_cart_button {
	float: none;
	margin: 0;
}
/* Stock 1 / sold individually: WooCommerce renders the quantity as a
 * hidden input but keeps its 130px-wide wrapper -- the empty gap before
 * "Adaugă în coș". */
#top.tsv-ds #main .product_cat-accesorii .summary .quantity:has(input[type="hidden"]) {
	display: none;
}
#top.tsv-ds #main .product_cat-accesorii .summary .single_add_to_cart_button {
	min-height: 48px;
}
#top.tsv-ds #main .main_color .tsv-back-to-catalog {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 48px;
	padding: 10px 20px;
	box-sizing: border-box;
	background: #fff;
	color: var(--tsv-text);
	border: 2px solid var(--tsv-secondary);
	border-radius: 0;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	transition: background-color 0.15s ease, border-color 0.15s ease;
}
#top.tsv-ds #main .main_color .tsv-back-to-catalog:hover,
#top.tsv-ds #main .main_color .tsv-back-to-catalog:focus-visible {
	background: var(--tsv-field-bg);
	border-color: var(--tsv-secondary-hover);
	color: var(--tsv-text);
}
#top.tsv-ds #main .tsv-back-to-catalog svg {
	width: 16px;
	height: 16px;
	flex: 0 0 auto;
}
#top.tsv-ds #main .product_cat-accesorii .summary .product_meta {
	font-size: 13px;
	color: var(--tsv-text-muted);
}
@media (max-width: 480px) {
	#top.tsv-ds #main .product_cat-accesorii .summary .single_add_to_cart_button {
		flex: 1 1 auto;
	}
	#top.tsv-ds #main .main_color .tsv-back-to-catalog {
		flex: 1 1 100%;
		justify-content: center;
	}
}

/* ---------------------------------------------------------------------
 * 8. Narrow screens: keep the 16px side gutter and no horizontal scroll.
 * ------------------------------------------------------------------ */
@media (max-width: 767px) {
	/* Wide account tables (orders, potential clients) scroll inside their own
	 * box instead of being cut off at the screen edge. */
	#top.tsv-ds #main .woocommerce-MyAccount-content .shop_table {
		display: block;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}
	#top.tsv-ds #main .main_color h1,
	#top.tsv-ds #main .main_color .product_title,
	#top.tsv-ds.woocommerce-account #main .main_color .woocommerce > h2,
	#top.tsv-ds.woocommerce-account #main .main_color .tsv-login-wrap > h2 {
		font-size: 26px !important;
	}
}

/* ---------------------------------------------------------------------
 * 9. Cart line items (2026-10-17 mockup). Each row is a grid:
 *
 *      [photo] Name ......................... Total
 *              ---------------------------------- (thin frame line)
 *              Culoare / Latime / Lungime / ...   [- 4 +]
 *                                                 Preț buc: 50 lei
 *              Editează configurație pervaz ✎     Elimină configurație 🗑
 *
 *    The block is React-rendered, so nothing is moved in the DOM: the
 *    table becomes blocks, each <tr> a grid, and the product cell's wrappers
 *    are `display: contents` so their children (name, unit price,
 *    metadata, quantity, remove button) land in the row grid directly.
 *    The sill "Editează" link sits deep inside the item_data list
 *    (sill_display_meta_in_cart()), so it's absolutely positioned into the
 *    bottom-left slot instead. Unit price is shown only on lines with a
 *    quantity selector (sill lines are sold individually, their unit price
 *    equals the total).
 * ------------------------------------------------------------------ */
#top.tsv-ds #main .wc-block-cart-items,
#top.tsv-ds #main .wc-block-cart-items thead,
#top.tsv-ds #main .wc-block-cart-items tbody {
	display: block;
	width: 100%;
	border: 0;
	margin: 0;
	background: transparent;
}
#top.tsv-ds #main .wc-block-cart-items tr {
	display: grid;
	grid-template-columns: 92px minmax(0, 1fr) auto;
	column-gap: 0;
	position: relative;
	border: 0;
	background: transparent;
}
#top.tsv-ds #main .wc-block-cart-items td,
#top.tsv-ds #main .wc-block-cart-items th {
	display: block;
	padding: 0;
	border: 0;
	background: transparent;
}

/* Header: "Produs" .... "Total", green rule under it. */
#top.tsv-ds #main .wc-block-cart-items .wc-block-cart-items__header {
	grid-template-columns: 1fr auto;
	align-items: end;
	padding: 0 0 12px;
	border-bottom: 2px solid var(--tsv-accent);
}
#top.tsv-ds #main .wc-block-cart-items__header .wc-block-cart-items__header-product {
	display: none;
}
#top.tsv-ds #main .wc-block-cart-items__header th,
#top.tsv-ds #main .wc-block-cart-items__header span {
	font-size: var(--tsv-title);
	font-weight: 700;
	line-height: 1.35;
	color: var(--tsv-text);
}
#top.tsv-ds #main .wc-block-cart-items__header .wc-block-cart-items__header-total {
	text-align: right;
}

/* Item rows */
#top.tsv-ds #main .wc-block-cart-items .wc-block-cart-items__row {
	grid-template-areas:
		"img name  total"
		"img meta  qty"
		"img meta  unit"
		"img .     remove";
	grid-template-rows: auto auto 1fr auto;
	padding: 32px 0 0;
}
#top.tsv-ds #main .wc-block-cart-items .wc-block-cart-items__row:last-child {
	padding-bottom: 32px;
}
#top.tsv-ds #main .wc-block-cart-items__row .wc-block-cart-item__product,
#top.tsv-ds #main .wc-block-cart-items__row .wc-block-cart-item__wrap,
#top.tsv-ds #main .wc-block-cart-items__row .wc-block-cart-item__quantity {
	display: contents;
}
#top.tsv-ds #main .wc-block-cart-items__row .wc-block-cart-item__image {
	grid-area: img;
	align-self: start;
	padding-right: 20px;
}
#top.tsv-ds #main .wc-block-cart-items__row .wc-block-cart-item__image a,
#top.tsv-ds #main .wc-block-cart-items__row .wc-block-cart-item__image img {
	display: block;
	width: 72px;
	max-width: none;
	height: auto;
	border-radius: 0;
}

/* Name + line total share one baseline and one thin rule. */
#top.tsv-ds #main .wc-block-cart-items__row .wc-block-components-product-name,
#top.tsv-ds #main .wc-block-cart-items__row .wc-block-cart-item__total {
	padding: 0 0 6px;
	margin: 0;
	border-bottom: 1px solid var(--tsv-frame);
	font-size: var(--tsv-title) !important;
	font-weight: 700 !important;
	line-height: 1.35;
	color: var(--tsv-text);
}
#top.tsv-ds #main .wc-block-cart-items__row .wc-block-components-product-name {
	grid-area: name;
	display: block;
	max-width: none;
	text-decoration: none;
}
#top.tsv-ds #main .wc-block-cart-items__row .wc-block-cart-item__total {
	grid-area: total;
	padding-left: 16px;
	text-align: right;
	white-space: nowrap;
}
#top.tsv-ds #main .wc-block-cart-items__row .wc-block-cart-item__total .wc-block-components-product-price,
#top.tsv-ds #main .wc-block-cart-items__row .wc-block-cart-item__total .wc-block-formatted-money-amount {
	font-size: var(--tsv-title);
	font-weight: 700;
	color: var(--tsv-text);
}
#top.tsv-ds #main .wc-block-cart-items__row .wc-block-cart-item__total .wc-block-components-sale-badge {
	margin-top: 4px;
}

/* Details: one wrapping line, "Culoare / Latime" (variation) first, then
 * the item_data entries (Lungime / Cantitate / add-ons). WC Blocks renders
 * item_data first and the variation list second. */
#top.tsv-ds #main .wc-block-cart-items__row .wc-block-components-product-metadata {
	grid-area: meta;
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-content: start;
	gap: 0 .3em;
	margin: 8px 0 0;
	font-size: var(--tsv-body);
	line-height: 1.5;
	color: var(--tsv-text);
}
#top.tsv-ds #main .wc-block-cart-items__row .wc-block-components-product-metadata__description {
	flex: 1 1 100%;
	order: -2;
}
#top.tsv-ds #main .wc-block-cart-items__row .wc-block-components-product-metadata__description p {
	margin: 0;
	color: var(--tsv-text);
}
#top.tsv-ds #main .wc-block-cart-items__row .wc-block-components-product-details {
	display: contents;
}
#top.tsv-ds #main .wc-block-cart-items__row .wc-block-components-product-details > span {
	display: block;
}
#top.tsv-ds #main .wc-block-cart-items__row .wc-block-components-product-details,
#top.tsv-ds #main .wc-block-cart-items__row .wc-block-components-product-details * {
	font-size: var(--tsv-body);
	color: var(--tsv-text);
}
#top.tsv-ds #main .wc-block-cart-items__row .wc-block-components-product-details:last-child:not(:first-child) > span {
	order: -1;
}
#top.tsv-ds #main .wc-block-cart-items__row .wc-block-components-product-details:last-child:not(:first-child) > span:last-child::after {
	content: " /";
}
/* No trailing "/" before the (relocated) edit link. */
#top.tsv-ds #main .wc-block-cart-items__row .wc-block-components-product-details > span:has(+ span .sill-edit-link) > span[aria-hidden="true"] {
	display: none;
}

/* Quantity selector + "Preț buc: x" in the right-hand column. */
#top.tsv-ds #main .wc-block-cart-items__row .wc-block-components-quantity-selector {
	grid-area: qty;
	justify-self: end;
	width: 96px;
	min-width: 0;
	height: 32px;
	margin: 12px 0 0 16px;
	border: 1px solid var(--tsv-frame);
}
#top.tsv-ds #main .wc-block-cart-items__row .wc-block-components-quantity-selector::after {
	display: none;
}
#top.tsv-ds #main .wc-block-cart-items__row .wc-block-components-quantity-selector__button {
	min-width: 30px;
	color: var(--tsv-text-muted);
	border: 0;
}
#top.tsv-ds #main .wc-block-cart-items__row .wc-block-components-quantity-selector input.wc-block-components-quantity-selector__input {
	height: 100%;
	min-width: 0;
	padding: 0;
	border: 1px solid var(--tsv-field-border) !important;
	background: var(--tsv-field-bg);
	font-size: var(--tsv-body);
	color: var(--tsv-text);
	box-shadow: none;
}
#top.tsv-ds #main .wc-block-cart-items__row .wc-block-cart-item__prices {
	display: none;
}
#top.tsv-ds #main .wc-block-cart-items__row:has(.wc-block-components-quantity-selector) .wc-block-cart-item__prices {
	grid-area: unit;
	display: block;
	justify-self: end;
	margin: 6px 0 0 16px;
	white-space: nowrap;
}
#top.tsv-ds #main .wc-block-cart-items__row .wc-block-cart-item__prices::before {
	content: "Preț buc: ";
}
#top.tsv-ds #main .wc-block-cart-items__row .wc-block-cart-item__prices:lang(en)::before {
	content: "Unit price: ";
}
#top.tsv-ds #main .wc-block-cart-items__row .wc-block-cart-item__prices,
#top.tsv-ds #main .wc-block-cart-items__row .wc-block-cart-item__prices *,
#top.tsv-ds #main .wc-block-cart-items__row .wc-block-cart-item__prices .wc-block-formatted-money-amount {
	font-size: 13px;
	font-weight: 400;
	line-height: 1.4;
	color: var(--tsv-text-soft);
}

/* Bottom row: "Editează configurație pervaz ✎" left, "Elimină configurație
 * 🗑" right -- text + icon over one dark underline. Same height, so the
 * absolutely-positioned edit link lines up with the in-grid remove button. */
#top.tsv-ds #main .wc-block-cart-items__row .sill-edit-link,
#top.tsv-ds #main .wc-block-cart-items__row .wc-block-cart-item__remove-link {
	display: inline-flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	height: 30px;
	margin: 0;
	padding: 0 0 4px;
	border: 0;
	border-bottom: 1px solid var(--tsv-text);
	border-radius: 0;
	background: transparent;
	box-sizing: border-box;
	font-family: 'Raleway', sans-serif;
	font-size: 13px;
	font-weight: 700;
	line-height: 1;
	color: var(--tsv-text) !important;
	text-decoration: none;
	opacity: 1;
	cursor: pointer;
}
#top.tsv-ds #main .wc-block-cart-items__row .wc-block-cart-item__remove-link {
	grid-area: remove;
	grid-column: 2 / 4;
	justify-self: end;
	align-self: end;
	width: auto;
	margin-top: 24px;
	margin-left: 16px;
}
#top.tsv-ds #main .wc-block-cart-items__row .wc-block-cart-item__remove-link::before {
	content: "Elimină configurație";
}
#top.tsv-ds #main .wc-block-cart-items__row .wc-block-cart-item__remove-link:lang(en)::before {
	content: "Remove configuration";
}
#top.tsv-ds #main .wc-block-cart-items__row .wc-block-cart-item__remove-link svg {
	width: 24px;
	height: 24px;
	flex: 0 0 auto;
	fill: currentColor;
}
#top.tsv-ds #main .wc-block-cart-items__row .sill-edit-link {
	position: absolute;
	left: 92px;
	bottom: 0;
	max-width: calc(100% - 92px - 200px);
}
#top.tsv-ds #main .wc-block-cart-items__row:last-child .sill-edit-link {
	bottom: 32px;
}
#top.tsv-ds #main .wc-block-cart-items__row .sill-edit-link::after {
	content: "";
	width: 20px;
	height: 20px;
	flex: 0 0 auto;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M16.5 3.5l4 4L8 20H4v-4z'/%3E%3Cpath d='M14 6l4 4'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M16.5 3.5l4 4L8 20H4v-4z'/%3E%3Cpath d='M14 6l4 4'/%3E%3C/svg%3E") center / contain no-repeat;
}
#top.tsv-ds #main .wc-block-cart-items__row .sill-edit-link:hover,
#top.tsv-ds #main .wc-block-cart-items__row .wc-block-cart-item__remove-link:hover {
	color: var(--tsv-text-soft) !important;
	border-bottom-color: var(--tsv-text-soft);
}

/* Text links share the cart's "Editează configurație pervaz" look: dark
 * bold text over one dark 1px underline, softer on hover. Used by checkout
 * ("Termeni și condiții", "Politica de prelucrare a
 * datelor"), the login form ("Ai uitat parola?", "Înregistrează-te"), the My
 * Account dashboard sentence links and the "Editează" links on the
 * addresses page, and the product page's category link ("Accesorii").
 * Inline links in sentences only take the text and underline, not the cart
 * link's fixed height/flex box. */
#top.tsv-ds #main .wc-block-checkout__terms a,
#top.tsv-ds #main .woocommerce-LostPassword a,
#top.tsv-ds #main .tsv-login-register-link a,
#top.tsv-ds #main .woocommerce-MyAccount-content > p a:not(.button),
#top.tsv-ds #main .woocommerce-MyAccount-content .woocommerce-Address-title a.edit,
#top.tsv-ds #main .product_meta a {
	padding: 0 0 2px;
	border: 0;
	border-bottom: 1px solid var(--tsv-text);
	border-radius: 0;
	background: transparent;
	font-family: 'Raleway', sans-serif;
	font-weight: 700;
	line-height: 1.4;
	color: var(--tsv-text) !important;
	text-decoration: none !important;
	opacity: 1;
}
#top.tsv-ds #main .wc-block-checkout__terms a {
	font-size: 13px;
}
#top.tsv-ds #main .wc-block-checkout__terms a:hover,
#top.tsv-ds #main .woocommerce-LostPassword a:hover,
#top.tsv-ds #main .tsv-login-register-link a:hover,
#top.tsv-ds #main .woocommerce-MyAccount-content > p a:not(.button):hover,
#top.tsv-ds #main .woocommerce-MyAccount-content .woocommerce-Address-title a.edit:hover,
#top.tsv-ds #main .product_meta a:hover {
	color: var(--tsv-text-soft) !important;
	border-bottom-color: var(--tsv-text-soft);
}

/* Narrow screens: smaller photo; the two bottom links stack (edit link
 * above, remove below), still under one another on the left. */
@media (max-width: 600px) {
	#top.tsv-ds #main .wc-block-cart-items .wc-block-cart-items__row {
		grid-template-columns: 72px minmax(0, 1fr) auto;
		grid-template-areas:
			"img name  total"
			"img meta  meta"
			"img qty   qty"
			"img unit  unit"
			"img .     remove";
		grid-template-rows: auto auto auto auto auto;
	}
	#top.tsv-ds #main .wc-block-cart-items__row .wc-block-components-quantity-selector,
	#top.tsv-ds #main .wc-block-cart-items__row:has(.wc-block-components-quantity-selector) .wc-block-cart-item__prices {
		justify-self: start;
		margin-left: 0;
	}
	#top.tsv-ds #main .wc-block-cart-items__row .wc-block-cart-item__image a,
	#top.tsv-ds #main .wc-block-cart-items__row .wc-block-cart-item__image img {
		width: 56px;
	}
	#top.tsv-ds #main .wc-block-cart-items__row .sill-edit-link {
		left: 72px;
		bottom: 0;
		max-width: calc(100% - 72px);
	}
	#top.tsv-ds #main .wc-block-cart-items__row .wc-block-cart-item__remove-link {
		grid-column: 2 / 4;
		justify-self: start;
		margin-left: 0;
	}
	/* Room for the edit link under the remove button's row. */
	#top.tsv-ds #main .wc-block-cart-items__row:has(.sill-edit-link) .wc-block-cart-item__remove-link {
		margin-bottom: 42px;
	}
}
