/* Future Vietnam Checkout styling - Haravan Checkout Style */

/* Primary theme color variable */
:root {
	--fc-primary-color: #0078d4;
	--fc-primary-hover: #0ea5e9;
	--fc-border-color: #e2e8f0;
	--fc-text-dark: #0f172a;
	--fc-text-muted: #64748b;
	--fc-bg-light: #f8fafc;
	--fc-font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* 3-Step Progress Bar */
.future-checkout__steps {
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 30px auto 40px;
	max-width: 600px;
	padding: 0 20px;
}

.future-checkout__step {
	display: flex;
	align-items: center;
	gap: 8px;
}

.future-checkout__step-number {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background-color: #e0e0e0;
	color: #ffffff;
	font-size: 12px;
	font-weight: 600;
}

.future-checkout__step-label {
	font-size: 14px;
	color: var(--fc-text-muted);
}

.future-checkout__step-line {
	flex-grow: 1;
	height: 1px;
	background-color: #e0e0e0;
	margin: 0 15px;
}

/* Active State */
.future-checkout__step--active .future-checkout__step-number {
	background-color: var(--fc-primary-color);
}

.future-checkout__step--active .future-checkout__step-label {
	color: var(--fc-primary-color);
	font-weight: 600;
}

/* Completed State */
.future-checkout__step--completed .future-checkout__step-number {
	background-color: var(--fc-primary-color);
	opacity: 0.8;
}

.future-checkout__step--completed .future-checkout__step-label {
	color: var(--fc-text-dark);
}

.future-checkout__step-line--completed {
	background-color: var(--fc-primary-color);
	opacity: 0.8;
}

/* Force full width on WooCommerce forms to override theme 70% rule */
.woocommerce-page.woocommerce-cart .woocommerce-cart-form,
.woocommerce-cart .woocommerce-cart-form,
.woocommerce .woocommerce-cart-form,
.woocommerce-page.woocommerce-checkout form.checkout,
.woocommerce-checkout form.checkout {
	width: 100% !important;
	max-width: 100% !important;
	padding-right: 0 !important;
	float: none !important;
	clear: both !important;
	box-sizing: border-box !important;
}

.woocommerce-page.woocommerce-cart .cart-collaterals,
.woocommerce-cart .cart-collaterals {
	width: 100% !important;
	float: none !important;
	border: none !important;
	padding: 0 !important;
}

/* Form Layout — Modern 2-Column CSS Grid */
.future-cart .future-checkout__columns,
.future-checkout .future-checkout__columns {
	display: grid !important;
	grid-template-columns: minmax(0, 1fr) 380px !important;
	gap: 32px !important;
	align-items: start !important;
	max-width: 100% !important;
	margin: 0 auto !important;
	padding: 0 !important;
	width: 100% !important;
	box-sizing: border-box !important;
}

@media (max-width: 991px) {
	.future-cart .future-checkout__columns,
	.future-checkout .future-checkout__columns {
		grid-template-columns: 1fr !important;
		gap: 24px !important;
	}
}

.future-cart .future-checkout__column,
.future-checkout .future-checkout__column {
	min-width: 0 !important;
	width: 100% !important;
	max-width: 100% !important;
	box-sizing: border-box !important;
}

.future-cart .future-checkout__column--details,
.future-checkout .future-checkout__column--details {
	width: 100% !important;
	max-width: 100% !important;
	flex: none !important;
}

.future-cart .future-checkout__column--summary,
.future-checkout .future-checkout__column--summary {
	width: 100% !important;
	max-width: 100% !important;
	flex: none !important;
	background-color: var(--fc-bg-light) !important;
	border: 1px solid var(--fc-border-color) !important;
	border-radius: 12px !important;
	padding: 24px !important;
	position: sticky !important;
	top: 100px !important;
	box-sizing: border-box !important;
}

/* White Card Components */
.future-checkout__card {
	background-color: #ffffff !important;
	border: 1px solid var(--fc-border-color) !important;
	border-radius: 12px !important;
	padding: 28px !important;
	margin-bottom: 24px !important;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03) !important;
	box-sizing: border-box !important;
}

.future-checkout__card-title,
.future-cart__title,
.future-checkout__summary-title,
.woocommerce-additional-fields h3,
#order_comments_heading {
	font-size: 18px !important;
	font-weight: 700 !important;
	color: #0f172a !important;
	background: transparent !important;
	border-radius: 0 !important;
	border: none !important;
	box-shadow: none !important;
	margin: 0 0 8px !important;
	padding: 0 !important;
	line-height: 1.4 !important;
	display: block !important;
}

