/* ============================================================
 * Garmin — Checkout & Account Restyle
 * Path: assets/css/garmin-checkout.css
 * ============================================================ */


/* ============================================================
 * 1. Checkout — Card-style payment method radios
 * ============================================================ */
ul.wc_payment_methods.payment_methods,
ul.payment_methods {
	list-style: none !important;
	padding: 0 !important;
	margin: 0 !important;
	display: flex !important;
	flex-direction: column !important;
	gap: 14px !important;
}

ul.wc_payment_methods > li.wc_payment_method {
	border: 1px solid #e5e7eb !important;
	border-radius: 10px !important;
	background: #fafafa !important;
	padding: 22px 20px !important;
	margin: 0 !important;
	list-style: none !important;
	transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
	position: relative;
	cursor: pointer;
}

ul.wc_payment_methods > li.wc_payment_method:hover {
	border-color: #c7c7c7 !important;
	background: #f5f5f5 !important;
}

ul.wc_payment_methods > li.wc_payment_method:has(input[type="radio"]:checked) {
	border-color: #2563eb !important;
	background: #fff !important;
	box-shadow: 0 0 0 2px rgba(37, 99, 235, .12) !important;
}

ul.wc_payment_methods > li.wc_payment_method > label {
	display: flex !important;
	align-items: center !important;
	gap: 10px !important;
	font-weight: 600 !important;
	cursor: pointer !important;
	width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
}

ul.wc_payment_methods > li.wc_payment_method > label img {
	margin-left: auto !important;
	max-height: 28px !important;
	width: auto !important;
}

ul.wc_payment_methods > li.wc_payment_method .payment_box {
	margin: 16px 0 0 !important;
	padding: 0 8px !important;
	background: transparent !important;
	border: 0 !important;
}
ul.wc_payment_methods > li.wc_payment_method .payment_box::before {
	display: none !important;
}

/* VanaPay description text — kill the underline/border below it. */
li.payment_method_vana_pay .payment_box p,
li.payment_method_vana_pay .payment_box {
	border: 0 !important;
	border-bottom: 0 !important;
	box-shadow: none !important;
	text-decoration: none !important;
	background: transparent !important;
	padding-bottom: 0 !important;
	margin-bottom: 0 !important;
}

/* BAC payment_box — Elementor's post-2195.css applies
   `display: -webkit-box` (legacy flex) to .payment_method_tilopay,
   which makes our injected .payment_box render as a flex item
   pushed OUTSIDE the <li>. Force it back to a plain block. */
#payment ul.wc_payment_methods > li.payment_method_tilopay {
	display: block !important;
}
#payment ul.wc_payment_methods > li.payment_method_tilopay .payment_box {
	display: block !important;
	width: 100% !important;
	max-width: 100% !important;
	box-sizing: border-box !important;
	position: static !important;
}
#payment ul.wc_payment_methods > li.payment_method_tilopay .payment_box.payment_method_tilopay {
	margin: 16px 0 0 !important;
	padding: 0 8px !important;
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
}
#payment ul.wc_payment_methods > li.payment_method_tilopay .payment_box.payment_method_tilopay p {
	margin: 0 !important;
	padding: 0 !important;
	color: var(--color-gray-700, #707070);
	font-size: 14px;
	line-height: 1.4;
}


/* ============================================================
 * 2. Checkout — PayBi gateway logo on radio row
 * ============================================================ */
.cc-paybi-row-logo {
	margin-left: auto !important;
	max-height: 30px !important;
	width: auto !important;
	display: inline-block !important;
	vertical-align: middle !important;
}


/* ============================================================
 * 3. Checkout — PayBi expanded section: header bar
 *    Sits inside <fieldset>, between the logo image and the
 *    first form-row.
 * ============================================================ */
.cc-paybi-header {
	background: #0a2a5e;
	color: #fff;
	padding: 14px 20px;
	border-radius: 8px;
	font-size: 15px;
	font-weight: 600;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin: 20px 0 24px 0;
	letter-spacing: .2px;
}
.cc-paybi-header svg {
	width: 22px;
	height: 22px;
	flex-shrink: 0;
}


/* ============================================================
 * 4. Checkout — PayBi expanded section: form fields
 *    DOM: .payment_box > fieldset > .form-row
 * ============================================================ */
li.payment_method_PLUGIN_gateway_Ebilink .payment_box {
	padding-right: 20px !important;
	padding-left: 8px !important;
}

/* Center the PayBi/Neonet logo image */
li.payment_method_PLUGIN_gateway_Ebilink .payment_box fieldset > img {
	display: block !important;
	margin: 16px auto !important;
	max-width: 100% !important;
	height: auto !important;
}

