/* =========================================================
   ECU-HUB Payment CTA — Product purchase area
   Version 1.6.0
   ========================================================= */

/* Hide quantity on single-product pages.
   WooCommerce keeps the default purchase quantity at 1. */
.single-product form.cart .quantity {
	display: none !important;
}

/* ---------------------------------------------------------
   Simple products
   Force a stable left-to-right two-column purchase row:
   Add to cart = left
   Card payment = right
   --------------------------------------------------------- */
.single-product .summary form.cart:not(.variations_form):not(.grouped_form) {
	display: grid !important;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
	grid-template-areas: "add-to-cart card-payment" !important;
	column-gap: 12px !important;
	row-gap: 0 !important;
	align-items: start !important;
	width: 100% !important;
	direction: ltr !important;
}

/* ---------------------------------------------------------
   Variable products
   Apply the same fixed order after a variation is selected.
   --------------------------------------------------------- */
.single-product .summary .woocommerce-variation-add-to-cart {
	display: grid !important;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
	grid-template-areas: "add-to-cart card-payment" !important;
	column-gap: 12px !important;
	row-gap: 0 !important;
	align-items: start !important;
	width: 100% !important;
	direction: ltr !important;
}

/* Native WooCommerce Add to cart — fixed left column */
.single-product .summary form.cart .single_add_to_cart_button {
	grid-area: add-to-cart !important;
	grid-column: 1 !important;
	grid-row: 1 !important;
	align-self: start !important;

	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	float: none !important;
	clear: none !important;
	flex: none !important;

	width: 100% !important;
	max-width: none !important;
	min-width: 0 !important;
	min-height: 56px !important;
	height: 56px !important;
	margin: 0 !important;
	padding: 13px 18px !important;
	box-sizing: border-box !important;

	color: #ffffff !important;
	background: #0b84ff !important;
	border: 2px solid rgba(90, 200, 255, 0.55) !important;
	border-radius: 12px !important;
	box-shadow: 0 8px 22px rgba(17, 110, 230, 0.50) !important;

	font-family: Roboto, Arial, sans-serif !important;
	font-size: 16px !important;
	font-weight: 700 !important;
	line-height: 1.25 !important;
	text-align: center !important;
	white-space: nowrap !important;
}

/* Card-payment area — fixed right column */
.single-product .summary form.cart .ecuhub-card-payment-cta {
	grid-area: card-payment !important;
	grid-column: 2 !important;
	grid-row: 1 !important;
	align-self: start !important;

	display: flex !important;
	flex-direction: column !important;
	float: none !important;
	clear: none !important;
	flex: none !important;

	width: 100% !important;
	max-width: none !important;
	min-width: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	box-sizing: border-box !important;
	direction: ltr !important;
}

.single-product .ecuhub-card-payment-button {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 10px !important;

	width: 100% !important;
	max-width: none !important;
	min-width: 0 !important;
	min-height: 56px !important;
	height: 56px !important;
	margin: 0 !important;
	padding: 13px 14px !important;
	box-sizing: border-box !important;

	color: #ffffff !important;
	background: #0b84ff !important;
	border: 2px solid rgba(90, 200, 255, 0.55) !important;
	border-radius: 12px !important;
	box-shadow: 0 8px 22px rgba(17, 110, 230, 0.50) !important;

	font-family: Roboto, Arial, sans-serif !important;
	font-size: 15px !important;
	font-weight: 700 !important;
	line-height: 1.25 !important;
	text-align: center !important;
	text-decoration: none !important;
	white-space: nowrap !important;

	cursor: pointer;
	transition:
		background-color 0.18s ease,
		box-shadow 0.18s ease,
		transform 0.18s ease;
}

/* Identical hover behavior */
.single-product .summary form.cart .single_add_to_cart_button:hover,
.single-product .summary form.cart .single_add_to_cart_button:focus,
.single-product .ecuhub-card-payment-button:hover,
.single-product .ecuhub-card-payment-button:focus {
	color: #ffffff !important;
	background: rgba(0, 119, 255, 0.82) !important;
	box-shadow: 0 10px 26px rgba(17, 110, 230, 0.58) !important;
	transform: translateY(-1px);
}

.single-product .summary form.cart .single_add_to_cart_button:disabled,
.single-product .ecuhub-card-payment-button:disabled {
	opacity: 0.55;
	cursor: not-allowed;
	transform: none;
}

/* Lightweight CSS card icon */
.single-product .ecuhub-card-payment-icon {
	position: relative;
	display: inline-block;
	width: 26px;
	height: 18px;
	flex: 0 0 26px;
	border: 2px solid currentColor;
	border-radius: 3px;
	box-sizing: border-box;
}

.single-product .ecuhub-card-payment-icon::before {
	content: "";
	position: absolute;
	top: 4px;
	left: 0;
	width: 100%;
	height: 2px;
	background: currentColor;
}

/* ---------------------------------------------------------
   Crypto message below the card-payment button
   Clear two-line text with no extra box or visual clutter.
   --------------------------------------------------------- */
.single-product .ecuhub-card-crypto-note {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 3px;
	width: 100%;
	margin: 8px 0 0;
	padding: 0 4px;
	box-sizing: border-box;

	font-family: Roboto, Arial, sans-serif;
	line-height: 1.2;
	text-align: center;
}

.single-product .ecuhub-card-crypto-title {
	display: block;
	color: #f8fafc;
	font-size: 12.5px;
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: 0;
	text-shadow: 0 0 12px rgba(0, 212, 255, 0.16);
}

.single-product .ecuhub-card-crypto-title::before {
	content: "◆";
	display: inline-block;
	margin-right: 6px;
	color: #00d4ff;
	font-size: 8px;
	vertical-align: 1px;
}

.single-product .ecuhub-card-crypto-coins {
	display: block;
	color: #7edcff;
	font-size: 10.5px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.025em;
}

/* Phones: stack full-width buttons in a clear order */
@media (max-width: 767px) {
	.single-product .summary form.cart:not(.variations_form):not(.grouped_form),
	.single-product .summary .woocommerce-variation-add-to-cart {
		grid-template-columns: 1fr !important;
		grid-template-areas:
			"add-to-cart"
			"card-payment" !important;
		row-gap: 10px !important;
	}

	.single-product .summary form.cart .single_add_to_cart_button {
		grid-column: 1 !important;
		grid-row: 1 !important;
		min-height: 52px !important;
		height: 52px !important;
		font-size: 15px !important;
	}

	.single-product .summary form.cart .ecuhub-card-payment-cta {
		grid-column: 1 !important;
		grid-row: 2 !important;
	}

	.single-product .ecuhub-card-payment-button {
		min-height: 52px !important;
		height: 52px !important;
		padding: 12px 14px !important;
		font-size: 15px !important;
		white-space: normal !important;
	}

	.single-product .ecuhub-card-crypto-note {
		margin-top: 8px;
		padding: 0 6px;
	}

	.single-product .ecuhub-card-crypto-title {
		font-size: 12.5px;
	}

	.single-product .ecuhub-card-crypto-coins {
		font-size: 10.5px;
	}
}

@media (max-width: 390px) {
	.single-product .ecuhub-card-crypto-title {
		font-size: 11.5px;
	}

	.single-product .ecuhub-card-crypto-coins {
		font-size: 10px;
	}
}