.future-checkout__card-title-text {
	background: transparent !important;
	border-radius: 0 !important;
	color: #0f172a !important;
	padding: 0 !important;
	margin: 0 !important;
	display: inline !important;
}

.future-checkout__card-subtitle {
	font-size: 13px !important;
	color: var(--fc-text-muted) !important;
	margin-bottom: 20px !important;
}

/* Fields rows and stacks */
.future-checkout__fields-row {
	display: flex;
	gap: 15px;
	width: 100%;
}

.future-checkout__fields-row .form-row {
	flex: 1;
	margin-bottom: 15px !important;
}

.future-checkout__fields-stack .form-row {
	width: 100% !important;
	float: none !important;
	clear: both !important;
	margin-bottom: 15px !important;
}

/* Input Fields styling */
.future-checkout .form-row input.input-text,
.future-checkout .form-row textarea,
.future-checkout .form-row select,
.future-checkout .select2-container--default .select2-selection--single {
	border: 1px solid #d9d9d9 !important;
	border-radius: 4px !important;
	padding: 10px 12px !important;
	height: auto !important;
	font-size: 14px !important;
	line-height: normal !important;
	background-color: #ffffff !important;
	color: #333333 !important;
	box-shadow: none !important;
	transition: border-color 0.2s ease;
}

.future-checkout .form-row input.input-text:focus,
.future-checkout .form-row textarea:focus,
.future-checkout .select2-container--default.select2-container--focus .select2-selection--single {
	border-color: var(--fc-primary-color) !important;
	outline: none !important;
}

.future-checkout .form-row label {
	font-weight: 500 !important;
	font-size: 13px !important;
	margin-bottom: 6px !important;
	color: #4f4f4f !important;
}

/* Subscribe Checkbox Row */
.future-checkout__subscribe-row {
	margin-top: 10px !important;
	margin-bottom: 0 !important;
}

.future-checkout__subscribe-row label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: normal !important;
	cursor: pointer;
}

/* Payment Methods List styling */
#payment ul.payment_methods {
	padding: 0 !important;
	margin: 0 0 20px !important;
	border: 1px solid var(--fc-border-color) !important;
	border-radius: 8px !important;
	overflow: hidden !important;
	list-style: none !important;
}

#payment ul.payment_methods li {
	padding: 15px 20px !important;
	margin: 0 !important;
	background-color: #ffffff !important;
	border-bottom: 1px solid var(--fc-border-color) !important;
	display: flex !important;
	flex-direction: column !important;
}

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

#payment ul.payment_methods li input[type=radio] {
	margin: 0 10px 0 0 !important;
	vertical-align: middle !important;
}

#payment ul.payment_methods li label {
	font-weight: 600 !important;
	color: var(--fc-text-dark) !important;
	display: inline-block !important;
	margin: 0 !important;
}

#payment div.payment_box {
	background-color: #fafafa !important;
	border: 1px dashed var(--fc-border-color) !important;
	border-radius: 4px !important;
	padding: 12px 15px !important;
	margin: 10px 0 0 !important;
	color: #666666 !important;
	font-size: 13px !important;
}

#payment div.payment_box::before {
	display: none !important;
}

/* Order Review / Summary Column styling */
.future-checkout__summary-title {
	font-size: 18px;
	font-weight: 600;
	color: var(--fc-text-dark);
	margin-top: 0 !important;
	margin-bottom: 20px !important;
	padding-bottom: 10px !important;
	border-bottom: 1px solid var(--fc-border-color) !important;
}

.woocommerce-checkout-review-order-table {
	border: none !important;
	margin-bottom: 20px !important;
}

.woocommerce-checkout-review-order-table th,
.woocommerce-checkout-review-order-table td {
	border: none !important;
	padding: 12px 0 !important;
	font-size: 14px !important;
}

.woocommerce-checkout-review-order-table tr.cart_item {
	border-bottom: 1px solid #f0f0f0 !important;
}

.woocommerce-checkout-review-order-table td.product-name {
	font-weight: normal !important;
	color: var(--fc-text-dark) !important;
}

.woocommerce-checkout-review-order-table td.product-total {
	text-align: right !important;
	font-weight: 600 !important;
	color: var(--fc-text-dark) !important;
}

