/* ==========================================
   نظام الأسعار المتعددة - CSS Styles
   ========================================== */
:root {
	--hakaya-primary: var(--custom-color1);
	--hakaya-primary-dark: var(--custom-color2);
	--hakaya-secondary: var(--custom-color3);
	--hakaya-secondary-dark: var(--custom-color4);
	--hakaya-ink: var(--custom-color5);
	--hakaya-paper: var(--custom-color6);
	--hakaya-white: var(--custom-color7);
}

.custom-prices-container .price-wrapper {
	font-weight: 600;
}

/* button.s-button-element.s-button-btn.s-button-solid.s-button-wide.s-button-primary.s-button-loader-after .s-button-text {
	color: var(--custom-color1) !important;
} */
.custom-prices-container {
	margin-top: 1.25rem;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	align-items: stretch;
	width: 100%;
	max-width: 640px;
	margin-inline: auto;
	padding-inline: 0.5rem;
	box-sizing: border-box;
}

.custom-prices-container > * {
	width: 100%;
	max-width: 560px;
	margin-inline: auto;
	box-sizing: border-box;
}

/* TEST2 layout: two columns (2x2) */
.custom-prices-container.custom-prices-test2-layout {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.75rem;
	max-width: 920px;
	align-items: stretch;
}

.custom-prices-container.custom-prices-test2-layout > * {
	width: 100%;
	max-width: none;
	margin: 0;
}

.custom-prices-container.custom-prices-test2-layout > .gram-info:first-child {
	width: 100%;
	justify-content: space-between;
	padding: 0.75rem 0.9rem;
	border-radius: 0.75rem;
	background: linear-gradient(135deg, var(--hakaya-secondary-dark) 0%, var(--hakaya-secondary) 100%);
}

.custom-prices-container.custom-prices-test2-layout > .gram-info:first-child .gram-value {
	min-width: auto;
}

.custom-prices-container .elegant-price-card {
	position: relative;
	padding: 1.125rem 1.25rem;
	border-radius: 0.75rem;
	overflow: hidden;
	transition:
		border-color 0.35s ease,
		box-shadow 0.35s ease,
		filter 0.35s ease;
	box-shadow: 0 4px 14px rgba(15, 63, 89, 0.08);
}

.custom-prices-container .elegant-price-card::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: linear-gradient(90deg, var(--hakaya-primary-dark), var(--hakaya-primary));
}

.custom-prices-container .elegant-price-card::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.45) 50%, transparent 65%);
	transform: translateX(-140%);
	pointer-events: none;
}

.custom-prices-container .elegant-price-card:hover {
	border-color: var(--hakaya-primary);
	box-shadow:
		0 10px 24px rgba(10, 45, 65, 0.14),
		0 0 0 1px rgba(199, 168, 107, 0.22);
	filter: saturate(1.06);
}

.custom-prices-container .elegant-price-card:hover::after {
	animation: hakaya-card-shine 0.85s ease;
}

@keyframes hakaya-card-shine {
	0% {
		transform: translateX(-140%);
	}
	100% {
		transform: translateX(140%);
	}
}

.custom-prices-container .elegant-price-card.visa-card {
	background: linear-gradient(145deg, var(--hakaya-white) 0%, var(--hakaya-paper) 100%);
	border: 1px solid rgba(199, 168, 107, 0.35);
}

