@font-face {
	font-family: "TZ IranSans";
	src: url("../fonts/IRANSansXFaNum-Regular.ttf") format("truetype");
	font-style: normal;
	font-weight: 400;
	font-display: swap;
}

@font-face {
	font-family: "TZ IranSans";
	src: url("../fonts/IRANSansXFaNum-DemiBold.woff2") format("woff2");
	font-style: normal;
	font-weight: 600;
	font-display: swap;
}

.tzpcs-popup-offers {
	display: none !important;
}

@media (max-width: 767px) {
	body.tzpcs-preview-active #tanzib-cart-popup .tanzib-cart-popup-box {
		max-height: calc(100vh - 20px) !important;
		max-height: calc(100dvh - 20px) !important;
		padding-top: 40px !important;
		padding-bottom: max(18px, env(safe-area-inset-bottom, 0px)) !important;
		overflow-x: hidden !important;
		overflow-y: auto !important;
		overscroll-behavior: contain;
	}

	body.tzpcs-preview-active #tanzib-cart-popup .tanzib-cart-popup-title {
		margin-bottom: 8px !important;
		color: #273746 !important;
		font-family: "TZ IranSans", IranSans, IRANSans, sans-serif !important;
		font-size: 13.5px !important;
		font-weight: 600 !important;
		line-height: 1.6 !important;
	}

	body.tzpcs-preview-active #tanzib-cart-popup .tanzib-cart-popup-incentive.tzpcs-incentive--compact {
		min-height: 0 !important;
		margin: 0 0 10px !important;
		padding: 0 !important;
		overflow: hidden;
		border-radius: 12px !important;
		font-family: "TZ IranSans", IranSans, IRANSans, sans-serif !important;
		text-align: right !important;
	}

	.tzpcs-incentive-details {
		margin: 0;
		padding: 0;
	}

	.tzpcs-incentive-details__summary {
		display: flex;
		min-height: 44px;
		align-items: center;
		gap: 8px;
		padding: 8px 12px 8px 34px;
		color: #26313b;
		font-family: inherit;
		font-size: 12.5px;
		font-weight: 600;
		line-height: 1.55;
		list-style: none;
		text-align: right;
		cursor: pointer;
		position: relative;
	}

	.tzpcs-incentive-details__summary::-webkit-details-marker {
		display: none;
	}

	.tzpcs-incentive-details__summary::before {
		width: 7px;
		height: 7px;
		flex: 0 0 7px;
		border-radius: 50%;
		background: #ff7a00;
		content: "";
	}

	.tanzib-cart-popup-incentive[data-tone="progress"] .tzpcs-incentive-details__summary::before {
		background: #2563eb;
	}

	.tanzib-cart-popup-incentive[data-tone="active"] .tzpcs-incentive-details__summary::before {
		background: #168a4a;
	}

	.tzpcs-incentive-details__summary::after {
		position: absolute;
		left: 12px;
		color: #5e6b77;
		font-size: 15px;
		font-weight: 600;
		line-height: 1;
		content: "⌄";
		transform: rotate(0deg);
		transition: transform 160ms ease;
	}

	.tzpcs-incentive-details[open] > .tzpcs-incentive-details__summary::after {
		transform: rotate(180deg);
	}

	.tzpcs-incentive-details__summary:focus-visible {
		outline: 2px solid #003666;
		outline-offset: -2px;
	}

	.tzpcs-incentive-details__label {
		min-width: 0;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	.tzpcs-incentive-details__content {
		padding: 8px 12px 10px;
		border-top: 1px solid rgba(0, 54, 102, 0.08);
		text-align: center;
	}

	.tzpcs-incentive-details__content > .tanzib-cart-popup-incentive__main,
	.tanzib-cart-popup-incentive[data-tone="active"] .tzpcs-incentive-details__content > .tanzib-cart-popup-incentive__kicker {
		display: none !important;
	}

	.tzpcs-incentive-details__content .tanzib-cart-popup-incentive__kicker {
		margin-bottom: 2px !important;
		font-size: 11.5px !important;
		line-height: 1.65 !important;
	}

	.tzpcs-incentive-details__content .tanzib-cart-popup-incentive__sub {
		margin-top: 0 !important;
		font-size: 10.5px !important;
		line-height: 1.65 !important;
	}

	.tzpcs-incentive-details__content .tanzib-cart-popup-incentive__track {
		height: 4px !important;
		margin-top: 8px !important;
	}

	.tzpcs-incentive-details__content .tanzib-cart-popup-incentive__code-row {
		margin-top: 8px !important;
	}

	.tzpcs-incentive-details__content .tanzib-cart-popup-incentive__code {
		min-height: 36px !important;
		padding: 6px 11px !important;
		font-size: 12px !important;
	}

	.tzpcs-incentive-details__content .tanzib-cart-popup-incentive__copy-result {
		min-height: 15px !important;
		margin-top: 3px !important;
	}

	body.tzpcs-preview-active #tanzib-cart-popup .tzpcs-popup-offers {
		display: block !important;
		box-sizing: border-box;
		width: 100%;
		min-width: 0;
		margin: 0 0 10px;
		padding: 9px 0 1px;
		border-top: 1px solid #edf0f2;
		color: #26313b;
		direction: rtl;
		font-family: "TZ IranSans", IranSans, IRANSans, sans-serif;
		text-align: right;
	}

	.tzpcs-popup-offers *,
	.tzpcs-popup-offers *::before,
	.tzpcs-popup-offers *::after {
		box-sizing: border-box;
	}

	.tzpcs-popup-offers__head {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 8px;
		margin: 0 1px 9px;
	}

	.tzpcs-popup-offers__head h2 {
		min-width: 0;
		margin: 0 !important;
		padding: 0 !important;
		color: #003666 !important;
		font-family: inherit !important;
		font-size: 12.5px !important;
		font-weight: 600 !important;
		letter-spacing: -0.1px;
		line-height: 1.65 !important;
		text-align: right !important;
	}

	.tzpcs-popup-offers__head > span {
		flex: 0 0 auto;
		color: #5e6b77;
		font-size: 11px;
		font-weight: 600;
		white-space: nowrap;
	}

	.tzpcs-popup-offers__track {
		display: flex;
		width: 100%;
		min-width: 0;
		gap: 10px;
		margin: 0 !important;
		padding: 1px 1px 7px;
		overflow-x: auto;
		overflow-y: hidden;
		direction: rtl;
		scroll-padding-inline: 1px;
		scroll-snap-type: x proximity;
		scrollbar-width: none;
		-webkit-overflow-scrolling: touch;
		overscroll-behavior-inline: contain;
	}

	.tzpcs-popup-offers__track::-webkit-scrollbar {
		display: none;
		width: 0;
		height: 0;
	}

	.tzpcs-card {
		display: flex;
		position: relative;
		width: 148px;
		min-width: 148px;
		max-width: 148px;
		min-height: 226px;
		flex: 0 0 148px;
		flex-direction: column;
		align-items: stretch;
		padding: 8px;
		overflow: hidden;
		border: 1px solid #e5e9ed;
		border-radius: 13px;
		background: #fff;
		box-shadow: 0 3px 12px rgba(0, 54, 102, 0.055);
		scroll-snap-align: start;
	}

	.tzpcs-card__image {
		display: flex !important;
		position: relative;
		width: 84px;
		height: 84px;
		min-height: 84px;
		align-items: center;
		justify-content: center;
		align-self: center;
		margin: 0 auto 6px !important;
		padding: 0 !important;
		overflow: hidden;
		border-radius: 10px;
		background: #f7f8f9;
		text-decoration: none !important;
	}

	.tzpcs-card__image img {
		display: block !important;
		width: 100% !important;
		height: 100% !important;
		margin: 0 !important;
		object-fit: contain;
		object-position: center;
	}

	.tzpcs-card__image-note {
		position: absolute;
		right: 4px;
		bottom: 4px;
		left: 4px;
		padding: 2px 4px;
		overflow: hidden;
		border-radius: 6px;
		background: rgba(0, 54, 102, 0.88);
		color: #fff;
		font-family: inherit;
		font-size: 8.5px;
		font-weight: 600;
		line-height: 1.45;
		text-align: center;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	.tzpcs-card__title {
		display: -webkit-box !important;
		min-height: 38px;
		margin: 0 1px 3px !important;
		overflow: hidden;
		color: #26313b !important;
		font-family: inherit !important;
		font-size: 12.5px !important;
		font-weight: 600 !important;
		line-height: 1.65 !important;
		text-align: right !important;
		text-decoration: none !important;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 2;
	}

	.tzpcs-card__title:focus-visible {
		border-radius: 4px;
		outline: 2px solid #003666;
		outline-offset: 2px;
	}

	.tzpcs-card__variant {
		display: -webkit-box;
		min-height: 19px;
		margin: 0 1px 3px;
		overflow: hidden;
		color: #5c6976;
		font-size: 11.5px;
		font-weight: 400;
		line-height: 1.6;
		text-decoration: none !important;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 1;
	}

	.tzpcs-card__variant:focus-visible {
		border-radius: 4px;
		outline: 2px solid #003666;
		outline-offset: 1px;
	}

	.tzpcs-card__price {
		display: flex;
		min-height: 24px;
		align-items: center;
		margin: auto 1px 6px;
		overflow: hidden;
		color: #003666;
		font-size: 12.5px;
		font-weight: 600;
		line-height: 1.4;
		text-align: right;
		white-space: nowrap;
	}

	.tzpcs-card__price-prefix {
		margin-left: 3px;
		color: #66717c;
		font-size: 10.5px;
		font-weight: 400;
	}

	.tzpcs-card__price .woocommerce-Price-amount,
	.tzpcs-card__price bdi {
		font-size: inherit !important;
		line-height: inherit !important;
		white-space: nowrap;
	}

	.tzpcs-card__discount-badge {
		position: absolute;
		top: 7px;
		left: 7px;
		z-index: 1;
		display: inline-flex;
		min-height: 22px;
		align-items: center;
		justify-content: center;
		padding: 3px 6px;
		border-radius: 999px;
		background: #ff7a00;
		box-shadow: 0 2px 7px rgba(255, 122, 0, 0.2);
		color: #fff;
		font-size: 9.5px;
		font-weight: 600;
		line-height: 1.2;
		white-space: nowrap;
	}

	.tzpcs-card__price .screen-reader-text {
		position: absolute !important;
		width: 1px !important;
		height: 1px !important;
		margin: -1px !important;
		overflow: hidden !important;
		clip: rect(0, 0, 0, 0) !important;
	}

	.tzpcs-card__action {
		display: inline-flex !important;
		width: 100% !important;
		min-width: 0 !important;
		min-height: 44px !important;
		align-items: center;
		justify-content: center;
		gap: 4px;
		margin: 0 !important;
		padding: 8px 6px !important;
		border: 1px solid #ff7a00 !important;
		border-radius: 10px !important;
		background: #ff7a00 !important;
		box-shadow: none !important;
		color: #fff !important;
		font-family: inherit !important;
		font-size: 12px !important;
		font-weight: 600 !important;
		line-height: 1.35 !important;
		text-align: center;
		text-decoration: none !important;
		cursor: pointer;
	}

	.tzpcs-card__choose {
		border-color: #003666 !important;
		background: #fff !important;
		color: #003666 !important;
	}

	.tzpcs-card__action.is-added {
		border-color: #003666 !important;
		background: #003666 !important;
		color: #fff !important;
	}

	.tzpcs-card__action:focus-visible {
		outline: 2px solid #003666 !important;
		outline-offset: 2px;
	}

	.tzpcs-card__action[disabled] {
		cursor: wait;
		opacity: 0.72;
	}

	.tzpcs-card__spinner {
		width: 13px;
		height: 13px;
		flex: 0 0 13px;
		border: 2px solid rgba(255, 255, 255, 0.45);
		border-top-color: #fff;
		border-radius: 50%;
		animation: tzpcs-spin 0.7s linear infinite;
	}

	.tzpcs-popup-offers__status {
		min-height: 0;
		margin: 1px 2px 0 !important;
		color: #176b42;
		font-size: 10.5px;
		font-weight: 700;
		line-height: 1.6;
		text-align: right;
	}

	.tzpcs-popup-offers__status:empty {
		display: none;
	}

	.tzpcs-popup-live-status {
		display: block;
		width: 100%;
		margin: 0 0 6px !important;
		padding: 2px 4px;
		border: 0;
		background: transparent;
		color: #176b42;
		font-family: "TZ IranSans", IranSans, IRANSans, sans-serif;
		font-size: 10.5px;
		font-weight: 600;
		line-height: 1.6;
		text-align: center;
	}

	.tzpcs-popup-live-status[hidden],
	.tzpcs-popup-live-status:empty {
		display: none !important;
	}

	body.tzpcs-preview-active #tanzib-cart-popup .tanzib-cart-popup-buttons {
		flex-direction: row !important;
		gap: 8px !important;
	}

	body.tzpcs-preview-active #tanzib-cart-popup .tanzib-cart-popup-buttons > * {
		min-width: 0 !important;
		min-height: 46px !important;
		flex: 1 1 0 !important;
		padding: 8px !important;
		font-size: 13px !important;
		line-height: 1.35 !important;
	}

	body.tzpcs-preview-active #tanzib-cart-popup .tanzib-cart-popup-continue-btn {
		border-color: #f1f1f1 !important;
		background: #f1f1f1 !important;
		color: #26313b !important;
		font-weight: 500 !important;
	}

	body.tzpcs-preview-active #tanzib-cart-popup .tanzib-cart-popup-cart-btn {
		border-color: #003666 !important;
		background: #003666 !important;
		color: #fff !important;
		font-weight: 600 !important;
	}

	body.tzpcs-preview-active #tanzib-cart-popup .tanzib-cart-popup-cart-btn strong {
		color: #fff !important;
		font-weight: inherit !important;
	}
}