.woocommerce-checkout-review-order-table tr.cart-subtotal th,
.woocommerce-checkout-review-order-table tr.shipping th {
	color: var(--fc-text-muted) !important;
	font-weight: normal !important;
}

.woocommerce-checkout-review-order-table tr.order-total th {
	font-size: 16px !important;
	font-weight: 600 !important;
	color: var(--fc-text-dark) !important;
}

.woocommerce-checkout-review-order-table tr.order-total td {
	font-size: 20px !important;
	font-weight: bold !important;
	color: var(--fc-primary-color) !important;
	text-align: right !important;
}

/* Product list item thumbnails and badge */
.future-checkout__product-thumbnail-wrapper {
	position: relative;
	display: inline-block;
	margin-right: 15px;
}

.future-checkout__product-thumbnail-wrapper img {
	width: 50px;
	height: 50px;
	object-fit: cover;
	border: 1px solid var(--fc-border-color);
	border-radius: 4px;
}

.future-checkout__product-quantity-badge {
	position: absolute;
	top: -8px;
	right: -8px;
	background-color: #999999;
	color: #ffffff;
	font-size: 10px;
	padding: 2px 6px;
	border-radius: 10px;
	font-weight: 600;
	line-height: 1;
}

/* Coupon Form */
.future-checkout__coupon-wrapper {
	display: flex;
	gap: 10px;
	margin-bottom: 20px;
	padding-bottom: 20px;
	border-bottom: 1px solid var(--fc-border-color);
}

.future-checkout__coupon-wrapper input[type=text] {
	flex-grow: 1;
}

.future-checkout__coupon-wrapper button {
	background-color: var(--fc-primary-color) !important;
	color: #ffffff !important;
	border: none !important;
	padding: 10px 20px !important;
	border-radius: 4px !important;
	font-weight: 600 !important;
	cursor: pointer !important;
}

/* Place Order Submit Button */
.future-checkout #place_order {
	background-color: var(--fc-primary-color) !important;
	color: #ffffff !important;
	border: none !important;
	border-radius: 4px !important;
	padding: 15px 30px !important;
	font-size: 16px !important;
	font-weight: 600 !important;
	text-transform: uppercase !important;
	width: 100% !important;
	margin-top: 15px !important;
	cursor: pointer !important;
	transition: opacity 0.2s ease !important;
}

.future-checkout #place_order:hover {
	opacity: 0.9 !important;
}

/* Security Banner Card */
.future-checkout__security-banner {
	display: flex;
	align-items: center;
	gap: 12px;
	background-color: #f0f7ff;
	border: 1px solid #bcd8f5;
	border-radius: 6px;
	padding: 15px;
	margin-top: 20px;
}

.future-checkout__security-banner-icon {
	color: var(--fc-primary-color);
	font-size: 18px;
	flex-shrink: 0;
}

.future-checkout__security-banner-text {
	font-size: 13px;
	color: #1e4f8a;
	font-weight: 500;
}

/* Hide entry-header in checkout and cart */
.woocommerce-checkout .entry-header,
.woocommerce-cart .entry-header {
	display: none !important;
}

/* Select2 Custom styling for height alignment */
.future-checkout .select2-container .select2-selection--single {
	height: 42px !important;
}

.future-checkout .select2-container--default .select2-selection--single .select2-selection__rendered {
	/* line-height: 40px !important; */
	/* padding-left: 12px !important; */
}

.future-checkout .select2-container--default .select2-selection--single .select2-selection__arrow {
	height: 40px !important;
}

/* Hide Unused Core Fields */
#billing_last_name_field,
#shipping_last_name_field,
#billing_company_field,
#shipping_company_field,
#billing_address_2_field,
#shipping_address_2_field,
#billing_postcode_field,
#shipping_postcode_field {
	display: none !important;
}

/* Re-display address_2, postcode and name in our custom grid layout */
.future-checkout__fields-row #billing_address_2_field,
.future-checkout__fields-row #billing_postcode_field,
.future-checkout__fields-row #billing_state_field,
.future-checkout__fields-row #billing_city_field {
	display: block !important;
}

.future-checkout__fields-stack #billing_first_name_field {
	display: block !important;
}

/* Hide default commitments box if theme prints it */
.future-checkout__column--summary .checkout-commitments,
.future-checkout__column--summary .commitments-box {
	display: none !important;
}

