/* Three Step Quick Checkout — step checkout (2–3), thank-you (4) and the
   shared step bar. Implements the Claude Design handoff
   "مسیر خرید موبایل تیبوکا" (plugins/design/tboka-redesign). Mobile-first;
   wider screens get the same 390–560px column, centred. */

/* Vazirmatn, bundled with the plugin (no Google Fonts dependency). */
@font-face { font-family: "TSQC Vazirmatn"; src: url("../fonts/Vazirmatn-Regular.woff2") format("woff2"); font-weight: 300 400; font-display: swap; }
@font-face { font-family: "TSQC Vazirmatn"; src: url("../fonts/Vazirmatn-Medium.woff2") format("woff2"); font-weight: 500 600; font-display: swap; }
@font-face { font-family: "TSQC Vazirmatn"; src: url("../fonts/Vazirmatn-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "TSQC Vazirmatn"; src: url("../fonts/Vazirmatn-ExtraBold.woff2") format("woff2"); font-weight: 800 900; font-display: swap; }

/* Tokens live on :root so every piece the plugin prints gets them, even
   when a page builder renders it outside .tsqc-co. */
:root {
	--tk-font: "TSQC Vazirmatn", Vazirmatn, system-ui, sans-serif;
	--tk-primary: #1f6fa9;
	--tk-primary-700: #17578a;
	--tk-accent: #b4185f;
	--tk-accent-2: #6b2a8c;
	--tk-success: #0f9d76;
	--tk-success-ink: #0f7a5c;
	--tk-success-bg: #e8f6f1;
	--tk-error: #d92d20;
	--tk-error-ink: #b42318;
	--tk-error-bg: #fef3f2;
	--tk-warning: #b46a10;
	--tk-text: #101828;
	--tk-text-2: #344054;
	--tk-text-3: #475467;
	--tk-muted: #667085;
	--tk-faint: #98a2b3;
	--tk-border: #e6ebf1;
	--tk-border-2: #eef1f5;
	--tk-border-input: #d0d8e2;
	--tk-border-ctl: #dbe3ec;
	--tk-bg: #f4f6f9;
	--tk-bg-2: #f7f9fc;
	--tk-blue-50: #eef5fb;
	--tk-blue-sel: #f5f9fd;
	--tk-ink: #0e2233;
	--tk-sh-bar: 0 -8px 20px -14px rgba(16, 24, 40, .35);
}

.tsqc-co {
	max-width: 560px;
	margin: 0 auto;
	padding: 0 0 24px;
	color: var(--tk-text);
	direction: rtl;
	text-align: right;
	font-family: var(--tk-font);
	font-size: 14px;
	line-height: 1.9;
}

.tsqc-co *,
.tsqc-co *::before,
.tsqc-co *::after {
	box-sizing: border-box;
}

.tsqc-co input,
.tsqc-co select,
.tsqc-co textarea,
.tsqc-co button,
.tsqc-review,
.tsqc-delivery,
.tsqc-pay-trust {
	font-family: var(--tk-font) !important;
}

.tsqc-co [hidden] {
	display: none !important;
}

.tsqc-co a {
	color: var(--tk-primary);
	text-decoration: none;
}

@media (max-width: 767px) {
	body.woocommerce-checkout,
	body.woocommerce-cart {
		background: #f4f6f9;
	}

	body.woocommerce-checkout .main-page-wrapper,
	body.woocommerce-cart .main-page-wrapper {
		background: transparent;
	}

	/* The step bar replaces WooCommerce's page title on phones. */
	.woocommerce-checkout .page-title,
	.woocommerce-cart .page-title,
	.woocommerce-order-received .page-title {
		display: none !important;
	}
}

/* Step bar alone, on top of the cart page. */
.tsqc-co.tsqc-co--bar-only {
	max-width: none;
	padding: 0 !important;
}

.tsqc-co--bar-only .tsqc-co-steps {
	margin-bottom: 0 !important;
}

/* The thank-you page has no sticky bar to leave room for. */
.tsqc-co.tsqc-ty {
	padding-bottom: 24px !important;
}

/* ---------- Slim header (design) ---------- */

.tsqc-co-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 16px;
	background: #fff;
	border-bottom: 1px solid var(--tk-border-2);
	font-family: var(--tk-font);
}

@media (max-width: 767px) {
	.tsqc-co > .tsqc-co-header,
	.tsqc-co--bar-only > .tsqc-co-header {
		width: 100vw;
		margin-inline: calc(50% - 50vw);
	}
}

.tsqc-co .tsqc-co-brand {
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--tk-text);
}

.tsqc-co-brand img {
	display: block;
	width: auto !important;
	height: 30px !important;
}

.tsqc-co-brand span {
	font-size: 15px;
	font-weight: 800;
}

.tsqc-co-secure {
	font-size: 12px;
	color: var(--tk-muted);
}

/* ---------- Step bar (also the order-status track) ---------- */

.tsqc-co-steps {
	display: flex;
	align-items: flex-start;
	list-style: none;
	margin: 0 0 12px !important;
	padding: 14px 8px 12px !important;
	background: #fff;
	border-bottom: 1px solid var(--tk-border-2);
}

