/**
 * GreenLife Multi-Step Checkout - Clean Modern Design System
 * Inspired by modern minimal luxury e-commerce checkouts.
 */

:root {
	--gl-primary: #008a54;
	--gl-primary-dark: #00683f;
	--gl-primary-hover: #007547;
	--gl-primary-light: #f0fdf4;
	--gl-primary-border: #bbf7d0;
	--gl-text-dark: #0f172a;
	--gl-text-muted: #64748b;
	--gl-text-subtle: #94a3b8;
	--gl-border-color: #e2e8f0;
	--gl-border-light: #f1f5f9;
	--gl-bg-card: #ffffff;
	--gl-bg-body: #f8fafc;
	--gl-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--gl-radius-card: 20px;
	--gl-radius-input: 12px;
	--gl-shadow-card: 0 1px 3px rgba(0, 0, 0, 0.03), 0 6px 16px rgba(0, 0, 0, 0.02);
}

/* Base Wrapper - Wide & Spacious */
.gl-checkout-app-wrapper {
	font-family: var(--gl-font-family);
	max-width: 1400px;
	width: 100%;
	margin: 0 auto;
	padding: 24px 32px 60px 32px;
	box-sizing: border-box;
	color: var(--gl-text-dark);
}

.gl-checkout-app-wrapper * {
	box-sizing: border-box;
}

/* ==========================================================================
   1. TOP STEPPER PROGRESS BAR (Clean & Full Width)
   ========================================================================== */
.gl-checkout-stepper-container {
	margin-bottom: 16px !important;
	background: var(--gl-bg-card);
	border: 1px solid var(--gl-border-color);
	border-radius: var(--gl-radius-card);
	padding: 12px 30px !important;
	box-shadow: var(--gl-shadow-card);
}

.gl-checkout-stepper {
	display: flex;
	align-items: center;
	justify-content: space-between;
	max-width: 100%;
	margin: 0;
	position: relative;
	gap: 20px;
}

.gl-step-item {
	display: flex;
	align-items: center;
	gap: 12px;
	cursor: pointer;
	position: relative;
	z-index: 2;
	transition: all 0.2s ease;
}

.gl-step-badge {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: #ffffff;
	color: #64748b;
	border: 1.5px solid #cbd5e1;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 14px;
	transition: all 0.2s ease;
	flex-shrink: 0;
}

.gl-step-badge .gl-step-check {
	display: none;
}

.gl-step-meta {
	display: flex;
	flex-direction: column;
}

.gl-step-subtitle {
	font-size: 10.5px;
	text-transform: uppercase;
	letter-spacing: 0.6px;
	color: var(--gl-text-muted);
	font-weight: 700;
	line-height: 1.2;
}

.gl-step-title {
	font-size: 14px;
	font-weight: 800;
	color: #334155;
	white-space: nowrap;
	line-height: 1.25;
}

/* Active Step State */
.gl-step-item.is-active .gl-step-badge {
	background: var(--gl-primary);
	border-color: var(--gl-primary);
	color: #ffffff;
	box-shadow: 0 0 0 4px rgba(0, 138, 84, 0.15);
}

.gl-step-item.is-active .gl-step-subtitle {
	color: var(--gl-primary);
}

.gl-step-item.is-active .gl-step-title {
	color: var(--gl-text-dark);
}

/* Completed Step State */
.gl-step-item.is-completed .gl-step-badge {
	background: var(--gl-primary-dark);
	border-color: var(--gl-primary-dark);
	color: #ffffff;
}

.gl-step-item.is-completed .gl-step-number {
	display: none;
}

.gl-step-item.is-completed .gl-step-check {
	display: block;
}

.gl-step-item.is-completed .gl-step-title {
	color: var(--gl-primary-dark);
}

/* Connector Line */
.gl-step-connector {
	flex: 1;
	height: 2px;
	background: #e2e8f0;
	border-radius: 2px;
	position: relative;
	transition: background 0.3s ease;
}

.gl-step-connector.is-filled {
	background: var(--gl-primary);
}

/* ==========================================================================
   2. MAIN 2-COLUMN GRID (Wide & Balanced)
   ========================================================================== */
.gl-checkout-main-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.5fr) minmax(400px, 1fr);
	gap: 28px;
	align-items: start;
}

.gl-checkout-form-column {
	min-width: 0;
}

.gl-checkout-summary-column {
	position: sticky;
	top: 24px;
	min-width: 0;
}

/* Step Content Panes */
.gl-step-content-pane {
	display: none;
	animation: glFadeStep 0.25s ease-out;
}

.gl-step-content-pane.is-active {
	display: block;
}