/* Custom Cart Styling */
.future-cart__title {
	font-size: 22px;
	font-weight: 600;
	color: var(--fc-text-dark);
	margin-top: 0 !important;
	margin-bottom: 20px !important;
}

.future-cart__count {
	font-size: 14px;
	font-weight: normal;
	color: var(--fc-text-muted);
	margin-left: 5px;
}

.future-cart__items-list {
	margin-bottom: 24px;
}

.future-cart__list-header {
	display: flex !important;
	justify-content: space-between !important;
	align-items: center !important;
	padding-bottom: 12px !important;
	margin-bottom: 16px !important;
	border-bottom: 1.5px solid #e2e8f0 !important;
	font-size: 12px !important;
	font-weight: 700 !important;
	color: #64748b !important;
	text-transform: uppercase !important;
	letter-spacing: 0.05em !important;
}

.future-cart__hdr-product {
	flex: 1;
}

.future-cart__hdr-price {
	text-align: right;
	min-width: 140px;
}

.future-cart__item {
	display: flex !important;
	align-items: center !important;
	gap: 20px !important;
	padding: 20px 0 !important;
	border-bottom: 1px solid #f1f5f9 !important;
}

.future-cart__item:first-child {
	padding-top: 0 !important;
}

.future-cart__item:last-child {
	border-bottom: none !important;
	padding-bottom: 0 !important;
}

.future-cart__item-thumbnail {
	width: 80px !important;
	height: 80px !important;
	flex-shrink: 0 !important;
	border-radius: 10px !important;
	overflow: hidden !important;
	border: 1px solid #e2e8f0 !important;
	background: #f8fafc !important;
}

.future-cart__item-thumbnail img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
	display: block !important;
}

.future-cart__item-details {
	flex: 1 1 auto !important;
	min-width: 0 !important;
}

.future-cart__item-title {
	font-size: 15px !important;
	font-weight: 700 !important;
	color: #0f172a !important;
	margin: 0 0 6px !important;
	line-height: 1.4 !important;
}

.future-cart__item-title a {
	color: inherit !important;
	text-decoration: none !important;
	transition: color 0.15s !important;
}

.future-cart__item-title a:hover {
	color: var(--fc-primary-color) !important;
}

.future-cart__item-desc {
	font-size: 13px !important;
	color: #64748b !important;
	margin-bottom: 10px !important;
	line-height: 1.5 !important;
}

.future-cart__item-desc dl.variation {
	margin: 0 !important;
	font-size: 12px !important;
}

/* Custom quantity stepper: [ - ] [ 1 ] [ + ] */
.future-cart__item-qty-wrapper {
	margin-top: 8px !important;
}

.future-cart__item-qty-selector {
	display: inline-flex !important;
	align-items: center !important;
	border: 1.5px solid #cbd5e1 !important;
	border-radius: 8px !important;
	overflow: hidden !important;
	background: #ffffff !important;
	height: 32px !important;
}

.future-cart__item-qty-selector .fhc-cart-qty-btn {
	width: 30px !important;
	height: 100% !important;
	border: none !important;
	background: #f8fafc !important;
	color: #334155 !important;
	font-size: 16px !important;
	font-weight: 700 !important;
	cursor: pointer !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	line-height: 1 !important;
	transition: background 0.15s, color 0.15s !important;
	padding: 0 !important;
	box-shadow: none !important;
}

.future-cart__item-qty-selector .fhc-cart-qty-btn:hover {
	background: #e2e8f0 !important;
	color: var(--fc-primary-color) !important;
}

.future-cart__item-qty-selector input.fhc-qty-input,
.future-cart__item-qty-selector input.qty {
	width: 42px !important;
	height: 100% !important;
	border: none !important;
	border-left: 1.5px solid #e2e8f0 !important;
	border-right: 1.5px solid #e2e8f0 !important;
	border-radius: 0 !important;
	text-align: center !important;
	font-size: 13px !important;
	font-weight: 700 !important;
	color: #0f172a !important;
	padding: 0 !important;
	margin: 0 !important;
	box-shadow: none !important;
	background: #ffffff !important;
	-moz-appearance: textfield !important;
}

.future-cart__item-qty-selector input.qty::-webkit-outer-spin-button,
.future-cart__item-qty-selector input.qty::-webkit-inner-spin-button {
	-webkit-appearance: none !important;
	margin: 0 !important;
}

.future-cart__item-price-col {
	text-align: right !important;
	min-width: 130px !important;
	flex-shrink: 0 !important;
}