@media (max-width: 767px) {
	/* Full-bleed white band under the site header, as in the design. */
	.tsqc-co > .tsqc-co-steps,
	.tsqc-co--bar-only > .tsqc-co-steps {
		width: 100vw;
		margin-inline: calc(50% - 50vw) !important;
	}
}

@media (min-width: 768px) {
	.tsqc-co-steps {
		border: 1px solid var(--tk-border);
		border-radius: 16px;
	}
}

.tsqc-co-steps__item {
	position: relative;
	flex: 1 1 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	margin: 0 !important;
	color: var(--tk-faint);
}

.tsqc-co-steps__item a {
	display: contents;
	color: inherit;
}

/* Line to the previous (right-hand) step, from this dot's centre. */
.tsqc-co-steps__item + .tsqc-co-steps__item::before {
	content: "";
	position: absolute;
	top: 14px;
	left: 50%;
	width: 100%;
	height: 2px;
	background: #e2e8f0;
	z-index: 0;
}

.tsqc-co-steps__item.is-done::before,
.tsqc-co-steps__item.is-current::before {
	background: var(--tk-primary) !important;
}

.tsqc-co-steps__dot {
	position: relative;
	z-index: 1;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #fff;
	border: 1.5px solid var(--tk-border-input);
	color: var(--tk-faint);
	font-size: 12.5px;
	font-weight: 800;
	line-height: 1;
}

.tsqc-co-steps__item.is-current .tsqc-co-steps__dot {
	color: var(--tk-primary);
	border: 2px solid var(--tk-primary);
	box-shadow: 0 0 0 4px rgba(31, 111, 169, .14);
}

.tsqc-co-steps__item.is-done .tsqc-co-steps__dot {
	background: var(--tk-primary);
	border-color: var(--tk-primary);
	color: transparent;
}

.tsqc-co-steps__item.is-done .tsqc-co-steps__dot::after {
	content: "✓";
	position: absolute;
	color: #fff;
	font-size: 13px;
}

.tsqc-co-steps__label {
	margin-top: 7px;
	font-size: 11px;
	line-height: 1.5;
	text-align: center;
}

.tsqc-co-steps__item.is-current .tsqc-co-steps__label {
	font-weight: 800;
	color: var(--tk-text);
}

.tsqc-co-steps__item.is-done .tsqc-co-steps__label {
	font-weight: 600;
	color: var(--tk-primary);
}

.tsqc-co-steps__item.is-done a .tsqc-co-steps__label {
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* Inside a card (thank-you order status) the band styling goes away. */
.tsqc-co-card .tsqc-co-steps {
	margin: 0 !important;
	padding: 2px 0 0 !important;
	border: none;
	background: none;
}

/* ---------- Layout blocks ---------- */

.tsqc-co-panel,
.tsqc-co-body {
	display: grid;
	gap: 12px;
}

.tsqc-co-card {
	background: #fff;
	border: 1px solid var(--tk-border);
	border-radius: 16px;
	padding: 16px;
	margin: 0;
}

.tsqc-co .tsqc-co-h {
	display: flex;
	align-items: center;
	gap: 9px;
	margin: 0 0 12px !important;
	padding: 0 !important;
	border: none !important;
	font-size: 15px !important;
	font-weight: 700;
	line-height: 1.6;
	color: var(--tk-text);
	text-transform: none;
	letter-spacing: 0;
}

.tsqc-co-h-icon {
	flex: 0 0 auto;
	width: 30px;
	height: 30px;
	border-radius: 9px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--tk-blue-50);
	color: var(--tk-primary);
}

.tsqc-co-h-icon {
	font-size: 14px;
	line-height: 1;
}

.tsqc-ty-icon.is-pending {
	font-size: 28px;
}

.tsqc-ty-icon.is-failed {
	font-size: 30px;
	font-weight: 300;
}

.tsqc-ty-privacy__icon {
	font-size: 15px;
}

.tsqc-co-link {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	min-height: 44px;
	padding: 0 !important;
	border: none !important;
	background: none !important;
	box-shadow: none !important;
	color: var(--tk-primary) !important;
	font: inherit;
	font-size: 13.5px !important;
	font-weight: 700;
	line-height: 1.6;
	cursor: pointer;
}

.tsqc-co-ghostbtn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 44px;
	padding: 0 14px !important;
	border: 1px solid var(--tk-border-ctl) !important;
	border-radius: 11px !important;
	background: #fff !important;
	color: var(--tk-primary) !important;
	font: inherit;
	font-size: 13px !important;
	font-weight: 700;
	cursor: pointer;
	box-shadow: none !important;
}

.tsqc-co-help {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	min-height: 44px;
	margin: 0;
	font-size: 13px;
	color: var(--tk-muted);
	text-align: center;
}

.tsqc-co-help a {
	color: var(--tk-primary);
	font-weight: 700;
}

/* Cart summary chip on step 2 */
.tsqc-co-mini {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 0 14px;
	min-height: 44px;
	border-radius: 13px;
	background: #fff;
	border: 1px solid var(--tk-border);
	font-size: 13px;
	color: var(--tk-text-3);
}

