/**
 * MX Checkout Pro — Public Styles
 *
 * Mobile-first, BEM methodology.
 * Prefix: .mxcheckout-
 *
 * @package MXCheckoutPro
 * @since   1.0.0
 */

/* ═══════════════════════════════════════════
   Custom Properties
   ═══════════════════════════════════════════ */
:root {
	--mxcheckout-primary: #2563eb;
	--mxcheckout-primary-hover: #1d4ed8;
	--mxcheckout-success: #16a34a;
	--mxcheckout-error: #dc2626;
	--mxcheckout-warning: #d97706;
	--mxcheckout-text: #1f2937;
	--mxcheckout-text-muted: #6b7280;
	--mxcheckout-border: #d1d5db;
	--mxcheckout-border-focus: #2563eb;
	--mxcheckout-bg: #ffffff;
	--mxcheckout-bg-secondary: #f9fafb;
	--mxcheckout-bg-sidebar: #fafafa;
	--mxcheckout-radius: 8px;
	--mxcheckout-radius-sm: 4px;
	--mxcheckout-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
	--mxcheckout-transition: 0.2s ease;
	--mxcheckout-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	--mxcheckout-gap: 16px;
}

/* ═══════════════════════════════════════════
   Base / Reset for checkout page
   ═══════════════════════════════════════════ */
.mxcheckout-active .site-header,
.mxcheckout-active .site-footer {
	/* Optional: simplify header/footer on checkout */
}

.mxcheckout {
	font-family: var(--mxcheckout-font);
	color: var(--mxcheckout-text);
	max-width: 1200px;
	margin: 0 auto;
	padding: 20px var(--mxcheckout-gap);
	-webkit-font-smoothing: antialiased;
}

.mxcheckout *,
.mxcheckout *::before,
.mxcheckout *::after {
	box-sizing: border-box;
}

/* ═══════════════════════════════════════════
   Layout: Mobile-first (stacked)
   ═══════════════════════════════════════════ */
.mxcheckout__layout {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.mxcheckout__main {
	flex: 1;
	min-width: 0;
}

.mxcheckout__sidebar {
	background: var(--mxcheckout-bg-sidebar);
	border-top: 1px solid var(--mxcheckout-border);
	padding: var(--mxcheckout-gap);
	order: -1; /* Mobile: summary first when expanded */
	display: none; /* Hidden on mobile by default, toggle via JS */
}

.mxcheckout__sidebar.is-open {
	display: block;
}

/* ═══════════════════════════════════════════
   Layout: Desktop (>768px) — Two columns
   ═══════════════════════════════════════════ */
@media (min-width: 769px) {
	.mxcheckout__layout {
		flex-direction: row;
		gap: 40px;
	}

	.mxcheckout__main {
		flex: 1 1 58%;
		max-width: 58%;
	}

	.mxcheckout__sidebar {
		flex: 0 0 38%;
		max-width: 38%;
		display: block; /* Always visible on desktop */
		order: 0;
		position: sticky;
		top: 100px; /* Clear fixed navbar + 20px breathing room */
		align-self: flex-start;
		border: 1px solid var(--mxcheckout-border);
		border-radius: var(--mxcheckout-radius);
		padding: 24px;
		background: #fff;
		z-index: 10;
	}

	/* Account for WP admin bar when logged in */
	.admin-bar .mxcheckout__sidebar {
		top: 132px; /* 100px + 32px admin bar */
	}

	.mxcheckout__mobile-summary-toggle {
		display: none; /* Hide toggle on desktop */
	}
}

/* Hide theme's page title on checkout — we use section titles instead */
.mxcheckout-active .entry-header,
.mxcheckout-active .page-header,
.mxcheckout-active .woocommerce-products-header,
.mxcheckout-active article > .entry-title,
.mxcheckout-active .page-title:not(.mxcheckout__section-title) {
	display: none !important;
}

/* Reduce top padding on checkout content area */
.mxcheckout-active .entry-content,
.mxcheckout-active .site-content,
.mxcheckout-active article.page {
	padding-top: 0 !important;
	margin-top: 0 !important;
}

/* Override theme's inline padding-top on checkout only */
.mxcheckout-active main.container {
	padding-top: 40px !important;
}

/* Force overflow visible ONLY on checkout content ancestors so position:sticky works */
.mxcheckout-active .entry-content,
.mxcheckout-active article.page,
.mxcheckout-active .site-content .content-area {
	overflow: visible !important;
}

/* Target the checkout wrapper and form specifically */
.mxcheckout,
.mxcheckout__form,
.mxcheckout__layout {
	overflow: visible !important;
}

/* ═══════════════════════════════════════════
   Mobile Summary Toggle
   ═══════════════════════════════════════════ */
.mxcheckout__mobile-summary-toggle {
	background: var(--mxcheckout-bg-secondary);
	border-bottom: 1px solid var(--mxcheckout-border);
	margin: 0 calc(-1 * var(--mxcheckout-gap));
	padding: 14px var(--mxcheckout-gap);
	margin-bottom: var(--mxcheckout-gap);
}

.mxcheckout__mobile-summary-btn {
	display: flex;
	align-items: center;
	gap: 8px;
	width: 100%;
	background: none;
	border: none;
	cursor: pointer;
	font-size: 14px;
	color: var(--mxcheckout-primary);
	padding: 0;
}

.mxcheckout__mobile-summary-icon {
	display: flex;
	align-items: center;
}

.mxcheckout__mobile-summary-chevron {
	font-size: 10px;
	transition: transform var(--mxcheckout-transition);
}

.mxcheckout__mobile-summary-btn[aria-expanded="true"] .mxcheckout__mobile-summary-chevron {
	transform: rotate(180deg);
}

.mxcheckout__mobile-summary-total {
	margin-left: auto;
	font-weight: 600;
	color: var(--mxcheckout-text);
	font-size: 16px;
}

/* ═══════════════════════════════════════════
   Sections
   ═══════════════════════════════════════════ */
.mxcheckout__section {
	margin-bottom: 28px;
	padding-bottom: 28px;
	border-bottom: 1px solid var(--mxcheckout-border);
}

/* Collapse double separators between adjacent sections */
.mxcheckout__section + .mxcheckout__section {
	padding-top: 0;
}

.mxcheckout__section:last-child {
	border-bottom: none;
	margin-bottom: 0;
}

.mxcheckout__section-title {
	font-size: 18px;
	font-weight: 600;
	margin: 0 0 16px 0;
	padding: 0;
	color: var(--mxcheckout-text);
}

/* ═══════════════════════════════════════════
   Fields
   ═══════════════════════════════════════════ */
.mxcheckout__field-group {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.mxcheckout__field-row {
	display: flex;
	gap: 12px;
}

.mxcheckout__field--full {
	width: 100%;
}

.mxcheckout__field--half {
	flex: 1;
	min-width: 0;
}

/* WC form-row overrides inside our checkout */
.mxcheckout .form-row {
	margin: 0 0 12px 0;
	padding: 0;
}

.mxcheckout .form-row label {
	display: block;
	font-size: 13px;
	font-weight: 500;
	color: var(--mxcheckout-text);
	margin-bottom: 4px;
}

.mxcheckout .form-row .required {
	color: var(--mxcheckout-error);
}

.mxcheckout .form-row input[type="text"],
.mxcheckout .form-row input[type="email"],
.mxcheckout .form-row input[type="tel"],
.mxcheckout .form-row input[type="number"],
.mxcheckout .form-row input[type="url"],
.mxcheckout .form-row select,
.mxcheckout .form-row textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--mxcheckout-border);
	border-radius: var(--mxcheckout-radius-sm);
	font-size: 14px;
	line-height: 1.5;
	color: var(--mxcheckout-text);
	background: var(--mxcheckout-bg);
	transition: border-color var(--mxcheckout-transition), box-shadow var(--mxcheckout-transition);
	-webkit-appearance: none;
}

