/* Order review: product thumbnail and name. */
.woocommerce-checkout-review-order-table .cart_item .product-name {
	vertical-align: middle;
}

.vcep-checkout-product {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
	vertical-align: middle;
}

.vcep-product-image-wrap {
	display: inline-flex;
	flex: 0 0 58px;
	width: 58px;
	height: 58px;
	border: 1px solid #e7e2dc;
	border-radius: 10px;
	overflow: hidden;
	background: #fff;
}

.vcep-product-image-wrap .vcep-product-image {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	object-fit: cover;
}

.vcep-product-name {
	min-width: 0;
	font-weight: 600;
	line-height: 1.35;
}

/* Payment methods: two clear, fully clickable cards. */
#payment ul.payment_methods {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	padding: 0;
	border: 0;
}

/* Astra/WooCommerce use clearfix pseudo-elements here. Inside a CSS grid they
 * become real grid items and push each payment method into a different row. */
body.woocommerce-checkout #payment ul.payment_methods::before,
body.woocommerce-checkout #payment ul.payment_methods::after {
	display: none !important;
	content: none !important;
}

#payment ul.payment_methods > li {
	position: relative;
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 1px solid #d8d3cd;
	border-radius: 14px;
	background: #fff;
	overflow: hidden;
	transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

#payment ul.payment_methods > li:hover {
	border-color: #9e9690;
}

#payment ul.payment_methods > li.vcep-payment-selected {
	border-color: #202020;
	background: #fffdf8;
	box-shadow: 0 0 0 2px rgba(32, 32, 32, 0.12);
}

#payment ul.payment_methods > li > input.input-radio {
	position: absolute !important;
	top: 20px;
	left: 16px;
	z-index: 2;
	width: 18px;
	height: 18px;
	margin: 0 !important;
	accent-color: #202020;
}

#payment ul.payment_methods > li > input.input-radio:focus-visible + label {
	outline: 3px solid rgba(20, 52, 203, 0.35);
	outline-offset: -3px;
}

#payment ul.payment_methods > li > label {
	display: flex !important;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	min-height: 84px;
	margin: 0 !important;
	padding: 14px 14px 14px 46px;
	cursor: pointer;
	box-sizing: border-box;
}

.vcep-payment-copy {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
}

.vcep-payment-title {
	color: #222;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.25;
}

.vcep-payment-subtitle {
	color: #6d6863;
	font-size: 11px;
	font-weight: 400;
	line-height: 1.3;
}

#payment .vcep-gateway-logos {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: flex-end;
	gap: 5px;
	margin: 0;
}

#payment .vcep-gateway-logos .vcep-logo {
	display: block;
	float: none;
	width: auto;
	max-width: none;
	height: auto;
	margin: 0;
	padding: 0;
	border: 0;
	box-shadow: none;
}

#payment .vcep-logo-visa {
	width: 40px;
}

#payment .vcep-logo-mastercard {
	width: 30px;
}

#payment .vcep-logo-bizum {
	width: 72px;
}

#payment .payment_method_redsys .vcep-payment-subtitle {
	white-space: nowrap;
}

#payment ul.payment_methods > li .payment_box {
	width: auto;
	margin: 0 12px 12px;
	padding: 12px;
	border-radius: 9px;
	box-sizing: border-box;
}

/* Optional extras below customer details and below the cart table. */
.vcep-extras {
	position: relative;
	clear: both;
	margin: 32px 0 10px;
	padding-top: 26px;
	border-top: 1px solid rgba(128, 128, 128, 0.45);
}

.vcep-extras-heading {
	margin-bottom: 16px;
}

.vcep-extras-heading h3 {
	margin: 0 0 4px;
	color: inherit;
	font-size: 22px;
	line-height: 1.25;
}

.vcep-extras-heading p {
	margin: 0;
	color: inherit;
	opacity: 0.75;
	font-size: 14px;
}

.vcep-extras-message {
	min-height: 0;
	margin: 0 0 10px;
	color: #ffb6ad;
	font-size: 13px;
	font-weight: 600;
}

.vcep-extras-message:empty {
	display: none;
}

.vcep-extras-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 12px;
}

.vcep-extra-card {
	display: grid;
	grid-template-columns: 78px minmax(0, 1fr);
	gap: 12px;
	min-width: 0;
	padding: 10px;
	border: 1px solid #d8d3cd;
	border-radius: 14px;
	background: #fff;
	color: #222;
	box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
	transition: opacity 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.vcep-extra-card:hover {
	border-color: #a9a19a;
	transform: translateY(-1px);
}

.vcep-extra-card--loading,
.vcep-extras--loading {
	opacity: 0.55;
	pointer-events: none;
}

.vcep-extra-image {
	width: 78px;
	height: 78px;
	border-radius: 10px;
	overflow: hidden;
	background: #f2efeb;
}

.vcep-extra-image img {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	object-fit: cover;
}

.vcep-extra-content {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	min-width: 0;
}

.vcep-extra-content h4 {
	display: -webkit-box;
	margin: 0 0 3px;
	overflow: hidden;
	color: #222;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.25;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.vcep-extra-price {
	margin-bottom: 5px;
	color: #222;
	font-size: 13px;
	font-weight: 700;
}

.vcep-extra-price del {
	opacity: 0.55;
}

.vcep-extra-status {
	margin-bottom: 5px;
	color: #9f2f25;
	font-size: 10px;
	font-weight: 600;
	line-height: 1.2;
}

.vcep-extra-quantity {
	display: inline-grid;
	grid-template-columns: 28px 30px 28px;
	align-items: center;
	margin-top: auto;
	border: 1px solid #d5cec7;
	border-radius: 999px;
	overflow: hidden;
	background: #fff;
}

.vcep-extra-quantity .vcep-extra-change {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	min-width: 28px;
	height: 28px;
	min-height: 28px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: #f0ece7;
	color: #222;
	font-size: 18px;
	font-weight: 600;
	line-height: 1;
	box-shadow: none;
	cursor: pointer;
}

.vcep-extra-quantity .vcep-extra-change:hover:not(:disabled),
.vcep-extra-quantity .vcep-extra-change:focus-visible:not(:disabled) {
	background: #ded7cf;
	color: #111;
}

.vcep-extra-quantity .vcep-extra-change:disabled {
	opacity: 0.35;
	cursor: not-allowed;
}

.vcep-extra-count {
	color: #222;
	font-size: 13px;
	font-weight: 700;
	line-height: 28px;
	text-align: center;
}

.woocommerce-cart .vcep-extras {
	margin-bottom: 30px;
}

@media (max-width: 680px) {
	#payment ul.payment_methods {
		grid-template-columns: 1fr;
	}

	#payment ul.payment_methods > li > label {
		min-height: 76px;
	}

	.vcep-product-image-wrap {
		flex-basis: 50px;
		width: 50px;
		height: 50px;
	}

	.vcep-extras {
		margin-top: 24px;
		padding-top: 22px;
	}

	.vcep-extras-grid {
		grid-template-columns: 1fr;
	}
}