.tsqc-co-mini strong {
	color: var(--tk-text);
}

.tsqc-co-mini a {
	min-height: 44px;
	display: inline-flex;
	align-items: center;
	font-weight: 700;
}

/* Error summary above the form ("۲ مورد را کامل کنید…") */
.tsqc-co-errsum {
	padding: 12px 14px;
	border-radius: 13px;
	background: var(--tk-error-bg);
	border: 1px solid #fbd5d1;
	color: var(--tk-error-ink);
	font-size: 13px;
	line-height: 1.85;
}

/* ---------- Form fields ---------- */

.tsqc-co .woocommerce-billing-fields__field-wrapper {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px 10px;
}

.tsqc-co .woocommerce-billing-fields__field-wrapper > * {
	grid-column: 1 / -1;
}

.tsqc-co .woocommerce-billing-fields__field-wrapper > .form-row-first,
.tsqc-co .woocommerce-billing-fields__field-wrapper > .form-row-last {
	grid-column: auto;
}

.tsqc-co .form-row {
	float: none !important;
	width: auto !important;
	margin: 0 !important;
	padding: 0 !important;
}

.tsqc-co .form-row label {
	display: block;
	margin: 0 0 6px !important;
	font-size: 12.5px !important;
	font-weight: 600;
	line-height: 1.6;
	color: var(--tk-text-2);
}

/* No asterisks in the design: every field shown is required unless it
   says (اختیاری). */
.tsqc-co .form-row label .required {
	display: none;
}

.tsqc-co .form-row .optional {
	font-weight: 400;
	color: var(--tk-muted);
}

.tsqc-co .form-row input.input-text,
.tsqc-co .form-row textarea,
.tsqc-co .form-row select,
.tsqc-co .select2-container .select2-selection--single {
	width: 100% !important;
	height: 48px;
	min-height: 48px;
	padding: 0 12px !important;
	border: 1px solid var(--tk-border-input) !important;
	border-radius: 12px !important;
	background: #fff !important;
	color: var(--tk-text) !important;
	font-family: inherit;
	font-size: 16px !important; /* no iOS zoom on focus */
	line-height: 1.5 !important;
	box-shadow: none !important;
	outline: none;
	transition: border-color .15s, box-shadow .15s;
}

.tsqc-co .form-row textarea {
	height: 76px;
	padding: 10px 12px !important;
	line-height: 1.7 !important;
	resize: none;
}

.tsqc-co #order_comments {
	height: 68px;
}

.tsqc-co .form-row input[type="tel"] {
	direction: ltr;
	text-align: right;
}

.tsqc-co .form-row input.input-text::placeholder,
.tsqc-co .form-row textarea::placeholder {
	color: var(--tk-faint);
}

.tsqc-co .form-row input.input-text:focus,
.tsqc-co .form-row textarea:focus,
.tsqc-co .select2-container--focus .select2-selection--single {
	border: 1.5px solid var(--tk-primary) !important;
	box-shadow: 0 0 0 3px rgba(31, 111, 169, .14) !important;
}

.tsqc-co .form-row.woocommerce-invalid input.input-text,
.tsqc-co .form-row.woocommerce-invalid textarea,
.tsqc-co .form-row.woocommerce-invalid select,
.tsqc-co .form-row.woocommerce-invalid .select2-selection--single {
	border: 1.5px solid var(--tk-error) !important;
	background: #fffbfa !important;
}

.tsqc-co-err {
	display: block;
	margin-top: 6px;
	font-size: 12.5px;
	line-height: 1.8;
	color: var(--tk-error);
}

.tsqc-co-hint {
	display: block;
	margin: 6px 0 0 !important;
	font-size: 12px;
	line-height: 1.8;
	color: var(--tk-muted);
}

/* Select2 (province / city) */
.tsqc-co .select2-container .select2-selection--single {
	display: flex;
	align-items: center;
}

.tsqc-co .select2-container .select2-selection__rendered {
	padding: 0 !important;
	line-height: 1.5 !important;
	font-size: 16px !important;
	color: var(--tk-text) !important;
}

.tsqc-co .select2-container .select2-selection__placeholder {
	color: var(--tk-faint) !important;
}

.tsqc-co .select2-container .select2-selection__arrow {
	height: 100% !important;
	left: 10px !important;
	right: auto !important;
}

.tsqc-co .select2-container--open .select2-selection--single {
	border: 1.5px solid var(--tk-primary) !important;
	border-radius: 12px 12px 0 0 !important;
}

body.woocommerce-checkout .select2-dropdown {
	border: 1.5px solid #1f6fa9 !important;
	border-top: 0 !important;
	border-radius: 0 0 12px 12px !important;
	padding: 10px;
	box-shadow: 0 14px 24px -16px rgba(16, 24, 40, .5);
	direction: rtl;
}

body.woocommerce-checkout .select2-search--dropdown {
	padding: 0 0 6px !important;
}