@media (max-width: 767px) {
	.tzpcs-popup-offers--count-1 .tzpcs-popup-offers__head > span {
		display: none;
	}
}

@media (min-width: 370px) and (max-width: 767px) {
	.tzpcs-popup-offers--count-2 .tzpcs-popup-offers__head > span {
		display: none;
	}
}

@media (max-width: 350px) {
	.tzpcs-card {
		width: 142px;
		min-width: 142px;
		max-width: 142px;
		flex-basis: 142px;
	}
}

@media (max-width: 767px) and (max-height: 650px) {
	body.tzpcs-preview-active #tanzib-cart-popup .tanzib-cart-popup-title {
		margin-bottom: 8px !important;
	}

	body.tzpcs-preview-active #tanzib-cart-popup .tanzib-cart-popup-incentive {
		margin-bottom: 8px !important;
		padding: 0 !important;
	}

	body.tzpcs-preview-active #tanzib-cart-popup .tzpcs-popup-offers {
		margin-bottom: 8px;
		padding-top: 7px;
	}

	.tzpcs-popup-offers__head {
		margin-bottom: 6px;
	}

	.tzpcs-card {
		min-height: 205px;
		padding: 7px;
	}

	.tzpcs-card__image {
		width: 60px;
		height: 60px;
		min-height: 60px;
		margin-bottom: 4px !important;
	}

	.tzpcs-card__title {
		min-height: 34px;
		font-size: 12px !important;
		line-height: 1.55 !important;
	}

	.tzpcs-card__variant {
		min-height: 17px;
		font-size: 11px;
		line-height: 1.5;
	}

	.tzpcs-card__price {
		min-height: 24px;
		margin-bottom: 4px;
		font-size: 11.5px;
	}

	body.tzpcs-preview-active #tanzib-cart-popup .tanzib-cart-popup-buttons {
		flex-direction: row !important;
		gap: 8px !important;
	}

	body.tzpcs-preview-active #tanzib-cart-popup .tanzib-cart-popup-buttons > * {
		min-width: 0 !important;
		min-height: 50px !important;
		flex: 1 1 0 !important;
		padding: 8px !important;
		font-size: 13px !important;
		line-height: 1.45 !important;
	}
}

@keyframes tzpcs-spin {
	to {
		transform: rotate(360deg);
	}
}

@media (prefers-reduced-motion: reduce) {
	.tzpcs-card__spinner,
	.tzpcs-incentive-details__summary::after {
		animation: none;
		transition: none;
	}
}
