/* ==============================================================================
 * DISEÑADOR DE CHECKOUT HIGH-CONVERSION - WP AGENCY TOOLKIT
 * Estilo Shopify / CheckoutWC Standalone Template & Elementor Isolation
 * ============================================================================== */

.wpat-checkout-builder-wrapper {
	width: 100% !important;
	min-height: 600px !important;
	background: #f8fafc !important;
	padding-top: 110px !important;
	padding-bottom: 140px !important;
	padding-left: 15px !important;
	padding-right: 15px !important;
	box-sizing: border-box !important;
}

.wpat-checkout-container {
	max-width: 1180px;
	margin: 0 auto;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	box-sizing: border-box;
	clear: both;
	color: #0f172a;
}

.wpat-checkout-container * {
	box-sizing: border-box;
}

/* --- HIDE NATIVE WOOCOMMERCE FORM COUPON TOGGLE & NOTICE --- */
.wpat-checkout-container .woocommerce-form-coupon-toggle,
.wpat-checkout-container .woocommerce-form-coupon {
	display: none !important;
}

/* --- CUSTOM CLEAN INLINE COUPON BOX --- */
.wpat-custom-coupon-box {
	margin-top: 20px !important;
	padding-top: 18px !important;
	border-top: 1px solid #f1f5f9 !important;
}

.wpat-coupon-label {
	display: block !important;
	font-size: 13.5px !important;
	font-weight: 700 !important;
	color: #1e293b !important;
	margin-bottom: 10px !important;
}

.wpat-coupon-input-group {
	display: flex !important;
	flex-direction: column !important;
	gap: 10px !important;
}

.wpat-coupon-field {
	width: 100% !important;
	height: 44px !important;
	border: 1px solid #cbd5e1 !important;
	border-radius: 8px !important;
	padding: 8px 14px !important;
	font-size: 14px !important;
	background: #ffffff !important;
	outline: none !important;
	box-shadow: 0 1px 2px rgba(0,0,0,0.04) !important;
	color: #0f172a !important;
}

.wpat-coupon-field:focus {
	border-color: #2563eb !important;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15) !important;
}

.wpat-coupon-submit-btn {
	width: 100% !important;
	height: 44px !important;
	background: #2563eb !important;
	color: #ffffff !important;
	font-size: 14px !important;
	font-weight: 700 !important;
	border: none !important;
	border-radius: 8px !important;
	cursor: pointer !important;
	transition: all 0.2s ease !important;
	box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25) !important;
	text-align: center !important;
}

.wpat-coupon-submit-btn:hover {
	background: #1d4ed8 !important;
	box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35) !important;
}

/* --- OVERRIDE ALL DEFAULT WOOCOMMERCE PURPLE / THEME BUTTON STYLES --- */
.wpat-checkout-container .button,
.wpat-checkout-container .button.alt,
.wpat-checkout-container #place_order,
.wpat-checkout-container button#place_order,
.wpat-checkout-container input[type="submit"] {
	background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
	color: #ffffff !important;
	border: none !important;
	border-radius: 10px !important;
	font-size: 16px !important;
	font-weight: 700 !important;
	height: 52px !important;
	line-height: 52px !important;
	padding: 0 24px !important;
	box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35) !important;
	text-shadow: none !important;
	transition: all 0.2s ease !important;
	display: block !important;
	width: 100% !important;
	cursor: pointer !important;
	text-align: center !important;
	text-transform: none !important;
	letter-spacing: 0.02em !important;
}

.wpat-checkout-container .button:hover,
.wpat-checkout-container .button.alt:hover,
.wpat-checkout-container #place_order:hover,
.wpat-checkout-container button#place_order:hover,
.wpat-checkout-container input[type="submit"]:hover {
	background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%) !important;
	box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45) !important;
	transform: translateY(-1px) !important;
	color: #ffffff !important;
}

/* --- BREADCRUMBS & STEPS BAR --- */
.wpat-checkout-steps-bar {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 15px;
	margin-bottom: 25px;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	padding: 14px 20px;
	border-radius: 12px;
	box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.wpat-step-item {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13.5px;
	font-weight: 600;
	color: #64748b;
	cursor: pointer;
	transition: all 0.2s ease;
}

.wpat-step-num {
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: #e2e8f0;
	color: #475569;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	font-weight: 700;
}

.wpat-step-item.active {
	color: #2563eb;
}

.wpat-step-item.active .wpat-step-num {
	background: #2563eb;
	color: #ffffff;
}

.wpat-step-separator {
	color: #cbd5e1;
	font-size: 16px;
	font-weight: bold;
}

/* --- STEP PANELS & ACTION BUTTONS --- */
.wpat-step-panel {
	width: 100%;
}

.wpat-card-box {
	background: #ffffff !important;
	border: 1px solid #e2e8f0 !important;
	border-radius: 12px !important;
	padding: 24px !important;
	box-shadow: 0 1px 3px rgba(0,0,0,0.03) !important;
	margin-bottom: 20px !important;
}

.wpat-card-title {
	font-size: 18px !important;
	font-weight: 700 !important;
	color: #0f172a !important;
	margin: 0 0 18px 0 !important;
	padding-bottom: 10px !important;
	border-bottom: 1px solid #f1f5f9 !important;
}

.wpat-step-actions {
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	gap: 15px !important;
	margin-top: 20px !important;
}

.wpat-step-btn {
	padding: 12px 22px !important;
	font-size: 14.5px !important;
	font-weight: 600 !important;
	border-radius: 8px !important;
	cursor: pointer !important;
	transition: all 0.2s ease !important;
	border: none !important;
}

.wpat-next-btn {
	background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
	color: #ffffff !important;
	margin-left: auto !important;
	box-shadow: 0 2px 8px rgba(37,99,235,0.25) !important;
}

.wpat-next-btn:hover {
	background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%) !important;
	box-shadow: 0 4px 12px rgba(37,99,235,0.35) !important;
}

.wpat-prev-btn {
	background: #ffffff !important;
	color: #475569 !important;
	border: 1px solid #cbd5e1 !important;
}

.wpat-prev-btn:hover {
	background: #f1f5f9 !important;
	color: #1e293b !important;
}

/* --- MAIN WOOCOMMERCE FORM GRID --- */
.wpat-checkout-container form.wpat-main-checkout-form {
	display: flex !important;
	gap: 32px !important;
	align-items: flex-start !important;
	flex-wrap: wrap !important;
	width: 100% !important;
	margin: 0 !important;
	float: none !important;
}

/* --- COLUMN 1: LEFT SIDE - CUSTOMER DETAILS --- */
.wpat-checkout-container .wpat-checkout-col-left {
	flex: 1.25 !important;
	min-width: 320px !important;
	display: flex !important;
	flex-direction: column !important;
	gap: 20px !important;
	float: none !important;
	width: auto !important;
	margin: 0 !important;
}

.wpat-checkout-container .wpat-customer-details-card .col-1,
.wpat-checkout-container .wpat-customer-details-card .col-2 {
	float: none !important;
	width: 100% !important;
	margin-bottom: 20px !important;
	background: #ffffff !important;
	border: 1px solid #e2e8f0 !important;
	border-radius: 12px !important;
	padding: 24px !important;
	box-shadow: 0 1px 3px rgba(0,0,0,0.03) !important;
}

.wpat-checkout-container .wpat-customer-details-card h3 {
	font-size: 18px !important;
	font-weight: 700 !important;
	color: #0f172a !important;
	margin: 0 0 18px 0 !important;
	padding-bottom: 10px !important;
	border-bottom: 1px solid #f1f5f9 !important;
}

/* Form Inputs, Selects, Labels Styling */
.wpat-checkout-container .form-row {
	margin-bottom: 16px !important;
	padding: 0 !important;
	float: none !important;
	width: 100% !important;
}