body.woocommerce-checkout .select2-search__field {
	height: 44px;
	border: 1px solid #d0d8e2 !important;
	border-radius: 10px !important;
	padding: 0 10px !important;
	font-size: 16px !important;
}

body.woocommerce-checkout .select2-results__option {
	min-height: 44px;
	display: flex;
	align-items: center;
	padding: 0 10px !important;
	border-radius: 9px;
	font-size: 15px;
}

body.woocommerce-checkout .select2-results__option--highlighted,
body.woocommerce-checkout .select2-results__option[aria-selected="true"] {
	background: #eef5fb !important;
	color: #1f6fa9 !important;
	font-weight: 700;
}

/* Checkbox rows (save address, Snapp) */
.tsqc-co-check {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 12px;
	border-radius: 12px;
	background: var(--tk-bg-2);
	font-size: 13px;
	line-height: 1.85;
	color: var(--tk-text-2);
	cursor: pointer;
	margin: 0;
}

.tsqc-co-check input {
	flex: 0 0 auto;
	width: 22px;
	height: 22px;
	margin: 1px 0 0 !important;
	accent-color: var(--tk-primary);
}

/* Saved-recipient card */
.tsqc-co-saved {
	border: 1.5px solid var(--tk-primary);
}

.tsqc-co-saved__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.tsqc-co-saved__head .tsqc-co-h {
	margin: 0 !important;
}

.tsqc-co-saved__text {
	display: flex;
	flex-direction: column;
	margin-top: 12px;
}

.tsqc-co-saved__text strong {
	font-size: 14.5px;
	font-weight: 700;
}

.tsqc-co-saved__text bdi {
	margin-top: 4px;
	font-size: 13px;
	color: var(--tk-muted);
	direction: ltr;
	text-align: right;
}

.tsqc-co-saved__text span {
	margin-top: 8px;
	font-size: 13.5px;
	color: var(--tk-text-2);
}

.tsqc-co-saved__note {
	margin-top: 10px;
	font-size: 11.5px;
	color: var(--tk-faint);
}

/* ---------- Sticky bottom bars ---------- */

.tsqc-co-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	height: 54px;
	padding: 0 16px !important;
	border: 0 !important;
	border-radius: 14px !important;
	background: var(--tk-primary) !important;
	color: #fff !important;
	font-family: inherit;
	font-size: 16px !important;
	font-weight: 700;
	line-height: 1.4;
	text-align: center;
	text-decoration: none !important;
	cursor: pointer;
	box-shadow: none !important;
	touch-action: manipulation;
}

.tsqc-co-btn:hover {
	background: var(--tk-primary-700) !important;
}

.tsqc-co-btn.is-ghost {
	height: 52px;
	border: 1px solid var(--tk-border-ctl) !important;
	border-radius: 13px !important;
	background: #fff !important;
	color: var(--tk-primary) !important;
	font-size: 15px !important;
}

.tsqc-co-bar {
	background: #fff;
	border-top: 1px solid var(--tk-border);
	box-shadow: var(--tk-sh-bar);
	padding: 12px 14px;
}

.tsqc-co-bar .tsqc-co-btn {
	height: 52px;
	border-radius: 13px !important;
	font-size: 15px !important;
}

.tsqc-co-paybar {
	display: none;
}

.tsqc-co-paybar__total {
	flex: 0 0 auto;
	display: flex;
	flex-direction: column;
	line-height: 1.5;
}

.tsqc-co-paybar__total span {
	font-size: 11.5px;
	color: var(--tk-muted);
}

.tsqc-co-paybar__total strong {
	font-size: 16px;
	font-weight: 800;
	white-space: nowrap;
}

.tsqc-co-paybar__total .woocommerce-Price-currencySymbol {
	font-size: 11px;
	font-weight: 500;
	color: var(--tk-muted);
}

.tsqc-co-paybar .tsqc-co-btn {
	flex: 1 1 auto;
	width: auto;
	height: 50px;
}

/* No shipping method for this address: nothing to pay for yet. */
.tsqc-co:has(.tsqc-co-noship) .tsqc-co-pay {
	background: var(--tk-border-input) !important;
	pointer-events: none;
}

@media (min-width: 768px) {
	.tsqc-co-bar {
		border: 1px solid var(--tk-border);
		border-radius: 16px;
		box-shadow: none;
	}
}

@media (max-width: 767px) {
	.tsqc-co {
		padding-bottom: 100px;
	}

	.tsqc-co-bar {
		position: fixed;
		z-index: 999;
		left: 0;
		right: 0;
		bottom: calc(var(--tsqc-sticky-offset, 0px) + env(safe-area-inset-bottom, 0px));
		margin: 0;
		transition: transform .2s ease;
	}

	.tsqc-co-paybar {
		display: flex;
		align-items: center;
		gap: 12px;
	}

	.tsqc-co.tsqc-pay-visible .tsqc-co-paybar {
		transform: translateY(calc(100% + var(--tsqc-sticky-offset, 0px) + 40px));
	}
}

/* ---------- Steps 3 / 4 share one panel ---------- */

