/*
 * lp4 styles: the design sizes itself at 900 px (its own width; the page is full width, so media
 * queries), so the values that change there live here as lp4-* classes: header, hero, section
 * paddings, units-sold tiles, pack buttons, product gallery, data tiles, chips, cart and checkout
 * columns. Then the FAQ chevron and the checkout parts WooCommerce renders (fields, city search,
 * gateway cards, shipping list, notices, coupon line). Everything else is inline in the screens.
 */

/* Phone-only / desktop-only blocks at the design's 900 px (lp-m / lp-d switch at 1024). */
@media (max-width: 899.98px) { .sap-lp4 .lp4-d { display: none !important; } }
@media (min-width: 900px) { .sap-lp4 .lp4-m, .sap-lp4 .lp-sticky { display: none !important; } }

/* Header: 56 px and a 32 px logo on phones (28 px on the checkout), 72 and 40 on desktop. */
.sap-lp4 .lp4-head { height: 56px; }
.sap-lp4 .lp4-logo { height: 32px; }
.sap-lp4 .lp4-logo.lp4-logo-co { height: 28px; }

/* Home. */
.sap-lp4 .lp4-hero { padding: 0; gap: 0; }
.sap-lp4 .lp4-hero-img { height: 252px; border-radius: 0; }
.sap-lp4 .lp4-hero-text { padding: 12px 20px 16px; gap: 10px; }
.sap-lp4 .lp4-lead { font-size: 16px; }
.sap-lp4 .lp4-sec { padding: 56px 0; }
.sap-lp4 .lp4-sec-sm { padding: 40px 0; }
.sap-lp4 .lp4-foot { padding: 48px 0 40px; }
.sap-lp4 .lp4-digit { width: 42px; height: 60px; font-size: 46px; }
.sap-lp4 .lp4-digit.lp4-digit-sep { width: 12px; }
.sap-lp4 .lp4-pack-btn { flex: 1 1 100%; }

/* Product. */
.sap-lp4 .lp4-prod { padding: 8px 20px 48px; }
.sap-lp4 .lp4-gal { position: relative; }
.sap-lp4 .lp4-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sap-lp4 .lp4-tile { padding: 16px; }
.sap-lp4 .lp4-tile-k { font-size: 26px; }
.sap-lp4 .lp4-chips { flex-wrap: nowrap; scrollbar-width: none; }
.sap-lp4 .lp4-chips::-webkit-scrollbar { display: none; }