.wpat-checkout-container .form-row label {
	display: block !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	color: #334155 !important;
	margin-bottom: 6px !important;
}

.wpat-checkout-container input[type="text"],
.wpat-checkout-container input[type="email"],
.wpat-checkout-container input[type="tel"],
.wpat-checkout-container input[type="password"],
.wpat-checkout-container textarea {
	width: 100% !important;
	height: 46px !important;
	padding: 10px 14px !important;
	border: 1px solid #cbd5e1 !important;
	border-radius: 8px !important;
	background-color: #ffffff !important;
	font-size: 14px !important;
	color: #0f172a !important;
	transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
	box-shadow: 0 1px 2px rgba(0,0,0,0.04) !important;
	outline: none !important;
}

/* --- UNIFORM STYLING FOR NATIVE SELECT & SELECT2 DROPDOWNS --- */
.wpat-checkout-container select,
.wpat-checkout-container .select2-container--default .select2-selection--single {
	width: 100% !important;
	height: 46px !important;
	line-height: 44px !important;
	padding: 0 36px 0 14px !important;
	border: 1px solid #cbd5e1 !important;
	border-radius: 8px !important;
	background-color: #ffffff !important;
	font-size: 14px !important;
	color: #0f172a !important;
	transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
	box-shadow: 0 1px 2px rgba(0,0,0,0.04) !important;
	outline: none !important;
	appearance: none !important;
	-webkit-appearance: none !important;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E") !important;
	background-repeat: no-repeat !important;
	background-position: right 12px center !important;
	background-size: 16px 16px !important;
}

.wpat-checkout-container .select2-container {
	width: 100% !important;
	display: block !important;
}

.wpat-checkout-container .select2-container--default .select2-selection--single .select2-selection__rendered {
	line-height: 44px !important;
	padding-left: 0 !important;
	padding-right: 20px !important;
	color: #0f172a !important;
	font-size: 14px !important;
}

.wpat-checkout-container .select2-container--default .select2-selection--single .select2-selection__arrow {
	display: none !important;
}

.wpat-checkout-container .select2-container--default.select2-container--open .select2-selection--single,
.wpat-checkout-container .select2-container--default.select2-container--focus .select2-selection--single,
.wpat-checkout-container select:focus {
	border-color: #2563eb !important;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15) !important;
}

.wpat-checkout-container textarea {
	height: auto !important;
	min-height: 80px !important;
}

.wpat-checkout-container input[type="text"]:focus,
.wpat-checkout-container input[type="email"]:focus,
.wpat-checkout-container input[type="tel"]:focus,
.wpat-checkout-container input[type="password"]:focus,
.wpat-checkout-container textarea:focus {
	border-color: #2563eb !important;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15) !important;
}

/* --- COLUMN 2: RIGHT SIDE - STICKY ORDER SUMMARY CARD --- */
.wpat-checkout-container .wpat-checkout-col-right {
	flex: 1 !important;
	min-width: 320px !important;
	position: sticky !important;
	top: 24px !important;
	float: none !important;
	width: auto !important;
	margin: 0 !important;
}

.wpat-checkout-container .wpat-order-review-card {
	background: #ffffff !important;
	border: 1px solid #e2e8f0 !important;
	border-radius: 12px !important;
	padding: 24px !important;
	box-shadow: 0 4px 12px rgba(0,0,0,0.04) !important;
}

.wpat-checkout-container .wpat-summary-card-title {
	font-size: 18px !important;
	font-weight: 700 !important;
	color: #0f172a !important;
	margin: 0 0 16px 0 !important;
	padding-bottom: 10px !important;
	border-bottom: 1px solid #f1f5f9 !important;
}

/* Clean Table Redesign for Order Items & Totals */
.wpat-checkout-container table.shop_table {
	width: 100% !important;
	border-collapse: separate !important;
	border-spacing: 0 !important;
	border: none !important;
	margin-bottom: 20px !important;
	background: transparent !important;
}

.wpat-checkout-container table.shop_table th,
.wpat-checkout-container table.shop_table td {
	border: none !important;
	border-bottom: 1px solid #f1f5f9 !important;
	padding: 12px 0 !important;
	font-size: 14px !important;
	background: transparent !important;
	color: #334155 !important;
}

.wpat-checkout-container table.shop_table thead th {
	font-size: 12px !important;
	text-transform: uppercase !important;
	letter-spacing: 0.05em !important;
	color: #64748b !important;
	font-weight: 600 !important;
	border-bottom: 2px solid #e2e8f0 !important;
}

.wpat-checkout-container table.shop_table tbody td.product-name {
	font-weight: 500 !important;
	color: #0f172a !important;
}

.wpat-checkout-container table.shop_table tbody td.product-total,
.wpat-checkout-container table.shop_table tfoot td {
	text-align: right !important;
	font-weight: 600 !important;
	color: #0f172a !important;
}

.wpat-checkout-container table.shop_table tfoot tr.order-total th,
.wpat-checkout-container table.shop_table tfoot tr.order-total td {
	border-top: 2px solid #e2e8f0 !important;
	font-size: 18px !important;
	font-weight: 700 !important;
	color: #0f172a !important;
	padding-top: 16px !important;
}

/* Product Thumbnails with Quantity Badge */
.wpat-checkout-item-title-wrap {
	display: flex !important;
	align-items: center !important;
	gap: 12px !important;
}

.wpat-checkout-thumb-box {
	position: relative !important;
	width: 48px !important;
	height: 48px !important;
	flex-shrink: 0 !important;
	border-radius: 8px !important;
	overflow: visible !important;
	border: 1px solid #e2e8f0 !important;
	background: #f8fafc !important;
}

.wpat-checkout-thumb-box img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
	border-radius: 8px !important;
	display: block !important;
}

.wpat-checkout-product-qty {
	position: absolute !important;
	top: -6px !important;
	right: -6px !important;
	background: #475569 !important;
	color: #ffffff !important;
	font-size: 11px !important;
	font-weight: 700 !important;
	width: 20px !important;
	height: 20px !important;
	border-radius: 50% !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
}

/* Interactive Checkout Quantity Controls & Remove Button */
.wpat-checkout-qty-controls {
	display: inline-flex !important;
	align-items: center !important;
	gap: 8px !important;
	margin-top: 4px !important;
}

.wpat-checkout-qty-selector {
	display: inline-flex !important;
	align-items: center !important;
	background: #f8fafc !important;
	border: 1px solid #cbd5e1 !important;
	border-radius: 99px !important;
	padding: 2px 6px !important;
	gap: 6px !important;
}

.wpat-checkout-qty-btn {
	background: #ffffff !important;
	border: 1px solid #e2e8f0 !important;
	color: #0f172a !important;
	width: 22px !important;
	height: 22px !important;
	border-radius: 50% !important;
	font-size: 13px !important;
	font-weight: 700 !important;
	line-height: 1 !important;
	padding: 0 !important;
	cursor: pointer !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	box-shadow: 0 1px 2px rgba(0,0,0,0.05) !important;
	transition: all 0.15s ease !important;
}

.wpat-checkout-qty-btn:hover {
	background: #2563eb !important;
	color: #ffffff !important;
	border-color: #2563eb !important;
}

.wpat-checkout-qty-val {
	font-size: 12.5px !important;
	font-weight: 700 !important;
	color: #0f172a !important;
	min-width: 14px !important;
	text-align: center !important;
}

.wpat-checkout-remove-btn {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 22px !important;
	height: 22px !important;
	border-radius: 50% !important;
	background: #f1f5f9 !important;
	color: #64748b !important;
	font-size: 15px !important;
	text-decoration: none !important;
	font-weight: 700 !important;
	transition: all 0.15s ease !important;
	line-height: 1 !important;
}

