@font-face {
	font-family: "WSP Vazirmatn";
	src: url("fonts/vazirmatn-arabic.woff2") format("woff2");
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200F, U+FB50-FDFF, U+FE70-FEFF;
}

#wsp-dock {
	--wsp-yellow: #ffd300;
	--wsp-ink: #231f17;
	--wsp-muted: #5d5546;
	--wsp-paper: #fffefa;
	--wsp-rule: #eae1cb;
	--wsp-gold: #876000;
	--wsp-gap: 8px;
	box-sizing: border-box;
	position: fixed;
	z-index: 35;
	inset-inline: 0;
	inset-block-end: calc(var(--wsp-gap) + env(safe-area-inset-bottom, 0px) + var(--wsp-clearance, 0px));
	inline-size: auto;
	max-inline-size: none;
	margin: 0;
	background: var(--wsp-paper);
	color: var(--wsp-ink);
	font-family: var(--wsp-site-font, "WSP Vazirmatn", sans-serif);
	font-size: 14px;
	line-height: 1.5;
	box-shadow: 0 -6px 24px rgb(41 31 12 / 13%);
}

#wsp-dock.wsp-stacked {
	inset-block-end: calc(var(--wsp-gap) + max(env(safe-area-inset-bottom, 0px), var(--wsp-clearance, 0px)));
}

#wsp-dock [hidden],
#wsp-dock[hidden] {
	display: none !important;
}

#wsp-dock * {
	font-family: inherit;
}

#wsp-dock > :is(.wsp-hero, .wsp-reward) {
	box-sizing: border-box;
	max-inline-size: 1160px;
	margin-inline: auto;
	padding: 8px max(14px, env(safe-area-inset-right, 0px), env(safe-area-inset-left, 0px));
}

#wsp-dock p {
	margin: 0;
}

#wsp-dock a:focus-visible {
	outline: 2px solid var(--wsp-gold);
	outline-offset: 3px;
}

#wsp-dock ::selection {
	background: var(--wsp-yellow);
	color: var(--wsp-ink);
}

#wsp-dock.wsp-hero-view {
	--wsp-gap: 10px;
	inset-inline: max(8px, env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
	max-inline-size: 1160px;
	margin-inline: auto;
	border: 1px solid #45423a;
	border-radius: 18px;
	background: #232425;
	color: #fff;
	box-shadow: 0 8px 30px rgb(35 36 37 / 23%);
}

#wsp-dock > .wsp-hero {
	display: grid;
	gap: 7px;
	padding: 8px;
}

#wsp-dock .wsp-hero-title {
	display: flex;
	align-items: center;
	align-self: center;
	gap: 7px;
	min-inline-size: 0;
	margin: 0;
	padding-inline: 4px;
	color: #fff;
	font-size: 13px;
	font-weight: 800;
	line-height: 1.4;
	text-align: start;
}

#wsp-dock .wsp-hero-title::before {
	content: '';
	flex: 0 0 22px;
	block-size: 24px;
	background: url("flame.webp") center / contain no-repeat;
}

#wsp-dock .wsp-hero-title > span {
	display: -webkit-box;
	min-inline-size: 0;
	overflow: hidden;
	overflow-wrap: anywhere;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.wsp-products {
	display: grid;
	grid-auto-columns: minmax(0, 1fr);
	grid-auto-flow: column;
	gap: 8px;
	min-inline-size: 0;
}

#wsp-dock .wsp-product {
	box-sizing: border-box;
	display: grid;
	grid-template-columns: 52px minmax(0, 1fr) auto;
	align-items: center;
	gap: 8px;
	min-inline-size: 0;
	padding: 5px;
	border-radius: 11px;
	background: var(--wsp-paper);
	color: var(--wsp-ink);
	text-decoration: none;
}

#wsp-dock .wsp-product:focus-visible {
	outline-color: var(--wsp-yellow);
	outline-offset: 2px;
}

#wsp-dock .wsp-product-image {
	display: block;
	inline-size: 100%;
	block-size: auto;
	aspect-ratio: 1;
	max-inline-size: none;
	object-fit: contain;
	border-radius: 7px;
	background: #f5f1e8;
}

.wsp-product-info {
	display: grid;
	gap: 4px;
	min-inline-size: 0;
}

#wsp-dock .wsp-product-title {
	display: -webkit-box;
	overflow: hidden;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.35;
	overflow-wrap: anywhere;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

#wsp-dock .wsp-product-price {
	display: block;
	min-inline-size: 0;
	color: var(--wsp-ink);
	font-size: 14px;
	font-weight: 800;
	font-variant-numeric: tabular-nums;
	line-height: 1.3;
	overflow-wrap: anywhere;
}