.future-cart__item-prices {
	display: flex !important;
	flex-direction: column !important;
	align-items: flex-end !important;
}

.future-cart__item-price {
	font-size: 17px !important;
	font-weight: 700 !important;
	color: var(--fc-primary-color) !important;
}

.future-cart__item-old-price {
	font-size: 13px !important;
	color: #94a3b8 !important;
	text-decoration: line-through !important;
	margin-bottom: 2px !important;
	display: block !important;
}

.future-cart__item-savings-badge {
	font-size: 11px !important;
	font-weight: 600 !important;
	color: #ef4444 !important;
	background-color: #fef2f2 !important;
	border: 1px solid #fee2e2 !important;
	padding: 2px 8px !important;
	border-radius: 20px !important;
	margin-top: 4px !important;
	display: inline-block !important;
}

.future-cart__item-remove {
	padding-left: 10px;
}

.future-cart__remove-link {
	color: #999;
	transition: color 0.2s ease;
}

.future-cart__remove-link:hover {
	color: #d9534f;
}

.future-cart__actions {
	display: flex;
	justify-content: space-between;
	align-items: center;
	border-top: 1px solid var(--fc-border-color);
	padding-top: 20px;
	margin-top: 20px;
}

.future-cart__continue-shopping {
	display: inline-flex;
	align-items: center;
	font-size: 14px;
	font-weight: 600;
	color: var(--fc-primary-color);
	text-decoration: none;
}

.future-cart__continue-shopping:hover {
	text-decoration: underline;
}

.future-cart__update-btn {
	background-color: transparent !important;
	color: var(--fc-text-dark) !important;
	border: 1px solid #d9d9d9 !important;
	border-radius: 4px !important;
	padding: 8px 16px !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	cursor: pointer !important;
	transition: all 0.2s ease;
}

.future-cart__update-btn:hover {
	background-color: #fafafa !important;
	border-color: #999 !important;
}

/* Sidebar Totals Detail */
.future-cart__totals-summary {
	margin-bottom: 20px;
}

.future-cart__summary-row {
	display: flex;
	justify-content: space-between;
	margin-bottom: 12px;
	font-size: 14px;
	color: var(--fc-text-dark);
}

.future-cart__summary-label {
	color: var(--fc-text-muted);
}

.future-cart__summary-value {
	font-weight: 500;
}

/* Sidebar Commitments */
.future-cart__commitments {
	margin-top: 25px;
	padding-top: 20px;
	border-top: 1px dashed var(--fc-border-color);
}

.future-cart__commitment-item {
	display: flex;
	gap: 12px;
	margin-bottom: 15px;
}

.future-cart__commitment-item:last-child {
	margin-bottom: 0;
}

.future-cart__commitment-icon {
	font-size: 20px;
	flex-shrink: 0;
}

.future-cart__commitment-info {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.future-cart__commitment-info strong {
	font-size: 13px;
	color: var(--fc-text-dark);
	font-weight: 600;
}

.future-cart__commitment-info span {
	font-size: 12px;
	color: var(--fc-text-muted);
}

/* Cross Sells Product Slider Grid */
.future-cart__cross-sells {
	margin-top: 50px;
}

.future-cross-sells__title {
	font-size: 20px;
	font-weight: 600;
	color: var(--fc-text-dark);
	margin-bottom: 24px;
	padding-bottom: 8px;
	border-bottom: 1px solid var(--fc-border-color);
}

/* Cart Footer Informational Bar */
.future-cart__footer-info-bar {
	display: flex;
	justify-content: space-between;
	gap: 20px;
	margin-top: 50px;
	padding: 24px;
	background-color: #fcfcfc;
	border: 1px solid var(--fc-border-color);
	border-radius: 8px;
}

.future-cart__footer-info-item {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 13px;
	color: #4f4f4f;
	line-height: 1.4;
	flex: 1;
}

.future-cart__footer-info-icon {
	font-size: 18px;
	flex-shrink: 0;
}


/* Mobile Responsiveness */
@media (max-width: 768px) {
	.future-cart .future-checkout__columns,
	.future-checkout .future-checkout__columns {
		flex-direction: column !important;
	}

	.future-cart .future-checkout__column,
	.future-checkout .future-checkout__column {
		width: 100% !important;
		min-width: 100% !important;
		max-width: 100% !important;
	}

	.future-cart .future-checkout__column--details,
	.future-checkout .future-checkout__column--details,
	.future-cart .future-checkout__column--summary,
	.future-checkout .future-checkout__column--summary {
		flex: 1 1 100% !important;
		max-width: 100% !important;
		width: 100% !important;
	}

	.future-checkout__fields-row {
		flex-direction: column;
		gap: 0;
	}
	
	.future-checkout__steps {
		flex-direction: column;
		gap: 10px;
		align-items: flex-start;
	}
	
	.future-checkout__step-line {
		display: none;
	}
}

/* Hide standard WooCommerce notice containers to prevent duplication/flickering before SweetAlert2 catches them */
.woocommerce-error,
.woocommerce-message,
.woocommerce-info,
.woocommerce-NoticeGroup-checkout,
.woocommerce-NoticeGroup {
    display: none !important;
}

/* Custom styles for SweetAlert2 floating popup */
.future-swal-popup {
	border-radius: 12px !important;
	font-family: inherit !important;
}

/* WooCommerce checkout inline error validation message styling */
.woocommerce form .form-row .checkout-inline-error-message {
	color: #b57d00 !important; /* Amber / Dark Yellow for premium readability on white background */
	font-size: 12px !important;
	padding-top: 6px !important;
	margin: 0 !important;
	display: block !important;
	font-weight: 500 !important;
}

/* Order received / thank you page custom design styling */
.woocommerce-order-received .order-page {
  max-width: 100% !important;
  margin: 0 auto !important;
  padding: 42px 0 28px !important;
}

.woocommerce-order-received .order-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}