.wpat-checkout-remove-btn:hover {
	background: #fee2e2 !important;
	color: #ef4444 !important;
}

/* Shipping Methods Options Cards */
.wpat-checkout-container #shipping_method,
.wpat-checkout-container ul.woocommerce-shipping-methods {
	list-style: none !important;
	padding: 0 !important;
	margin: 8px 0 !important;
	display: flex !important;
	flex-direction: column !important;
	gap: 8px !important;
}

.wpat-checkout-container ul.woocommerce-shipping-methods li {
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	background: #f8fafc !important;
	border: 1px solid #e2e8f0 !important;
	border-radius: 8px !important;
	padding: 10px 14px !important;
	margin: 0 !important;
	cursor: pointer !important;
	transition: all 0.2s ease !important;
}

.wpat-checkout-container ul.woocommerce-shipping-methods li:hover {
	border-color: #cbd5e1 !important;
	background: #ffffff !important;
}

.wpat-checkout-container ul.woocommerce-shipping-methods li input[type="radio"] {
	margin-right: 8px !important;
	accent-color: #2563eb !important;
}

/* Payment Gateway Section (#payment) */
.wpat-checkout-container #payment {
	background: transparent !important;
	border-radius: 0 !important;
	margin-top: 20px !important;
	padding: 0 !important;
}

.wpat-checkout-container #payment ul.payment_methods {
	list-style: none !important;
	padding: 0 !important;
	margin: 0 0 20px 0 !important;
	border: 1px solid #e2e8f0 !important;
	border-radius: 10px !important;
	overflow: hidden !important;
	background: #ffffff !important;
}

.wpat-checkout-container #payment ul.payment_methods li.wc_payment_method {
	padding: 14px 16px !important;
	border-bottom: 1px solid #e2e8f0 !important;
	margin: 0 !important;
}

.wpat-checkout-container #payment ul.payment_methods li.wc_payment_method:last-child {
	border-bottom: none !important;
}

.wpat-checkout-container #payment ul.payment_methods li.wc_payment_method label {
	font-weight: 600 !important;
	color: #0f172a !important;
	cursor: pointer !important;
	display: inline-flex !important;
	align-items: center !important;
	gap: 8px !important;
	margin: 0 !important;
}

.wpat-checkout-container #payment ul.payment_methods li.wc_payment_method input[type="radio"] {
	margin-right: 8px !important;
	accent-color: #2563eb !important;
}

.wpat-checkout-container #payment div.payment_box {
	background: #f8fafc !important;
	border: 1px solid #e2e8f0 !important;
	border-radius: 8px !important;
	padding: 12px 16px !important;
	font-size: 13px !important;
	color: #475569 !important;
	margin-top: 10px !important;
}

.wpat-checkout-container #payment div.payment_box::before {
	display: none !important;
}

/* --- LAYOUT 2: EXPRESS (Single Column Centered Layout) --- */
.wpat-checkout-container.wpat-express {
	max-width: 680px !important;
}

.wpat-checkout-container.wpat-express form.wpat-main-checkout-form {
	flex-direction: column !important;
	align-items: stretch !important;
}

.wpat-checkout-container.wpat-express .wpat-checkout-col-left,
.wpat-checkout-container.wpat-express .wpat-checkout-col-right {
	width: 100% !important;
	flex: none !important;
	position: static !important;
}

/* --- LAYOUT 3: ACCORDION --- */
.wpat-checkout-container.wpat-accordion form.wpat-main-checkout-form {
	flex-direction: column !important;
}

.wpat-checkout-container.wpat-accordion .wpat-checkout-col-left,
.wpat-checkout-container.wpat-accordion .wpat-checkout-col-right {
	width: 100% !important;
	flex: none !important;
	position: static !important;
}

/* --- LAYOUT 4: MINIMALIST --- */
.wpat-checkout-container.wpat-minimalist form.wpat-main-checkout-form {
	display: flex !important;
	gap: 40px !important;
}

.wpat-checkout-container.wpat-minimalist .wpat-checkout-col-left {
	flex: 1.3 !important;
}

.wpat-checkout-container.wpat-minimalist .wpat-checkout-col-right .wpat-order-review-card {
	background: #f8fafc !important;
	border: 1px solid #e2e8f0 !important;
	border-radius: 10px !important;
	padding: 24px !important;
}

/* --- MOBILE ORDER SUMMARY --- */
.wpat-mobile-order-summary-toggle {
	display: none;
	justify-content: space-between;
	align-items: center;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	padding: 14px 18px;
	border-radius: 10px;
	margin-bottom: 20px;
	cursor: pointer;
	font-weight: 600;
	font-size: 14px;
	color: #1e293b;
}

.wpat-mobile-summary-info {
	display: flex;
	align-items: center;
	gap: 8px;
}

.wpat-mobile-summary-total {
	font-weight: 700;
	color: #2563eb;
	font-size: 15px;
}

/* --- TRUST BADGES --- */
.wpat-checkout-trust-badges {
	margin-top: 35px;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 15px;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	padding: 20px;
	border-radius: 12px;
	box-shadow: 0 1px 3px rgba(0,0,0,0.02);
	clear: both;
}

.wpat-trust-item {
	display: flex;
	align-items: center;
	gap: 12px;
}

.wpat-trust-icon {
	font-size: 24px;
}

.wpat-trust-text {
	display: flex;
	flex-direction: column;
	line-height: 1.3;
}

.wpat-trust-text strong {
	font-size: 13px;
	color: #1e293b;
}

.wpat-trust-text span {
	font-size: 11.5px;
	color: #64748b;
}

/* --- RESPONSIVE MOBILE --- */
@media (max-width: 991px) {
	.wpat-checkout-container form.wpat-main-checkout-form {
		flex-direction: column !important;
	}
	.wpat-mobile-order-summary-toggle {
		display: flex !important;
	}
	.wpat-checkout-container .wpat-checkout-col-right {
		position: static !important;
		width: 100% !important;
	}
	.wpat-checkout-steps-bar {
		flex-wrap: wrap;
		gap: 8px;
	}
}

/* --- DARK MODE OVERRIDES --- */
.wpat-dark-mode .wpat-checkout-builder-wrapper {
	background-color: #0f172a !important;
}

.wpat-dark-mode .wpat-checkout-steps-bar,
.wpat-dark-mode .wpat-card-box,
.wpat-dark-mode .wpat-checkout-container .wpat-customer-details-card .col-1,
.wpat-dark-mode .wpat-checkout-container .wpat-customer-details-card .col-2,
.wpat-dark-mode .wpat-checkout-container .wpat-order-review-card,
.wpat-dark-mode .wpat-checkout-trust-badges,
.wpat-dark-mode .wpat-mobile-order-summary-toggle {
	background-color: #1e293b !important;
	border-color: #334155 !important;
	color: #f8fafc !important;
}

.wpat-dark-mode .wpat-coupon-label,
.wpat-dark-mode .wpat-trust-text strong,
.wpat-dark-mode .wpat-card-title,
.wpat-dark-mode .wpat-checkout-container .wpat-customer-details-card h3,
.wpat-dark-mode .wpat-checkout-container .wpat-summary-card-title {
	color: #f8fafc !important;
}

.wpat-dark-mode .wpat-coupon-field {
	background-color: #0f172a !important;
	border-color: #334155 !important;
	color: #f8fafc !important;
}

.wpat-dark-mode .wpat-trust-text span,
.wpat-dark-mode .wpat-step-item {
	color: #94a3b8 !important;
}

.wpat-dark-mode .wpat-step-num {
	background: #334155 !important;
	color: #cbd5e1 !important;
}