li.payment_method_PLUGIN_gateway_Ebilink .payment_box label {
	display: block !important;
	color: #0a2a5e !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	margin: 0 0 6px 0 !important;
	padding: 0 !important;
}
li.payment_method_PLUGIN_gateway_Ebilink .payment_box label .required,
li.payment_method_PLUGIN_gateway_Ebilink .payment_box label abbr {
	color: #dc2626 !important;
	text-decoration: none !important;
	border: 0 !important;
}

li.payment_method_PLUGIN_gateway_Ebilink .payment_box input[type="text"],
li.payment_method_PLUGIN_gateway_Ebilink .payment_box input[type="number"],
li.payment_method_PLUGIN_gateway_Ebilink .payment_box input[type="tel"],
li.payment_method_PLUGIN_gateway_Ebilink .payment_box input[type="email"],
li.payment_method_PLUGIN_gateway_Ebilink .payment_box select {
	width: 100% !important;
	height: 44px !important;
	padding: 10px 14px !important;
	border: 1px solid #d1d5db !important;
	border-radius: 6px !important;
	background: #fff !important;
	font-size: 14px !important;
	color: #0a2a5e !important;
	box-sizing: border-box !important;
	transition: border-color .15s ease, box-shadow .15s ease;
	box-shadow: none !important;
}

li.payment_method_PLUGIN_gateway_Ebilink .payment_box input::placeholder {
	color: #9ca3af !important;
	opacity: 1 !important;
}

li.payment_method_PLUGIN_gateway_Ebilink .payment_box input:focus,
li.payment_method_PLUGIN_gateway_Ebilink .payment_box select:focus {
	outline: none !important;
	border-color: #06b6d4 !important;
	box-shadow: 0 0 0 3px rgba(6, 182, 212, .15) !important;
}

li.payment_method_PLUGIN_gateway_Ebilink .payment_box .form-row,
li.payment_method_PLUGIN_gateway_Ebilink .payment_box p.form-row {
	margin: 0 0 16px 0 !important;
	padding: 0 !important;
}

/* Vence + Código side-by-side
   Selector targets the actual DOM:
   .payment_box > fieldset > p.form-row-first / p.form-row-last */
li.payment_method_PLUGIN_gateway_Ebilink .payment_box fieldset > p.form-row-first {
	width: calc(50% - 10px) !important;
	float: left !important;
	margin-right: 20px !important;
	clear: none !important;
}
li.payment_method_PLUGIN_gateway_Ebilink .payment_box fieldset > p.form-row-last {
	width: calc(50% - 10px) !important;
	float: left !important;
	margin-right: 0 !important;
	clear: none !important;
}
li.payment_method_PLUGIN_gateway_Ebilink .payment_box fieldset > .clear,
li.payment_method_PLUGIN_gateway_Ebilink .payment_box fieldset > p.form-row-wide {
	clear: both !important;
}

li.payment_method_PLUGIN_gateway_Ebilink .payment_box img[src*="visa"],
li.payment_method_PLUGIN_gateway_Ebilink .payment_box img[src*="mastercard"] {
	max-height: 32px !important;
	width: auto !important;
}
li.payment_method_PLUGIN_gateway_Ebilink .payment_box a[href*="bi.com.gt"],
li.payment_method_PLUGIN_gateway_Ebilink .payment_box a[href*="bancoindustrial"] {
	color: #0a2a5e !important;
	font-weight: 600 !important;
	text-decoration: none !important;
}

li.payment_method_PLUGIN_gateway_Ebilink .payment_box select {
	appearance: none;
	-webkit-appearance: none;
	background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a2a5e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'/%3e%3c/svg%3e") !important;
	background-repeat: no-repeat !important;
	background-position: right 14px center !important;
	background-size: 18px !important;
	padding-right: 40px !important;
}


/* ============================================================
 * 5. My Account — Site Kit Google Sign-In wrapper
 * ============================================================ */
.googlesitekit-sign-in-with-google__frontend-output-button {
	display: flex !important;
	justify-content: center !important;
	width: 100% !important;
	margin: 0 0 20px 0 !important;
	padding: 0 !important;
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
}
.googlesitekit-sign-in-with-google__frontend-output-button .S9gUrf-YoZ4jf,
.googlesitekit-sign-in-with-google__frontend-output-button > div {
	width: 100% !important;
	max-width: 400px !important;
}
.googlesitekit-sign-in-with-google__frontend-output-button iframe {
	width: 100% !important;
	min-width: 240px !important;
	color-scheme: light !important;
}


/* ============================================================
 * 6. Checkout — Spacing above terms checkbox
 *    Border was removed (was creating an unwanted divider line
 *    right below the VanaPay row). Top padding kept so the
 *    privacy paragraph has breathing room above it.
 * ============================================================ */
.woocommerce-terms-and-conditions-wrapper {
	padding-top: 20px !important;
	border-top: 0 !important;
}