.woocommerce-order-received .brand {
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: #222;
}

.woocommerce-order-received .order-code {
  color: var(--fc-text-muted);
  font-size: 13px;
  white-space: nowrap;
  padding-top: 8px;
}

.woocommerce-order-received .success-title {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.35;
  font-weight: 600;
  color: #111827;
}

.woocommerce-order-received .success-text {
  margin: 0 0 20px;
  color: #4b5563;
  max-width: 520px;
}

.woocommerce-order-received .action-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 48px;
}

.woocommerce-order-received .btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  background: var(--fc-primary-color);
  color: #ffffff !important;
  border-radius: 3px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: background-color 0.2s;
}

.woocommerce-order-received .btn-primary:hover {
  background: #008cc0;
}

.woocommerce-order-received .link {
  color: var(--fc-primary-color);
  text-decoration: none;
  font-size: 13px;
}

.woocommerce-order-received .link:hover {
  text-decoration: underline;
}

.woocommerce-order-received .section {
  margin-bottom: 44px;
}

.woocommerce-order-received .section-title {
  margin: 0 0 18px;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 600;
  color: #111827;
}

.woocommerce-order-received .order-items {
  border-bottom: 1px solid var(--fc-border-color);
}

.woocommerce-order-received .order-item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 13px 0;
  border-top: 1px solid var(--fc-border-color);
}

.woocommerce-order-received .product-thumb {
  width: 52px;
  height: 52px;
  border: 1px solid var(--fc-border-color);
  border-radius: 4px;
  background: #f3f4f6;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  font-size: 11px;
  text-align: center;
}

.woocommerce-order-received .product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.woocommerce-order-received .product-name {
  color: #111827;
  font-weight: 600;
  font-size: 13px;
  line-height: 1.45;
}

.woocommerce-order-received .product-meta {
  margin-top: 3px;
  color: var(--fc-text-muted);
  font-size: 12px;
}

.woocommerce-order-received .product-price {
  color: #111827;
  font-weight: 600;
  white-space: nowrap;
  font-size: 13px;
  text-align: right;
}

.woocommerce-order-received .summary {
  width: 280px;
  margin-left: auto;
  padding-top: 16px;
}

.woocommerce-order-received .summary-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: #4b5563;
  font-size: 13px;
  margin-bottom: 6px;
}

.woocommerce-order-received .summary-row strong {
  color: #111827;
  font-weight: 600;
}

.woocommerce-order-received .summary-total {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 16px;
  padding-top: 18px;
  border-top: 1px solid var(--fc-border-color);
  font-size: 14px;
  color: #111827;
}

.woocommerce-order-received .summary-total .amount {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.woocommerce-order-received .customer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 42px;
}

.woocommerce-order-received .info-block {
  margin-bottom: 24px;
}

.woocommerce-order-received .info-title {
  margin: 0 0 8px;
  color: #111827;
  font-size: 13px;
  font-weight: 600;
}