/* --- EXACT FIELD GROUPING & 2-COLUMN GRID PAIRINGS --- */
.wpat-checkout-container .woocommerce-billing-fields__field-wrapper,
.wpat-checkout-container .woocommerce-shipping-fields__field-wrapper,
.wpat-checkout-container .woocommerce-address-fields__field-wrapper,
.wpat-checkout-container .col-1,
.wpat-checkout-container .col-2 {
	display: flex !important;
	flex-wrap: wrap !important;
	gap: 12px 2% !important;
	flex-direction: row !important;
}

.wpat-checkout-container p.form-row {
	margin-bottom: 0 !important;
	float: none !important;
	clear: none !important;
	box-sizing: border-box !important;
}

/* Línea 1: Email (100%) */
.wpat-checkout-container #billing_email_field {
	order: 1 !important;
	width: 100% !important;
	flex: 0 0 100% !important;
}

/* Línea 2: Nombre (49%) & Apellidos (49%) */
.wpat-checkout-container #billing_first_name_field,
.wpat-checkout-container #shipping_first_name_field {
	order: 10 !important;
	width: 49% !important;
	flex: 0 0 49% !important;
}

.wpat-checkout-container #billing_last_name_field,
.wpat-checkout-container #shipping_last_name_field {
	order: 11 !important;
	width: 49% !important;
	flex: 0 0 49% !important;
}

/* Línea 3: País (49%) & Provincia (49%) */
.wpat-checkout-container #billing_country_field,
.wpat-checkout-container #shipping_country_field {
	order: 20 !important;
	width: 49% !important;
	flex: 0 0 49% !important;
}

.wpat-checkout-container #billing_state_field,
.wpat-checkout-container #shipping_state_field {
	order: 21 !important;
	width: 49% !important;
	flex: 0 0 49% !important;
}

/* Línea 4: Población (49%) & Código Postal (49%) */
.wpat-checkout-container #billing_city_field,
.wpat-checkout-container #shipping_city_field {
	order: 30 !important;
	width: 49% !important;
	flex: 0 0 49% !important;
}

.wpat-checkout-container #billing_postcode_field,
.wpat-checkout-container #shipping_postcode_field {
	order: 31 !important;
	width: 49% !important;
	flex: 0 0 49% !important;
}

/* Línea 5: Dirección (100%) */
.wpat-checkout-container #billing_address_1_field,
.wpat-checkout-container #shipping_address_1_field,
.wpat-checkout-container #billing_address_2_field,
.wpat-checkout-container #shipping_address_2_field {
	order: 40 !important;
	width: 100% !important;
	flex: 0 0 100% !important;
}

/* Línea 6: Teléfono (100%) */
.wpat-checkout-container #billing_phone_field {
	order: 50 !important;
	width: 100% !important;
	flex: 0 0 100% !important;
}

/* Línea 7+: Campos personalizados adicionales del editor (order 60+) */
.wpat-checkout-container p.form-row:not([id*="email"]):not([id*="first_name"]):not([id*="last_name"]):not([id*="country"]):not([id*="state"]):not([id*="city"]):not([id*="postcode"]):not([id*="address"]):not([id*="phone"]) {
	order: 60 !important;
}

/* Campos de 50% de ancho (form-row-first, form-row-last, wpat-field-half) */
.wpat-checkout-container p.form-row.form-row-first,
.wpat-checkout-container p.form-row.form-row-last,
.wpat-checkout-container p.form-row.wpat-field-half {
	width: 49% !important;
	flex: 0 0 49% !important;
}

/* Campos de 100% de ancho (form-row-wide, wpat-field-full) */
.wpat-checkout-container p.form-row.form-row-wide,
.wpat-checkout-container p.form-row.wpat-field-full {
	width: 100% !important;
	flex: 0 0 100% !important;
}

/* Notas del Pedido (Order Comments) e información adicional debajo de la sección de envío */
.wpat-checkout-container #order_comments_field,
.wpat-checkout-container .woocommerce-additional-fields,
.wpat-checkout-container .woocommerce-additional-fields__field-wrapper {
	order: 99 !important;
	width: 100% !important;
	flex: 0 0 100% !important;
	clear: both !important;
	margin-top: 15px !important;
}

@media (max-width: 767px) {
	.wpat-checkout-container p.form-row {
		width: 100% !important;
		flex: 0 0 100% !important;
	}
}

/* --- ESTILOS DE MÉTODOS DE ENVÍO --- */
.wpat-shipping-table {
	width: 100% !important;
	border-collapse: collapse !important;
	margin: 0 !important;
}

.wpat-shipping-table th {
	display: none !important;
}

.wpat-shipping-table td {
	padding: 0 !important;
	border: none !important;
	width: 100% !important;
	display: block !important;
}

.wpat-shipping-table ul#shipping_method {
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

.wpat-shipping-table ul#shipping_method li {
	background: #f8fafc;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	padding: 12px 16px;
	margin-bottom: 8px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 14px;
	color: #0f172a;
	cursor: pointer;
}

.wpat-dark-mode .wpat-shipping-table ul#shipping_method li {
	background: #0f172a !important;
	border-color: #334155 !important;
	color: #f8fafc !important;
}

.wpat-dark-mode .wpat-step-item.active .wpat-step-num {
	background: #2563eb !important;
	color: #ffffff !important;
}

/* --- LAYOUT 5: WPAT SHOP-STYLE CHECKOUT --- */
.wpat-checkout-container.wpat-shop-style .wpat-card-box {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 24px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.wpat-checkout-container.wpat-shop-style .wpat-card-title {
	font-size: 18px;
	font-weight: 700;
	margin-bottom: 16px;
	color: #0f172a;
}

.wpat-checkout-container.wpat-shop-style .wpat-shop-sidebar-card {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 24px;
	position: sticky;
	top: 20px;
}

.wpat-checkout-container.wpat-shop-style .wpat-custom-coupon-box {
	margin-top: 20px;
	padding-top: 16px;
	border-top: 1px dashed #cbd5e1;
}

.wpat-dark-mode .wpat-checkout-container.wpat-shop-style .wpat-card-box,
.wpat-dark-mode .wpat-checkout-container.wpat-shop-style .wpat-shop-sidebar-card {
	background-color: #1e293b !important;
	border-color: #334155 !important;
}

.wpat-dark-mode .wpat-checkout-container.wpat-shop-style .wpat-custom-coupon-box {
	border-top-color: #334155 !important;
}

/* Ocultar desglose duplicado de métodos de envío en la barra lateral de WPAT Shop-Style */
.wpat-checkout-container.wpat-shop-style .wpat-shop-sidebar-card tr.shipping,
.wpat-checkout-container.wpat-shop-style .wpat-shop-sidebar-card tr.woocommerce-shipping-totals {
	display: none !important;
}

/* Estilos para la tabla de métodos de envío en WPAT Shop-Style Checkout */
.wpat-shipping-methods-container table.wpat-shop-style-shipping-table {
	width: 100% !important;
	border-collapse: collapse !important;
	border: none !important;
}

.wpat-shipping-methods-container table.wpat-shop-style-shipping-table td {
	padding: 6px 0 !important;
	border: none !important;
	background: transparent !important;
}

.wpat-shipping-methods-container ul#shipping_method {
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
	display: flex !important;
	flex-direction: column !important;
	gap: 10px !important;
}

.wpat-shipping-methods-container ul#shipping_method li {
	list-style: none !important;
	margin: 0 !important;
	padding: 12px 16px !important;
	background: #f8fafc !important;
	border: 1px solid #e2e8f0 !important;
	border-radius: 10px !important;
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	gap: 12px !important;
	cursor: pointer !important;
	transition: all 0.2s ease !important;
}

.wpat-shipping-methods-container ul#shipping_method li:hover {
	border-color: #cbd5e1 !important;
	background: #ffffff !important;
}

.wpat-shipping-methods-container ul#shipping_method li input[type="radio"] {
	margin: 0 !important;
	accent-color: #2563eb !important;
	width: 18px !important;
	height: 18px !important;
	cursor: pointer !important;
}

