/*
 * Launchpad1 UI layer (plain CSS, loaded after css/style.css).
 * Single product page: buy buttons, cash on delivery form, trust row, sticky buy bar.
 * Site-wide: brand tokens, focus ring, phone header fit, footer icon text.
 */
:root {
	--ta-navy: #193768;
	--ta-navy-dark: #10264a;
	--ta-tan: #e7ae71;
	--ta-tan-soft: #fbf1e6;
	--ta-tan-ink: #7a4a12;
	--ta-ink: #151521;
	--ta-muted: #4a5468;
	--ta-line: #e3e6ec;
	--ta-green: #177a42;
	--ta-ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* ---------- Site-wide ---------- */

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 3px solid var(--ta-navy);
	outline-offset: 2px;
}

::selection {
	background: var(--ta-tan);
	color: var(--ta-ink);
}

/* Footer widgets wrap their text inside Font Awesome <i> tags: keep the icon, show the text in the body font. */
.site-footer i.fas,
.site-footer i.far,
.footer-widgets i.fas,
.footer-widgets i.far {
	font-family: inherit;
	font-weight: inherit;
	font-style: normal;
	line-height: inherit;
	display: inline;
}
.site-footer i.fas::before,
.footer-widgets i.fas::before {
	font-family: "Font Awesome 5 Free";
	font-weight: 900;
	margin-right: .5em;
}
.site-footer i.far::before,
.footer-widgets i.far::before {
	font-family: "Font Awesome 5 Free";
	font-weight: 400;
	margin-right: .5em;
}

/* Phones: the top-bar link menu and the header search pushed the page wider than the screen. */
@media (max-width: 768px) {
	.top-bar .inside-top-bar .widget_nav_menu {
		display: none;
	}
	.site-header .inside-header {
		flex-wrap: wrap;
	}
	.site-header .inside-header .header-widget {
		float: none;
		width: 100%;
		max-width: 100%;
		margin: 12px 0 0;
	}
	.site-header .inside-header .header-widget .widget {
		padding: 0;
	}
	.header-widget .wc-block-product-search__fields {
		display: flex;
		width: 100%;
	}
	.header-widget .wc-block-product-search__field {
		flex: 1 1 auto;
		min-width: 0;
		width: 100%;
	}
}

/* ---------- Single product: price ---------- */

.single-product div.product .summary .price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 12px;
	color: var(--ta-ink);
	font-size: 26px;
	font-weight: 700;
	margin-bottom: 16px;
}
.single-product div.product .summary .price del {
	order: 2;
	color: var(--ta-muted);
	font-size: 16px;
	font-weight: 400;
	opacity: 1;
}
.single-product div.product .summary .price ins {
	order: 1;
	text-decoration: none;
}
.single-product div.product .summary .price .ta-save {
	order: 3;
}
.ta-save {
	display: inline-block;
	padding: .2em .65em;
	border-radius: 999px;
	background: var(--ta-tan-soft);
	color: var(--ta-tan-ink);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: .01em;
}
.woocommerce.single-product span.onsale {
	background: var(--ta-tan);
	color: var(--ta-ink);
}

/* ---------- Single product: buy buttons ---------- */

.woocommerce div.product form.cart {
	display: block;
	margin-bottom: 16px;
}
.woocommerce div.product form.cart .ta-buy-row {
	display: flex;
	gap: 12px;
	align-items: stretch;
	margin-bottom: 12px;
}
.woocommerce div.product form.cart .ta-buy-row div.quantity {
	float: none;
	flex: 0 0 auto;
	margin: 0;
}
.woocommerce div.product form.cart .ta-buy-row .qty {
	height: 100%;
	min-height: 56px;
	width: 4.5em;
	font-size: 17px;
	border-radius: 10px;
}

.ta-btn,
.woocommerce div.product form.cart .single_add_to_cart_button.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 52px;
	padding: 12px 18px;
	border-radius: 10px;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.ta-btn-order {
	flex: 1 1 auto;
	flex-direction: column;
	gap: 0;
	min-height: 56px;
	background: var(--ta-navy);
	border: 2px solid var(--ta-navy);
	color: #fff;
	font-size: 17px;
}
.ta-btn-order,
a.ta-btn-order:hover,
a.ta-btn-order:focus,
a.ta-btn-order:visited,
.woocommerce div.product a.ta-btn-order {
	color: #fff;
}
.ta-btn-order:hover {
	background: var(--ta-navy-dark);
	border-color: var(--ta-navy-dark);
}
.ta-btn__sub {
	font-size: 13px;
	font-weight: 400;
	opacity: .92;
}

.woocommerce div.product form.cart .single_add_to_cart_button.button {
	flex: 1 1 0;
	background: #fff;
	border: 2px solid var(--ta-navy);
	color: var(--ta-navy);
}
.woocommerce div.product form.cart .single_add_to_cart_button.button:hover {
	background: var(--ta-tan-soft);
	color: var(--ta-navy);
}

.ta-btn-whatsapp {
	flex: 1 1 0;
	background: #fff;
	border: 2px solid var(--ta-green);
	color: var(--ta-green);
}
a.ta-btn-whatsapp:hover,
a.ta-btn-whatsapp:focus,
a.ta-btn-whatsapp:visited,
.woocommerce div.product a.ta-btn-whatsapp {
	color: var(--ta-green);
}
.ta-btn-whatsapp:hover {
	background: #eaf6ef;
}

/* ---------- Single product: cash on delivery form ---------- */