#wsp-dock .wsp-product-price :is(span, bdi, small, ins, del):not(.screen-reader-text) {
	display: inline;
	position: static;
	float: none;
	max-inline-size: none;
	color: inherit;
	font-size: inherit;
	font-weight: inherit;
	line-height: inherit;
}

#wsp-dock .wsp-product-price del:not(.screen-reader-text) {
	margin-inline-end: 4px;
	color: var(--wsp-muted);
	font-size: 0.85em;
	font-weight: 500;
}

#wsp-dock .wsp-product-price small:not(.screen-reader-text) {
	font-size: 0.8em;
	font-weight: 500;
}

#wsp-dock .wsp-product-price ins:not(.screen-reader-text) {
	background: transparent;
	text-decoration: none;
}

.wsp-chevron {
	display: inline-block;
	inline-size: 7px;
	block-size: 7px;
	border-top: 1.5px solid currentColor;
	border-right: 1.5px solid currentColor;
	transform: rotate(45deg);
}

.wsp-chevron:dir(rtl) {
	transform: rotate(-135deg);
}

#wsp-dock .wsp-product-action {
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	min-block-size: 38px;
	padding: 5px 8px;
	border-radius: 7px;
	color: var(--wsp-ink);
	background: var(--wsp-yellow);
	font-size: 11px;
	font-weight: 800;
	line-height: 1.2;
	transition: background-color 180ms ease-out;
}

#wsp-dock .wsp-product-action .wsp-chevron {
	flex: none;
	inline-size: 5px;
	block-size: 5px;
}

#wsp-dock .wsp-product:is(:hover, :focus-visible) .wsp-product-action {
	background: #f4c100;
}

.wsp-reward {
	display: grid;
	grid-template-columns: 44px minmax(0, 1fr) auto 44px;
	align-items: center;
	gap: 8px 10px;
}

.wsp-reward-icon {
	inline-size: 44px;
	block-size: 44px;
	background: url("discount-ticket-yellow.webp") center / contain no-repeat;
}

.wsp-reward-icon-end {
	transform: rotate(9deg);
}

.wsp-reward-copy {
	min-inline-size: 0;
}

#wsp-dock .wsp-reward-heading {
	font-size: 14px;
	font-weight: 750;
}

#wsp-dock .wsp-reward-message {
	color: var(--wsp-muted);
	font-size: 13px;
}

#wsp-dock .wsp-reward-compact {
	display: none;
	font-weight: 700;
}

#wsp-dock .wsp-cart-link {
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	min-block-size: 44px;
	padding: 6px 14px;
	border-radius: 10px;
	background: var(--wsp-yellow);
	color: var(--wsp-ink);
	font-size: 13px;
	font-weight: 750;
	text-decoration: none;
	transition: background-color 160ms ease-out;
}

#wsp-dock .wsp-cart-link:hover {
	background: #f4c100;
}

.wsp-progress {
	grid-column: 1 / -1;
	block-size: 6px;
	overflow: hidden;
	border-radius: 6px;
	background: var(--wsp-rule);
}

.wsp-progress-fill {
	display: block;
	block-size: 100%;
	overflow: hidden;
	border-radius: inherit;
	background: linear-gradient(to right, #e8a900, #ffd93b);
	transform: scaleX(var(--wsp-value, 0));
	transform-origin: left;
	transition: transform 380ms cubic-bezier(0.16, 1, 0.3, 1);
}

.wsp-progress-fill:dir(rtl) {
	background: linear-gradient(to left, #e8a900, #ffd93b);
	transform-origin: right;
}

.wsp-progress-updated .wsp-progress-fill::after {
	content: '';
	display: block;
	block-size: 100%;
	background: linear-gradient(105deg, transparent 30%, rgb(255 255 255 / 80%) 50%, transparent 70%);
	animation: wsp-progress-glint 520ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.wsp-progress-updated .wsp-progress-fill:dir(rtl)::after {
	animation-direction: reverse;
}

@keyframes wsp-progress-glint {
	from { transform: translateX(-105%); }
	to { transform: translateX(105%); }
}

#wsp-spacer {
	block-size: var(--wsp-spacer, 0px);
}

.wsp-screen-reader {
	position: absolute;
	inline-size: 1px;
	block-size: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

#wsp-dock.wsp-compact .wsp-product + .wsp-product,
#wsp-dock.wsp-compact .wsp-cart-link,
#wsp-dock.wsp-compact .wsp-reward-icon-end,
#wsp-dock.wsp-compact :is(.wsp-reward-heading, .wsp-reward-message) {
	display: none;
}

#wsp-dock.wsp-compact .wsp-reward-compact {
	display: block;
	color: #fff;
	font-size: clamp(11px, 3.1vw, 13px);
	line-height: 1.45;
	overflow-wrap: anywhere;
}

#wsp-dock.wsp-compact .wsp-reward-has-applied .wsp-reward-heading {
	display: block;
	margin-block-end: 2px;
	font-size: 13px;
	line-height: 1.4;
	overflow-wrap: anywhere;
}