.wpat-shipping-methods-container ul#shipping_method li label {
	margin: 0 !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	color: #0f172a !important;
	flex: 1 !important;
	cursor: pointer !important;
}

/* ==========================================================================
   ESTILOS DE DISEÑADOR DE CARRITO (HIGH-CONVERSION CART REDESIGN)
   ========================================================================== */

/* --- AVISOS Y MENSAJES DE CARRITO DE WOOCOMMERCE (REDISEÑO MODERNO) --- */
/* --- AVISOS Y MENSAJES DE CARRITO Y TIENDA WOOCOMMERCE (REDISEÑO HIGH-CONVERSION) --- */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error,
.woocommerce-notice,
.woocommerce-notices-wrapper .woocommerce-message,
.woocommerce-notices-wrapper .woocommerce-info,
.woocommerce-notices-wrapper .woocommerce-error,
.wpat-cart-container .woocommerce-message,
.wpat-cart-container .woocommerce-info,
.wpat-cart-container .woocommerce-error {
	border-top: none !important;
	border-right: 1px solid #dcfce7 !important;
	border-bottom: 1px solid #dcfce7 !important;
	border-left: 5px solid #10b981 !important;
	background: #f0fdf4 !important;
	color: #065f46 !important;
	border-radius: 12px !important;
	padding: 14px 20px !important;
	font-size: 14.5px !important;
	font-weight: 500 !important;
	box-shadow: 0 4px 16px rgba(16, 185, 129, 0.1) !important;
	margin-top: 15px !important;
	margin-bottom: 25px !important;
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	flex-wrap: wrap !important;
	gap: 14px !important;
	list-style: none !important;
	position: relative !important;
	clear: both !important;
	outline: none !important;
}

/* Ocultar iconos flotantes absolutos antiguos del tema que se solapaban con el texto */
.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before,
.woocommerce-message:before,
.woocommerce-info:before,
.woocommerce-error:before,
.woocommerce-notices-wrapper .woocommerce-message::before,
.woocommerce-notices-wrapper .woocommerce-info::before,
.woocommerce-notices-wrapper .woocommerce-error::before,
.woocommerce-notices-wrapper .woocommerce-message:before,
.woocommerce-notices-wrapper .woocommerce-info:before,
.woocommerce-notices-wrapper .woocommerce-error:before,
.wpat-cart-container .woocommerce-message::before,
.wpat-cart-container .woocommerce-info::before,
.wpat-cart-container .woocommerce-error::before {
	display: none !important;
	content: "" !important;
}

.woocommerce-info,
.woocommerce-notices-wrapper .woocommerce-info,
.wpat-cart-container .woocommerce-info {
	border-right-color: #dbeafe !important;
	border-bottom-color: #dbeafe !important;
	border-left-color: #2563eb !important;
	background: #eff6ff !important;
	color: #1e40af !important;
	box-shadow: 0 4px 16px rgba(37, 99, 235, 0.1) !important;
}

.woocommerce-error,
.woocommerce-notices-wrapper .woocommerce-error,
.wpat-cart-container .woocommerce-error {
	border-right-color: #fee2e2 !important;
	border-bottom-color: #fee2e2 !important;
	border-left-color: #ef4444 !important;
	background: #fef2f2 !important;
	color: #991b1b !important;
	box-shadow: 0 4px 16px rgba(239, 68, 68, 0.1) !important;
}

.woocommerce-message a.button,
.woocommerce-message a.wc-forward,
.woocommerce-message a.restore-item,
.woocommerce-message .button,
.woocommerce-notices-wrapper .woocommerce-message a.button,
.woocommerce-notices-wrapper .woocommerce-message a.wc-forward,
.woocommerce-notices-wrapper .woocommerce-message a.restore-item,
.wpat-cart-container .woocommerce-message a.button,
.wpat-cart-container .woocommerce-message a.restore-item,
.wpat-cart-container .woocommerce-message .button {
	order: 2 !important;
	margin-left: auto !important;
	background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
	color: #ffffff !important;
	border: none !important;
	padding: 8px 20px !important;
	border-radius: 8px !important;
	font-weight: 700 !important;
	font-size: 13.5px !important;
	text-decoration: none !important;
	box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25) !important;
	transition: all 0.2s ease !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	height: auto !important;
	line-height: 1.4 !important;
	text-transform: none !important;
}

.woocommerce-message a.button:hover,
.woocommerce-message a.wc-forward:hover,
.woocommerce-message a.restore-item:hover,
.woocommerce-notices-wrapper .woocommerce-message a.button:hover,
.woocommerce-notices-wrapper .woocommerce-message a.wc-forward:hover,
.wpat-cart-container .woocommerce-message a.button:hover,
.wpat-cart-container .woocommerce-message a.restore-item:hover {
	background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%) !important;
	color: #ffffff !important;
	box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35) !important;
	transform: translateY(-1px) !important;
}

/* --- AVISOS DE CUPÓN EN CHECKOUT Y FORMULARIOS --- */
.wpat-checkout-coupon-response-notice .woocommerce-error,
.wpat-checkout-coupon-response-notice ul.woocommerce-error,
.wpat-checkout-container .woocommerce-error,
.wpat-checkout-container ul.woocommerce-error {
	border-top: none !important;
	border-left: 4px solid #ef4444 !important;
	background: #fef2f2 !important;
	color: #991b1b !important;
	border-radius: 10px !important;
	padding: 12px 16px 12px 46px !important;
	font-size: 13.5px !important;
	font-weight: 600 !important;
	margin-top: 10px !important;
	margin-bottom: 10px !important;
	list-style: none !important;
	position: relative !important;
	box-shadow: 0 2px 6px rgba(239, 68, 68, 0.08) !important;
}

.wpat-checkout-coupon-response-notice .woocommerce-error::before,
.wpat-checkout-container .woocommerce-error::before,
.wpat-checkout-coupon-response-notice .woocommerce-error:before,
.wpat-checkout-container .woocommerce-error:before {
	position: absolute !important;
	left: 14px !important;
	top: 50% !important;
	transform: translateY(-50%) !important;
	font-size: 16px !important;
	margin: 0 !important;
	line-height: 1 !important;
}

.wpat-checkout-coupon-response-notice .woocommerce-message,
.wpat-checkout-coupon-response-notice div.woocommerce-message,
.wpat-checkout-container .woocommerce-message {
	border-top: none !important;
	border-left: 4px solid #10b981 !important;
	background: #f0fdf4 !important;
	color: #065f46 !important;
	border-radius: 10px !important;
	padding: 10px 14px !important;
	font-size: 13.5px !important;
	font-weight: 600 !important;
	margin-top: 10px !important;
	margin-bottom: 10px !important;
	list-style: none !important;
	box-shadow: 0 2px 6px rgba(16, 185, 129, 0.08) !important;
}

.wpat-cart-layout-wrapper {
	display: grid !important;
	grid-template-columns: 1fr 380px !important;
	gap: 32px !important;
	align-items: start !important;
}

@media (max-width: 991px) {
	.wpat-cart-layout-wrapper {
		grid-template-columns: 1fr !important;
	}
}

/* --- BARRA DE ENVÍO GRATIS ELEGANTE --- */
.wpat-free-shipping-progress-box {
	background: #ffffff !important;
	border: 1px solid #e2e8f0 !important;
	border-radius: 14px !important;
	padding: 18px 24px !important;
	margin-bottom: 25px !important;
	box-shadow: 0 4px 15px rgba(0,0,0,0.03) !important;
}

.wpat-free-shipping-text {
	margin: 0 0 10px 0 !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	color: #1e293b !important;
}

.wpat-free-shipping-text span {
	color: #2563eb !important;
	font-weight: 700 !important;
}