.ta-quick-order {
	margin: 0 0 20px;
	padding: 20px;
	border: 1px solid var(--ta-line);
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 8px 24px rgba(25, 55, 104, .08);
	scroll-margin-top: 80px;
}
.ta-quick-order.is-collapsed {
	display: none;
}
.ta-quick-order.is-opening {
	animation: ta-panel-in .35s var(--ta-ease-out);
}
@keyframes ta-panel-in {
	from {
		opacity: 0;
		transform: translateY(-6px);
	}
}
.ta-quick-order:focus {
	outline: none;
}
.ta-quick-order__title {
	margin: 0 0 12px;
	font-size: 20px;
	line-height: 1.3;
}
.ta-quick-order__item {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 12px;
	padding: 10px;
	border-radius: 10px;
	background: var(--ta-tan-soft);
}
.ta-quick-order__item img {
	flex: none;
	width: 56px;
	height: 56px;
	border-radius: 8px;
	object-fit: cover;
}
.ta-quick-order__name {
	margin: 0;
	font-weight: 600;
	line-height: 1.3;
}
.ta-quick-order__price {
	margin: 2px 0 0;
	color: var(--ta-ink);
	font-variant-numeric: tabular-nums;
}
.ta-quick-order__note {
	margin: 0 0 4px;
	color: var(--ta-muted);
	font-size: 15px;
}

.ta-quick-order .wpforms-container {
	--wpforms-button-background-color: var(--ta-navy);
	--wpforms-button-text-color: #fff;
	--wpforms-field-border-radius: 8px;
	--wpforms-field-size-input-height: 48px;
	margin: 0;
}
.ta-quick-order .wpforms-container .wpforms-field {
	padding: 8px 0;
}
.ta-quick-order .wpforms-container .wpforms-field.hidden,
.ta-quick-order .wpforms-container .wpforms-field-hidden {
	display: none;
}
.ta-quick-order .wpforms-container .wpforms-field-label {
	margin-bottom: 4px;
	color: var(--ta-ink);
	font-size: 15px;
	font-weight: 600;
}
.ta-quick-order div.wpforms-container-full .wpforms-form .wpforms-field-medium,
.ta-quick-order .wpforms-container input[type="text"],
.ta-quick-order .wpforms-container input[type="email"],
.ta-quick-order .wpforms-container input[type="tel"],
.ta-quick-order .wpforms-container textarea {
	width: 100%;
	max-width: 100%;
	min-height: 48px;
	margin: 0;
	padding: 10px 12px;
	border: 1px solid #b9c0cc;
	border-radius: 8px;
	font-size: 16px;
}
.ta-quick-order .wpforms-container textarea {
	height: 96px;
	min-height: 96px;
}
.ta-quick-order .wpforms-container .wpforms-field-description {
	margin-top: 4px;
	color: var(--ta-muted);
	font-size: 13px;
}
.ta-quick-order .wpforms-container .wpforms-submit-container {
	padding-top: 8px;
}
.ta-quick-order div.wpforms-container-full .wpforms-form button[type="submit"] {
	width: 100%;
	min-height: 52px;
	border: 0;
	border-radius: 10px;
	background: var(--ta-navy);
	box-shadow: none;
	color: #fff;
	font-size: 17px;
	font-weight: 600;
}
.ta-quick-order div.wpforms-container-full .wpforms-form button[type="submit"]:hover {
	background: var(--ta-navy-dark);
}
.ta-quick-order .wpforms-confirmation-container-full {
	margin: 0;
	border-color: var(--ta-green);
	background: #eaf6ef;
	color: var(--ta-ink);
}

/* ---------- Single product: trust row ---------- */

.ta-trust {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px 16px;
	margin: 0 0 20px;
	padding: 14px 0;
	border-top: 1px solid var(--ta-line);
	border-bottom: 1px solid var(--ta-line);
	list-style: none;
	color: var(--ta-ink);
	font-size: 15px;
	line-height: 1.35;
}
.ta-trust li {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
}
.ta-trust svg {
	flex: none;
	width: 20px;
	height: 20px;
	color: var(--ta-navy);
}
.woocommerce div.product .ta-trust a {
	color: var(--ta-navy);
	text-decoration: underline;
	text-underline-offset: 2px;
}
@media (max-width: 420px) {
	.ta-trust {
		grid-template-columns: 1fr;
	}
}

/* ---------- Single product: sticky buy bar (phones) ---------- */

.ta-sticky-buy {
	position: fixed;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 100;
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
	background: #fff;
	box-shadow: 0 -4px 16px rgba(21, 21, 33, .12);
	transform: translateY(110%);
	transition: transform .3s var(--ta-ease-out);
}
.ta-sticky-buy[hidden] {
	display: none;
}
.ta-sticky-buy.is-shown {
	transform: none;
}
.ta-sticky-buy__price {
	flex: 1 1 auto;
	color: var(--ta-ink);
	font-size: 18px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}
.ta-sticky-buy__price del {
	display: none;
}
.ta-sticky-buy__price ins {
	text-decoration: none;
}
.ta-sticky-buy .ta-btn-order {
	flex: 0 0 auto;
	min-height: 48px;
	padding: 8px 24px;
}
body.ta-sticky-on {
	padding-bottom: 76px;
}
@media (min-width: 769px) {
	.ta-sticky-buy {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ta-sticky-buy,
	.ta-quick-order.is-opening {
		transition: none;
		animation: none;
	}
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
	color: var(--ta-navy);
}
@media (max-width: 420px) {
	.ta-btn-whatsapp {
		padding-right: 10px;
		padding-left: 10px;
		font-size: 15px;
	}
}
