/*
 * lp5 styles: the design switches at 960 px (isDesk = width >= 960), so its phone-only and
 * desktop-only blocks are lp5-m / lp5-d here, and the values that change there live as lp5-*
 * classes: product gallery (bleed, corners, sticky), footer and FAQ room for the sticky bar, cart
 * and checkout columns. Then the design's link color 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 960 px (lp-m / lp-d switch at 1024). */
@media (max-width: 959.98px) { .sap-lp5 .lp5-d { display: none !important; } }
@media (min-width: 960px) { .sap-lp5 .lp5-m, .sap-lp5 .lp-sticky { display: none !important; } }
/* The checkout header's WhatsApp icon, shown only when its text is hidden (below 480 px). */
.sap-lp5 .lp5-xs { display: none !important; }
@media (max-width: 479.98px) { .sap-lp5 .lp5-xs { display: block !important; } }

/* The design's base (its design system's body rule: text-wrap pretty, no lone last words) and its
   links (its page reset): forest, teal on hover. Buttons drawn as links keep theirs. */
.sap-lp.sap-lp5 { --lp-link: #223b35; --lp-line: #e3e6e3; --lp-muted: #4a4f4d; text-wrap: pretty; }
.sap-lp.sap-lp5 a:not(.lp-btn):not(.lp-btn-ghost) { color: #223b35; text-underline-offset: 3px; }
.sap-lp.sap-lp5 a:not(.lp-btn):not(.lp-btn-ghost):hover { color: #4c8686; }

/* Gallery dots in the design's gray. */
.sap-lp5 .lp-dot { background: #c9d2ce; }

/* Product gallery: edge to edge on phones (not sticky there: the design's sticky gallery covered the
   title and buy button while scrolling), 22 px corners and sticky under the header on desktop. */
.sap-lp5 .lp5-gal { margin: 0 calc(-1 * clamp(20px, 4vw, 40px)); }
.sap-lp5 .lp5-gal-row { border-radius: 0; }
.sap-lp5 .lp5-gal .lp-gnote { margin: 0 clamp(20px, 4vw, 40px) !important; } /* the gallery note box keeps the gutter while the photos are full-bleed (over its inline margin) */

/* Room for the phones' sticky buy bar. */
.sap-lp5 .lp5-foot { padding-bottom: 56px; }
@media (max-width: 959.98px) {
	.sap-lp5 .lp5-foot-bar { padding-bottom: 120px; }
	.sap-lp5 .lp5-bar-room { padding-bottom: 130px !important; }
}

/* Cart. */
.sap-lp5 .lp5-cart-sum { position: sticky; top: 80px; }
.sap-lp5 .lp5-step:hover { background: #f5f5f3 !important; }
.sap-lp5 .lp5-step:first-child { border-radius: 999px 0 0 999px; }
.sap-lp5 .lp5-step:last-child { border-radius: 0 999px 999px 0; }

/* Checkout: the summary card first on phones (closed), the right column on desktop (open). */
.sap-lp5 .lp5-co { grid-template-columns: minmax(0, 1fr); }
.sap-lp5 .lp5-co-aside { order: -1; }
.sap-lp5.lp-co [data-toggle][aria-expanded="true"] .lp-chev { transform: rotate(180deg); }
.sap-lp5.lp-co .lp-chev { transition: transform .2s; }

@media (min-width: 960px) {
	.sap-lp5 .lp5-gal { margin: 0; position: sticky; top: 76px; }
	.sap-lp5 .lp5-gal-row { border-radius: 22px; }
	.sap-lp5 .lp5-gal .lp-gnote { margin: 0 !important; }
	.sap-lp5 .lp5-co { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
	.sap-lp5 .lp5-co-aside { order: 0; position: sticky; top: 84px; }
	.sap-lp5 .lp5-co-toggle { min-height: 60px !important; padding: 16px 20px !important; font-size: 17px !important; }
	.sap-lp5 .lp5-co-review { padding: 0 20px 16px !important; gap: 12px !important; }
	.sap-lp5 .lp5-co-total { padding-top: 10px !important; font-size: 20px !important; }
	.sap-lp5 .lp5-co-note { padding: 12px 20px 14px !important; }
	body.admin-bar .sap-lp5 .lp5-gal { top: 108px; }
	body.admin-bar .sap-lp5 .lp5-cart-sum { top: 112px; }
	body.admin-bar .sap-lp5 .lp5-co-aside { top: 116px; }
}

/* ---- Fields (Checkout.dc.html: bold 16px labels, 52px inputs, 8px corners, helper lines) ---- */
.sap-lp5.lp-co .woocommerce-billing-fields__field-wrapper {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}
.sap-lp5.lp-co .woocommerce-billing-fields__field-wrapper > .form-row {
	grid-column: 1 / -1;
	float: none;
	width: auto;
	margin: 0;
	padding: 0;
}
.sap-lp5.lp-co .woocommerce-billing-fields__field-wrapper > .form-row-first { grid-column: 1; }
.sap-lp5.lp-co .woocommerce-billing-fields__field-wrapper > .form-row-last { grid-column: 2; }
@media (max-width: 479.98px) {
	.sap-lp5.lp-co .woocommerce-billing-fields__field-wrapper > .form-row-first,
	.sap-lp5.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-lp5.lp-co #billing_country_field { display: none !important; }

.sap-lp5.lp-co .form-row label {
	display: block;
	margin: 0 0 6px;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3;
	color: #1a1a1a;
}
.sap-lp5.lp-co .form-row .required { color: #b3261e; text-decoration: none; border: 0; }
.sap-lp5.lp-co .form-row .optional { font-weight: 400; color: #4a4f4d; }
.sap-lp5.lp-co .form-row .woocommerce-input-wrapper { display: block; }
.sap-lp5.lp-co .form-row input.input-text,
.sap-lp5.lp-co .form-row select,
.sap-lp5.lp-co .form-row textarea {
	width: 100%;
	height: 52px;
	margin: 0;
	padding: 0 14px;
	border: 1px solid #c9d0cc;
	border-radius: 8px;
	background: #fff;
	box-shadow: none;
	font-family: inherit;
	font-size: 17px;
	line-height: 1.2;
	color: #1a1a1a;
}
.sap-lp5.lp-co .form-row input.input-text:focus,
.sap-lp5.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-lp5.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: #4a4f4d !important;
	font-size: 15px !important;
	line-height: 1.4 !important;
}
.sap-lp5.lp-co .form-row .description::before { display: none; }
.sap-lp5.lp-co .form-row.woocommerce-invalid input.input-text,
.sap-lp5.lp-co .form-row.woocommerce-invalid .select2-selection { border: 1.5px solid #b3261e; }

/* City search (selectWoo) drawn as the design's select. */
.sap-lp5.lp-co .select2-container { width: 100% !important; }
.sap-lp5.lp-co .select2-container .select2-selection--single {
	height: 52px;
	border: 1px solid #c9d0cc;
	border-radius: 8px;
	background: #fff;
}
.sap-lp5.lp-co .select2-container .select2-selection--single .select2-selection__rendered {
	padding: 0 40px 0 14px;
	line-height: 50px;
	font-size: 17px;
	color: #1a1a1a;
}
.sap-lp5.lp-co .select2-container .select2-selection--single .select2-selection__arrow { height: 50px; right: 10px; }
body.sap-lp-lp5 .select2-dropdown { border-color: #c9d0cc; border-radius: 8px; font-family: "Sofia Sans", system-ui, sans-serif; font-size: 16px; }
body.sap-lp-lp5 .select2-search--dropdown .select2-search__field { height: 44px; border: 1px solid #c9d0cc; border-radius: 6px; padding: 0 10px; font-size: 16px; }
body.sap-lp-lp5 .select2-results__option--highlighted[aria-selected],
body.sap-lp-lp5 .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-lp5.lp-co #payment { background: none; border-radius: 0; }
.sap-lp5.lp-co #payment ul.payment_methods { margin: 0; padding: 0; border: 0; }
.sap-lp5.lp-co #payment ul.payment_methods li { line-height: inherit; text-align: left; }
.sap-lp5.lp-co #payment div.form-row { margin: 0; padding: 0; }
.sap-lp5.lp-co #payment .lp-co-card img { max-height: 26px; margin: 0; float: none; }
/* Bold's own promo panel (no fields) repeats the card's text: kept in the page, not shown. */
.sap-lp5.lp-co #payment .payment_box.payment_method_bold_co { display: none !important; }

.sap-lp5.lp-co .lp-co-method { position: relative; margin: 0; padding: 0; }
.sap-lp5.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 #d5dad7;
	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-lp5.lp-co #payment .lp-co-card:hover { border-color: #223b35; }
.sap-lp5.lp-co #payment .lp-co-card:has(input.lp-co-radio:checked) {
	border-color: #223b35;
	box-shadow: inset 0 0 0 1px #223b35;
	background: #fcf5df;
}
.sap-lp5.lp-co #payment .lp-co-card > input.lp-co-radio {
	position: absolute;
	left: 16px;
	top: 18px;
	width: 22px;
	height: 22px;
	margin: 0 !important;
	-webkit-appearance: none;
	appearance: none;
	border: 2px solid #223b35;
	border-radius: 999px;
	background: #fff;
	cursor: pointer;
}
.sap-lp5.lp-co #payment .lp-co-card > input.lp-co-radio:checked { background: radial-gradient(circle, #223b35 0 5px, #fff 5.5px); }
.sap-lp5.lp-co #payment .lp-co-card > input.lp-co-radio:focus-visible { outline: 2px solid #007ea7; outline-offset: 2px; }
.sap-lp5.lp-co .lp-co-method .payment_box { margin: 8px 0 0; padding: 12px 16px; border-radius: 10px; background: #f5f5f3; font-size: 15px; }
.sap-lp5.lp-co .lp-co-method .payment_box::before { display: none; }

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

/* Coupon: one quiet line above the form, like the cart's link. */
.sap-lp5.lp-co .woocommerce-form-coupon-toggle .woocommerce-info {
	border: 0;
	background: none;
	padding: 0;
	text-align: center;
	color: #4a4f4d;
	font-size: 15px;
}
.sap-lp5.lp-co .woocommerce-form-coupon-toggle .showcoupon { font-weight: 600; }
.sap-lp5.lp-co form.checkout_coupon {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 16px;
	padding: 14px;
	border: 1px solid #e3e6e3;
	border-radius: 14px;
	background: #fff;
}
.sap-lp5.lp-co form.checkout_coupon p:first-child { flex: 1 1 100%; margin: 0; font-size: 15px; color: #4a4f4d; }
.sap-lp5.lp-co form.checkout_coupon .form-row { float: none; width: auto; margin: 0; padding: 0; }
.sap-lp5.lp-co form.checkout_coupon .form-row-first { flex: 1 1 200px; }
.sap-lp5.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 card ---- */
.sap-lp5.lp-co .lp-co-hooks { width: 100%; margin: 0; border: 0; border-collapse: collapse; }
.sap-lp5.lp-co .lp-co-hooks:has(tbody:empty) { display: none; }
.sap-lp5.lp-co .lp-co-ship { width: 100%; margin: -4px 0 0; border: 0; border-collapse: collapse; }
.sap-lp5.lp-co .lp-co-ship th { display: none; }
.sap-lp5.lp-co .lp-co-ship td { padding: 0; border: 0; text-align: left; }
.sap-lp5.lp-co .lp-co-ship ul#shipping_method { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.sap-lp5.lp-co .lp-co-ship ul#shipping_method li { margin: 0; padding: 0; display: flex; align-items: center; gap: 8px; font-size: 15px; color: #4a4f4d; }
.sap-lp5.lp-co .lp-co-ship ul#shipping_method input { margin: 0; accent-color: #223b35; }
.sap-lp5.lp-co .lp-co-ship ul#shipping_method label { margin: 0; font-weight: 400; }
.sap-lp5.lp-co .lp-co-ship .woocommerce-shipping-destination,
.sap-lp5.lp-co .lp-co-ship .woocommerce-shipping-calculator { display: none; }

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