.wpat-free-shipping-text.wpat-shipping-unlocked {
	color: #059669 !important;
}

.wpat-progress-bar-bg {
	background: #f1f5f9 !important;
	border-radius: 99px !important;
	height: 8px !important;
	overflow: hidden !important;
}

.wpat-progress-bar-fill {
	background: linear-gradient(90deg, #2563eb, #3b82f6) !important;
	height: 100% !important;
	border-radius: 99px !important;
	transition: width 0.4s ease-in-out !important;
}

/* --- TABLA DE PRODUCTOS EN CARRITO CLÁSICO --- */
.wpat-cart-container table.wpat-cart-table,
.wpat-cart-container table.shop_table.cart {
	width: 100% !important;
	border-collapse: separate !important;
	border-spacing: 0 !important;
	border: 1px solid #e2e8f0 !important;
	border-radius: 16px !important;
	overflow: hidden !important;
	background: #ffffff !important;
	box-shadow: 0 4px 15px rgba(0,0,0,0.02) !important;
	margin: 0 0 20px 0 !important;
}

.wpat-cart-container table.wpat-cart-table th,
.wpat-cart-container table.shop_table.cart th {
	background: #f8fafc !important;
	color: #64748b !important;
	font-weight: 700 !important;
	font-size: 12px !important;
	text-transform: uppercase !important;
	letter-spacing: 0.05em !important;
	padding: 16px 20px !important;
	border: none !important;
	border-bottom: 1px solid #e2e8f0 !important;
	text-align: left !important;
}

.wpat-cart-container table.wpat-cart-table td,
.wpat-cart-container table.shop_table.cart td {
	padding: 20px !important;
	border: none !important;
	border-bottom: 1px solid #f1f5f9 !important;
	vertical-align: middle !important;
	background: #ffffff !important;
	color: #1e293b !important;
	font-size: 14.5px !important;
}

.wpat-cart-container table.wpat-cart-table tr:last-child td,
.wpat-cart-container table.shop_table.cart tr:last-child td {
	border-bottom: none !important;
}

/* Miniatura del Producto */
.wpat-cart-container td.product-thumbnail img {
	width: 70px !important;
	height: 70px !important;
	object-fit: cover !important;
	border-radius: 10px !important;
	border: 1px solid #e2e8f0 !important;
	display: block !important;
}

/* Nombre del Producto */
.wpat-cart-container td.product-name a {
	font-size: 15px !important;
	font-weight: 700 !important;
	color: #0f172a !important;
	text-decoration: none !important;
	transition: color 0.2s !important;
}

.wpat-cart-container td.product-name a:hover {
	color: #2563eb !important;
}

.wpat-cart-container td.product-name .variation,
.wpat-cart-container td.product-name dl.variation {
	margin-top: 6px !important;
	font-size: 12.5px !important;
	color: #64748b !important;
}

/* Botón Eliminar Producto (x) */
.wpat-cart-container td.product-remove a.remove,
.wpat-cart-container a.remove {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 28px !important;
	height: 28px !important;
	border-radius: 50% !important;
	background: #f1f5f9 !important;
	color: #64748b !important;
	font-size: 16px !important;
	text-decoration: none !important;
	font-weight: 700 !important;
	transition: all 0.2s ease !important;
	border: none !important;
	line-height: 1 !important;
}

.wpat-cart-container td.product-remove a.remove:hover,
.wpat-cart-container a.remove:hover {
	background: #fee2e2 !important;
	color: #ef4444 !important;
}

/* Botones de Cantidad (+ / -) */
.wpat-cart-table-qty-box,
.wpat-cart-modern-qty-box {
	display: inline-flex !important;
	align-items: center !important;
	border: 1px solid #cbd5e1 !important;
	border-radius: 99px !important;
	background: #f8fafc !important;
	padding: 2px !important;
}

.wpat-qty-btn {
	background: #ffffff !important;
	border: 1px solid #e2e8f0 !important;
	width: 28px !important;
	height: 28px !important;
	border-radius: 50% !important;
	font-weight: bold !important;
	font-size: 15px !important;
	color: #0f172a !important;
	cursor: pointer !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	box-shadow: 0 1px 2px rgba(0,0,0,0.05) !important;
	transition: all 0.2s ease !important;
	line-height: 1 !important;
	padding: 0 !important;
}

.wpat-qty-btn:hover {
	background: #2563eb !important;
	color: #ffffff !important;
	border-color: #2563eb !important;
}

.wpat-cart-table-qty-box input.qty,
.wpat-cart-modern-qty-box input.qty {
	width: 36px !important;
	text-align: center !important;
	border: none !important;
	background: transparent !important;
	font-weight: 700 !important;
	font-size: 14px !important;
	color: #0f172a !important;
	padding: 0 !important;
	margin: 0 !important;
	box-shadow: none !important;
	outline: none !important;
}

/* --- BARRA DE ACCIONES (CUPÓN Y ACTUALIZAR) --- */
.wpat-cart-actions-bar {
	display: flex !important;
	justify-content: space-between !important;
	align-items: center !important;
	margin-top: 20px !important;
	gap: 15px !important;
	flex-wrap: wrap !important;
}

.wpat-cart-coupon-box {
	display: flex !important;
	gap: 10px !important;
}

.wpat-cart-coupon-box input.input-text {
	height: 42px !important;
	padding: 0 16px !important;
	border: 1px solid #cbd5e1 !important;
	border-radius: 10px !important;
	font-size: 14px !important;
	background: #ffffff !important;
	color: #0f172a !important;
	outline: none !important;
	box-shadow: none !important;
	width: 220px !important;
}

.wpat-cart-coupon-btn,
.wpat-cart-container button.wpat-cart-coupon-btn {
	height: 42px !important;
	padding: 0 20px !important;
	border-radius: 10px !important;
	background: #0f172a !important;
	color: #ffffff !important;
	font-weight: 600 !important;
	font-size: 13.5px !important;
	border: none !important;
	cursor: pointer !important;
	transition: background 0.2s !important;
}

.wpat-cart-coupon-btn:hover {
	background: #1e293b !important;
}

.wpat-cart-update-btn,
.wpat-cart-container button.wpat-cart-update-btn {
	height: 42px !important;
	padding: 0 22px !important;
	border-radius: 10px !important;
	background: #ffffff !important;
	color: #334155 !important;
	font-weight: 600 !important;
	font-size: 13.5px !important;
	border: 1px solid #cbd5e1 !important;
	cursor: pointer !important;
	transition: all 0.2s !important;
}

.wpat-cart-update-btn:hover {
	background: #f1f5f9 !important;
	border-color: #94a3b8 !important;
	color: #0f172a !important;
}

.wpat-empty-cart-btn,
.wpat-cart-container button.wpat-empty-cart-btn {
	height: 42px !important;
	padding: 0 18px !important;
	border-radius: 10px !important;
	background: #fef2f2 !important;
	color: #ef4444 !important;
	font-weight: 600 !important;
	font-size: 13.5px !important;
	border: 1px solid #fca5a5 !important;
	cursor: pointer !important;
	transition: all 0.2s !important;
}

.wpat-empty-cart-btn:hover,
.wpat-cart-container button.wpat-empty-cart-btn:hover {
	background: #fee2e2 !important;
	border-color: #ef4444 !important;
	color: #b91c1c !important;
}

/* --- TARJETA DE TOTALES DE RESUMEN (COLUMNA DERECHA) --- */
.wpat-cart-totals-card {
	background: #ffffff !important;
	border: 1px solid #e2e8f0 !important;
	border-radius: 16px !important;
	padding: 26px !important;
	box-shadow: 0 10px 25px -5px rgba(0,0,0,0.05), 0 8px 10px -6px rgba(0,0,0,0.01) !important;
	position: sticky !important;
	top: 20px !important;
}

/* Ocultar cualquier h2 redundante impreso por WooCommerce */
.wpat-cart-totals-card h2,
.wpat-cart-totals-card .cart_totals h2 {
	display: none !important;
}

.wpat-cart-summary-title {
	margin: 0 0 20px 0 !important;
	font-size: 18px !important;
	font-weight: 800 !important;
	color: #0f172a !important;
	border-bottom: 2px solid #f1f5f9 !important;
	padding-bottom: 12px !important;
}

/* Limpieza total de la tabla de totales de WooCommerce */
.wpat-cart-totals-card table.shop_table {
	width: 100% !important;
	border-collapse: collapse !important;
	border: none !important;
	margin: 0 0 20px 0 !important;
	background: transparent !important;
}

.wpat-cart-totals-card table.shop_table tr th,
.wpat-cart-totals-card table.shop_table tr td {
	padding: 14px 0 !important;
	border: none !important;
	border-bottom: 1px solid #f1f5f9 !important;
	background: transparent !important;
	font-size: 14.5px !important;
	color: #475569 !important;
}

.wpat-cart-totals-card table.shop_table tr th {
	font-weight: 500 !important;
	text-align: left !important;
}

.wpat-cart-totals-card table.shop_table tr td {
	font-weight: 700 !important;
	text-align: right !important;
	color: #0f172a !important;
}

.wpat-cart-totals-card table.shop_table tr.order-total th,
.wpat-cart-totals-card table.shop_table tr.order-total td {
	border-top: 2px solid #e2e8f0 !important;
	border-bottom: none !important;
	font-size: 18px !important;
	font-weight: 800 !important;
	color: #0f172a !important;
	padding-top: 18px !important;
}

.wpat-cart-totals-card table.shop_table tr.order-total td strong {
	color: #2563eb !important;
	font-weight: 800 !important;
}

/* --- ESTILOS LIMPIOS PARA GASTOS DE ENVÍO EN EL RESUMEN DEL CARRITO --- */
.wpat-cart-totals-card table.shop_table tr.shipping th {
	vertical-align: top !important;
	padding-top: 14px !important;
	font-weight: 600 !important;
	color: #475569 !important;
}

.wpat-cart-totals-card table.shop_table tr.shipping td {
	text-align: right !important;
	vertical-align: top !important;
	padding-top: 10px !important;
	padding-bottom: 14px !important;
}

.wpat-cart-totals-card ul#shipping_method,
.wpat-cart-totals-card .woocommerce-shipping-methods {
	list-style: none !important;
	margin: 0 0 10px 0 !important;
	padding: 0 !important;
	display: flex !important;
	flex-direction: column !important;
	gap: 8px !important;
	align-items: flex-end !important;
}

.wpat-cart-totals-card ul#shipping_method li,
.wpat-cart-totals-card .woocommerce-shipping-methods li {
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
	display: flex !important;
	align-items: center !important;
	justify-content: flex-end !important;
	gap: 8px !important;
	font-size: 13.5px !important;
	color: #0f172a !important;
	line-height: 1.3 !important;
}

.wpat-cart-totals-card ul#shipping_method li::before,
.wpat-cart-totals-card .woocommerce-shipping-methods li::before {
	display: none !important;
	content: "" !important;
}

.wpat-cart-totals-card input[type="radio"].shipping_method {
	margin: 0 !important;
	width: 16px !important;
	height: 16px !important;
	accent-color: #2563eb !important;
	cursor: pointer !important;
	flex-shrink: 0 !important;
}

.wpat-cart-totals-card ul#shipping_method label,
.wpat-cart-totals-card .woocommerce-shipping-methods label {
	margin: 0 !important;
	font-weight: 500 !important;
	cursor: pointer !important;
	color: #1e293b !important;
	display: inline !important;
}

.wpat-cart-totals-card .woocommerce-shipping-destination {
	font-size: 12.5px !important;
	color: #64748b !important;
	margin: 6px 0 4px 0 !important;
	text-align: right !important;
}

.wpat-cart-totals-card .shipping-calculator-button {
	font-size: 12.5px !important;
	font-weight: 600 !important;
	color: #2563eb !important;
	text-decoration: none !important;
	display: inline-block !important;
	margin-top: 2px !important;
}

.wpat-cart-totals-card .shipping-calculator-button:hover {
	text-decoration: underline !important;
}

body.wpat-hide-shipping-calc .shipping-calculator-button,
body.wpat-hide-shipping-calc .shipping-calculator-form,
body.wpat-hide-shipping-calc .woocommerce-shipping-calculator,
body.wpat-hide-shipping-calc .woocommerce-shipping-destination a,
body.wpat-hide-shipping-calc form.woocommerce-shipping-calculator {
	display: none !important;
}

body.wpat-show-shipping-calc .shipping-calculator-button,
body.wpat-show-shipping-calc .woocommerce-shipping-calculator {
	display: inline-block !important;
}

/* ==========================================================================
   PLANTILLA 2: TARJETAS MODERNAS (WPAT MODERN CARDS CART)
   ========================================================================== */
.wpat-cart-container .wpat-cart-modern-cards-list {
	display: flex !important;
	flex-direction: column !important;
	gap: 16px !important;
	margin-bottom: 20px !important;
}

.wpat-cart-container .wpat-cart-modern-card {
	display: flex !important;
	align-items: center !important;
	gap: 20px !important;
	background: #ffffff !important;
	border: 1px solid #e2e8f0 !important;
	border-radius: 14px !important;
	padding: 20px !important;
	box-shadow: 0 2px 10px rgba(0,0,0,0.03) !important;
	transition: all 0.2s ease !important;
}

.wpat-cart-container .wpat-cart-modern-card:hover {
	border-color: #cbd5e1 !important;
	box-shadow: 0 4px 16px rgba(0,0,0,0.06) !important;
}

.wpat-cart-container .wpat-cart-modern-thumb {
	width: 90px !important;
	height: 90px !important;
	flex-shrink: 0 !important;
	border-radius: 10px !important;
	overflow: hidden !important;
	background: #f8fafc !important;
	border: 1px solid #e2e8f0 !important;
}

.wpat-cart-container .wpat-cart-modern-thumb img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
	display: block !important;
}