.tsqc-co[data-step="shipping"] .tsqc-review__items,
.tsqc-co[data-step="shipping"] .tsqc-review__prices,
.tsqc-co[data-step="shipping"] #payment,
.tsqc-co[data-step="shipping"] .tsqc-co-paysum,
.tsqc-co[data-step="shipping"] .tsqc-co-paybar,
.tsqc-co[data-step="payment"] .tsqc-review__ship,
.tsqc-co[data-step="payment"] .tsqc-co-shipto,
.tsqc-co[data-step="payment"] .tsqc-co-shipbar {
	display: none !important;
}

.tsqc-co-shipbar {
	display: flex;
	align-items: center;
	gap: 12px;
}

.tsqc-co-shipbar .tsqc-co-btn {
	flex: 1 1 auto;
	width: auto;
	height: 50px;
}

.tsqc-co-shiperr {
	margin: 0;
	padding: 12px 14px;
	border-radius: 13px;
	background: var(--tk-error-bg);
	border: 1px solid #fbd5d1;
	color: var(--tk-error-ink);
	font-size: 13px;
}

/* Step 4 summary of steps 2 and 3 */
.tsqc-co-paysum {
	padding: 4px 16px;
}

.tsqc-co-paysum__row {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 10px;
	padding: 10px 0;
}

.tsqc-co-paysum__row + .tsqc-co-paysum__row {
	border-top: 1px solid var(--tk-border-2);
}

.tsqc-co-paysum__body {
	display: flex;
	flex-direction: column;
	min-width: 0;
	line-height: 1.8;
}

.tsqc-co-paysum__label {
	font-size: 12px;
	color: var(--tk-muted);
}

.tsqc-co-paysum__addr,
.tsqc-co-paysum__ship {
	font-size: 13.5px;
	font-weight: 600;
}

.tsqc-co-paysum .tsqc-co-link {
	flex: 0 0 auto;
	font-size: 13px !important;
	margin-top: -4px;
}

/* ---------- Step 3: ship-to card ---------- */

.tsqc-co-shipto__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.tsqc-co-shipto__label {
	font-size: 13px;
	color: var(--tk-muted);
}

.tsqc-co-shipto__top .tsqc-co-link {
	font-size: 13px !important;
	padding: 0 12px !important;
	margin-inline-end: -12px;
}

.tsqc-co-shipto__text {
	display: block;
	line-height: 1.85;
}

.tsqc-co-shipto__text strong {
	font-size: 14px;
	font-weight: 700;
}

.tsqc-co-shipto__text bdi {
	font-size: 14px;
	font-weight: 700;
}

/* Separator on the name, not inside the LTR phone number. */
.tsqc-co-shipto__text strong::after {
	content: " · ";
}

.tsqc-co-shipto__text span {
	display: block;
	margin-top: 4px;
	font-size: 13px;
	color: var(--tk-text-3);
}

/* ---------- Step 3: review sections ---------- */

.tsqc-co #order_review {
	display: grid;
	gap: 12px;
	padding: 0;
	margin: 0;
	background: none;
	border: none;
}

.tsqc-review {
	display: grid;
	gap: 12px;
	width: 100%;
	margin: 0 !important;
	border: none !important;
	background: none !important;
}

/* Items (collapsible) */
.tsqc-review__items {
	padding: 12px 16px;
}

.tsqc-review__items > summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 44px;
	list-style: none;
	cursor: pointer;
}

.tsqc-review__items > summary::-webkit-details-marker {
	display: none;
}

.tsqc-review__sumtitle {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	font-weight: 700;
}

.tsqc-review__thumbs {
	display: flex;
}

.tsqc-review__thumbs img,
.tsqc-review__thumbs .tsqc-ph {
	width: 32px !important;
	height: 32px !important;
	border-radius: 8px;
	border: 2px solid #fff;
	object-fit: cover;
}

.tsqc-review__thumbs > * + * {
	margin-right: -10px;
}

.tsqc-review__items[open] .tsqc-review__thumbs {
	display: none;
}

.tsqc-chev {
	color: var(--tk-faint);
	transition: transform .15s;
}

details[open] > summary .tsqc-chev {
	transform: rotate(180deg);
}

.tsqc-review__list {
	display: grid;
	gap: 10px;
	list-style: none;
	margin: 6px 0 0 !important;
	padding: 0 !important;
}

.tsqc-review__item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding-top: 10px;
	margin: 0 !important;
	border-top: 1px solid var(--tk-border-2);
}

.tsqc-review__img img,
.tsqc-review__img .tsqc-ph {
	display: block;
	width: 44px !important;
	height: 44px !important;
	border-radius: 9px;
	object-fit: cover;
}

.tsqc-review__info {
	flex: 1 1 auto;
	min-width: 0;
	font-size: 13px;
	line-height: 1.7;
}

.tsqc-review__qty {
	display: block;
	font-size: 11.5px;
	color: var(--tk-faint);
}

.tsqc-review__price {
	flex: 0 0 auto;
	font-size: 13px;
	font-weight: 700;
	white-space: nowrap;
}