@keyframes glFadeStep {
	from {
		opacity: 0;
		transform: translateY(6px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Cards */
.gl-pane-card {
	background: var(--gl-bg-card);
	border: 1px solid var(--gl-border-color);
	border-radius: var(--gl-radius-card);
	padding: 18px 24px 20px 24px !important;
	box-shadow: var(--gl-shadow-card);
	margin-bottom: 16px !important;
}

.gl-pane-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-bottom: 12px !important;
	margin-bottom: 16px !important;
	border-bottom: 1px solid #f1f5f9 !important;
}

.gl-pane-title-group {
	display: flex;
	align-items: center;
	gap: 12px;
}

.gl-pane-icon {
	width: 38px !important;
	height: 38px !important;
	border-radius: 10px !important;
	background: var(--gl-primary-light);
	border: 1px solid var(--gl-primary-border);
	color: var(--gl-primary);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.gl-pane-icon svg {
	width: 19px !important;
	height: 19px !important;
}

.gl-pane-title {
	font-size: 18px !important;
	font-weight: 800 !important;
	color: var(--gl-text-dark);
	margin: 0 !important;
	line-height: 1.2 !important;
}

.gl-pane-desc {
	font-size: 13px !important;
	color: var(--gl-text-muted);
	margin: 2px 0 0 0 !important;
}

.gl-badge-step {
	background: #f1f5f9;
	color: #475569;
	font-size: 11.5px !important;
	font-weight: 700;
	padding: 4px 10px !important;
	border-radius: 9999px;
	white-space: nowrap;
}

/* ==========================================================================
   3. FORM FIELDS & INPUTS (Modern, Clean, Height 50px)
   ========================================================================== */
.gl-fields-grid {
	display: grid;
	grid-template-columns: repeat(12, 1fr);
	gap: 16px 20px;
}

.gl-col-12 { grid-column: span 12; }
.gl-col-6  { grid-column: span 6; }
.gl-col-4  { grid-column: span 4; }

.gl-form-group {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.gl-field-label {
	font-size: 13.5px;
	font-weight: 700;
	color: #1e293b;
	display: flex;
	align-items: center;
	gap: 4px;
}

.gl-required {
	color: #ef4444;
	font-weight: 800;
}

.gl-input-wrap,
.gl-select-wrap {
	position: relative;
	width: 100%;
}

.gl-input,
.gl-select,
.gl-form-select {
	width: 100%;
	height: 50px;
	padding: 12px 16px;
	font-family: inherit;
	font-size: 14.5px;
	font-weight: 500;
	color: var(--gl-text-dark);
	background: #ffffff;
	border: 1px solid var(--gl-border-color);
	border-radius: var(--gl-radius-input);
	outline: none;
	transition: all 0.2s ease;
	box-sizing: border-box;
}

.gl-input:focus,
.gl-select:focus,
.gl-form-select:focus {
	border-color: var(--gl-primary);
	box-shadow: 0 0 0 3px rgba(0, 138, 84, 0.12);
}

.gl-input::placeholder {
	color: #94a3b8;
	font-weight: 400;
}

/* Inputs con ícono de prefijo: Forzado con !important y selectores de máxima especificidad para que el tema o WooCommerce no sobrescriban el padding-left */
#gl-checkout-app .gl-input-wrap input.gl-has-prefix,
#gl-checkout-app .gl-input.gl-has-prefix,
.woocommerce-checkout #gl-checkout-app input.gl-has-prefix,
.woocommerce #gl-checkout-app input.gl-has-prefix,
form.checkout #gl-checkout-app input.gl-has-prefix,
.gl-input-wrap .gl-input.gl-has-prefix,
.gl-input.gl-has-prefix {
	padding-left: 48px !important;
}

.gl-input-prefix-icon {
	position: absolute !important;
	left: 14px !important;
	top: 50% !important;
	transform: translateY(-50%) !important;
	color: #94a3b8 !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	pointer-events: none !important;
	z-index: 5 !important;
	width: 20px !important;
	height: 20px !important;
	line-height: 1 !important;
}

.gl-input-prefix-icon svg {
	width: 18px !important;
	height: 18px !important;
	stroke: #94a3b8 !important;
	display: block !important;
	flex-shrink: 0 !important;
}

.gl-input-wrap:focus-within .gl-input-prefix-icon,
.gl-input-wrap:focus-within .gl-input-prefix-icon svg {
	color: var(--gl-primary, #008a54) !important;
	stroke: var(--gl-primary, #008a54) !important;
}

.gl-field-hint {
	font-size: 12px;
	color: var(--gl-text-muted);
	margin-top: 2px;
	line-height: 1.35;
}

/* ==========================================================================
   Account Creation Toggle & Custom Checkbox Card (Clean & Modern Alignment)
   ========================================================================== */
#gl-checkout-app .gl-account-toggle-wrap,
.gl-account-toggle-wrap {
	margin-top: 14px;
	margin-bottom: 6px;
	width: 100%;
}

#gl-checkout-app .gl-checkbox-card,
.gl-checkbox-card {
	display: flex !important;
	flex-direction: row !important;
	align-items: flex-start !important;
	gap: 12px !important;
	background: #f8fafc !important;
	border: 1.5px solid #e2e8f0 !important;
	border-radius: 12px !important;
	padding: 13px 16px !important;
	cursor: pointer !important;
	user-select: none !important;
	transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
	position: relative !important;
	margin: 0 !important;
	width: 100% !important;
	box-sizing: border-box !important;
	text-align: left !important;
}

#gl-checkout-app .gl-checkbox-card:hover,
.gl-checkbox-card:hover {
	background: #f1f5f9 !important;
	border-color: #cbd5e1 !important;
}

#gl-checkout-app .gl-checkbox-card.is-active,
#gl-checkout-app .gl-checkbox-card:has(#createaccount:checked),
.gl-checkbox-card.is-active,
.gl-checkbox-card:has(#createaccount:checked) {
	background: #f0fdf4 !important;
	border-color: #86efac !important;
	box-shadow: 0 1px 3px rgba(0, 138, 84, 0.06) !important;
}

/* Hide native browser checkbox */
#gl-checkout-app input[type="checkbox"]#createaccount,
#createaccount {
	position: absolute !important;
	opacity: 0 !important;
	width: 0 !important;
	height: 0 !important;
	pointer-events: none !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	clip: rect(0, 0, 0, 0) !important;
}

/* Custom styled modern checkbox square */
#gl-checkout-app .gl-checkbox-custom,
.gl-checkbox-custom {
	width: 20px !important;
	min-width: 20px !important;
	height: 20px !important;
	border-radius: 5px !important;
	border: 2px solid #cbd5e1 !important;
	background: #ffffff !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	margin-top: 1px !important;
	transition: all 0.15s ease !important;
	flex-shrink: 0 !important;
	box-sizing: border-box !important;
}

#gl-checkout-app .gl-checkbox-custom svg,
.gl-checkbox-custom svg {
	display: block !important;
	opacity: 0 !important;
	transform: scale(0.5) !important;
	transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1) !important;
	stroke: #ffffff !important;
}

/* Checked state */
#createaccount:checked + .gl-checkbox-custom,
#createaccount:checked ~ .gl-checkbox-custom,
.gl-checkbox-card.is-active .gl-checkbox-custom {
	background: var(--gl-primary, #008a54) !important;
	border-color: var(--gl-primary, #008a54) !important;
}

#createaccount:checked + .gl-checkbox-custom svg,
#createaccount:checked ~ .gl-checkbox-custom svg,
.gl-checkbox-card.is-active .gl-checkbox-custom svg {
	opacity: 1 !important;
	transform: scale(1) !important;
}

/* Text wrap: Title and Description stacked neatly */
#gl-checkout-app .gl-checkbox-label-wrap,
.gl-checkbox-label-wrap {
	display: flex !important;
	flex-direction: column !important;
	gap: 2px !important;
	flex: 1 !important;
	text-align: left !important;
}

#gl-checkout-app .gl-checkbox-title,
.gl-checkbox-title {
	font-size: 13.5px !important;
	font-weight: 700 !important;
	color: #0f172a !important;
	line-height: 1.35 !important;
	transition: color 0.15s ease !important;
}

#gl-checkout-app .gl-checkbox-card.is-active .gl-checkbox-title,
#gl-checkout-app .gl-checkbox-card:has(#createaccount:checked) .gl-checkbox-title,
.gl-checkbox-card.is-active .gl-checkbox-title,
#createaccount:checked ~ .gl-checkbox-label-wrap .gl-checkbox-title {
	color: var(--gl-primary, #008a54) !important;
}

#gl-checkout-app .gl-checkbox-desc,
.gl-checkbox-desc {
	font-size: 12px !important;
	color: #64748b !important;
	line-height: 1.4 !important;
	font-weight: 400 !important;
}

/* Password field when toggle is open */
#gl-checkout-app .gl-account-password-field,
.gl-account-password-field {
	margin-top: 12px !important;
	padding-left: 32px !important;
}

@media (max-width: 640px) {
	#gl-checkout-app .gl-account-password-field,
	.gl-account-password-field {
		padding-left: 0 !important;
	}
}

.gl-textarea {
	width: 100%;
	padding: 12px 16px;
	font-family: inherit;
	font-size: 14px;
	color: var(--gl-text-dark);
	background: #ffffff;
	border: 1px solid var(--gl-border-color);
	border-radius: var(--gl-radius-input);
	outline: none;
	resize: vertical;
	transition: all 0.2s ease;
	box-sizing: border-box;
}

.gl-textarea:focus {
	border-color: var(--gl-primary);
	box-shadow: 0 0 0 3px rgba(0, 138, 84, 0.12);
}

/* Fixed Country Box (Ecuador Predeterminado) */
.gl-fixed-country-row {
	margin-bottom: 2px;
}

.gl-fixed-country-badge {
	display: flex;
	align-items: center;
	gap: 12px;
	background: #f8fafc;
	border: 1px solid var(--gl-border-color);
	border-radius: var(--gl-radius-input);
	padding: 12px 18px;
}

.gl-fixed-flag {
	font-size: 22px;
	line-height: 1;
}

.gl-fixed-country-text {
	display: flex;
	flex-direction: column;
	gap: 1px;
}

.gl-fixed-country-label {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: var(--gl-text-muted);
	font-weight: 700;
}

.gl-fixed-country-name {
	font-size: 15px;
	font-weight: 800;
	color: var(--gl-text-dark);
}

.gl-fixed-country-tag {
	margin-left: auto;
	font-size: 11.5px;
	font-weight: 700;
	color: #008a54;
	background: #f0fdf4;
	border: 1px solid #bbf7d0;
	padding: 3px 10px;
	border-radius: 9999px;
}

/* Custom Checkbox */
.gl-checkbox-label {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	cursor: pointer;
	user-select: none;
	margin-top: 6px;
	padding: 4px 0;
}

.gl-checkbox-label input[type="checkbox"] {
	width: 18px;
	height: 18px;
	margin-top: 2px;
	accent-color: var(--gl-primary);
	cursor: pointer;
}

.gl-checkbox-text {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.gl-checkbox-title {
	font-size: 13.5px;
	font-weight: 700;
	color: #1e293b;
}

.gl-checkbox-desc {
	font-size: 12px;
	color: var(--gl-text-muted);
}

/* Select2 / SelectWoo Styling Integration */
#gl-checkout-app .gl-select-wrap .select2-container,
#gl-checkout-app .gl-select-wrap .select2,
.gl-select-wrap .select2-container {
	width: 100% !important;
	max-width: 100% !important;
}

.gl-select-wrap {
	position: relative !important;
	width: 100% !important;
}

.select2-container--default .select2-selection--single {
	height: 50px !important;
	border: 1px solid var(--gl-border-color) !important;
	border-radius: var(--gl-radius-input) !important;
	display: flex !important;
	align-items: center !important;
	padding: 0 14px !important;
	background: #ffffff !important;
}

.select2-container--default.select2-container--open .select2-selection--single,
.select2-container--default.select2-container--focus .select2-selection--single {
	border-color: var(--gl-primary) !important;
	box-shadow: 0 0 0 3px rgba(0, 138, 84, 0.12) !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
	line-height: 48px !important;
	color: var(--gl-text-dark) !important;
	font-size: 14.5px !important;
	font-weight: 500 !important;
	padding-left: 0 !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
	height: 48px !important;
	right: 14px !important;
}

.select2-dropdown,
.gl-select2-dropdown {
	border: 1px solid #cbd5e1 !important;
	border-radius: 10px !important;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
	overflow: hidden !important;
	z-index: 999999 !important;
	background: #ffffff !important;
	box-sizing: border-box !important;
}

.select2-search--dropdown {
	padding: 10px !important;
}

.select2-search--dropdown .select2-search__field {
	border: 1px solid var(--gl-border-color) !important;
	border-radius: 8px !important;
	padding: 8px 12px !important;
	font-size: 14px !important;
	outline: none !important;
}

.select2-results__option--highlighted[aria-selected] {
	background-color: var(--gl-primary) !important;
	color: #ffffff !important;
}

/* Shipping Notice */
.gl-shipping-calc-notice {
	display: flex;
	align-items: center;
	gap: 10px;
	background: #f0fdf4;
	border: 1px solid #bbf7d0;
	border-radius: 12px;
	padding: 12px 16px;
	margin-top: 18px;
	font-size: 13px;
	color: #065f46;
	font-weight: 600;
}

/* Actions Footer */
.gl-pane-actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 22px;
	padding-top: 18px;
	border-top: 1px solid #f1f5f9;
	gap: 12px;
}

#gl-checkout-app .gl-btn-next-step,
.gl-btn-next-step {
	background: var(--gl-primary, #008a54) !important;
	color: #ffffff !important;
	border: none !important;
	border-radius: 8px !important;
	padding: 8px 18px !important;
	height: 38px !important;
	min-height: 38px !important;
	max-height: 38px !important;
	font-family: inherit !important;
	font-size: 13.5px !important;
	font-weight: 600 !important;
	cursor: pointer !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 8px !important;
	margin-left: auto !important;
	transition: all 0.2s ease !important;
	box-shadow: 0 1px 3px rgba(0, 138, 84, 0.2) !important;
	line-height: 1 !important;
	text-decoration: none !important;
}

#gl-checkout-app .gl-btn-next-step svg,
.gl-btn-next-step svg {
	width: 15px !important;
	height: 15px !important;
	stroke-width: 2.2 !important;
	flex-shrink: 0 !important;
}

#gl-checkout-app .gl-btn-next-step:hover,
.gl-btn-next-step:hover {
	background: var(--gl-primary-dark, #00683f) !important;
	transform: translateY(-1px) !important;
	box-shadow: 0 3px 8px rgba(0, 138, 84, 0.25) !important;
	color: #ffffff !important;
}

#gl-checkout-app .gl-btn-prev-step,
.gl-btn-prev-step {
	background: #ffffff !important;
	color: #475569 !important;
	border: 1px solid #cbd5e1 !important;
	border-radius: 8px !important;
	padding: 8px 16px !important;
	height: 38px !important;
	min-height: 38px !important;
	max-height: 38px !important;
	font-family: inherit !important;
	font-size: 13.5px !important;
	font-weight: 600 !important;
	cursor: pointer !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 8px !important;
	transition: all 0.2s ease !important;
	line-height: 1 !important;
	text-decoration: none !important;
}

#gl-checkout-app .gl-btn-prev-step svg,
.gl-btn-prev-step svg {
	width: 15px !important;
	height: 15px !important;
	stroke-width: 2.2 !important;
	flex-shrink: 0 !important;
}

#gl-checkout-app .gl-btn-prev-step:hover,
.gl-btn-prev-step:hover {
	background: #f8fafc !important;
	color: var(--gl-text-dark, #0f172a) !important;
	border-color: #94a3b8 !important;
}

#gl-checkout-app .gl-btn-place-order,
#gl-checkout-app #place_order,
.gl-btn-place-order {
	background: var(--gl-primary, #008a54) !important;
	color: #ffffff !important;
	border: none !important;
	border-radius: 8px !important;
	padding: 9px 20px !important;
	height: 40px !important;
	min-height: 40px !important;
	font-family: inherit !important;
	font-size: 14px !important;
	font-weight: 700 !important;
	cursor: pointer !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 8px !important;
	margin-left: auto !important;
	transition: all 0.2s ease !important;
	box-shadow: 0 2px 6px rgba(0, 138, 84, 0.22) !important;
	line-height: 1 !important;
	text-decoration: none !important;
}

#gl-checkout-app .gl-btn-place-order:hover,
#gl-checkout-app #place_order:hover,
.gl-btn-place-order:hover {
	background: var(--gl-primary-dark, #00683f) !important;
	transform: translateY(-1px) !important;
	box-shadow: 0 4px 10px rgba(0, 138, 84, 0.3) !important;
	color: #ffffff !important;
}

/* ==========================================================================
   4. STEP 3: PAYMENT GATEWAYS & DRAG AND DROP
   ========================================================================== */
.gl-payment-options-list {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.gl-payment-option-card {
	border: 1.5px solid var(--gl-border-color);
	border-radius: 14px;
	background: #ffffff;
	overflow: hidden;
	transition: all 0.2s ease;
}

.gl-payment-option-card.is-selected {
	border-color: var(--gl-primary);
	box-shadow: 0 0 0 2px rgba(0, 138, 84, 0.12);
}

.gl-payment-header {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 16px 20px;
	cursor: pointer;
	user-select: none;
}

.gl-payment-radio {
	display: none;
}

.gl-radio-custom {
	width: 20px;
	height: 20px;
	border-radius: 50%;
	border: 2px solid #cbd5e1;
	background: #ffffff;
	position: relative;
	transition: all 0.2s ease;
	flex-shrink: 0;
}

.gl-payment-option-card.is-selected .gl-radio-custom {
	border-color: var(--gl-primary);
	background: var(--gl-primary);
}

.gl-payment-option-card.is-selected .gl-radio-custom::after {
	content: '';
	position: absolute;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #ffffff;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}

.gl-payment-title-wrap {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex: 1;
	flex-wrap: wrap;
	gap: 10px;
}

.gl-payment-name {
	font-size: 15px;
	font-weight: 700;
	color: var(--gl-text-dark);
}

.gl-payment-badges {
	display: flex;
	align-items: center;
	gap: 6px;
}

.gl-brand-badge {
	font-size: 11px;
	font-weight: 800;
	padding: 3px 8px;
	border-radius: 6px;
	letter-spacing: 0.4px;
}

.gl-brand-badge.bacs { background: #e0f2fe; color: #0284c7; }
.gl-brand-badge.visa { background: #1a1f71; color: #ffffff; }
.gl-brand-badge.mastercard { background: #eb001b; color: #ffffff; }
.gl-brand-badge.payphone { background: #ff5722; color: #ffffff; }

.gl-payment-body {
	padding: 0 20px 20px 20px;
	border-top: 1px solid #f1f5f9;
	margin-top: -2px;
	padding-top: 16px;
	background: #fbfcfe;
}

/* Bank Instructions & Card */
.gl-bacs-details-box {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.gl-bank-accounts-card {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	padding: 14px 16px;
	margin-top: 4px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.gl-bank-card-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-bottom: 8px;
	border-bottom: 1px dashed #e2e8f0;
	margin-bottom: 8px;
}

.gl-bank-badge-wrap {
	display: flex;
	align-items: center;
	gap: 8px;
}

.gl-bank-badge {
	background: #fef08a;
	color: #854d0e;
	font-weight: 700;
	font-size: 11.5px;
	padding: 3px 8px;
	border-radius: 5px;
}

.gl-bank-type {
	font-size: 12px;
	font-weight: 600;
	color: #475569;
}

.gl-copy-account-btn {
	background: #f8fafc;
	color: #008a54;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	padding: 4px 10px;
	font-size: 11.5px;
	font-weight: 600;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	transition: all 0.15s ease;
}

.gl-copy-account-btn:hover {
	background: #f0fdf4;
	border-color: #008a54;
}

.gl-bank-account-num-row {
	display: flex;
	align-items: baseline;
	gap: 8px;
	margin-bottom: 8px;
}

.gl-acc-label {
	font-size: 12px;
	color: #64748b;
	font-weight: 500;
}

.gl-acc-number {
	font-size: 18px;
	font-weight: 800;
	letter-spacing: 0.5px;
	color: #0f172a;
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.gl-bank-meta-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px 12px;
	background: #f8fafc;
	padding: 10px 12px;
	border-radius: 8px;
}

.gl-meta-col {
	display: flex;
	flex-direction: column;
	gap: 1px;
}

.gl-meta-col-full {
	grid-column: span 2;
}

.gl-meta-lbl {
	font-size: 10.5px;
	color: #64748b;
	text-transform: uppercase;
	font-weight: 600;
	letter-spacing: 0.3px;
}

.gl-meta-val {
	font-size: 12.5px;
	font-weight: 600;
	color: #1e293b;
	word-break: break-all;
}

/* Drag & Drop Comprobante Zone (.gl-dropzone) */
.gl-receipt-upload-section {
	margin-top: 12px;
}

.gl-receipt-upload-section .gl-field-label {
	font-size: 13.5px;
	font-weight: 700;
	color: var(--gl-text-dark, #0f172a);
	margin-bottom: 6px;
	display: block;
}

.gl-dropzone {
	border: 2px dashed #94a3b8;
	border-radius: 12px;
	background: #f8fafc;
	padding: 22px 18px;
	text-align: center;
	cursor: pointer;
	position: relative;
	transition: all 0.2s ease;
	display: block;
}

.gl-dropzone:hover {
	border-color: var(--gl-primary, #008a54);
	background: #f0fdf4;
}

.gl-dropzone.is-dragover {
	border-color: var(--gl-primary, #008a54);
	border-style: solid;
	background: #ecfdf5;
	box-shadow: 0 0 0 4px rgba(0, 138, 84, 0.12);
}

.gl-dropzone-idle {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 5px;
}

.gl-dropzone-icon {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	color: var(--gl-primary, #008a54);
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 2px;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.04);
}

.gl-dropzone-title {
	font-size: 13.5px;
	font-weight: 700;
	color: var(--gl-text-dark, #0f172a);
	margin: 0;
}

.gl-dropzone-formats {
	font-size: 12px;
	color: #64748b;
	font-weight: 500;
}

/* Upload Preview */
.gl-dropzone-preview {
	display: flex;
	align-items: center;
	gap: 12px;
	background: #ffffff;
	border: 1.5px solid #86efac;
	border-radius: 10px;
	padding: 10px 14px;
	text-align: left;
}

.gl-preview-thumb-wrap {
	width: 42px;
	height: 42px;
	border-radius: 8px;
	background: #f1f5f9;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	flex-shrink: 0;
}

.gl-preview-thumb-wrap img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.gl-preview-meta {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.gl-preview-name {
	font-size: 13.5px;
	font-weight: 700;
	color: var(--gl-text-dark, #0f172a);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.gl-preview-size {
	font-size: 11.5px;
	color: #64748b;
}

.gl-preview-status {
	font-size: 11.5px;
	color: #16a34a;
	font-weight: 600;
}

.gl-btn-remove-file {
	background: #fee2e2 !important;
	color: #ef4444 !important;
	border: none !important;
	width: 30px !important;
	height: 30px !important;
	min-width: 30px !important;
	padding: 0 !important;
	margin: 0 !important;
	border-radius: 8px !important;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	flex-shrink: 0;
	line-height: 1 !important;
	font-size: 0 !important;
	box-shadow: none !important;
	transition: background 0.15s ease;
}

.gl-btn-remove-file svg {
	display: block !important;
	width: 16px !important;
	height: 16px !important;
	fill: none !important;
	stroke: currentColor !important;
	stroke-width: 2.5 !important;
	pointer-events: none;
}

.gl-btn-remove-file svg line {
	stroke: currentColor !important;
}

.gl-btn-remove-file:hover {
	background: #fca5a5 !important;
	color: #b91c1c !important;
}

/* Payphone & PayphoneBox Gateway */
.gl-payphone-details-box,
.gl-payphonebox-details-box {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	padding: 16px 18px;
	margin-top: 6px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.gl-payphone-desc {
	font-size: 13.5px;
	color: #475569;
	margin-bottom: 12px;
	line-height: 1.5;
}

.gl-pp-box-wrapper {
	min-height: 140px;
	margin: 10px 0;
	position: relative;
}

#pp-button,
#payphonebox-classic-container {
	width: 100% !important;
	max-width: 100% !important;
}

/*
 * El cobro ya está hecho y el servidor está confirmando la transacción: la
 * cajita se esconde para que el cliente no pueda cobrar otra vez.
 */
#gl-pp-box-wrapper.gl-pp-waiting #payphonebox-classic-container {
	display: none !important;
}

/*
 * Estado de carga mientras el servidor valida el pago y cierra el pedido:
 * el cliente ve que la compra se está validando, no un error.
 */
.gl-pp-validating {
	border: 1px solid #d9e6e0;
	background: #f2faf6;
	border-radius: 10px;
	padding: 14px 18px;
	margin: 0 0 18px;
	color: #14614a;
}

.gl-pp-validating ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.gl-pp-validating-item {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0;
	font-weight: 600;
	font-size: 15px;
}

.gl-pp-spinner {
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	border: 2px solid rgba(20, 97, 74, 0.25);
	border-top-color: #14614a;
	animation: gl-pp-spin 0.8s linear infinite;
}

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

@media (prefers-reduced-motion: reduce) {
	.gl-pp-spinner {
		animation-duration: 3s;
	}
}

/*
 * Capa que cubre toda la página mientras el servidor valida el pago: el
 * cliente no puede tocar nada hasta que la tienda confirme la compra.
 */
.gl-pp-overlay {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba(255, 255, 255, 0.92);
	-webkit-backdrop-filter: blur(3px);
	backdrop-filter: blur(3px);
}

body.gl-pp-validating-body {
	overflow: hidden;
}

.gl-pp-overlay-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	width: 100%;
	max-width: 420px;
	padding: 34px 40px;
	border: 1px solid #d9e6e0;
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 24px 70px rgba(15, 60, 45, 0.2);
	text-align: center;
}

.gl-pp-overlay-text {
	font-size: 18px;
	font-weight: 700;
	color: #14614a;
	line-height: 1.3;
}

.gl-pp-overlay-hint {
	font-size: 14px;
	color: #4b6b60;
	line-height: 1.5;
}

.gl-pp-spinner-lg {
	width: 34px;
	height: 34px;
	border-width: 3px;
}

.gl-security-badges {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-top: 10px;
	padding-top: 10px;
	border-top: 1px dashed #e2e8f0;
	font-size: 12px;
	color: #64748b;
	font-weight: 600;
}

/* ==========================================================================
   5. RIGHT COLUMN: STICKY "TU PEDIDO" ORDER SUMMARY (Clean & Modern)
   ========================================================================== */
.gl-order-summary-card {
	background: var(--gl-bg-card);
	border: 1px solid var(--gl-border-color);
	border-radius: var(--gl-radius-card);
	padding: 18px 22px !important;
	box-shadow: var(--gl-shadow-card);
}

.gl-summary-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-bottom: 10px !important;
	margin-bottom: 12px !important;
	border-bottom: 1px solid #f1f5f9 !important;
}

.gl-summary-title {
	font-size: 18px !important;
	font-weight: 800 !important;
	color: var(--gl-text-dark);
	margin: 0 !important;
}

.gl-summary-count-badge {
	background: #f0fdf4;
	color: #008a54;
	border: 1px solid #bbf7d0;
	font-size: 12px;
	font-weight: 700;
	padding: 4px 12px;
	border-radius: 9999px;
}

/* Products List */
.gl-summary-products-list {
	display: flex;
	flex-direction: column;
	gap: 14px;
	max-height: 280px;
	overflow-y: auto;
	overflow-x: visible;
	/* IMPORTANTE: Padding superior y derecho para dar espacio al badge sobresaliente */
	padding: 10px 10px 6px 4px !important;
	margin-top: -6px;
	margin-bottom: 16px;
}

.gl-summary-products-list::-webkit-scrollbar {
	width: 5px;
}

.gl-summary-products-list::-webkit-scrollbar-thumb {
	background: #cbd5e1;
	border-radius: 10px;
}

.gl-summary-item {
	display: flex;
	align-items: center;
	gap: 14px;
	padding-bottom: 12px;
	border-bottom: 1px solid #f8fafc;
}

.gl-summary-item:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

/* Thumbnail Box: OVERFLOW VISIBLE FOR THE QUANTITY BADGE */
.gl-item-thumb-box {
	position: relative !important;
	width: 54px !important;
	height: 54px !important;
	border-radius: 12px !important;
	overflow: visible !important; /* CRUCIAL: No recorta el badge */
	background: #eef2f6;
	border: 1px solid #e2e8f0;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.gl-item-thumb-box img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
	border-radius: 10px;
}

/* Quantity Badge: Clean Circle with White Border */
.gl-item-qty-badge {
	position: absolute !important;
	top: -7px !important;
	right: -7px !important;
	background: #1e293b !important;
	color: #ffffff !important;
	font-size: 11.5px !important;
	font-weight: 800 !important;
	width: 22px !important;
	height: 22px !important;
	border-radius: 50% !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25) !important;
	z-index: 99 !important; /* Por encima de todo */
	line-height: 1 !important;
	border: 2.5px solid #ffffff !important; /* Borde blanco como en el diseño limpio */
	pointer-events: none;
}

.gl-item-details {
	flex: 1;
	min-width: 0;
}

.gl-item-title {
	font-size: 14px;
	font-weight: 800;
	color: var(--gl-text-dark);
	display: block;
	line-height: 1.3;
	margin-bottom: 2px;
}

.gl-item-meta {
	font-size: 12px;
	color: var(--gl-text-muted);
	display: block;
}

/* Item Actions: Stepper and Remove Button */
.gl-checkout-item-actions {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 6px;
}

/* Hide product modification buttons on Step 3 (Payment) */
.gl-checkout-app-wrapper[data-step="3"] .gl-checkout-item-actions,
#gl-checkout-app-wrapper[data-step="3"] .gl-checkout-item-actions {
	display: none !important;
}

.gl-checkout-qty-stepper {
	display: inline-flex;
	align-items: center;
	background: #f1f5f9;
	border: 1px solid #e2e8f0;
	border-radius: 6px;
	padding: 2px;
	user-select: none;
}

.gl-checkout-qty-btn {
	background: transparent;
	border: none;
	width: 22px;
	height: 22px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	font-weight: 700;
	color: #475569;
	cursor: pointer;
	border-radius: 4px;
	padding: 0;
	line-height: 1;
	transition: background 0.15s, color 0.15s;
}

.gl-checkout-qty-btn:hover {
	background: #ffffff;
	color: var(--gl-primary, #15803d);
	box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}

.gl-checkout-qty-num {
	min-width: 20px;
	text-align: center;
	font-size: 12px;
	font-weight: 700;
	color: #1e293b;
	padding: 0 4px;
}

.gl-checkout-remove-item-btn {
	background: transparent;
	border: none;
	color: #94a3b8;
	padding: 4px;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 4px;
	transition: color 0.15s, background 0.15s;
}

.gl-checkout-remove-item-btn:hover {
	color: #ef4444;
	background: #fef2f2;
}

.gl-summary-item.gl-item-loading {
	opacity: 0.5;
	pointer-events: none;
}

.gl-item-price {
	font-size: 15px;
	font-weight: 800;
	color: var(--gl-text-dark);
	white-space: nowrap;
}

/* Totals Table & WooCommerce Order Review Container */
#gl-checkout-app #order_review,
#gl-checkout-app .woocommerce-checkout-review-order,
#gl-checkout-app .gl-totals-review-box,
.gl-totals-review-box {
	float: none !important;
	width: 100% !important;
	clear: both !important;
	display: block !important;
	margin: 0 0 16px 0 !important;
	padding: 0 !important;
	background: transparent !important;
	border: none !important;
	box-shadow: none !important;
}

/* Ocultar thead y tbody redundantes generados por WooCommerce o temas en update_order_review (los productos ya se muestran arriba) */
#gl-checkout-app .woocommerce-checkout-review-order-table thead,
#gl-checkout-app .woocommerce-checkout-review-order-table tbody,
#gl-checkout-app #order_review thead,
#gl-checkout-app #order_review tbody {
	display: none !important;
	visibility: hidden !important;
	height: 0 !important;
}

#gl-checkout-app table.shop_table.woocommerce-checkout-review-order-table,
#gl-checkout-app table.gl-totals-table,
.gl-totals-table {
	width: 100% !important;
	max-width: 100% !important;
	float: none !important;
	clear: both !important;
	border-collapse: collapse !important;
	border: none !important;
	border-radius: 0 !important;
	background: transparent !important;
	margin: 0 0 8px 0 !important;
	table-layout: auto !important;
}

#gl-checkout-app .woocommerce-checkout-review-order-table tr,
#gl-checkout-app .gl-totals-table tr,
.gl-totals-table tr {
	border: none !important;
	border-bottom: 1px solid #f1f5f9 !important;
	background: transparent !important;
}

#gl-checkout-app .woocommerce-checkout-review-order-table tr:last-child,
#gl-checkout-app .gl-totals-table tr:last-child,
.gl-totals-table tr:last-child {
	border-bottom: none !important;
}

#gl-checkout-app .woocommerce-checkout-review-order-table th,
#gl-checkout-app .gl-totals-table th,
.gl-totals-table th {
	text-align: left !important;
	font-size: 14.5px !important;
	font-weight: 600 !important;
	color: #64748b !important;
	padding: 12px 14px 12px 0 !important;
	border: none !important;
	background: transparent !important;
	line-height: 1.4 !important;
	width: 120px !important;
	min-width: 110px !important;
	white-space: nowrap !important;
	word-break: normal !important;
	overflow-wrap: normal !important;
	word-wrap: normal !important;
	vertical-align: top !important;
}

#gl-checkout-app .woocommerce-checkout-review-order-table td,
#gl-checkout-app .gl-totals-table td,
.gl-totals-table td {
	text-align: right !important;
	font-size: 14.5px !important;
	font-weight: 700 !important;
	color: var(--gl-text-dark, #0f172a) !important;
	padding: 12px 0 !important;
	border: none !important;
	background: transparent !important;
	line-height: 1.45 !important;
	vertical-align: top !important;
	word-break: normal !important;
}

#gl-checkout-app .woocommerce-checkout-review-order-table tr.shipping th,
#gl-checkout-app .woocommerce-checkout-review-order-table tr.woocommerce-shipping-totals th,
#gl-checkout-app .gl-totals-table tr.shipping th {
	width: 120px !important;
	min-width: 110px !important;
	white-space: nowrap !important;
	word-break: normal !important;
}

#gl-checkout-app .woocommerce-checkout-review-order-table tr.shipping td,
#gl-checkout-app .woocommerce-checkout-review-order-table tr.woocommerce-shipping-totals td,
#gl-checkout-app .gl-totals-table tr.shipping td {
	font-size: 13.5px !important;
	font-weight: 500 !important;
	color: #475569 !important;
	line-height: 1.5 !important;
	text-align: right !important;
}

#gl-checkout-app .woocommerce-checkout-review-order-table tr.shipping td p,
#gl-checkout-app .woocommerce-checkout-review-order-table tr.woocommerce-shipping-totals td p,
#gl-checkout-app .gl-totals-table tr.shipping td p {
	font-size: 13.5px !important;
	font-weight: 500 !important;
	color: #475569 !important;
	line-height: 1.5 !important;
	margin: 0 !important;
	text-align: right !important;
}

/* Coupon Discount Row & Remove Button in Totals Table */
#gl-checkout-app tr.cart-discount td,
.gl-totals-table tr.cart-discount td {
	color: #059669 !important;
	white-space: nowrap !important;
}

#gl-checkout-app .woocommerce-remove-coupon,
.gl-totals-table .woocommerce-remove-coupon,
.gl-remove-coupon-link {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 20px !important;
	height: 20px !important;
	margin-left: 8px !important;
	border-radius: 50% !important;
	background: #fee2e2 !important;
	color: #ef4444 !important;
	font-size: 11px !important;
	font-weight: 700 !important;
	line-height: 1 !important;
	text-decoration: none !important;
	vertical-align: middle !important;
	transition: all 0.15s ease !important;
	cursor: pointer !important;
}

#gl-checkout-app .woocommerce-remove-coupon:hover,
.gl-totals-table .woocommerce-remove-coupon:hover,
.gl-remove-coupon-link:hover {
	background: #ef4444 !important;
	color: #ffffff !important;
	transform: scale(1.1) !important;
}

#gl-checkout-app .woocommerce-checkout-review-order-table tr.order-total,
#gl-checkout-app .gl-totals-table tr.gl-total-row,
.gl-totals-table tr.gl-total-row {
	border-top: 1.5px solid #e2e8f0 !important;
	border-bottom: none !important;
	padding-top: 14px !important;
}

#gl-checkout-app .woocommerce-checkout-review-order-table tr.order-total th,
#gl-checkout-app .gl-totals-table tr.gl-total-row th,
.gl-totals-table tr.gl-total-row th {
	font-size: 16px !important;
	font-weight: 800 !important;
	color: var(--gl-text-dark, #0f172a) !important;
	padding: 16px 14px 4px 0 !important;
	border: none !important;
	background: transparent !important;
	width: 130px !important;
	min-width: 120px !important;
	white-space: nowrap !important;
	word-break: normal !important;
	vertical-align: middle !important;
}

#gl-checkout-app .woocommerce-checkout-review-order-table tr.order-total td,
#gl-checkout-app .gl-totals-table tr.gl-total-row td,
.gl-totals-table tr.gl-total-row td {
	font-size: 24px !important;
	font-weight: 900 !important;
	color: var(--gl-primary, #008a54) !important;
	padding: 16px 0 4px 0 !important;
	border: none !important;
	background: transparent !important;
	white-space: nowrap !important;
	vertical-align: middle !important;
}

.gl-tax-note {
	font-size: 12px;
	color: #94a3b8;
	font-weight: 500;
	margin-top: 2px;
	margin-bottom: 14px;
}

/* Coupon Accordion */
.gl-coupon-accordion-wrap {
	margin-bottom: 20px;
	border-top: 1px dashed #e2e8f0;
	padding-top: 14px;
}

/* Ocultar cupón de descuento cuando esté en el paso 3 de pago */
#gl-checkout-app-wrapper[data-step="3"] .gl-coupon-accordion-wrap {
	display: none !important;
}

.gl-coupon-toggle-btn {
	background: transparent;
	border: none;
	padding: 0;
	display: flex;
	align-items: center;
	gap: 8px;
	width: 100%;
	color: var(--gl-primary);
	font-family: inherit;
	font-size: 13.5px;
	font-weight: 700;
	cursor: pointer;
	text-align: left;
}

.gl-coupon-toggle-btn .gl-chevron {
	margin-left: auto;
	transition: transform 0.2s ease;
}

.gl-coupon-toggle-btn.is-open .gl-chevron {
	transform: rotate(180deg);
}

.gl-coupon-form-drawer {
	margin-top: 12px;
}

.gl-coupon-input-group {
	display: flex;
	gap: 8px;
}

.gl-coupon-input {
	flex: 1;
	height: 42px;
	border: 1px solid var(--gl-border-color);
	border-radius: 10px;
	padding: 0 14px;
	font-size: 13.5px;
	outline: none;
}

.gl-coupon-input:focus {
	border-color: var(--gl-primary);
}

.gl-btn-apply-coupon {
	background: var(--gl-primary);
	color: #ffffff;
	border: none;
	border-radius: 10px;
	padding: 0 18px;
	font-family: inherit;
	font-size: 13.5px;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.2s;
}

.gl-btn-apply-coupon:hover {
	background: var(--gl-primary-dark);
}

.gl-coupon-message {
	font-size: 12.5px;
	margin-top: 6px;
	font-weight: 600;
}

.gl-coupon-message.is-success { color: #059669; }
.gl-coupon-message.is-error { color: #ef4444; }

/* Ocultar avisos verdes woocommerce-message en la sección de cupón */
.gl-coupon-accordion-wrap .woocommerce-message,
#gl-coupon-form-drawer .woocommerce-message,
#gl-coupon-message .woocommerce-message {
	display: none !important;
}

/* ==========================================================================
   6. TAMBIÉN TE PODRÍA GUSTAR (Inside Summary Column - Clean List Design)
   ========================================================================== */
.gl-summary-recs-section {
	margin-top: 20px;
	padding-top: 18px;
	border-top: 1px dashed #e2e8f0;
	transition: all 0.3s ease;
}

.gl-summary-recs-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 12px;
}

.gl-summary-recs-title {
	font-size: 12px;
	font-weight: 800;
	color: #475569;
	text-transform: uppercase;
	letter-spacing: 0.6px;
	margin: 0;
}

.gl-summary-recs-subtitle {
	font-size: 12px;
	color: #94a3b8;
	font-weight: 500;
}

.gl-summary-recs-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.gl-summary-rec-card {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 14px;
	background: #ffffff;
	border: 1px solid var(--gl-border-color);
	border-radius: 12px;
	transition: all 0.2s ease;
}

.gl-summary-rec-card:hover {
	border-color: #cbd5e1;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.gl-summary-rec-thumb {
	width: 44px;
	height: 44px;
	border-radius: 10px;
	background: #f1f5f9;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	flex-shrink: 0;
}

.gl-summary-rec-thumb img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.gl-summary-rec-thumb svg {
	color: #64748b;
}

.gl-summary-rec-details {
	flex: 1;
	min-width: 0;
}

.gl-summary-rec-name {
	font-size: 13.5px;
	font-weight: 700;
	color: var(--gl-text-dark);
	display: block;
	line-height: 1.25;
	margin-bottom: 2px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.gl-summary-rec-price {
	font-size: 13.5px;
	font-weight: 800;
	color: var(--gl-primary);
	display: block;
}

.gl-btn-add-rec {
	background: #ffffff;
	color: var(--gl-primary);
	border: 1.5px solid var(--gl-primary);
	border-radius: 8px;
	padding: 6px 14px;
	font-family: inherit;
	font-size: 11.5px;
	font-weight: 800;
	letter-spacing: 0.3px;
	cursor: pointer;
	white-space: nowrap;
	transition: all 0.2s ease;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	flex-shrink: 0;
}

.gl-btn-add-rec:hover {
	background: var(--gl-primary);
	color: #ffffff;
	box-shadow: 0 2px 6px rgba(0, 138, 84, 0.25);
}

.gl-rec-btn-spinner {
	width: 12px;
	height: 12px;
	border: 2px solid currentColor;
	border-top-color: transparent;
	border-radius: 50%;
	animation: glSpin 0.75s linear infinite;
}

/* Trust Badges at Bottom */
.gl-summary-trust-badges {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-top: 18px;
	padding-top: 14px;
	border-top: 1px solid #f1f5f9;
}

.gl-trust-item {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 12px;
	font-weight: 600;
	color: #475569;
}

.gl-trust-item svg {
	color: var(--gl-primary);
	flex-shrink: 0;
}

/* Spinner Animation */
@keyframes glSpin {
	to { transform: rotate(360deg); }
}

.gl-btn-spinner {
	width: 16px;
	height: 16px;
	border: 2px solid #ffffff;
	border-top-color: transparent;
	border-radius: 50%;
	animation: glSpin 0.75s linear infinite;
}

/* Locking State */
.gl-checkout-form.is-locked {
	pointer-events: none !important;
	user-select: none !important;
	opacity: 0.7;
}

/* ==========================================================================
   7. RESPONSIVE BREAKPOINTS & MOBILE OPTIMIZATIONS
   ========================================================================== */

/* Botón flotante móvil de Ver carrito */
.gl-mobile-cart-floater {
	display: none;
	position: fixed;
	bottom: 22px;
	right: 14px;
	z-index: 9999;
	transition: opacity 0.25s ease, transform 0.25s ease;
}

.gl-mobile-cart-floater.is-hidden {
	opacity: 0;
	pointer-events: none;
	transform: translateY(16px);
}

.gl-floating-cart-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: #008a54;
	color: #ffffff !important;
	border: none;
	border-radius: 9999px;
	padding: 10px 16px;
	font-family: inherit;
	font-size: 13.5px;
	font-weight: 700;
	box-shadow: 0 6px 22px rgba(0, 138, 84, 0.45), 0 2px 6px rgba(0, 0, 0, 0.12);
	cursor: pointer;
	text-decoration: none;
	-webkit-tap-highlight-color: transparent;
	touch-action: manipulation;
}

.gl-floating-cart-btn:hover,
.gl-floating-cart-btn:active {
	background: #007547;
	color: #ffffff !important;
}

.gl-floating-cart-icon {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.gl-floating-badge {
	position: absolute;
	top: -7px;
	right: -8px;
	background: #dc2626;
	color: #ffffff;
	font-size: 10px;
	font-weight: 800;
	min-width: 17px;
	height: 17px;
	line-height: 17px;
	text-align: center;
	border-radius: 999px;
	padding: 0 4px;
	border: 1.5px solid #ffffff;
}

.gl-floating-label {
	white-space: nowrap;
}

.gl-floating-total {
	background: rgba(255, 255, 255, 0.22);
	padding: 2px 8px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 800;
	white-space: nowrap;
}

.gl-floating-arrow {
	transition: transform 0.15s ease;
}

/* Botón "Llenar datos" en la cabecera de Tu pedido */
.gl-btn-fill-data {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #f0fdf4;
	color: #008a54;
	border: 1px solid #bbf7d0;
	border-radius: 999px;
	padding: 5px 12px;
	font-size: 12px;
	font-weight: 700;
	cursor: pointer;
	transition: all 0.15s ease;
	text-decoration: none;
	white-space: nowrap;
}

.gl-btn-fill-data:hover,
.gl-btn-fill-data:active {
	background: #008a54;
	color: #ffffff;
	border-color: #008a54;
}

/* Evitar que clics móviles en iconos o textos del botón fallen */
.gl-btn-next-step *,
.gl-btn-prev-step *,
.gl-btn-place-order *,
.gl-floating-cart-btn *,
.gl-btn-fill-data * {
	pointer-events: none;
}

@media (max-width: 1024px) {
	.gl-checkout-main-grid {
		display: flex !important;
		flex-direction: column !important;
		gap: 16px !important;
	}

	/* Formulario de completar datos va PRIMERO */
	.gl-checkout-form-column {
		order: 1 !important;
		width: 100% !important;
		min-width: 0 !important;
	}

	/* Resumen de productos va ABAJO */
	.gl-checkout-summary-column {
		order: 2 !important;
		width: 100% !important;
		min-width: 0 !important;
		position: static !important;
		margin-top: 4px !important;
	}

	/* Mostrar botón flotante en pantallas táctiles y móviles */
	.gl-mobile-cart-floater {
		display: block !important;
	}
}

@media (max-width: 768px) {
	/* Eliminar paddings laterales excesivos para ganar todo el ancho útil de la pantalla */
	.gl-checkout-app-wrapper {
		padding: 6px 4px 80px 4px !important;
		width: 100% !important;
		max-width: 100% !important;
		box-sizing: border-box !important;
	}

	/* Forzar a que los contenedores del tema no reduzcan el checkout */
	.woocommerce-checkout .site-content,
	.woocommerce-checkout .col-full,
	.woocommerce-checkout #content,
	.woocommerce-checkout .entry-content {
		padding-left: 4px !important;
		padding-right: 4px !important;
		max-width: 100% !important;
		box-sizing: border-box !important;
		overflow-x: hidden !important;
	}

	.gl-checkout-stepper-container {
		padding: 10px 8px !important;
		margin-bottom: 10px !important;
		border-radius: 12px !important;
	}

	.gl-step-meta {
		display: none !important;
	}

	.gl-step-connector {
		margin: 0 4px !important;
	}

	.gl-step-badge {
		width: 32px !important;
		height: 32px !important;
		font-size: 13px !important;
	}

	.gl-col-6,
	.gl-col-4 {
		grid-column: span 12 !important;
	}

	.gl-form-grid {
		gap: 12px !important;
	}

	.gl-pane-card {
		padding: 14px 10px !important;
		border-radius: 12px !important;
	}

	.gl-order-summary-card {
		padding: 14px 10px !important;
		border-radius: 12px !important;
	}

	/* Desahogar la caja de transferencia bancaria para que no se vea apretada ni rota */
	.gl-gateway-card {
		border-radius: 12px !important;
	}

	.gl-gateway-header {
		padding: 12px 10px !important;
	}

	.gl-payment-body {
		padding: 0 8px 12px 8px !important;
	}

	.gl-bank-accounts-card {
		padding: 12px 10px !important;
		border-radius: 8px !important;
	}

	.gl-bank-card-top {
		flex-wrap: wrap !important;
		gap: 6px !important;
		align-items: center !important;
	}

	.gl-bank-meta-grid {
		grid-template-columns: 1fr !important;
		gap: 8px !important;
		padding: 8px 10px !important;
	}

	.gl-meta-col-full {
		grid-column: span 1 !important;
	}

	.gl-meta-val {
		word-break: break-word !important;
		overflow-wrap: anywhere !important;
		font-size: 13px !important;
	}

	.gl-acc-number {
		font-size: 16px !important;
		word-break: break-all !important;
	}

	#gl-receipt-dropzone {
		padding: 14px 8px !important;
		border-radius: 10px !important;
	}

	.gl-dropzone-title {
		font-size: 13px !important;
	}

	.gl-dropzone-subtitle {
		font-size: 11px !important;
	}

	.gl-pane-actions {
		flex-direction: column-reverse !important;
		gap: 10px !important;
		padding-top: 14px !important;
	}

	.gl-btn-next-step,
	.gl-btn-place-order,
	.gl-btn-prev-step {
		width: 100% !important;
		justify-content: center !important;
		padding: 13px 16px !important;
		font-size: 15px !important;
		min-height: 48px !important;
	}
}