/* ============================================================
 * 7. Checkout — Payment method row layout
 *
 *    Paired with restructurePaymentRows() in garmin-checkout.js,
 *    which wraps the radio + label + logo of each payment method
 *    into a single .cc-row-flex container:
 *
 *      <li class="wc_payment_method">
 *        <div class="cc-row-flex">
 *          <input type="radio">
 *          <label>title text</label>
 *          <span class="cc-row-logo-slot">
 *            <img>
 *          </span>
 *        </div>
 *        <div>...payment_box (if expanded)...</div>
 *      </li>
 *
 *    Desktop (>600px): flex row with logo right-aligned, matching
 *    the original WooCommerce visual layout.
 *    Phones (≤600px): smaller logos + title, same flex layout.
 * ============================================================ */

/* All viewports — base flex row layout for the new wrapper. */
#payment ul.wc_payment_methods > li.wc_payment_method .cc-row-flex {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: nowrap !important;
	align-items: center !important;
	gap: 12px !important;
	width: 100% !important;
}

#payment ul.wc_payment_methods > li.wc_payment_method .cc-row-flex > input[type="radio"] {
	flex-shrink: 0 !important;
	margin: 0 !important;
	vertical-align: middle !important;
	position: static !important;
	float: none !important;
}

#payment ul.wc_payment_methods > li.wc_payment_method .cc-row-flex > label {
	flex: 1 1 auto !important;
	margin: 0 !important;
	padding: 0 !important;
	font-weight: 600 !important;
	cursor: pointer !important;
	display: inline !important;
}

#payment ul.wc_payment_methods > li.wc_payment_method .cc-row-flex > .cc-row-logo-slot {
	flex: 0 0 auto !important;
	margin-left: auto !important;
	display: flex !important;
	align-items: center !important;
	justify-content: flex-end !important;
}

/* Desktop & tablet (>600px) — generous logo size matching original. */
#payment ul.wc_payment_methods > li.wc_payment_method .cc-row-flex > .cc-row-logo-slot img {
	width: auto !important;
	max-width: 160px !important;
	height: 32px !important;
	max-height: 24px !important;
	object-fit: contain !important;
	object-position: right center !important;
	margin: 0 !important;
	padding: 0 !important;
	display: block !important;
}

/* Phones (≤600px) — smaller logos + title to fit narrow screens. */
@media (max-width: 600px) {
	#payment ul.wc_payment_methods > li.wc_payment_method .cc-row-flex {
		gap: 10px !important;
	}
	#payment ul.wc_payment_methods > li.wc_payment_method .cc-row-flex > label {
		font-size: 13px !important;
		line-height: 1.3 !important;
	}
	#payment ul.wc_payment_methods > li.wc_payment_method .cc-row-flex > .cc-row-logo-slot img {
		max-width: 110px !important;
		height: 24px !important;
		max-height: 24px !important;
	}

	/* PayBi: bigger (wide busy logo, needs room to read). */
	#payment ul.wc_payment_methods > li.payment_method_PLUGIN_gateway_Ebilink .cc-row-flex > .cc-row-logo-slot img {
		max-width: 140px !important;
		height: 32px !important;
		max-height: 32px !important;
	}

	/* BAC: slightly smaller than PayBi (wide horizontal logo
	   reads at smaller sizes since it's just text + simple mark). */
	#payment ul.wc_payment_methods > li.payment_method_tilopay .cc-row-flex > .cc-row-logo-slot img {
		max-width: 125px !important;
		height: 28px !important;
		max-height: 28px !important;
	}

	/* VanaPay: smaller (tall pill shape, dominates the row otherwise). */
	#payment ul.wc_payment_methods > li.payment_method_vana_pay .cc-row-flex > .cc-row-logo-slot img {
		max-width: 80px !important;
		height: 22px !important;
		max-height: 22px !important;
	}
}

/* Smaller phones (≤400px) — tighter title and logo. */
@media (max-width: 400px) {
	#payment ul.wc_payment_methods > li.wc_payment_method .cc-row-flex {
		gap: 6px !important;
	}
	#payment ul.wc_payment_methods > li.wc_payment_method .cc-row-flex > label {
		font-size: 12px !important;
	}
	#payment ul.wc_payment_methods > li.wc_payment_method .cc-row-flex > .cc-row-logo-slot img {
		max-width: 90px !important;
	}
	#payment ul.wc_payment_methods > li.payment_method_PLUGIN_gateway_Ebilink .cc-row-flex > .cc-row-logo-slot img {
		max-width: 120px !important;
		height: 28px !important;
		max-height: 28px !important;
	}
	#payment ul.wc_payment_methods > li.payment_method_tilopay .cc-row-flex > .cc-row-logo-slot img {
		max-width: 105px !important;
		height: 24px !important;
		max-height: 24px !important;
	}
	#payment ul.wc_payment_methods > li.payment_method_vana_pay .cc-row-flex > .cc-row-logo-slot img {
		max-width: 70px !important;
		height: 20px !important;
		max-height: 20px !important;
	}
}