.tsqc-ph {
	display: block;
	background: repeating-linear-gradient(135deg, #f4f7fa 0 6px, #e3e8ef 6px 12px);
}

/* Shipping options */
.tsqc-ship-list {
	display: grid;
	gap: 10px;
}

.tsqc-ship {
	position: relative;
	display: flex;
	gap: 12px;
	margin: 0 !important;
	padding: 14px;
	border: 1px solid var(--tk-border);
	border-radius: 14px;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}

.tsqc-ship input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	pointer-events: none;
}

.tsqc-radio {
	flex: 0 0 auto;
	width: 22px;
	height: 22px;
	margin-top: 2px;
	border-radius: 50%;
	border: 1.5px solid #c3ccd8;
	background: #fff;
}

.tsqc-ship input:checked + .tsqc-radio {
	border: 6px solid var(--tk-primary);
}

.tsqc-ship input:focus-visible + .tsqc-radio {
	outline: 2px solid var(--tk-primary);
	outline-offset: 2px;
}

.tsqc-ship:has(input:checked) {
	border: 1.5px solid var(--tk-primary);
	background: var(--tk-blue-sel);
}

.tsqc-ship__body {
	flex: 1 1 auto;
	min-width: 0;
}

.tsqc-ship__head {
	display: flex;
	justify-content: space-between;
	gap: 8px;
}

.tsqc-ship__title {
	font-size: 14px;
	font-weight: 700;
	line-height: 1.7;
}

.tsqc-ship__cost {
	flex: 0 0 auto;
	font-size: 13.5px;
	font-weight: 700;
	white-space: nowrap;
}

.tsqc-ship__cost.is-free {
	color: var(--tk-success);
}

.tsqc-ship__cost small {
	display: block;
	font-size: 11px;
	font-weight: 500;
	color: var(--tk-muted);
	text-align: left;
}

.tsqc-ship__eta {
	display: block;
	margin-top: 5px;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--tk-success);
}

.tsqc-ship-note {
	margin: 9px 0 0;
	font-size: 11.5px;
	color: var(--tk-faint);
}

.tsqc-co-noship {
	padding: 14px;
	border: 1px dashed #f0c9c4;
	border-radius: 14px;
	background: #fffbfa;
}

.tsqc-co-noship p {
	margin: 0;
	font-size: 13.5px;
	line-height: 1.9;
	color: var(--tk-error-ink);
}

.tsqc-co-noship__actions {
	display: flex;
	gap: 8px;
	margin-top: 12px;
}

.tsqc-co-noship__actions a {
	display: inline-flex;
	align-items: center;
	height: 44px;
	padding: 0 14px;
	font-size: 13px;
	font-weight: 600;
	color: var(--tk-text-3);
}

/* Price details */
.tsqc-review__rows {
	display: grid;
	gap: 10px;
	font-size: 14px;
}

.tsqc-review__row {
	display: flex;
	justify-content: space-between;
	gap: 12px;
}

.tsqc-review__row > span:first-child {
	color: var(--tk-muted);
}

.tsqc-review__row.is-discount > span:last-child {
	color: var(--tk-accent);
}

.tsqc-review__divider {
	height: 1px;
	background: var(--tk-border-2);
}

.tsqc-review__row.is-total {
	font-size: 15.5px;
	font-weight: 800;
}

.tsqc-review__row.is-total > span:first-child {
	color: var(--tk-text);
}

.tsqc-review__total small {
	display: block;
	font-size: 11px;
	font-weight: 400;
	color: var(--tk-muted);
}

/* Payment card (WooCommerce's #payment block, restyled) */
.tsqc-co #payment {
	margin: 0;
	padding: 16px !important;
	background: #fff !important;
	border: 1px solid var(--tk-border);
	border-radius: 16px !important;
}

.tsqc-co #payment::before {
	content: "روش پرداخت";
	display: block;
	margin-bottom: 12px;
	font-size: 15px;
	font-weight: 700;
	color: var(--tk-text);
}

.tsqc-co #payment ul.wc_payment_methods {
	display: grid;
	gap: 10px;
	margin: 0 !important;
	padding: 0 !important;
	border: none !important;
	list-style: none;
}

.tsqc-co #payment ul.wc_payment_methods > li {
	position: relative;
	margin: 0 !important;
	padding: 0 !important;
	border: 1px solid var(--tk-border);
	border-radius: 14px;
	background: #fff;
	list-style: none;
	overflow: hidden;
}

.tsqc-co #payment ul.wc_payment_methods > li:has(> input:checked) {
	border: 1.5px solid var(--tk-primary);
	background: var(--tk-blue-sel);
}

.tsqc-co #payment ul.wc_payment_methods > li > input {
	position: absolute;
	top: 17px;
	right: 14px;
	width: 22px;
	height: 22px;
	margin: 0 !important;
	accent-color: var(--tk-primary);
}

.tsqc-co #payment ul.wc_payment_methods > li > label {
	display: flex !important;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	min-height: 56px;
	margin: 0 !important;
	padding: 14px 48px 14px 14px;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.7;
	cursor: pointer;
}