/* Cart. */
.sap-lp4 .lp4-cart-main { padding: 24px 20px 48px; }
.sap-lp4 .lp4-cart-thumb { width: 84px; height: 84px; }
.sap-lp4 .lp4-cart-sum { position: static; }
.sap-lp4 .lp4-step:hover { background: #f5f5f3 !important; }

/* Checkout: the summary card first on phones, the right column on desktop. */
.sap-lp4 .lp4-co-page { padding: 16px 16px 48px; }
.sap-lp4 .lp4-co { flex-direction: column; align-items: stretch; }
.sap-lp4 .lp4-co-form { flex: 0 0 auto; }
.sap-lp4 .lp4-co-aside { order: -1; flex: 0 0 auto; }

@media (min-width: 900px) {
	.sap-lp4 .lp4-head { height: 72px; }
	.sap-lp4 .lp4-logo,
	.sap-lp4 .lp4-logo.lp4-logo-co { height: 40px; }
	.sap-lp4 .lp4-hero { padding: 40px 20px 88px; gap: 64px; }
	.sap-lp4 .lp4-hero-img { height: 680px; border-radius: 22px; }
	.sap-lp4 .lp4-hero-text { padding: 0; gap: 22px; }
	.sap-lp4 .lp4-lead { font-size: 19px; }
	.sap-lp4 .lp4-sec { padding: 96px 0; }
	.sap-lp4 .lp4-sec-sm { padding: 72px 0; }
	.sap-lp4 .lp4-foot { padding: 72px 0 56px; }
	.sap-lp4 .lp4-digit { width: 60px; height: 84px; font-size: 64px; }
	.sap-lp4 .lp4-digit.lp4-digit-sep { width: 18px; }
	.sap-lp4 .lp4-pack-btn { flex: 0 0 220px; }
	.sap-lp4 .lp4-prod { padding: 16px 20px 88px; }
	.sap-lp4 .lp4-gal { position: sticky; top: 96px; }
	.sap-lp4 .lp4-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.sap-lp4 .lp4-tile { padding: 28px; }
	.sap-lp4 .lp4-tile-k { font-size: 38px; }
	.sap-lp4 .lp4-chips { flex-wrap: wrap; }
	.sap-lp4 .lp4-cart-main { padding: 56px 20px 96px; }
	.sap-lp4 .lp4-cart-thumb { width: 112px; height: 112px; }
	.sap-lp4 .lp4-cart-sum { position: sticky; top: 96px; }
	.sap-lp4 .lp4-co-page { padding: 48px 20px 96px; }
	.sap-lp4 .lp4-co { flex-direction: row; align-items: flex-start; }
	.sap-lp4 .lp4-co-form { flex: 1 1 540px; }
	.sap-lp4 .lp4-co-aside { order: 0; flex: 1 1 340px; position: sticky; top: 96px; }
	body.admin-bar .sap-lp4 .lp4-gal,
	body.admin-bar .sap-lp4 .lp4-cart-sum,
	body.admin-bar .sap-lp4 .lp4-co-aside { top: 128px; }
}

/* Buttons: the design's darker hover. */
.sap-lp4 a.lp-btn:hover { background: #172a26 !important; }

/* FAQ and ingredients: the chevron turns when open. */
.sap-lp4 details.lp-faq .lp4-chev { transition: transform .2s cubic-bezier(.4, 0, .2, 1); }
.sap-lp4 details.lp-faq[open] > summary .lp4-chev { transform: rotate(180deg); }

/* Checkout summary chevron. */
.sap-lp4.lp-co .lp-chev { transition: transform .2s cubic-bezier(.4, 0, .2, 1); }

/* ---- Fields (Checkout.dc.html: bold 15px labels, 50px inputs, 8px corners) ---- */
.sap-lp4.lp-co .woocommerce-billing-fields__field-wrapper {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}
.sap-lp4.lp-co .woocommerce-billing-fields__field-wrapper > .form-row {
	grid-column: 1 / -1;
	float: none;
	width: auto;
	margin: 0;
	padding: 0;
}
.sap-lp4.lp-co .woocommerce-billing-fields__field-wrapper > .form-row-first { grid-column: 1; }
.sap-lp4.lp-co .woocommerce-billing-fields__field-wrapper > .form-row-last { grid-column: 2; }
@media (max-width: 479.98px) {
	.sap-lp4.lp-co .woocommerce-billing-fields__field-wrapper > .form-row-first,
	.sap-lp4.lp-co .woocommerce-billing-fields__field-wrapper > .form-row-last { grid-column: 1 / -1; }
}
/* One country only (Colombia, preselected): the value is still submitted. */
.sap-lp4.lp-co #billing_country_field { display: none !important; }

.sap-lp4.lp-co .form-row label {
	display: block;
	margin: 0 0 6px;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
	color: #1a1a1a;
}
.sap-lp4.lp-co .form-row .required { color: #9a3b2a; text-decoration: none; border: 0; }
.sap-lp4.lp-co .form-row .optional { font-weight: 400; color: #3d4a47; }
.sap-lp4.lp-co .form-row .woocommerce-input-wrapper { display: block; }
.sap-lp4.lp-co .form-row input.input-text,
.sap-lp4.lp-co .form-row select,
.sap-lp4.lp-co .form-row textarea {
	width: 100%;
	height: 50px;
	margin: 0;
	padding: 0 14px;
	border: 1px solid #cfd6d3;
	border-radius: 8px;
	background: #fff;
	box-shadow: none;
	font-family: inherit;
	font-size: 16px;
	line-height: 1.2;
	color: #1a1a1a;
}
.sap-lp4.lp-co .form-row input.input-text:focus,
.sap-lp4.lp-co .form-row select:focus { outline: 2px solid #4c8686; outline-offset: 1px; border-color: #4c8686; }
/* The design keeps each helper line visible under its field. */
.sap-lp4.lp-co .form-row .description {
	display: block !important;
	position: static !important;
	margin: 6px 0 0 !important;
	padding: 0 !important;
	border-radius: 0 !important;
	background: none !important;
	color: #5a5a5a !important;
	font-size: 14px !important;
	line-height: 1.4 !important;
}
.sap-lp4.lp-co .form-row .description::before { display: none; }
.sap-lp4.lp-co .form-row.woocommerce-invalid input.input-text,
.sap-lp4.lp-co .form-row.woocommerce-invalid .select2-selection { border-color: #9a3b2a; }

/* City search (selectWoo) drawn as the design's select. */
.sap-lp4.lp-co .select2-container { width: 100% !important; }
.sap-lp4.lp-co .select2-container .select2-selection--single {
	height: 50px;
	border: 1px solid #cfd6d3;
	border-radius: 8px;
	background: #fff;
}
.sap-lp4.lp-co .select2-container .select2-selection--single .select2-selection__rendered {
	padding: 0 40px 0 14px;
	line-height: 48px;
	font-size: 16px;
	color: #1a1a1a;
}
.sap-lp4.lp-co .select2-container .select2-selection--single .select2-selection__arrow { height: 48px; right: 8px; }
body.sap-lp-lp4 .select2-dropdown { border-color: #cfd6d3; border-radius: 8px; font-family: "Sofia Sans", system-ui, sans-serif; font-size: 16px; }
body.sap-lp-lp4 .select2-search--dropdown .select2-search__field { height: 44px; border: 1px solid #cfd6d3; border-radius: 6px; padding: 0 10px; font-size: 16px; }
body.sap-lp-lp4 .select2-results__option--highlighted[aria-selected],
body.sap-lp-lp4 .select2-results__option--highlighted[data-selected] { background: #223b35; color: #fff; }

/* ---- Gateway cards (the #payment ID in the selectors outranks WooCommerce's and Bold's rules) ---- */
.sap-lp4.lp-co #payment { background: none; border-radius: 0; }
.sap-lp4.lp-co #payment ul.payment_methods { margin: 0; padding: 0; border: 0; }
.sap-lp4.lp-co #payment ul.payment_methods li { line-height: inherit; text-align: left; }
.sap-lp4.lp-co #payment div.form-row { margin: 0; padding: 0; }
.sap-lp4.lp-co #payment .lp-co-card img { max-height: 24px; margin: 0; float: none; }
/* Bold's own promo panel (no fields) repeats the card's text: kept in the page, not shown. */
.sap-lp4.lp-co #payment .payment_box.payment_method_bold_co { display: none !important; }

.sap-lp4.lp-co .lp-co-method { position: relative; margin: 0; padding: 0; }
.sap-lp4.lp-co #payment .lp-co-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 0;
	padding: 16px 16px 16px 52px;
	border: 1px solid #d9d9d3;
	border-radius: 14px;
	background: #fff;
	color: #1a1a1a;
	font-size: inherit;
	font-weight: 400;
	line-height: 1.3;
	cursor: pointer;
	transition: border-color .15s ease;
}
.sap-lp4.lp-co #payment .lp-co-card:hover { border-color: #223b35; }
.sap-lp4.lp-co #payment .lp-co-card:has(input.lp-co-radio:checked) {
	border-color: #223b35;
	box-shadow: inset 0 0 0 1px #223b35;
	background: #f5f5f3;
}
.sap-lp4.lp-co #payment .lp-co-card > input.lp-co-radio {
	position: absolute;
	left: 17px;
	top: 19px;
	width: 22px;
	height: 22px;
	margin: 0 !important;
	-webkit-appearance: none;
	appearance: none;
	border: 2px solid #223b35;
	border-radius: 999px;
	background: #fff;
	cursor: pointer;
}
.sap-lp4.lp-co #payment .lp-co-card > input.lp-co-radio:checked { background: radial-gradient(circle, #223b35 0 5px, #fff 5.5px); }
.sap-lp4.lp-co #payment .lp-co-card > input.lp-co-radio:focus-visible { outline: 2px solid #007ea7; outline-offset: 2px; }
.sap-lp4.lp-co .lp-co-method .payment_box { margin: 8px 0 0; padding: 12px 16px; border-radius: 10px; background: #f5f5f3; font-size: 15px; }
.sap-lp4.lp-co .lp-co-method .payment_box::before { display: none; }

/* ---- Pay button, terms, notices ---- */
.sap-lp4.lp-co #place_order { transition: background-color .15s ease, transform .1s ease; }
.sap-lp4.lp-co #place_order:hover { background: #16282a !important; }
.sap-lp4.lp-co #place_order:active { transform: scale(.97); }
.sap-lp4.lp-co .woocommerce-terms-and-conditions-wrapper { font-size: 15px; line-height: 1.45; color: #3d4a47; }
.sap-lp4.lp-co .woocommerce-terms-and-conditions-wrapper:empty,
.sap-lp4.lp-co .woocommerce-privacy-policy-text:empty { display: none; }
.sap-lp4.lp-co .woocommerce-error,
.sap-lp4.lp-co .woocommerce-message,
.sap-lp4.lp-co .woocommerce-info {
	margin: 0 0 16px;
	padding: 12px 14px;
	border: 1px solid #e4e6e3;
	border-left: 4px solid #4c8686;
	border-radius: 10px;
	background: #fff;
	color: #1a1a1a;
	font-size: 16px;
	line-height: 1.45;
	list-style: none;
}
.sap-lp4.lp-co .woocommerce-error { border-left-color: #9a3b2a; }
.sap-lp4.lp-co .woocommerce-error::before,
.sap-lp4.lp-co .woocommerce-message::before,
.sap-lp4.lp-co .woocommerce-info::before { display: none; }
.sap-lp4.lp-co .woocommerce-NoticeGroup-checkout { flex: 1 1 100%; }

/* Coupon: one quiet line above the form, like the cart's link. */
.sap-lp4.lp-co .woocommerce-form-coupon-toggle .woocommerce-info {
	border: 0;
	background: none;
	padding: 0;
	text-align: center;
	color: #3d4a47;
	font-size: 15px;
}
.sap-lp4.lp-co .woocommerce-form-coupon-toggle .showcoupon { color: #007ea7; font-weight: 600; text-underline-offset: 3px; }
.sap-lp4.lp-co form.checkout_coupon {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 16px;
	padding: 14px;
	border: 1px solid #e4e6e3;
	border-radius: 14px;
	background: #fff;
}
.sap-lp4.lp-co form.checkout_coupon p:first-child { flex: 1 1 100%; margin: 0; font-size: 15px; color: #3d4a47; }
.sap-lp4.lp-co form.checkout_coupon .form-row { float: none; width: auto; margin: 0; padding: 0; }
.sap-lp4.lp-co form.checkout_coupon .form-row-first { flex: 1 1 200px; }
.sap-lp4.lp-co form.checkout_coupon .button {
	height: 52px;
	padding: 0 18px;
	border: 1.5px solid #223b35;
	border-radius: 999px;
	background: #fff;
	color: #223b35;
	font-size: 16px;
	font-weight: 700;
}

/* ---- Summary aside ---- */
.sap-lp4.lp-co [data-toggle][aria-expanded="true"] .lp-chev { transform: rotate(180deg); }
.sap-lp4.lp-co .lp-co-hooks { width: 100%; margin: 0; border: 0; border-collapse: collapse; }
.sap-lp4.lp-co .lp-co-hooks:has(tbody:empty) { display: none; }
.sap-lp4.lp-co .lp-co-ship { width: 100%; margin: -4px 0 0; border: 0; border-collapse: collapse; }
.sap-lp4.lp-co .lp-co-ship th { display: none; }
.sap-lp4.lp-co .lp-co-ship td { padding: 0; border: 0; text-align: left; }
.sap-lp4.lp-co .lp-co-ship ul#shipping_method { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.sap-lp4.lp-co .lp-co-ship ul#shipping_method li { margin: 0; padding: 0; display: flex; align-items: center; gap: 8px; font-size: 15px; color: #3d4a47; }
.sap-lp4.lp-co .lp-co-ship ul#shipping_method input { margin: 0; accent-color: #223b35; }
.sap-lp4.lp-co .lp-co-ship ul#shipping_method label { margin: 0; font-weight: 400; }
.sap-lp4.lp-co .lp-co-ship .woocommerce-shipping-destination,
.sap-lp4.lp-co .lp-co-ship .woocommerce-shipping-calculator { display: none; }

/* WooCommerce's layout floats and widths do not apply to this layout. */
.sap-lp4.lp-co .woocommerce form.checkout { margin: 0; }
.sap-lp4.lp-co #customer_details,
.sap-lp4.lp-co #order_review { float: none; width: auto; margin: 0; }