.wpat-cart-container .wpat-cart-modern-details {
	flex: 1 !important;
	display: flex !important;
	flex-direction: column !important;
	gap: 8px !important;
}

.wpat-cart-container .wpat-cart-modern-title-row {
	display: flex !important;
	justify-content: space-between !important;
	align-items: flex-start !important;
	gap: 12px !important;
}

.wpat-cart-container .wpat-cart-modern-title {
	margin: 0 !important;
	font-size: 16px !important;
	font-weight: 700 !important;
	color: #0f172a !important;
	line-height: 1.3 !important;
}

.wpat-cart-container .wpat-cart-modern-title a {
	color: #0f172a !important;
	text-decoration: none !important;
	transition: color 0.15s ease !important;
}

.wpat-cart-container .wpat-cart-modern-title a:hover {
	color: #2563eb !important;
}

.wpat-cart-container .wpat-modern-remove-btn,
.wpat-cart-container .wpat-cart-modern-remove a.remove {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 28px !important;
	height: 28px !important;
	border-radius: 50% !important;
	background: #f1f5f9 !important;
	color: #64748b !important;
	font-size: 18px !important;
	text-decoration: none !important;
	transition: all 0.2s ease !important;
	line-height: 1 !important;
}

.wpat-cart-container .wpat-modern-remove-btn:hover,
.wpat-cart-container .wpat-cart-modern-remove a.remove:hover {
	background: #fee2e2 !important;
	color: #ef4444 !important;
}

.wpat-cart-container .wpat-cart-modern-price-qty-row {
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	flex-wrap: wrap !important;
	gap: 15px !important;
	margin-top: 6px !important;
	padding-top: 10px !important;
	border-top: 1px dashed #e2e8f0 !important;
}

