/**
 * کارت خرید دسکتاپ محصول کد سنتر.
 * فقط هنگام استفاده از ویجت بارگذاری می‌شود.
 */
.codecenter-desktop-product-card {
	box-sizing: border-box;
	position: relative;
	width: 410px;
	max-width: 100%;
	margin: 0 auto;
	padding: 22px 18px 18px;
	border: 1px solid #ececec;
	border-radius: 26px;
	background: #f5f5f5;
	box-shadow: none;
	font-family: inherit;
	isolation: isolate;
}

.codecenter-desktop-product-card *,
.codecenter-desktop-product-card *::before,
.codecenter-desktop-product-card *::after {
	box-sizing: border-box;
}

.codecenter-desktop-product-card__inner {
	display: grid;
	gap: 14px;
}

.codecenter-desktop-product-card__feature {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
}

.codecenter-desktop-product-card__feature[hidden] {
	display: none !important;
}

.codecenter-desktop-product-card__feature.is-icon-after {
	flex-direction: row;
}

.codecenter-desktop-product-card__feature.is-icon-before {
	flex-direction: row-reverse;
}

.codecenter-desktop-product-card__feature-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 34px;
	height: 34px;
	border-radius: 11px;
	line-height: 0;
}

.codecenter-desktop-product-card__feature-icon i {
	font-size: 16px;
	line-height: 1;
}

.codecenter-desktop-product-card__feature-icon svg {
	width: 16px;
	height: 16px;
	fill: currentColor;
}

.codecenter-desktop-product-card__feature-text {
	display: block;
	min-width: 0;
	color: #18181b;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.8;
	text-align: right;
}

.codecenter-desktop-product-card__feature--shipping {
	padding-bottom: 16px;
	border-bottom: 1px solid #e6e6e6;
}

.codecenter-desktop-product-card__feature--shipping .codecenter-desktop-product-card__feature-icon,
.codecenter-desktop-product-card__feature--stock .codecenter-desktop-product-card__feature-icon {
	color: #fff;
	background: #ff0f64;
}

.codecenter-desktop-product-card__feature--stock {
	padding-top: 2px;
	padding-bottom: 12px;
	border-bottom: 1px solid #ececec;
}

.codecenter-desktop-product-card__feature--stock .codecenter-desktop-product-card__feature-text {
	font-size: 15px;
}

.codecenter-desktop-product-card__feature--stock.is-out-of-stock .codecenter-desktop-product-card__feature-text {
	color: #b42318;
}

.codecenter-desktop-product-card__feature--update {
	justify-content: flex-start;
	gap: 8px;
	padding: 2px 0 0;
}

.codecenter-desktop-product-card__feature--update .codecenter-desktop-product-card__feature-icon {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	color: #3cbf4a;
	background: currentColor;
}

.codecenter-desktop-product-card__feature--update .codecenter-desktop-product-card__feature-icon i,
.codecenter-desktop-product-card__feature--update .codecenter-desktop-product-card__feature-icon svg {
	display: none;
}

.codecenter-desktop-product-card__feature--update .codecenter-desktop-product-card__feature-text {
	color: #51545b;
	font-size: 13px;
	font-weight: 600;
}

.codecenter-desktop-product-card__price-wrap {
	display: grid;
	gap: 5px;
	padding: 2px 0 4px;
	border: 0;
	background: transparent;
	text-align: right;
}

.codecenter-desktop-product-card__price-label {
	color: #7a7a7a;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.5;
}

.codecenter-desktop-product-card__price {
	color: #111827;
	font-size: 21px;
	font-weight: 900;
	line-height: 1.7;
}

.codecenter-desktop-product-card__price p,
.codecenter-desktop-product-card__price .price {
	margin: 0;
}

.codecenter-desktop-product-card__price .woocommerce-Price-amount,
.codecenter-desktop-product-card__price .woocommerce-Price-currencySymbol,
.codecenter-desktop-product-card__price bdi,
.codecenter-desktop-product-card__price ins {
	color: inherit;
	font: inherit;
	text-decoration: none;
}

.codecenter-desktop-product-card__price del {
	display: block;
	margin: 0 0 4px;
	color: #9ca3af;
	font-size: .72em;
	font-weight: 700;
	line-height: 1.4;
	opacity: 1;
}

.codecenter-desktop-product-card__price ins {
	display: block;
}