.woocommerce-order-received address {
  margin: 0;
  color: #4b5563;
  font-style: normal;
  font-size: 13px;
  line-height: 1.55;
}

.woocommerce-order-received .footer {
  margin-top: 52px;
  padding: 20px 0 0;
  border-top: 1px solid var(--fc-border-color);
  color: var(--fc-text-muted);
  font-size: 12px;
  text-align: center;
}

.woocommerce-order-received .footer a {
  color: var(--fc-primary-color);
  text-decoration: none;
}

.woocommerce-order-received .footer a:hover {
  text-decoration: underline;
}

.woocommerce-order-received .order-gateway-instructions {
	margin-bottom: 30px;
}

@media (max-width: 640px) {
  .woocommerce-order-received .order-page {
    padding: 28px 18px;
  }

  .woocommerce-order-received .order-header {
    display: block;
  }

  .woocommerce-order-received .order-code {
    margin-top: 6px;
  }

  .woocommerce-order-received .action-row {
    display: block;
  }

  .woocommerce-order-received .btn-primary {
    width: 100%;
    margin-bottom: 12px;
  }

  .woocommerce-order-received .order-item {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .woocommerce-order-received .product-price {
    grid-column: 2;
    text-align: left;
  }

  .woocommerce-order-received .summary {
    width: 100%;
  }

  .woocommerce-order-received .customer-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}



/* ==========================================================================
   FUTURE HORIZON (FHC) — FLOATING CART (BOTTOM-LEFT) FLUENT 2
   ========================================================================== */

#fhc-floating-cart {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 99998;
  font-family: inherit;
  box-sizing: border-box;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

#fhc-floating-cart *,
#fhc-floating-cart *::before,
#fhc-floating-cart *::after {
  box-sizing: border-box;
}

/* Hidden when empty */
#fhc-floating-cart.is-empty {
  transform: translateY(40px) scale(0.9);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

/* Visible when has items */
#fhc-floating-cart.has-items {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

/* Main Capsule */
.fhc-fc-capsule {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 12px 32px -4px rgba(2, 132, 199, 0.18), 0 4px 12px -2px rgba(15, 23, 42, 0.08);
  border-radius: 9999px;
  padding: 6px 8px 6px 12px;
  gap: 12px;
  user-select: none;
  transition: box-shadow 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
}

.fhc-fc-capsule:hover {
  box-shadow: 0 16px 36px -4px rgba(2, 132, 199, 0.25), 0 6px 16px -2px rgba(15, 23, 42, 0.12);
  border-color: rgba(186, 230, 253, 0.95);
}

/* Interactive Trigger Area */
.fhc-fc-main-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  text-decoration: none;
}

.fhc-fc-icon-badge {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: #f0f9ff;
  color: #0284c7;
  border-radius: 50%;
  transition: transform 0.2s ease, background 0.2s ease;
}

.fhc-fc-main-trigger:hover .fhc-fc-icon-badge {
  transform: scale(1.06);
  background: #e0f2fe;
}

.fhc-fc-count {
  position: absolute;
  top: -3px;
  right: -3px;
  background: #ef4444;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid #ffffff;
  line-height: 1;
}

.fhc-fc-summary {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.25;
}

.fhc-fc-sum-label {
  font-size: 12px;
  color: #64748b;
  font-weight: 500;
}

.fhc-fc-sum-price {
  font-size: 14px;
  color: #0f172a;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* Checkout Button */
.fhc-fc-direct-checkout {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff !important;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 9999px;
  text-decoration: none !important;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.fhc-fc-direct-checkout:hover {
  background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
  box-shadow: 0 6px 16px rgba(2, 132, 199, 0.4);
  transform: translateY(-1px);
  color: #ffffff !important;
}

/* Minimize Toggle */
.fhc-fc-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: none;
  background: #f1f5f9;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
}

.fhc-fc-toggle-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

/* Minimized Bubble */
.fhc-fc-bubble {
  display: none;
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 10px 25px -4px rgba(2, 132, 199, 0.2);
  align-items: center;
  justify-content: center;
  color: #0284c7;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fhc-fc-bubble:hover {
  transform: scale(1.08);
  box-shadow: 0 14px 28px -4px rgba(2, 132, 199, 0.3);
}

#fhc-floating-cart.is-minimized .fhc-fc-capsule,
#fhc-floating-cart.is-minimized .fhc-fc-drawer {
  display: none !important;
}