#wsp-dock.wsp-compact.wsp-reward-view {
	--wsp-gap: 5px;
	inset-inline: max(8px, env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
	border-radius: 14px;
	background: #232425;
	color: #fff;
	box-shadow: 0 4px 16px rgb(24 24 25 / 22%);
}

#wsp-dock.wsp-compact .wsp-reward {
	grid-template-columns: 24px minmax(0, 1fr);
	gap: 5px 10px;
	padding: 6px 14px;
}

#wsp-dock.wsp-compact .wsp-reward-icon {
	inline-size: 24px;
	block-size: 24px;
}

#wsp-dock.wsp-compact .wsp-progress {
	background: #615f5a;
}

#wsp-dock:not(.wsp-compact) > .wsp-hero {
	grid-template-columns: fit-content(25%) minmax(0, 1fr);
	gap: 12px;
	padding: 10px;
}

#wsp-dock:not(.wsp-compact) .wsp-hero-title {
	flex-direction: column;
	gap: 4px;
	padding-inline: 8px;
	font-size: 15px;
	text-align: center;
}

#wsp-dock:not(.wsp-compact) .wsp-hero-title::before {
	flex: none;
	inline-size: 29px;
	block-size: 31px;
}

#wsp-dock:not(.wsp-compact) .wsp-product {
	grid-template-columns: 64px minmax(0, 1fr) auto;
	gap: 12px;
	padding: 6px;
}

#wsp-dock:not(.wsp-compact) .wsp-product-title,
#wsp-dock:not(.wsp-compact) .wsp-product-price {
	font-size: 15px;
}

#wsp-dock:not(.wsp-compact) .wsp-product-action {
	gap: 8px;
	min-block-size: 44px;
	padding-inline: 13px;
	font-size: 13px;
}

@media (min-width: 1024px) {
	#wsp-dock:not(.wsp-stacked):not(.wsp-hero-view) {
		inset-block-end: 0;
		padding-block-end: env(safe-area-inset-bottom, 0px);
	}

	#wsp-dock > .wsp-reward {
		padding: 9px clamp(22px, 4vw, 70px);
	}

	#wsp-dock.wsp-hero-view:has(.wsp-product:only-child) {
		max-inline-size: 730px;
	}
}

.wsp-reward-section {
	box-sizing: border-box;
	display: grid;
	gap: 5px;
	margin-block: 8px 14px;
	padding: 12px 14px;
	border: 1px solid #eae1cb;
	border-inline-start: 4px solid #ffd300;
	border-radius: 10px;
	background: #fffefa;
	color: #231f17;
	font-family: var(--wsp-site-font, "WSP Vazirmatn", sans-serif);
	font-size: 14px;
	line-height: 1.55;
	overflow-wrap: anywhere;
	text-align: start;
}

.wc-block-components-totals-wrapper.slot-wrapper .wsp-reward-section {
	margin-inline: 16px;
	padding: 12px 14px;
}

section.wsp-reward-section :is(.wsp-reward-section-title, p) {
	margin: 0;
	color: inherit;
	font-family: inherit;
	line-height: inherit;
	text-align: start;
}

section.wsp-reward-section .wsp-reward-section-title {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 0.95em;
	font-weight: 800;
}

section.wsp-reward-section .wsp-reward-section-title::before {
	content: '';
	flex: 0 0 32px;
	block-size: 27px;
	background: url("discount-ticket-yellow.webp") center / contain no-repeat;
}

section.wsp-reward-section .wsp-reward-section-applied {
	color: #684b00;
	font-weight: 750;
}

section.wsp-reward-section .wsp-reward-section-message {
	color: #5d5546;
	font-size: 0.95em;
}

.wsp-reward-section-progress {
	block-size: 6px;
	overflow: hidden;
	margin-block-start: 3px;
	border-radius: 4px;
	background: #eae1cb;
}

.wsp-reward-section-progress > span {
	display: block;
	block-size: 100%;
	border-radius: inherit;
	background: #876000;
}

.woocommerce-checkout-review-order-table .wsp-reward-section-row > td {
	padding-inline: 0;
	text-align: start;
}

@media (prefers-reduced-motion: reduce) {
	#wsp-dock .wsp-progress-fill,
	#wsp-dock .wsp-product-action,
	#wsp-dock .wsp-cart-link {
		transition: none;
	}

	#wsp-dock .wsp-progress-fill::after {
		animation: none;
	}
}