/* Gateway logo: the design's 56×28 framed slot */
.tsqc-co #payment ul.wc_payment_methods > li > label img {
	flex: 0 0 auto;
	max-width: 56px;
	max-height: 28px;
	width: auto;
	height: auto;
	margin: 0 !important;
	padding: 3px;
	border: 1px solid var(--tk-border);
	border-radius: 7px;
	background: #fff;
	object-fit: contain;
}

.tsqc-co #payment .payment_box {
	margin: 0 !important;
	padding: 0 48px 14px 14px !important;
	background: none !important;
	color: var(--tk-text-3) !important;
	font-size: 12.5px;
	line-height: 1.85;
}

.tsqc-co #payment .payment_box::before {
	display: none !important;
}

.tsqc-co #payment .payment_box p {
	margin: 0;
}

.tsqc-co #payment .place-order {
	margin: 0 !important;
	padding: 0 !important;
}

.tsqc-co .tsqc-pay-trust {
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 6px;
	margin: 14px 0 0 !important;
	padding: 0 !important;
	list-style: none;
	font-size: 11.5px;
	color: var(--tk-text-3);
}

.tsqc-co .tsqc-pay-trust li {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin: 0;
}

.tsqc-co .tsqc-pay-trust svg {
	display: none;
}

.tsqc-co .tsqc-pay-trust li::before {
	content: "✓";
	color: var(--tk-success);
}

.tsqc-co #place_order {
	float: none !important;
	width: 100% !important;
	height: 54px;
	margin: 14px 0 0 !important;
	border: 0 !important;
	border-radius: 14px !important;
	background: var(--tk-primary) !important;
	color: #fff !important;
	font-family: inherit;
	font-size: 16px !important;
	font-weight: 700;
}

.tsqc-co .woocommerce-terms-and-conditions-wrapper {
	margin-top: 12px;
	font-size: 12px;
	color: var(--tk-muted);
}

/* WooCommerce notices (server errors) */
.tsqc-co .woocommerce-NoticeGroup {
	grid-column: 1 / -1;
}

.tsqc-co .woocommerce-error,
.tsqc-co .woocommerce-NoticeGroup .woocommerce-error {
	position: relative;
	margin: 0 0 12px !important;
	padding: 13px 14px 13px 14px !important;
	padding-inline-start: 46px !important;
	border: 1px solid #fbd5d1 !important;
	border-radius: 14px !important;
	background: var(--tk-error-bg) !important;
	color: var(--tk-error-ink) !important;
	font-size: 13px;
	line-height: 1.85;
	list-style: none;
}

.tsqc-co .woocommerce-error::before {
	content: "!" !important;
	position: absolute;
	top: 14px;
	right: 14px;
	left: auto !important;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--tk-error);
	color: #fff !important;
	font-size: 12px;
	font-weight: 800;
	line-height: 22px;
	text-align: center;
	font-family: inherit !important;
}

.tsqc-co .woocommerce-error li {
	margin: 0;
	list-style: none;
}

/* ---------- Step 4: thank-you ---------- */

.tsqc-ty .tsqc-co-body {
	padding-top: 14px;
}