.mxcheckout .form-row input:focus,
.mxcheckout .form-row select:focus,
.mxcheckout .form-row textarea:focus {
	outline: none;
	border-color: var(--mxcheckout-border-focus);
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Validation states */
.mxcheckout .form-row.woocommerce-validated input {
	border-color: var(--mxcheckout-success);
}

.mxcheckout .form-row.woocommerce-invalid input {
	border-color: var(--mxcheckout-error);
}

/* Login prompt */
.mxcheckout__login-prompt {
	font-size: 13px;
	color: var(--mxcheckout-text-muted);
	margin: 0 0 12px 0;
}

.mxcheckout__login-prompt a {
	color: var(--mxcheckout-primary);
	text-decoration: underline;
}

.mxcheckout__logged-in-as {
	font-size: 13px;
	color: var(--mxcheckout-text-muted);
	margin: 0 0 12px 0;
}

.mxcheckout__logged-in-as a {
	color: var(--mxcheckout-text-muted);
	text-decoration: underline;
}

/* ═══════════════════════════════════════════
   Order Summary (sidebar)
   ═══════════════════════════════════════════ */
.mxcheckout-summary__title {
	font-size: 18px;
	font-weight: 600;
	margin: 0 0 16px 0;
	color: var(--mxcheckout-text);
}

/* Cart Items */
.mxcheckout-summary__items {
	margin-bottom: 16px;
}

.mxcheckout-summary__item {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 10px 0;
}

.mxcheckout-summary__item + .mxcheckout-summary__item {
	border-top: 1px solid #eee;
}

.mxcheckout-summary__item-image {
	position: relative;
	flex: 0 0 60px;
	width: 60px;
	height: 60px;
	border: 1px solid var(--mxcheckout-border);
	border-radius: var(--mxcheckout-radius-sm);
	overflow: visible;
	background: var(--mxcheckout-bg);
}

.mxcheckout-summary__item-image a {
	display: block;
	width: 100%;
	height: 100%;
	overflow: hidden;
	border-radius: var(--mxcheckout-radius-sm);
}

.mxcheckout-summary__item-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.mxcheckout-summary__item-qty-badge {
	position: absolute;
	top: -6px;
	right: -6px;
	background: var(--mxcheckout-text-muted);
	color: #fff;
	font-size: 11px;
	font-weight: 600;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
}

.mxcheckout-summary__item-details {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.mxcheckout-summary__item-top {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 8px;
}

.mxcheckout-summary__item-name {
	font-size: 13px;
	font-weight: 500;
	line-height: 1.4;
	color: var(--mxcheckout-text);
}

.mxcheckout-summary__item-remove {
	flex-shrink: 0;
	background: none;
	border: none;
	cursor: pointer;
	color: var(--mxcheckout-text-muted);
	padding: 2px;
	border-radius: 3px;
	line-height: 0;
	transition: color 0.15s, background 0.15s;
}

.mxcheckout-summary__item-remove:hover {
	color: #ef4444;
	background: #fef2f2;
}

.mxcheckout-summary__item-bottom {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 2px;
}

.mxcheckout-summary__item-qty-controls {
	display: flex;
	align-items: center;
	border: 1px solid var(--mxcheckout-border);
	border-radius: var(--mxcheckout-radius-sm);
	overflow: hidden;
}

.mxcheckout-summary__qty-btn {
	width: 28px;
	height: 28px;
	background: var(--mxcheckout-bg);
	border: none;
	cursor: pointer;
	font-size: 14px;
	color: var(--mxcheckout-text);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.15s;
}

.mxcheckout-summary__qty-btn:hover {
	background: #f0f0f0;
}

.mxcheckout-summary__qty-value {
	width: 30px;
	text-align: center;
	font-size: 13px;
	font-weight: 500;
	border-left: 1px solid var(--mxcheckout-border);
	border-right: 1px solid var(--mxcheckout-border);
	line-height: 28px;
}

.mxcheckout-summary__item-price {
	font-size: 13px;
	font-weight: 500;
	white-space: nowrap;
	color: var(--mxcheckout-text);
}

/* Coupon */
.mxcheckout-summary__coupon {
	margin-bottom: 16px;
	padding-bottom: 16px;
	border-bottom: 1px solid var(--mxcheckout-border);
}

.mxcheckout-summary__coupon-form {
	display: flex;
	gap: 8px;
}

.mxcheckout-summary__coupon-input {
	flex: 1;
	padding: 8px 12px;
	border: 1px solid var(--mxcheckout-border);
	border-radius: var(--mxcheckout-radius-sm);
	font-size: 14px;
	color: var(--mxcheckout-text);
}

.mxcheckout-summary__coupon-input:focus {
	outline: none;
	border-color: var(--mxcheckout-border-focus);
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.mxcheckout-summary__coupon-btn {
	padding: 8px 16px;
	background: var(--mxcheckout-bg-secondary);
	border: 1px solid var(--mxcheckout-border);
	border-radius: var(--mxcheckout-radius-sm);
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	color: var(--mxcheckout-text);
	transition: background var(--mxcheckout-transition);
	white-space: nowrap;
}

.mxcheckout-summary__coupon-btn:hover {
	background: #eee;
}

/* Totals */
.mxcheckout-summary__totals {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.mxcheckout-summary__row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 14px;
	color: var(--mxcheckout-text);
}

.mxcheckout-summary__row--discount .mxcheckout-summary__value {
	color: var(--mxcheckout-success);
}

.mxcheckout-summary__row--total {
	margin-top: 8px;
	padding-top: 12px;
	border-top: 1px solid var(--mxcheckout-border);
	font-size: 16px;
	font-weight: 700;
}

.mxcheckout-summary__label {
	color: var(--mxcheckout-text-muted);
}

.mxcheckout-summary__row--total .mxcheckout-summary__label {
	color: var(--mxcheckout-text);
}

/* ═══════════════════════════════════════════
   Payment Methods
   ═══════════════════════════════════════════ */
.mxcheckout-payment__methods {
	list-style: none;
	margin: 0;
	padding: 0;
}

.mxcheckout-payment__methods li {
	padding: 12px;
	border: 1px solid var(--mxcheckout-border);
	border-radius: var(--mxcheckout-radius-sm);
	margin-bottom: 8px;
	transition: border-color var(--mxcheckout-transition);
}

.mxcheckout-payment__methods li:hover {
	border-color: var(--mxcheckout-primary);
}

.mxcheckout-payment__methods .payment_box {
	margin-top: 10px;
	padding: 12px;
	background: var(--mxcheckout-bg-secondary);
	border-radius: var(--mxcheckout-radius-sm);
	font-size: 13px;
	color: var(--mxcheckout-text-muted);
}

/* Place Order Button */
.mxcheckout-payment__submit {
	margin-top: 20px;
}

.mxcheckout-payment__btn {
	display: block;
	width: 100%;
	padding: 14px 24px;
	background: var(--mxcheckout-primary);
	color: #fff;
	border: none;
	border-radius: var(--mxcheckout-radius);
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	text-align: center;
	transition: background var(--mxcheckout-transition);
	letter-spacing: 0.3px;
}

.mxcheckout-payment__btn:hover {
	background: var(--mxcheckout-primary-hover);
	color: #fff;
}

.mxcheckout-payment__btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

/* Terms */
.mxcheckout-payment__terms {
	font-size: 13px;
	color: var(--mxcheckout-text-muted);
	margin-top: 12px;
}

.mxcheckout-payment__terms a {
	color: var(--mxcheckout-primary);
}

/* ═══════════════════════════════════════════
   WC Notices override
   ═══════════════════════════════════════════ */
.mxcheckout .woocommerce-error,
.mxcheckout .woocommerce-message,
.mxcheckout .woocommerce-info {
	margin-bottom: var(--mxcheckout-gap);
	border-radius: var(--mxcheckout-radius-sm);
}

/* ═══════════════════════════════════════════
   Hide WC defaults we're replacing
   ═══════════════════════════════════════════ */
.mxcheckout-active .woocommerce-checkout-review-order-table {
	/* Replaced by our summary sidebar */
}

/* ═══════════════════════════════════════════
   Loading States
   ═══════════════════════════════════════════ */
.mxcheckout__loading {
	position: relative;
	pointer-events: none;
	opacity: 0.6;
}

.mxcheckout__loading::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 24px;
	height: 24px;
	margin: -12px 0 0 -12px;
	border: 3px solid var(--mxcheckout-border);
	border-top-color: var(--mxcheckout-primary);
	border-radius: 50%;
	animation: mxcheckout-spin 0.6s linear infinite;
}

@keyframes mxcheckout-spin {
	to { transform: rotate(360deg); }
}

/* ═══════════════════════════════════════════
   SEPOMEX: CP Loading & Colonia Select
   ═══════════════════════════════════════════ */
.mxcheckout-loading {
	position: relative;
}

.mxcheckout-loading input {
	padding-right: 36px;
}

.mxcheckout-loading::after {
	content: '';
	position: absolute;
	top: 50%;
	right: 12px;
	width: 16px;
	height: 16px;
	margin-top: -8px;
	border: 2px solid var(--mxcheckout-border);
	border-top-color: var(--mxcheckout-primary);
	border-radius: 50%;
	animation: mxcheckout-spin 0.6s linear infinite;
	pointer-events: none;
}

.mxcheckout-colonia-select {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--mxcheckout-border);
	border-radius: var(--mxcheckout-radius-sm);
	font-size: 14px;
	line-height: 1.5;
	color: var(--mxcheckout-text);
	background: var(--mxcheckout-bg);
	-webkit-appearance: none;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M2.5 4.5L6 8l3.5-3.5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	padding-right: 32px;
	cursor: pointer;
}

.mxcheckout-colonia-select:focus {
	outline: none;
	border-color: var(--mxcheckout-border-focus);
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.mxcheckout-cp-error {
	display: block;
	color: var(--mxcheckout-error);
	font-size: 12px;
	margin-top: 4px;
}

/* ═══════════════════════════════════════════
   Billing: Same as Shipping Checkbox
   ═══════════════════════════════════════════ */
.mxcheckout__checkbox-row {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	color: var(--mxcheckout-text);
	cursor: pointer;
	margin-bottom: 16px;
}

.mxcheckout__checkbox-row input[type="checkbox"] {
	width: 18px;
	height: 18px;
	border: 1px solid var(--mxcheckout-border);
	border-radius: 3px;
	cursor: pointer;
	accent-color: var(--mxcheckout-primary);
}

/* ═══════════════════════════════════════════
   Field Validation Errors
   ═══════════════════════════════════════════ */
.mxcheckout-field-error input,
.mxcheckout-field-error select,
.mxcheckout-field-error textarea {
	border-color: var(--mxcheckout-error, #dc2626) !important;
	box-shadow: 0 0 0 1px var(--mxcheckout-error, #dc2626);
}

.mxcheckout-field-error label {
	color: var(--mxcheckout-error, #dc2626) !important;
}

.mxcheckout-field-error__msg {
	display: block;
	font-size: 12px;
	color: var(--mxcheckout-error, #dc2626);
	margin-top: 4px;
	line-height: 1.3;
}

@keyframes mxcheckout-shake {
	0%, 100% { transform: translateX(0); }
	20%, 60% { transform: translateX(-4px); }
	40%, 80% { transform: translateX(4px); }
}

.mxcheckout-field-error input,
.mxcheckout-field-error select {
	animation: mxcheckout-shake 0.4s ease;
}

/* ═══════════════════════════════════════════
   CFDI Invoice Fields
   ═══════════════════════════════════════════ */
#mxcheckout-cfdi-section {
	padding-top: 0;
}

#mxcheckout-cfdi-section .mxcheckout__checkbox-label {
	font-weight: 500;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 8px;
}

.mxcheckout-cfdi-fields {
	margin-top: 16px;
	padding: 16px;
	background: var(--mxcheckout-bg-secondary, #f9fafb);
	border: 1px solid var(--mxcheckout-border, #e5e7eb);
	border-radius: 8px;
}

.mxcheckout-cfdi-note {
	font-size: 12px;
	color: var(--mxcheckout-text-muted, #9ca3af);
	margin: 12px 0 0;
	font-style: italic;
}

/* ═══════════════════════════════════════════
   Coupon Tags & Messages
   ═══════════════════════════════════════════ */
.mxcheckout-summary__coupon-message {
	min-height: 0;
}

.mxcheckout-coupon-msg {
	display: block;
	font-size: 13px;
	padding: 6px 0;
	line-height: 1.4;
}

.mxcheckout-coupon-msg--success {
	color: var(--mxcheckout-success, #16a34a);
}

.mxcheckout-coupon-msg--error {
	color: var(--mxcheckout-error, #dc2626);
}

.mxcheckout-summary__coupon-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 8px;
}

.mxcheckout-summary__coupon-tags:empty {
	display: none;
}

.mxcheckout-coupon-tag {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	background: var(--mxcheckout-bg-muted, #f3f4f6);
	border: 1px solid var(--mxcheckout-border, #e5e7eb);
	border-radius: 4px;
	padding: 3px 6px 3px 8px;
	font-size: 12px;
	line-height: 1;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	transition: opacity 0.2s ease;
}

.mxcheckout-coupon-tag--removing {
	opacity: 0.4;
}

.mxcheckout-coupon-tag__code {
	color: var(--mxcheckout-text, #1f2937);
	font-weight: 600;
}

.mxcheckout-coupon-tag__remove {
	background: none;
	border: none;
	cursor: pointer;
	color: var(--mxcheckout-text-muted, #9ca3af);
	font-size: 16px;
	line-height: 1;
	padding: 0 2px;
	transition: color 0.15s ease;
}

.mxcheckout-coupon-tag__remove:hover {
	color: var(--mxcheckout-error, #dc2626);
}

.mxcheckout-btn--loading {
	position: relative;
	color: transparent !important;
}

.mxcheckout-btn--loading::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 14px;
	height: 14px;
	margin: -7px 0 0 -7px;
	border: 2px solid currentColor;
	border-top-color: transparent;
	border-radius: 50%;
	animation: mxcheckout-spin 0.6s linear infinite;
	color: #fff;
}

.mxcheckout-summary__row--discount .mxcheckout-summary__value--discount {
	color: var(--mxcheckout-success, #16a34a);
	font-weight: 500;
}

/* ═══════════════════════════════════════════
   Trust Badges
   ═══════════════════════════════════════════ */
.mxcheckout-trust-badges {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 16px;
	padding: 16px 0 0;
	margin-top: 12px;
}

.mxcheckout-trust-badge {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	font-size: 11px;
	color: var(--mxcheckout-text-muted, #9ca3af);
	text-align: center;
	max-width: 90px;
}

.mxcheckout-trust-badge__icon {
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.mxcheckout-trust-badge__icon .material-symbols-outlined {
	font-size: 28px;
	color: var(--mxcheckout-text-muted, #9ca3af);
	font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 48;
}

.mxcheckout-trust-badge__label {
	line-height: 1.3;
}

/* ═══════════════════════════════════════════
   Order Bumps [PRO]
   ═══════════════════════════════════════════ */
.mxcheckout-bump {
	border: 2px dashed #f59e0b;
	border-radius: var(--mxcheckout-radius);
	background: #fffbeb;
	margin: 20px 0;
	overflow: hidden;
	transition: all var(--mxcheckout-transition);
	position: relative;
}

.mxcheckout-bump--added {
	border-color: var(--mxcheckout-success, #16a34a);
	border-style: solid;
	background: #f0fdf4;
}

.mxcheckout-bump--loading {
	opacity: 0.6;
	pointer-events: none;
}

/* Urgency bar */
.mxcheckout-bump__urgency {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 8px 16px;
	background: linear-gradient(90deg, #dc2626, #ef4444);
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.3px;
}

.mxcheckout-bump__flame {
	font-size: 14px;
	animation: mxbump-pulse 1.5s ease-in-out infinite;
}

.mxcheckout-bump__timer {
	background: rgba(0,0,0,0.25);
	padding: 2px 8px;
	border-radius: 4px;
	font-family: 'SF Mono', 'Consolas', monospace;
	font-size: 14px;
	font-weight: 700;
	min-width: 48px;
	text-align: center;
}

.mxcheckout-bump__timer--warning {
	animation: mxbump-blink 1s ease-in-out infinite;
}

@keyframes mxbump-pulse {
	0%, 100% { transform: scale(1); }
	50% { transform: scale(1.2); }
}

@keyframes mxbump-blink {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.5; }
}

/* Toggle area */
.mxcheckout-bump__toggle {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	cursor: pointer;
	user-select: none;
	padding: 16px;
}

.mxcheckout-bump__checkbox {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.mxcheckout-bump__checkmark {
	flex: 0 0 24px;
	width: 24px;
	height: 24px;
	border: 2px solid #d1d5db;
	border-radius: 6px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-top: 2px;
	color: transparent;
	transition: all var(--mxcheckout-transition);
	background: #fff;
}

.mxcheckout-bump__checkbox:checked + .mxcheckout-bump__checkmark {
	background: var(--mxcheckout-success, #16a34a);
	border-color: var(--mxcheckout-success, #16a34a);
	color: #fff;
}

.mxcheckout-bump__content {
	display: flex;
	gap: 12px;
	flex: 1;
	min-width: 0;
}

.mxcheckout-bump__image {
	flex: 0 0 64px;
	width: 64px;
	height: 64px;
	border: 1px solid #e5e7eb;
	border-radius: var(--mxcheckout-radius-sm);
	overflow: hidden;
	background: #fff;
}

.mxcheckout-bump__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.mxcheckout-bump__info {
	flex: 1;
	min-width: 0;
}

.mxcheckout-bump__header {
	margin-bottom: 2px;
}

.mxcheckout-bump__cta {
	font-size: 14px;
	font-weight: 700;
	color: #b45309;
	line-height: 1.3;
}

.mxcheckout-bump--added .mxcheckout-bump__cta {
	color: var(--mxcheckout-success, #16a34a);
}

.mxcheckout-bump__title {
	display: block;
	font-size: 13px;
	font-weight: 500;
	color: var(--mxcheckout-text);
	margin-bottom: 2px;
}

.mxcheckout-bump__description {
	display: block;
	font-size: 12px;
	color: var(--mxcheckout-text-muted);
	margin-bottom: 4px;
}

.mxcheckout-bump__pricing {
	display: flex;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
}

.mxcheckout-bump__price-original {
	font-size: 13px;
	color: var(--mxcheckout-text-muted);
	text-decoration: line-through;
}

.mxcheckout-bump__price {
	font-size: 15px;
	font-weight: 700;
	color: #b45309;
}

.mxcheckout-bump--added .mxcheckout-bump__price {
	color: var(--mxcheckout-success, #16a34a);
}

.mxcheckout-bump__badge {
	background: #dc2626;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	padding: 2px 8px;
	border-radius: 4px;
	white-space: nowrap;
	text-transform: uppercase;
	letter-spacing: 0.3px;
}

.mxcheckout-bump__feedback {
	font-size: 12px;
	color: var(--mxcheckout-success, #16a34a);
	padding: 0 16px 12px;
	font-weight: 500;
}

/* Mobile */
@media (max-width: 768px) {
	.mxcheckout-bump__toggle {
		padding: 12px;
	}

	.mxcheckout-bump__image {
		flex: 0 0 52px;
		width: 52px;
		height: 52px;
	}

	.mxcheckout-bump__cta {
		font-size: 13px;
	}

	.mxcheckout-bump__urgency {
		font-size: 12px;
		padding: 6px 12px;
	}
}

/* Hidden helper class */
.mxcheckout-hidden {
	display: none !important;
}

/* ═══════════════════════════════════════════
   Locked / Autofill Fields
   ═══════════════════════════════════════════ */
.mxcheckout-field-locked {
	position: relative;
}

.mxcheckout-field-locked::after {
	content: '🔒';
	position: absolute;
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 12px;
	pointer-events: none;
	opacity: 0.5;
}

.mxcheckout-locked-input,
.mxcheckout-locked-input[readonly],
.mxcheckout-locked-input[disabled] {
	background-color: var(--mxcheckout-bg-muted, #f3f4f6) !important;
	color: var(--mxcheckout-text-muted, #9ca3af) !important;
	cursor: not-allowed;
	border-style: dashed;
}

/* ═══════════════════════════════════════════
   Responsive: Mobile (<768px)
   ═══════════════════════════════════════════ */
@media (max-width: 768px) {

	/* Sidebar on mobile: full width, no border card */
	.mxcheckout__sidebar {
		padding: 16px;
		border: none;
		border-top: 1px solid var(--mxcheckout-border);
	}

	/* Summary title */
	.mxcheckout-summary__title {
		font-size: 16px;
		margin-bottom: 12px;
	}

	/* Summary items: tighter spacing */
	.mxcheckout-summary__item {
		padding: 8px 0;
		gap: 10px;
	}

	.mxcheckout-summary__item-image {
		flex: 0 0 50px;
		width: 50px;
		height: 50px;
	}

	.mxcheckout-summary__item-name {
		font-size: 12px;
	}

	.mxcheckout-summary__item-price {
		font-size: 12px;
	}

	/* Qty controls: smaller */
	.mxcheckout-summary__qty-btn {
		width: 26px;
		height: 26px;
		font-size: 13px;
	}

	.mxcheckout-summary__qty-value {
		width: 26px;
		font-size: 12px;
		line-height: 26px;
	}

	/* Coupon: ensure button doesn't get cut */
	.mxcheckout-summary__coupon-form {
		gap: 6px;
	}

	.mxcheckout-summary__coupon-input {
		min-width: 0;
		padding: 8px 10px;
		font-size: 13px;
	}

	.mxcheckout-summary__coupon-btn {
		padding: 8px 12px;
		font-size: 13px;
		flex-shrink: 0;
	}

	/* Totals: prevent text wrapping on shipping row */
	.mxcheckout-summary__row {
		font-size: 13px;
		gap: 8px;
	}

	.mxcheckout-summary__row .mxcheckout-summary__value {
		text-align: right;
	}

	/* Shipping value: allow wrapping, smaller text */
	#mxcheckout-shipping-row .mxcheckout-summary__value {
		font-size: 11px;
		line-height: 1.3;
	}

	.mxcheckout-summary__row--total {
		font-size: 15px;
	}

	/* Trust badges: single row, smaller */
	.mxcheckout-trust-badges {
		gap: 10px;
		padding: 12px 0 0;
		margin-top: 8px;
		flex-wrap: nowrap;
		justify-content: space-around;
	}

	.mxcheckout-trust-badge {
		max-width: 70px;
		font-size: 10px;
		gap: 4px;
	}

	.mxcheckout-trust-badge__icon {
		width: 26px;
		height: 26px;
	}

	.mxcheckout-trust-badge__icon .material-symbols-outlined {
		font-size: 22px;
	}

	/* Sections: tighter spacing */
	.mxcheckout__section {
		margin-bottom: 20px;
		padding-bottom: 20px;
	}

	.mxcheckout__section-title {
		font-size: 16px;
		margin-bottom: 12px;
	}

	/* Field rows: stack on very small screens */
	.mxcheckout__field-row {
		flex-wrap: wrap;
	}
}

/* Extra small screens */
@media (max-width: 380px) {

	.mxcheckout__field-row {
		flex-direction: column;
	}

	.mxcheckout__field--half {
		flex: 1 1 100%;
	}

	.mxcheckout-trust-badge {
		max-width: 60px;
		font-size: 9px;
	}

	.mxcheckout-trust-badge__icon .material-symbols-outlined {
		font-size: 20px;
	}
}

/* ═══════════════════════════════════════════════════════════════════════════
   THEME COMPATIBILITY — MX Checkout Pro
   Ensures our checkout layout works correctly regardless of the active theme.
   Priority: Astra, Divi, Flatsome, OceanWP, Storefront, TwentyTwenty*
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────
   GENERAL: Force our layout over any theme
   ───────────────────────────────────────────── */

/* Reset any theme's checkout container that wraps our form */
.mxcheckout-active .woocommerce,
.mxcheckout-active .woocommerce-page .site-main,
.mxcheckout-active .woocommerce-page .content-area,
.mxcheckout-active .woocommerce-page .site-content,
.mxcheckout-active .woocommerce-checkout {
	max-width: 100% !important;
	width: 100% !important;
	float: none !important;
	display: block !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
}

/* Prevent theme sidebars on checkout */
.mxcheckout-active .widget-area,
.mxcheckout-active .sidebar,
.mxcheckout-active #secondary,
.mxcheckout-active aside.sidebar {
	display: none !important;
}

/* Force full-width content area */
.mxcheckout-active #primary,
.mxcheckout-active .content-area,
.mxcheckout-active .site-main {
	width: 100% !important;
	max-width: 100% !important;
	flex: 0 0 100% !important;
	margin: 0 !important;
}

/* Our wrapper is the layout boss */
.mxcheckout {
	max-width: 1200px !important;
	margin: 0 auto !important;
	width: 100% !important;
	float: none !important;
}

/* Force our flex layout */
.mxcheckout__layout {
	display: flex !important;
}

@media (min-width: 769px) {
	.mxcheckout__layout {
		flex-direction: row !important;
		flex-wrap: nowrap !important;
		gap: 40px !important;
	}

	.mxcheckout__main {
		flex: 1 1 58% !important;
		max-width: 58% !important;
		width: 58% !important;
		float: none !important;
	}

	.mxcheckout__sidebar {
		flex: 0 0 38% !important;
		max-width: 38% !important;
		width: 38% !important;
		float: none !important;
		display: block !important;
	}
}

/* ─────────────────────────────────────────────
   ASTRA — Most popular WooCommerce theme
   ───────────────────────────────────────────── */

/* Reset Astra's separate container padding */
.mxcheckout-active .ast-separate-container .ast-article-single,
.mxcheckout-active .ast-separate-container .ast-article-post,
.mxcheckout-active .ast-separate-container .ast-article-page {
	padding: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
}

.mxcheckout-active .ast-separate-container #primary {
	padding: 0 !important;
	margin: 0 !important;
}

/* Reset Astra's checkout columns */
.mxcheckout-active .ast-container,
.mxcheckout-active .site-content > .ast-container {
	max-width: 100% !important;
	padding-left: 20px !important;
	padding-right: 20px !important;
}

/* Override Astra's WooCommerce checkout layout */
.mxcheckout-active.ast-woo-two-step-checkout .woocommerce-checkout,
.mxcheckout-active .ast-woo-checkout-layout .woocommerce-checkout {
	display: block !important;
}

/* Astra hides/shows checkout columns — we handle it ourselves */
.mxcheckout-active #customer_details,
.mxcheckout-active .woocommerce-checkout #customer_details {
	width: 100% !important;
	float: none !important;
	display: block !important;
}

.mxcheckout-active #order_review,
.mxcheckout-active .woocommerce-checkout-review-order {
	width: 100% !important;
	float: none !important;
	clear: none !important;
}

/* Astra form field styling — let our styles take over */
.mxcheckout .form-row input.input-text,
.mxcheckout .form-row select,
.mxcheckout .form-row textarea,
.mxcheckout .woocommerce-input-wrapper input,
.mxcheckout .woocommerce-input-wrapper select {
	border: 1px solid var(--mxcheckout-border) !important;
	border-radius: var(--mxcheckout-radius) !important;
	padding: 12px 16px !important;
	font-size: 15px !important;
	width: 100% !important;
	background: var(--mxcheckout-bg) !important;
	color: var(--mxcheckout-text) !important;
	transition: border-color var(--mxcheckout-transition) !important;
	box-shadow: none !important;
	-webkit-appearance: none !important;
	height: auto !important;
	line-height: 1.5 !important;
}

.mxcheckout .form-row input.input-text:focus,
.mxcheckout .form-row select:focus,
.mxcheckout .form-row textarea:focus {
	border-color: var(--mxcheckout-border-focus) !important;
	outline: none !important;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1) !important;
}

/* Astra label styling override */
.mxcheckout .form-row label,
.mxcheckout .woocommerce-billing-fields label,
.mxcheckout .woocommerce-shipping-fields label {
	font-size: 14px !important;
	font-weight: 600 !important;
	color: var(--mxcheckout-text) !important;
	margin-bottom: 6px !important;
	display: block !important;
}

/* ─────────────────────────────────────────────
   DIVI — Popular page builder theme
   ───────────────────────────────────────────── */

.mxcheckout-active .et_pb_section .et_pb_row,
.mxcheckout-active #et-main-area {
	max-width: 100% !important;
	padding: 0 !important;
}

.mxcheckout-active .et_pb_column {
	width: 100% !important;
	float: none !important;
}

/* ─────────────────────────────────────────────
   FLATSOME — Popular WooCommerce theme
   ───────────────────────────────────────────── */

.mxcheckout-active .row.checkout-page-row,
.mxcheckout-active .checkout-page-row .col {
	width: 100% !important;
	float: none !important;
	padding: 0 !important;
}

.mxcheckout-active .large-7,
.mxcheckout-active .large-5 {
	width: 100% !important;
}

/* ─────────────────────────────────────────────
   OCEANWP — Popular free theme
   ───────────────────────────────────────────── */

.mxcheckout-active #content-wrap {
	padding: 0 !important;
}

.mxcheckout-active .content-area {
	width: 100% !important;
	padding: 0 30px !important;
}

.mxcheckout-active #right-sidebar,
.mxcheckout-active #left-sidebar {
	display: none !important;
}

/* ─────────────────────────────────────────────
   STOREFRONT — Official WooCommerce theme
   ───────────────────────────────────────────── */

.mxcheckout-active .storefront-full-width-content .woocommerce-checkout {
	padding: 0 !important;
}

/* ─────────────────────────────────────────────
   TWENTYTWENTY* — WordPress default themes
   ───────────────────────────────────────────── */

.mxcheckout-active .wp-block-post-content,
.mxcheckout-active .entry-content {
	max-width: 100% !important;
}

/* ─────────────────────────────────────────────
   GENERAL: WooCommerce default checkout overrides
   (themes that don't override WC checkout)
   ───────────────────────────────────────────── */

/* Remove WC default two-column checkout layout */
.mxcheckout-active .col2-set,
.mxcheckout-active .woocommerce .col2-set {
	width: 100% !important;
	float: none !important;
}

.mxcheckout-active .col2-set .col-1,
.mxcheckout-active .col2-set .col-2 {
	width: 100% !important;
	float: none !important;
	max-width: 100% !important;
}

/* Reset any theme's order review table styling */
.mxcheckout .woocommerce-checkout-review-order-table {
	border: none !important;
	margin: 0 !important;
	width: 100% !important;
}

.mxcheckout .woocommerce-checkout-review-order-table th,
.mxcheckout .woocommerce-checkout-review-order-table td {
	border: none !important;
	padding: 8px 0 !important;
	background: transparent !important;
}

/* Place order button — consistent across themes */
.mxcheckout #place_order,
.mxcheckout .woocommerce-checkout #place_order {
	width: 100% !important;
	padding: 16px 24px !important;
	font-size: 16px !important;
	font-weight: 600 !important;
	border-radius: var(--mxcheckout-radius) !important;
	background-color: var(--mxcheckout-primary) !important;
	color: #fff !important;
	border: none !important;
	cursor: pointer !important;
	transition: background-color var(--mxcheckout-transition) !important;
}

.mxcheckout #place_order:hover {
	background-color: var(--mxcheckout-primary-hover) !important;
}

/* Payment methods box — consistent */
.mxcheckout #payment,
.mxcheckout .woocommerce-checkout-payment {
	background: transparent !important;
	border: none !important;
	border-radius: 0 !important;
	padding: 0 !important;
}

.mxcheckout #payment ul.payment_methods {
	border: none !important;
	padding: 0 !important;
	margin: 0 0 20px !important;
	list-style: none !important;
}

.mxcheckout #payment .payment_box {
	background: var(--mxcheckout-bg-secondary) !important;
	border-radius: var(--mxcheckout-radius-sm) !important;
	padding: 16px !important;
	margin: 8px 0 16px !important;
	color: var(--mxcheckout-text) !important;
}

/* ─────────────────────────────────────────────
   Prevent theme breaking our section titles
   ───────────────────────────────────────────── */
.mxcheckout h2.mxcheckout__section-title,
.mxcheckout h3.mxcheckout__section-title,
.mxcheckout .mxcheckout__section-title {
	font-size: 18px !important;
	font-weight: 700 !important;
	color: var(--mxcheckout-text) !important;
	margin: 32px 0 16px !important;
	padding: 0 0 12px !important;
	border-bottom: 2px solid var(--mxcheckout-text) !important;
	text-transform: uppercase !important;
	letter-spacing: 0.5px !important;
	line-height: 1.3 !important;
	background: none !important;
	text-align: left !important;
}

/* ─────────────────────────────────────────────
   Fix sticky sidebar in theme containers
   ───────────────────────────────────────────── */
.mxcheckout-active .entry-content,
.mxcheckout-active .post-content,
.mxcheckout-active .page-content,
.mxcheckout-active article,
.mxcheckout-active .site-main,
.mxcheckout-active #primary,
.mxcheckout-active .ast-container {
	overflow: visible !important;
}
✅ Appendedcat /home/alonsoc/Descargas/theme-compat.css