.custom-prices-container .elegant-price-card.mada-card {
	background: linear-gradient(145deg, var(--hakaya-white) 0%, #f3f8fb 100%);
	border: 1px solid rgba(15, 63, 89, 0.16);
}

.custom-prices-container .elegant-price-card.bank-card {
	background: linear-gradient(135deg, var(--hakaya-secondary-dark) 0%, var(--hakaya-secondary) 100%);
	border: 1px solid rgba(199, 168, 107, 0.45);
}

.custom-prices-container .card-content {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.custom-prices-container .payment-label {
	display: flex;
	align-items: center;
	gap: 0.625rem;
	font-weight: 600;
	font-size: 0.875rem;
	color: var(--hakaya-secondary-dark);
}

.custom-prices-container .payment-icon-elegant {
	width: 90px;
	height: auto;
	object-fit: contain;
}

.custom-prices-container .price-value {
	font-size: 1.25rem;
	font-weight: 700;
	letter-spacing: -0.5px;
	color: var(--hakaya-primary-dark);
}

.custom-prices-container .elegant-price-card.bank-card .payment-label,
.custom-prices-container .elegant-price-card.bank-card .price-value {
	color: var(--hakaya-primary-dark);
}

.custom-prices-container .gram-info {
	background: linear-gradient(135deg, var(--hakaya-secondary-dark) 0%, var(--hakaya-secondary) 100%);
	padding: 0.75rem 1.25rem;
	border-radius: 0.625rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	border: 1px solid rgba(199, 168, 107, 0.55);
	box-shadow: 0 4px 12px rgba(10, 45, 65, 0.18);
}

.custom-prices-container > .gram-info:first-child {
	width: min(100%, 620px);
	padding: 0.95rem 1.25rem;
	border-radius: 0.9rem;
	background: linear-gradient(95deg, var(--hakaya-secondary-dark) 0%, #114e6d 55%, var(--hakaya-secondary) 100%);
	justify-content: center;
	gap: 0.75rem;
}

.custom-prices-container > .gram-info:first-child .gram-label {
	justify-content: center;
}

.custom-prices-container > .gram-info:first-child .gram-value {
	min-width: 120px;
	text-align: center;
	font-size: 1.05rem;
	padding: 0.25rem 0.7rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.12);
	border: 1px solid rgba(247, 236, 212, 0.35);
}

.custom-prices-container .gram-label {
	font-size: 0.8125rem;
	color: #f7ecd4;
	display: flex;
	align-items: center;
	gap: 0.375rem;
	font-weight: 600;
}

.custom-prices-container .gram-value {
	font-size: 1rem;
	font-weight: 600;
	color: #fff7e7;
}
.custom-prices-container .mada-img {
	object-position: right;
}

.custom-prices-container .elegant-price-card.installment-card {
	background: linear-gradient(145deg, var(--hakaya-white) 0%, #f0f7f4 100%);
	border: 1px solid rgba(0, 150, 100, 0.18);
}

.custom-prices-container .installment-logos {
	display: flex;
	align-items: center;
	gap: 0.35rem;
}

.custom-prices-container .installment-logo {
	width: 52px;
	height: auto;
	object-fit: contain;
}
/* except gram info from some of the products */
/* [p-id="1750061794"] .custom-prices-container .gram-info {
	display: none;
} */
/* except gram info from some of the products */

@media (max-width: 768px) {
	.custom-prices-container {
		max-width: 100%;
		margin-top: 1rem;
		padding-inline: 0.35rem;
	}

	.custom-prices-container > * {
		max-width: 100%;
	}

	.custom-prices-container .elegant-price-card {
		padding: 0.9rem 0.95rem;
		border-radius: 0.65rem;
	}

	.custom-prices-container .payment-icon-elegant {
		width: 74px;
	}

	.custom-prices-container .payment-label {
		font-size: 0.8rem;
		gap: 0.45rem;
	}

	.custom-prices-container .price-value {
		font-size: 1.05rem;
	}

	.custom-prices-container > .gram-info:first-child {
		width: 100%;
		padding: 0.85rem 0.95rem;
		gap: 0.5rem;
	}

	.custom-prices-container > .gram-info:first-child .gram-value {
		min-width: 100px;
		font-size: 0.95rem;
	}

	.custom-prices-container.custom-prices-test2-layout {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0.55rem;
		padding-inline: 0.25rem;
	}

	.custom-prices-container.custom-prices-test2-layout .elegant-price-card {
		padding: 0.75rem 0.7rem;
	}

	.custom-prices-container.custom-prices-test2-layout .card-content {
		flex-direction: column;
		align-items: flex-start;
		justify-content: center;
		gap: 0.45rem;
	}

	.custom-prices-container.custom-prices-test2-layout .payment-icon-elegant {
		width: 62px;
	}

	.custom-prices-container.custom-prices-test2-layout .payment-label {
		font-size: 0.74rem;
		gap: 0.35rem;
	}

	.custom-prices-container.custom-prices-test2-layout .price-value {
		font-size: 0.95rem;
	}

	.custom-prices-container.custom-prices-test2-layout > .gram-info:first-child {
		flex-direction: column;
		align-items: flex-start;
		justify-content: center;
		gap: 0.35rem;
		padding: 0.7rem;
	}
}