.tsqc-ty-hero {
	padding: 26px 20px;
	border-radius: 20px;
	background: linear-gradient(160deg, #fff 0%, #f2f8f5 100%);
	border: 1px solid #d6ece3;
	text-align: center;
}

.tsqc-ty-hero.is-pending {
	background: linear-gradient(160deg, #fff 0%, #fdf7ee 100%);
	border-color: #f1e2c6;
}

.tsqc-ty-hero.is-failed {
	padding: 30px 20px;
	background: #fff;
	border-color: #f3d1cd;
}

.tsqc-ty-icon {
	width: 72px;
	height: 72px;
	margin: 0 auto;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.tsqc-ty-icon.is-pending {
	background: #fdf0d9;
	color: var(--tk-warning);
}

.tsqc-ty-icon.is-failed {
	background: var(--tk-error-bg);
	color: var(--tk-error);
}

.tsqc-ty-tick {
	display: block;
	margin: 0 auto;
	animation: tkPop .5s ease-out both;
}

.tsqc-ty-tick path {
	stroke-dasharray: 48;
	stroke-dashoffset: 48;
	animation: tkDraw .45s .35s ease-out forwards;
}

@keyframes tkDraw {
	from { stroke-dashoffset: 48; }
	to { stroke-dashoffset: 0; }
}

@keyframes tkPop {
	0% { transform: scale(.6); opacity: 0; }
	70% { transform: scale(1.06); opacity: 1; }
	100% { transform: scale(1); }
}

.tsqc-co .tsqc-ty-title {
	margin: 14px 0 0 !important;
	padding: 0 !important;
	font-size: 20px !important;
	font-weight: 800;
	line-height: 1.6;
	color: var(--tk-text);
}

.tsqc-ty-sub {
	margin: 8px 0 0 !important;
	font-size: 14px;
	line-height: 1.95;
	color: var(--tk-text-3);
}

.tsqc-ty-number {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-top: 14px;
	padding: 6px;
	padding-inline-start: 14px;
	border-radius: 12px;
	background: #fff;
	border: 1px solid var(--tk-border);
}

.tsqc-ty-number span {
	font-size: 13px;
	color: var(--tk-muted);
}

.tsqc-ty-number strong {
	font-size: 15px;
	letter-spacing: .04em;
}

.tsqc-ty-copy {
	display: inline-flex !important;
	align-items: center;
	height: 36px;
	padding: 0 12px !important;
	border: none !important;
	border-radius: 9px !important;
	background: var(--tk-blue-50) !important;
	color: var(--tk-primary) !important;
	font: inherit;
	font-size: 12.5px !important;
	font-weight: 700;
	cursor: pointer;
	box-shadow: none !important;
}

.tsqc-ty-track {
	padding: 16px 10px;
}

.tsqc-ty-facts {
	padding: 6px 16px;
}

.tsqc-ty-fact {
	padding: 12px 0;
	border-bottom: 1px solid var(--tk-border-2);
}

.tsqc-ty-fact:last-child {
	border-bottom: none;
}

.tsqc-ty-fact__label {
	display: block;
	font-size: 12px;
	color: var(--tk-muted);
}

.tsqc-ty-fact__value {
	display: block;
	margin-top: 4px;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.8;
}

.tsqc-ty-fact__value.is-plain {
	font-size: 13.5px;
	font-weight: 400;
	line-height: 1.85;
}

.tsqc-ty-privacy {
	display: flex;
	gap: 12px;
	padding: 14px 16px;
	border-radius: 16px;
	background: var(--tk-ink);
	color: #e8eff6;
	font-size: 13px;
	line-height: 1.9;
}

.tsqc-ty-privacy p {
	margin: 0 !important;
}

.tsqc-ty-privacy__icon {
	flex: 0 0 auto;
	width: 34px;
	height: 34px;
	border-radius: 10px;
	background: #17324a;
	display: flex;
	align-items: center;
	justify-content: center;
}

.tsqc-ty-gateway {
	padding: 0;
	border: 1.5px solid #f1d9a9;
	overflow: hidden;
}

.tsqc-ty-gateway__head {
	padding: 12px 16px;
	background: #fdf7ee;
	font-size: 14px;
	font-weight: 700;
	color: #7a4a0c;
}

.tsqc-ty-gateway__body {
	padding: 14px 16px;
	font-size: 13.5px;
	line-height: 1.9;
}

/* Card-to-card details */
.tsqc-c2c-amount {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 10px;
	padding-bottom: 12px;
	margin-bottom: 12px;
	border-bottom: 1px dashed #f1d9a9;
	font-size: 14px;
}

.tsqc-c2c-amount span {
	color: var(--tk-muted);
}

.tsqc-c2c-amount strong {
	font-size: 16px;
	font-weight: 800;
}

.tsqc-c2c-row {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 6px 0;
}

.tsqc-c2c-label {
	flex: 0 0 auto;
	font-size: 12px;
	color: var(--tk-muted);
}

.tsqc-c2c-value {
	flex: 1 1 auto;
	min-width: 0;
	direction: ltr;
	text-align: left;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .02em;
	overflow-wrap: anywhere;
}

.tsqc-c2c-value.is-card {
	font-size: 17px;
	letter-spacing: .08em;
}

.tsqc-c2c-owner {
	font-size: 12.5px;
	color: var(--tk-text-3);
}

.tsqc-c2c-next {
	margin: 14px 0 10px !important;
	font-size: 13px;
	line-height: 1.85;
	color: var(--tk-text-2);
}

.tsqc-c2c-actions {
	display: grid;
	gap: 8px;
}

.tsqc-c2c-actions .tsqc-co-btn {
	height: 50px;
	font-size: 14.5px !important;
}

.tsqc-ty-items > summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 44px;
	list-style: none;
	cursor: pointer;
	font-size: 14px;
	font-weight: 700;
}

.tsqc-ty-items > summary::-webkit-details-marker {
	display: none;
}

.tsqc-ty-items {
	padding: 6px 16px;
}

.tsqc-ty-amount {
	display: flex;
	justify-content: space-between;
	padding: 14px 16px;
	font-size: 14px;
}

.tsqc-ty-amount span {
	color: var(--tk-muted);
}

.tsqc-ty-actions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}

.tsqc-ty-actions .tsqc-co-btn {
	height: 52px;
	border-radius: 13px !important;
	font-size: 15px !important;
}

.tsqc-ty-actions.is-single,
.tsqc-ty-actions.is-stack {
	grid-template-columns: 1fr;
}

.tsqc-ty-actions.is-stack .tsqc-co-btn:first-child {
	height: 54px;
	border-radius: 14px !important;
	font-size: 16px !important;
}

.tsqc-ty-support {
	padding: 4px 0 8px;
	text-align: center;
	font-size: 12.5px;
	color: var(--tk-muted);
}

.tsqc-ty-support a {
	color: var(--tk-text);
	font-weight: 700;
}

@media (prefers-reduced-motion: reduce) {
	.tsqc-co *,
	.tsqc-co-bar {
		animation: none !important;
		transition: none !important;
	}

	.tsqc-ty-tick path {
		stroke-dashoffset: 0;
	}
}