.codecenter-desktop-product-card__action {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 10px;
	width: 100%;
	margin: 4px 0 0;
}

.codecenter-desktop-product-card__quantity {
	display: grid;
	grid-template-columns: 28px minmax(30px, 1fr) 28px;
	align-items: center;
	flex: 0 0 116px;
	width: 116px;
	height: 42px;
	padding: 6px;
	border: 1px solid #e5e7eb;
	border-radius: 14px;
	background: #fff;
	overflow: hidden;
}

.codecenter-desktop-product-card__quantity-button {
	appearance: none;
	-webkit-appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 8px;
	background: #f3f4f6;
	color: #475467;
	font-family: inherit;
	font-size: 18px;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
	transition: background-color .18s ease, color .18s ease, opacity .18s ease;
}

.codecenter-desktop-product-card__quantity-button:hover:not(:disabled),
.codecenter-desktop-product-card__quantity-button:focus-visible:not(:disabled) {
	background: #e5e7eb;
}

.codecenter-desktop-product-card__quantity-button:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: -2px;
}

.codecenter-desktop-product-card__quantity-button:disabled {
	color: #c7cbd1;
	background: #f8fafc;
	cursor: not-allowed;
	opacity: .88;
}

.codecenter-desktop-product-card__quantity-input {
	appearance: textfield;
	-moz-appearance: textfield;
	width: 100%;
	height: 100%;
	min-width: 0;
	margin: 0;
	padding: 0 4px;
	border: 0 !important;
	outline: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	color: #111827;
	font-family: inherit;
	font-size: 16px;
	font-weight: 700;
	line-height: 1;
	text-align: center;
}

.codecenter-desktop-product-card__quantity-input::-webkit-outer-spin-button,
.codecenter-desktop-product-card__quantity-input::-webkit-inner-spin-button {
	margin: 0;
	-webkit-appearance: none;
}

.codecenter-desktop-product-card__button {
	appearance: none;
	-webkit-appearance: none;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	gap: 8px;
	flex: 1 1 auto;
	min-width: 0;
	min-height: 42px;
	margin: 0 !important;
	padding: 10px 18px;
	border: 0;
	border-radius: 14px;
	background: #ff0f64;
	color: #fff;
	font-family: inherit;
	font-size: 15px;
	font-weight: 800;
	line-height: 1.45;
	text-align: center;
	text-decoration: none !important;
	white-space: nowrap;
	box-shadow: 0 12px 24px -18px rgba(255, 15, 100, .55);
	cursor: pointer;
	transition: transform .18s ease, background-color .2s ease, color .2s ease, box-shadow .2s ease;
}

.codecenter-desktop-product-card__button:hover,
.codecenter-desktop-product-card__button:focus-visible {
	background: #e10058;
	color: #fff;
	text-decoration: none;
	transform: translateY(-1px);
}

.codecenter-desktop-product-card__button:active {
	transform: translateY(0);
}

.codecenter-desktop-product-card__button:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}

.codecenter-desktop-product-card__button:disabled,
.codecenter-desktop-product-card__button[aria-disabled="true"] {
	cursor: not-allowed;
	opacity: .56;
	transform: none;
}

.codecenter-desktop-product-card__button-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	color: inherit;
	line-height: 0;
}

.codecenter-desktop-product-card__button-icon i {
	font-size: 16px;
	line-height: 1;
}

.codecenter-desktop-product-card__button-icon svg {
	width: 16px;
	height: 16px;
	fill: currentColor;
}

.codecenter-desktop-product-card__notice {
	padding: 18px;
	border: 1px dashed #d0d5dd;
	border-radius: 14px;
	background: #f9fafb;
	color: #475467;
	font-size: 14px;
	line-height: 1.8;
	text-align: center;
}

@media (max-width: 1024px) {
	.codecenter-desktop-product-card.is-desktop-only {
		display: none !important;
	}
}

@media (max-width: 560px) {
	.codecenter-desktop-product-card {
		width: 100%;
		padding: 20px 16px 16px;
		border-radius: 22px;
	}

	.codecenter-desktop-product-card__action {
		flex-direction: column-reverse;
		align-items: stretch;
	}

	.codecenter-desktop-product-card__quantity,
	.codecenter-desktop-product-card__button {
		width: 100%;
		flex-basis: auto;
	}
}
