/* Lovia shop UX layer (2026-07-26) — product form, cart, checkout polish.
   Brand gold #856024 (AA on white/cream, white text on it = 5.68:1). */

/* ---------- Product page: personalization add-ons as tappable cards ---- */
.pewc-item[data-field-type="checkbox"] {
	border: 1.5px solid #e8dcc8;
	border-radius: 12px;
	padding: 14px 16px;
	margin: 0 0 12px;
	list-style: none;
	transition: border-color .15s ease, box-shadow .15s ease;
	cursor: pointer;
	background: #fff;
}
.pewc-item[data-field-type="checkbox"]:hover {
	border-color: #856024;
	box-shadow: 0 2px 10px rgba(133, 96, 36, .08);
}
.pewc-item[data-field-type="checkbox"]:has(input:checked) {
	border-color: #856024;
	background: #fdf8f0;
}
.pewc-item[data-field-type="checkbox"] input[type="checkbox"] {
	width: 22px;
	height: 22px;
	accent-color: #856024;
	margin-right: 10px;
	vertical-align: middle;
	cursor: pointer;
}
.pewc-item[data-field-type="checkbox"] .pewc-field-label {
	cursor: pointer;
	margin: 0;
}
/* The plugin prints a required-style asterisk on OPTIONAL add-on checkboxes —
   visually reads as "mandatory". Hide it there only (real required fields keep it). */
.pewc-item[data-field-type="checkbox"] .required {
	display: none;
}

/* Remove the stray list bullets before add-on rows */
.pewc-product-extra-groups li.pewc-item,
ul.pewc-product-extra-groups,
.pewc-group-wrap ul {
	list-style: none;
	margin-left: 0;
	padding-left: 0;
}

/* ---------- Product page: totals block ---------- */
.pewc-total-field-wrapper p {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	margin: 6px 0;
	padding: 0;
}
.pewc-total-field-wrapper p:last-child {
	border-top: 1.5px solid #e8dcc8;
	margin-top: 10px;
	padding-top: 10px;
	font-size: 1.25em;
	font-weight: 600;
	color: #3a3025;
}

/* ---------- Quantity + primary buy buttons ---------- */
form.cart .quantity .qty {
	min-height: 48px;
	font-size: 16px;
}
.single_add_to_cart_button,
.wc-block-cart__submit-button,
.wc-block-components-checkout-place-order-button,
.checkout-button,
a.checkout-button {
	background-color: #856024 !important;
	border-color: #856024 !important;
	color: #fff !important;
	min-height: 52px;
	font-weight: 600;
	letter-spacing: .01em;
	transition: background-color .15s ease, box-shadow .15s ease;
}
.single_add_to_cart_button:hover,
.wc-block-cart__submit-button:hover,
.wc-block-components-checkout-place-order-button:hover,
.checkout-button:hover {
	background-color: #6f501e !important;
	border-color: #6f501e !important;
	box-shadow: 0 4px 14px rgba(133, 96, 36, .35);
}

/* ---------- Checkout reassurance row (populated by lovia-shop-ux.js) ---- */
.lovia-checkout-trust {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 18px;
	justify-content: center;
	margin: 14px 0 4px;
	font-size: 13px;
	color: #6b5e50;
}
.lovia-checkout-trust span::before {
	content: "✓ ";
	color: #856024;
	font-weight: 700;
}

/* ---------- Mobile sticky buy bar (product pages) ---------- */
.lovia-sticky-atc {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 9999;
	display: none;
	align-items: center;
	gap: 12px;
	padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
	background: #fff;
	border-top: 1px solid #e8dcc8;
	box-shadow: 0 -4px 16px rgba(0, 0, 0, .08);
}
.lovia-sticky-atc.is-visible {
	display: flex;
}
.lovia-sticky-atc__price {
	font-weight: 700;
	font-size: 17px;
	color: #3a3025;
	white-space: nowrap;
}
.lovia-sticky-atc__btn {
	flex: 1;
	background: #856024;
	color: #fff;
	border: 0;
	border-radius: 10px;
	min-height: 48px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
}
@media (min-width: 768px) {
	.lovia-sticky-atc {
		display: none !important;
	}
}

/* ---------- Distraction-light checkout ----------
   Keep logo + cart total; hide nav/search/topbar so the only path
   forward is completing the order. */
body.woocommerce-checkout .ct-header [data-id="menu"],
body.woocommerce-checkout nav[aria-label="Sus"],
body.woocommerce-checkout .ct-header-search,
body.woocommerce-checkout [data-id="search-input"],
body.woocommerce-checkout .ct-header-top {
	display: none !important;
}