.wpat-cart-container .wpat-cart-modern-price {
	font-size: 14px !important;
	color: #64748b !important;
	font-weight: 500 !important;
}

.wpat-cart-container .wpat-cart-modern-subtotal {
	font-size: 16px !important;
	font-weight: 800 !important;
	color: #0f172a !important;
}

/* Botón Finalizar Compra / Checkout */
.wpat-cart-totals-card .checkout-button,
.wpat-cart-totals-card a.checkout-button,
.wpat-cart-totals-card .wc-proceed-to-checkout a,
.wpat-cart-totals-card .wc-proceed-to-checkout a.checkout-button {
	display: block !important;
	width: 100% !important;
	height: 48px !important;
	line-height: 48px !important;
	border-radius: 12px !important;
	text-align: center !important;
	font-weight: 700 !important;
	font-size: 16px !important;
	text-decoration: none !important;
	border: none !important;
	margin-top: 10px !important;
	box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25) !important;
	transition: all 0.2s ease !important;
	padding: 0 !important;
	box-sizing: border-box !important;
}

.wpat-cart-totals-card .checkout-button:hover,
.wpat-cart-totals-card a.checkout-button:hover,
.wpat-cart-totals-card .wc-proceed-to-checkout a:hover,
.wpat-cart-totals-card .wc-proceed-to-checkout a.checkout-button:hover {
	box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35) !important;
}

.wpat-cart-totals-card h3 {
	margin: 0 0 16px 0;
	font-size: 18px;
	font-weight: 700;
	color: #0f172a;
	border-bottom: 2px solid #e2e8f0;
	padding-bottom: 10px;
}

/* ==========================================================================
   PLANTILLA 3: CARRITO DESLIZABLE LATERAL (SLIDE-OUT DRAWER CART)
   ========================================================================== */

.wpat-drawer-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background: rgba(15, 23, 42, 0.5);
	backdrop-filter: blur(2px);
	z-index: 999998;
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s ease;
}

.wpat-drawer-overlay.active {
	opacity: 1;
	visibility: visible;
}

.wpat-cart-drawer-panel {
	position: fixed;
	top: 0;
	right: 0;
	width: 420px;
	max-width: 90vw;
	height: 100vh;
	background: #ffffff;
	box-shadow: -10px 0 25px rgba(0,0,0,0.15);
	z-index: 999999;
	transform: translateX(100%);
	transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
	display: flex;
	flex-direction: column;
}

.wpat-cart-drawer-panel.open {
	transform: translateX(0);
}

.wpat-drawer-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 18px 24px;
	border-bottom: 1px solid #e2e8f0;
	background: #f8fafc;
}

.wpat-drawer-title {
	display: flex;
	align-items: center;
	gap: 10px;
}

.wpat-drawer-title h3 {
	margin: 0;
	font-size: 17px;
	font-weight: 700;
	color: #0f172a;
}

.wpat-drawer-cart-count {
	background: #2563eb;
	color: #ffffff;
	font-size: 12px;
	font-weight: 700;
	padding: 2px 8px;
	border-radius: 99px;
}

.wpat-drawer-close-btn {
	background: transparent;
	border: none;
	font-size: 26px;
	color: #64748b;
	cursor: pointer;
	line-height: 1;
}

.wpat-drawer-close-btn:hover {
	color: #0f172a;
}

.wpat-drawer-shipping-bar {
	padding: 15px 24px 0 24px;
}

.wpat-drawer-cart-body {
	flex: 1;
	overflow-y: auto;
	padding: 20px 24px;
}

.wpat-drawer-items-list {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.wpat-drawer-item {
	display: flex;
	gap: 14px;
	border-bottom: 1px solid #f1f5f9;
	padding-bottom: 14px;
}

.wpat-drawer-item-thumb img {
	width: 65px;
	height: 65px;
	object-fit: cover;
	border-radius: 8px;
	border: 1px solid #e2e8f0;
}

.wpat-drawer-item-info {
	flex: 1;
}

.wpat-drawer-item-head {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
}

.wpat-drawer-item-title {
	margin: 0;
	font-size: 14px;
	font-weight: 600;
	color: #0f172a;
}

.wpat-drawer-item-title a {
	color: inherit;
	text-decoration: none;
}

.wpat-drawer-remove-btn {
	color: #94a3b8 !important;
	font-size: 18px !important;
	text-decoration: none !important;
}

.wpat-drawer-remove-btn:hover {
	color: #ef4444 !important;
}

.wpat-drawer-item-price-qty {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 8px;
}

.wpat-drawer-item-price {
	font-size: 13.5px;
	font-weight: 700;
	color: #0f172a;
}

.wpat-drawer-qty-label {
	font-size: 12px;
	color: #64748b;
	background: #f1f5f9;
	padding: 2px 8px;
	border-radius: 6px;
}

.wpat-drawer-footer {
	padding: 20px 24px;
	border-top: 1px solid #e2e8f0;
	background: #f8fafc;
}

.wpat-drawer-subtotal-row {
	display: flex;
	justify-content: space-between;
	font-size: 16px;
	color: #0f172a;
	margin-bottom: 16px;
}

.wpat-drawer-subtotal-row strong {
	font-weight: 800;
	font-size: 18px;
	color: #2563eb;
}

.wpat-drawer-buttons {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

.wpat-drawer-btn-view-cart {
	text-align: center;
	background: #ffffff !important;
	border: 1px solid #cbd5e1 !important;
	color: #0f172a !important;
	border-radius: 8px !important;
	font-weight: 600 !important;
	padding: 10px !important;
}

.wpat-cart-drawer-checkout-btn {
	text-align: center;
	border-radius: 8px !important;
	font-weight: 700 !important;
	padding: 10px !important;
}

.wpat-drawer-empty-state {
	text-align: center;
	padding: 40px 20px;
}

.wpat-drawer-empty-state .wpat-empty-icon {
	font-size: 48px;
	display: block;
	margin-bottom: 12px;
}

.wpat-drawer-empty-state h4 {
	margin: 0 0 8px 0;
	font-size: 16px;
	color: #0f172a;
}

.wpat-drawer-empty-state p {
	font-size: 13px;
	color: #64748b;
	margin-bottom: 20px;
}

.wpat-return-shop-btn {
	background: #2563eb !important;
	color: #ffffff !important;
	border-radius: 8px !important;
	font-weight: 600 !important;
	padding: 8px 18px !important;
}

/* --- SHIPPING CALCULATOR VISIBILITY & SHIPPING METHODS FORMATTING --- */
body.wpat-hide-shipping-calc .shipping-calculator-button,
body.wpat-hide-shipping-calc .shipping-calculator-form,
.wpat-cart-totals-card.wpat-hide-calc .shipping-calculator-button,
.wpat-cart-totals-card.wpat-hide-calc .shipping-calculator-form {
	display: none !important;
}

.wpat-cart-totals-card tr.shipping {
	border-bottom: 1px solid #f1f5f9;
}

.wpat-cart-totals-card #shipping_method {
	list-style: none !important;
	padding: 0 !important;
	margin: 0 0 10px 0 !important;
}

.wpat-cart-totals-card #shipping_method li {
	display: flex !important;
	align-items: center !important;
	gap: 8px !important;
	margin-bottom: 6px !important;
	font-size: 13.5px !important;
	color: #0f172a !important;
	font-weight: 500 !important;
}

.wpat-cart-totals-card #shipping_method li input[type="radio"] {
	margin: 0 !important;
	cursor: pointer !important;
}

.wpat-cart-totals-card p.woocommerce-shipping-destination {
	font-size: 12.5px !important;
	color: #64748b !important;
	margin: 6px 0 0 0 !important;
}