#fhc-floating-cart.is-minimized .fhc-fc-bubble {
  display: flex !important;
}

/* Quick Drawer Popover */
.fhc-fc-drawer {
  display: none;
  position: absolute;
  bottom: calc(100% + 14px);
  left: 0;
  width: 340px;
  max-width: calc(100vw - 48px);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 18px;
  box-shadow: 0 20px 45px -8px rgba(15, 23, 42, 0.22), 0 0 1px rgba(15, 23, 42, 0.1);
  overflow: hidden;
  z-index: 100000;
  animation: fhcFcDrawerSlide 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

#fhc-floating-cart.is-drawer-open .fhc-fc-drawer {
  display: block;
}

@keyframes fhcFcDrawerSlide {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.fhc-fc-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid #f1f5f9;
  background: #f8fafc;
}

.fhc-fc-drawer-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}

.fhc-fc-badge-pill {
  background: #0284c7;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 9999px;
}

.fhc-fc-drawer-close {
  background: transparent;
  border: none;
  font-size: 20px;
  color: #94a3b8;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: color 0.2s ease;
}

.fhc-fc-drawer-close:hover {
  color: #0f172a;
}

.fhc-fc-drawer-body {
  max-height: 250px;
  overflow-y: auto;
  padding: 12px 16px;
}

.fhc-fc-items-list {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.fhc-fc-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #f1f5f9;
}

.fhc-fc-item:last-child {
  border-bottom: none;
}

.fhc-fc-item-thumb {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  overflow: hidden;
  background: #f1f5f9;
  flex-shrink: 0;
}

.fhc-fc-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

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

.fhc-fc-item-name {
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 2px;
  line-height: 1.3;
}

.fhc-fc-item-name a {
  color: #1e293b;
  text-decoration: none;
}

.fhc-fc-item-name a:hover {
  color: #0284c7;
}

.fhc-fc-item-meta {
  font-size: 12px;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 4px;
}

.fhc-fc-item-price {
  font-weight: 600;
  color: #0284c7;
}

.fhc-fc-item-remove {
  background: transparent;
  border: none;
  font-size: 18px;
  color: #cbd5e1;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  transition: color 0.2s ease;
}

.fhc-fc-item-remove:hover {
  color: #ef4444;
}

.fhc-fc-drawer-footer {
  padding: 14px 16px;
  border-top: 1px solid #f1f5f9;
  background: #ffffff;
}

.fhc-fc-drawer-subtotal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.fhc-fc-subtotal-text {
  font-size: 13px;
  color: #64748b;
  font-weight: 500;
}

.fhc-fc-subtotal-price {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
}

.fhc-fc-drawer-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.fhc-fc-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none !important;
  text-align: center;
  transition: all 0.2s ease;
}

.fhc-fc-btn-cart {
  background: #f1f5f9;
  color: #334155 !important;
}

.fhc-fc-btn-cart:hover {
  background: #e2e8f0;
  color: #0f172a !important;
}

.fhc-fc-btn-checkout {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff !important;
  box-shadow: 0 4px 10px rgba(2, 132, 199, 0.25);
}

.fhc-fc-btn-checkout:hover {
  background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
  color: #ffffff !important;
}

/* Added Animation Pulse */
@keyframes fhcFcPulse {
  0% { transform: scale(1); box-shadow: 0 12px 32px -4px rgba(2, 132, 199, 0.18); }
  50% { transform: scale(1.06); box-shadow: 0 16px 40px rgba(2, 132, 199, 0.4); }
  100% { transform: scale(1); box-shadow: 0 12px 32px -4px rgba(2, 132, 199, 0.18); }
}

.fhc-fc-capsule.is-pulsing {
  animation: fhcFcPulse 0.5s ease;
}

/* Mobile Responsiveness */
@media (max-width: 640px) {
  #fhc-floating-cart {
    bottom: max(16px, env(safe-area-inset-bottom));
    left: max(16px, env(safe-area-inset-left));
  }
  .fhc-fc-capsule {
    padding: 5px 8px 5px 10px;
    gap: 8px;
  }
  .fhc-fc-sum-label {
    display: none;
  }
  .fhc-fc-direct-checkout span {
    display: none;
  }
  .fhc-fc-direct-checkout {
    padding: 8px;
    border-radius: 50%;
  }
  .fhc-fc-drawer {
    width: min(320px, calc(100vw - 84px));
    left: 0;
  }
}
