.tsm-order-shell {
	--tsm-navy: #172033;
	--tsm-orange: #f58b00;
	--tsm-red: #ef2b18;
	--tsm-blue: #2f59f5;
	--tsm-muted: #657086;
	--tsm-line: #e7e9ef;
	max-width: 1120px;
	margin: 28px auto;
	color: var(--tsm-navy);
	font-family: "Noto Sans Bengali", "Hind Siliguri", system-ui, -apple-system, sans-serif;
}

.tsm-order-shell *,
.tsm-order-shell *::before,
.tsm-order-shell *::after { box-sizing: border-box; }

.tsm-order-header {
	text-align: center;
	padding: 28px 20px 20px;
	background: linear-gradient(135deg, #fff7e8, #fff);
	border: 1px solid #ffe2af;
	border-radius: 24px 24px 0 0;
}

.tsm-kicker {
	display: inline-block;
	color: var(--tsm-orange);
	font-size: 13px;
	font-weight: 800;
	letter-spacing: .14em;
}

.tsm-order-header h2 {
	margin: 5px 0 4px;
	font-size: clamp(28px, 5vw, 46px);
	line-height: 1.15;
}

.tsm-order-header p {
	margin: 0;
	color: var(--tsm-muted);
	font-size: 16px;
}

.tsm-trust-row {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1px;
	background: var(--tsm-line);
	border: 1px solid var(--tsm-line);
	border-top: 0;
}

.tsm-trust-row div {
	background: #fff;
	padding: 14px 10px;
	text-align: center;
	font-weight: 750;
}

.tsm-trust-row span { color: var(--tsm-orange); margin-right: 5px; }
.tsm-order-form { background: #f7f8fb; padding: 22px; }
.tsm-section {
	background: #fff;
	border: 1px solid var(--tsm-line);
	border-radius: 18px;
	padding: 22px;
	box-shadow: 0 8px 28px rgba(23, 32, 51, .045);
}

.tsm-section-title {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 20px;
}

.tsm-section-title span {
	color: var(--tsm-blue);
	font-size: 12px;
	font-weight: 800;
	text-transform: uppercase;
}

.tsm-section-title h3 { margin: 2px 0 0; font-size: 23px; }
.tsm-section-title .tsm-colour-title { font-size: 17px; }
.tsm-section-title > strong { color: var(--tsm-orange); white-space: nowrap; font-size: 25px; line-height: 1; }
.tsm-section-title > strong del { font-size: .72em; opacity: .8; }
.tsm-section-title > strong ins { font-size: 1.08em; text-decoration: none; }
.tsm-mobile-colour-label { margin: 0 0 12px; font-size: 19px; font-weight: 800; }
.tsm-mobile-colour-label strong { color: #23889a; }
.tsm-colour-picker { display: grid; grid-template-columns: repeat(var(--tsm-colour-count, 5), minmax(0, 1fr)); gap: 5px; }
.tsm-colour-choice { position: relative; min-width: 0; padding: 2px; border: 2px solid transparent; border-radius: 13px; background: #fff; cursor: pointer; box-shadow: 0 2px 8px rgba(23,32,51,.05); }
.tsm-colour-choice.is-active { border-color: #23889a; box-shadow: 0 0 0 1px #23889a22; }
.tsm-choice-image { display: block; aspect-ratio: 1 / 1; overflow: hidden; border-radius: 11px; background: #f5f6f9; }
.tsm-choice-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tsm-choice-placeholder { display: block; width: 100%; height: 100%; background: radial-gradient(circle at 35% 30%, #fff8, transparent 28%), var(--swatch); }
.tsm-selected-preview { display: grid; place-items: center; width: min(100%, 300px); aspect-ratio: 1 / 1; margin: 16px auto 0; overflow: hidden; border: 2px solid #23889a; border-radius: 16px; background: #f5f6f9; box-shadow: 0 8px 20px rgba(23,32,51,.12); }
.tsm-selected-preview img, .tsm-preview-placeholder { width: 100%; height: 100%; object-fit: cover; }
.tsm-preview-placeholder { display: block; background: radial-gradient(circle at 35% 30%, #fff8, transparent 28%), var(--swatch); }
.tsm-selected-colour-panel { margin-top: 20px; overflow: hidden; border: 1px solid #d7dde7; border-radius: 14px; background: #fff; }
.tsm-selected-head, .tsm-selected-row { display: grid; grid-template-columns: 1.25fr .72fr 1fr; align-items: center; gap: 8px; }
.tsm-selected-head { padding: 8px; background: #fff; }
.tsm-selected-head span { padding: 14px 8px; border: 1px solid #e2e6ec; border-radius: 10px; background: #fff; color: #111827; text-align: center; font-weight: 850; }
.tsm-selected-row { padding: 17px 14px; background: #fff; }
.tsm-selected-name { display: flex; align-items: center; gap: 7px; color: #111827; font-size: 16px; font-weight: 850; }
.tsm-selected-name i { width: 11px; height: 11px; border-radius: 50%; background: var(--swatch); flex: 0 0 auto; }
.tsm-selected-price { text-align: center; color: #111827; font-size: 22px; line-height: 1.15; font-weight: 900; }
.tsm-selected-quantity { display: grid; grid-template-columns: 35px minmax(32px, 1fr) 35px; overflow: hidden; border: 1px solid #23889a; border-radius: 9px; background: #fff; }
.tsm-selected-quantity button, .tsm-selected-quantity input { min-width: 0; height: 42px; padding: 0; border: 0 !important; border-radius: 0 !important; text-align: center; font: inherit; font-size: 19px; font-weight: 900; box-shadow: none !important; }
.tsm-selected-quantity button { cursor: pointer; background: #23889a; color: #fff; }
.tsm-selected-quantity input { background: #fff; color: #111827; appearance: textfield; }
.tsm-selected-quantity input::-webkit-inner-spin-button { appearance: none; }
.tsm-color-grid {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 14px;
}

.tsm-color-card {
	position: relative;
	overflow: hidden;
	border: 2px solid transparent;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 6px 20px rgba(23, 32, 51, .09);
	text-align: center;
	transition: transform .2s ease, border-color .2s ease;
}

.tsm-color-card.is-selected {
	border-color: var(--swatch);
	transform: translateY(-3px);
}

.tsm-product-image { aspect-ratio: 1 / 1; background: #f5f6f9; overflow: hidden; }
.tsm-product-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tsm-image-placeholder {
	display: grid;
	place-content: center;
	gap: 8px;
	width: 100%;
	height: 100%;
	color: var(--tsm-muted);
}
.tsm-image-placeholder span {
	width: 62px;
	height: 62px;
	margin: auto;
	border-radius: 50%;
	background: radial-gradient(circle at 35% 30%, #fff8, transparent 28%), var(--swatch);
	box-shadow: inset -8px -10px 14px #0002, 0 8px 18px #0002;
}
.tsm-color-card h4 { margin: 11px 8px 8px; font-size: 16px; }
.tsm-color-card h4::before {
	content: "";
	display: inline-block;
	width: 10px;
	height: 10px;
	margin-right: 6px;
	border-radius: 50%;
	background: var(--swatch);
}

.tsm-quantity {
	display: grid;
	grid-template-columns: 38px minmax(34px, 1fr) 38px;
	border-top: 1px solid var(--tsm-line);
}
.tsm-quantity button,
.tsm-quantity input {
	min-width: 0;
	height: 42px;
	border: 0 !important;
	border-radius: 0 !important;
	background: #fff;
	text-align: center;
	font-size: 18px;
	font-weight: 800;
	box-shadow: none !important;
}
.tsm-quantity button { cursor: pointer; background: var(--tsm-navy); color: #fff; }
.tsm-quantity button:hover { background: var(--tsm-orange); }
.tsm-quantity input { appearance: textfield; padding: 0 !important; }
.tsm-quantity input::-webkit-inner-spin-button { appearance: none; }
.tsm-inline-error { margin: 16px 0 0; color: #c62828; font-weight: 700; }
.tsm-checkout-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(290px, .75fr); gap: 20px; margin-top: 20px; align-items: start; }
.tsm-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.tsm-fields label { display: grid; gap: 7px; }
.tsm-fields label > span { font-weight: 750; font-size: 14px; }
.tsm-fields .tsm-wide { grid-column: 1 / -1; }
.tsm-fields input,
.tsm-fields select,
.tsm-fields textarea {
	width: 100%;
	min-height: 48px;
	margin: 0;
	padding: 11px 13px;
	border: 1px solid #d9dde7;
	border-radius: 9px;
	background: #fff;
	color: var(--tsm-navy);
	font: inherit;
	outline: 0;
}
.tsm-fields input:focus,
.tsm-fields select:focus,
.tsm-fields textarea:focus { border-color: var(--tsm-blue); box-shadow: 0 0 0 3px #2f59f51a; }
.tsm-summary {
	position: sticky;
	top: 24px;
	padding: 23px;
	border-radius: 18px;
	background: var(--tsm-navy);
	color: #fff;
	box-shadow: 0 12px 35px rgba(23, 32, 51, .2);
}
.tsm-submit-wrap { display: flex; flex-direction: column; width: min(100%, 360px); margin: 20px 0 0 auto; }
.tsm-summary-label { display: block; margin-bottom: 15px; color: #aeb9d0; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.tsm-summary-row { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid #ffffff1f; }
.tsm-grand-total { margin-top: 4px; border: 0; font-size: 20px; }
.tsm-grand-total strong { color: #ffb12b; }
.tsm-cod-note { margin: 10px 0 15px; color: #cdd4e2; font-size: 13px; }
.tsm-submit {
	position: relative;
	width: 100%;
	min-height: 54px;
	padding: 13px 18px;
	border: 0;
	border-radius: 10px;
	background: var(--tsm-orange);
	color: #fff;
	font: inherit;
	font-size: 18px;
	font-weight: 850;
	cursor: pointer;
	box-shadow: inset 0 -3px 0 #cf6c00;
}
.tsm-submit:hover { background: #ff9811; }
.tsm-submit:disabled { cursor: not-allowed; opacity: .72; }
.tsm-spinner {
	display: none;
	width: 20px;
	height: 20px;
	margin: auto;
	border: 3px solid #fff5;
	border-top-color: #fff;
	border-radius: 50%;
	animation: tsm-spin .8s linear infinite;
}
.tsm-submit.is-loading .tsm-submit-text { display: none; }
.tsm-submit.is-loading .tsm-spinner { display: block; }
@keyframes tsm-spin { to { transform: rotate(360deg); } }
.tsm-form-message { margin-top: 14px; padding: 0; border-radius: 9px; font-size: 14px; }
.tsm-form-message.is-success,
.tsm-form-message.is-error { padding: 12px; }
.tsm-form-message.is-success { background: #dcfce7; color: #14532d; }
.tsm-form-message.is-error { background: #fee2e2; color: #7f1d1d; }
.tsm-hp { position: absolute !important; left: -9999px !important; opacity: 0 !important; }

@media (max-width: 820px) {
	.tsm-color-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.tsm-checkout-grid { grid-template-columns: 1fr; }
	.tsm-summary { position: static; order: 1; }
	.tsm-billing { order: 2; }
	.tsm-submit-wrap { width: 100%; margin-top: 14px; }
}

@media (max-width: 560px) {
	#tsm-delivery-section {
		scroll-margin-top: 70px;
	}

	.tsm-order-shell { margin: 12px auto; }
	.tsm-order-form { padding: 10px; }
	.tsm-section { padding: 15px; border-radius: 14px; }
	.tsm-trust-row { grid-template-columns: 1fr; }
	.tsm-trust-row div { padding: 9px; font-size: 13px; }
	.tsm-section-title { align-items: start; flex-direction: column; }
	.tsm-order-form > .tsm-section:first-of-type { padding: 10px; }
	.tsm-mobile-colour-label { font-size: 17px; }
	.tsm-colour-picker { gap: 4px; }
	.tsm-colour-choice { padding: 1px; border-radius: 10px; }
	.tsm-choice-image { border-radius: 8px; }
	.tsm-selected-preview { width: min(100%, 270px); margin-top: 13px; border-radius: 13px; }
	.tsm-selected-colour-panel { margin-top: 15px; }
	.tsm-selected-head, .tsm-selected-row { grid-template-columns: 1.18fr .7fr 1fr; gap: 5px; }
	.tsm-selected-head { padding: 6px; }
	.tsm-selected-head span { padding: 10px 4px; font-size: 13px; }
	.tsm-selected-row { padding: 13px 8px; }
	.tsm-selected-name { font-size: 14px; }
	.tsm-selected-price { font-size: 20px; }
	.tsm-selected-quantity { grid-template-columns: 29px minmax(26px, 1fr) 29px; }
	.tsm-selected-quantity button, .tsm-selected-quantity input { height: 38px; font-size: 17px; }
	.tsm-fields { grid-template-columns: 1fr; }
	.tsm-fields .tsm-wide { grid-column: auto; }
}


.tsm-out-of-stock-wrap { padding-top: 26px; padding-bottom: 26px; }
.tsm-out-of-stock {
	display: grid;
	gap: 7px;
	padding: 24px 18px;
	border: 1px solid #fecaca;
	border-radius: 14px;
	background: #fff7f7;
	color: #7f1d1d;
	text-align: center;
}
.tsm-out-of-stock strong { font-size: 20px; }
.tsm-out-of-stock span { color: #991b1b; font-size: 14px; }
.tsm-out-of-stock-wrap .tsm-submit-wrap { margin: 16px auto 0; }

/* v2.9.11 colour/quantity layout: every configured colour is shown in one row. */
.tsm-colour-list {
	margin-top: 4px;
	overflow: hidden;
	border: 1px solid #d7dde7;
	border-radius: 14px;
	background: #fff;
}

.tsm-colour-list-head,
.tsm-colour-list-row {
	display: grid;
	grid-template-columns: 92px minmax(110px, 1.25fr) minmax(70px, .72fr) minmax(130px, 1fr);
	align-items: center;
	gap: 12px;
}

.tsm-colour-list-head {
	padding: 8px;
	background: #fff;
}

.tsm-colour-list-head span {
	padding: 12px 8px;
	border: 1px solid #e2e6ec;
	border-radius: 10px;
	background: #fff;
	color: #111827;
	text-align: center;
	font-weight: 850;
}

.tsm-colour-list-row {
	position: relative;
	padding: 10px 12px;
	border-top: 1px solid #e2e6ec;
	background: #fff;
}

.tsm-list-product-photo {
	position: relative;
	width: 82px;
	height: 82px;
	overflow: visible;
	border: 1px solid #e2e6ec;
	border-radius: 12px;
	background: #f7f8fb;
}

.tsm-list-product-photo > img,
.tsm-list-product-photo > .tsm-choice-placeholder {
	display: block;
	width: 100%;
	height: 100%;
	border-radius: 11px;
	object-fit: cover;
}

.tsm-quantity-badge {
	position: absolute;
	right: -8px;
	top: -8px;
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	border: 2px solid #fff;
	border-radius: 50%;
	background: var(--tsm-navy);
	color: #fff;
	font-size: 13px;
	font-weight: 900;
	box-shadow: 0 3px 9px rgba(23,32,51,.18);
}

#tsm-delivery-section {
	scroll-margin-top: 96px;
}

.tsm-colour-done {
	display: block;
	width: 100%;
	margin-top: 14px;
	padding: 13px;
	border: 1px solid #23889a;
	border-radius: 9px;
	background: #fff;
	color: #23889a;
	font-size: 17px;
	font-weight: 800;
	cursor: pointer;
	transition: background .15s ease, color .15s ease;
}

.tsm-colour-done.is-active {
	background: #23889a;
	color: #fff;
}

.tsm-colour-done:disabled {
	opacity: .55;
	cursor: not-allowed;
}

.tsm-cod-badge {
	display: inline-block;
	margin: 8px 0 4px;
	padding: 4px 12px;
	border-radius: 999px;
	background: #ffffff1f;
	color: #9fe1cb;
	font-size: 12px;
	font-weight: 800;
}

.tsm-final-review {
	margin-bottom: 14px;
	padding: 12px 14px;
	border: 1px solid #d7dde7;
	border-radius: 12px;
	background: #f7f8fb;
}

.tsm-final-review-label {
	display: block;
	margin-bottom: 8px;
	color: #5f6b7d;
	font-size: 12px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .06em;
}

.tsm-final-review-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.tsm-final-review-item {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 5px 10px;
	border-radius: 999px;
	background: #fff;
	border: 1px solid #d7dde7;
	font-size: 13px;
	font-weight: 800;
	color: #111827;
}

.tsm-final-review-item i {
	width: 11px;
	height: 11px;
	border-radius: 50%;
	background: var(--swatch);
	flex: none;
}

.tsm-quantity-badge[hidden] {
	display: none;
}

.tsm-list-colour {
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
	color: #111827;
	font-size: 17px;
}

.tsm-list-colour i {
	width: 13px;
	height: 13px;
	flex: 0 0 auto;
	border-radius: 50%;
	background: var(--swatch);
	box-shadow: inset 0 0 0 1px rgba(0,0,0,.08);
}

.tsm-list-colour span {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.tsm-list-price {
	color: #111827;
	font-size: 21px;
	line-height: 1.15;
	text-align: center;
	white-space: nowrap;
}

.tsm-list-quantity {
	display: grid;
	grid-template-columns: 38px minmax(38px, 1fr) 38px;
	max-width: 170px;
	overflow: hidden;
	border: 1px solid #23889a;
	border-radius: 9px;
	background: #fff;
}

.tsm-list-quantity button,
.tsm-list-quantity input {
	min-width: 0;
	height: 42px;
	padding: 0;
	border: 0 !important;
	border-radius: 0 !important;
	text-align: center;
	font: inherit;
	font-size: 19px;
	font-weight: 900;
	box-shadow: none !important;
}

.tsm-list-quantity button {
	cursor: pointer;
	background: #23889a;
	color: #fff;
}

.tsm-list-quantity button:hover { background: #1b7180; }
.tsm-list-quantity input { background: #fff; color: #111827; appearance: textfield; }
.tsm-list-quantity input::-webkit-inner-spin-button { appearance: none; }
.tsm-list-quantity input:focus { outline: 2px solid #23889a; outline-offset: -2px; }

@media (max-width: 767px) {
	.tsm-colour-list-head {
		display: grid;
		grid-template-columns: 52px minmax(52px, 1fr) 46px 80px;
		gap: 5px;
		padding: 6px;
	}

	.tsm-colour-list-head span {
		padding: 9px 3px;
		font-size: 12px;
	}

	.tsm-colour-list-row {
		grid-template-columns: 52px minmax(52px, 1fr) 46px 80px;
		gap: 5px;
		padding: 8px 5px;
	}

	.tsm-list-product-photo {
		width: 48px;
		height: 48px;
		border-radius: 10px;
	}

	.tsm-list-product-photo > img,
	.tsm-list-product-photo > .tsm-choice-placeholder { border-radius: 9px; }

	.tsm-quantity-badge {
		right: -7px;
		top: -7px;
		width: 24px;
		height: 24px;
		font-size: 12px;
	}

	.tsm-list-colour {
		gap: 5px;
		font-size: 14px;
	}

	.tsm-list-colour i {
		width: 10px;
		height: 10px;
	}

	.tsm-list-price { font-size: 16px; }

	.tsm-list-quantity {
		grid-template-columns: 24px minmax(20px, 1fr) 24px;
		max-width: 80px;
	}

	.tsm-list-quantity button,
	.tsm-list-quantity input {
		height: 34px;
		font-size: 16px;
	}
}

/* v2.9.12: stock-out rows stay visible, and quantity selection drives the preview. */
.tsm-selected-preview { position: relative; }
.tsm-preview-image, .tsm-preview-placeholder { transition: opacity .18s ease; }
.tsm-preview-placeholder { display: block; background: radial-gradient(circle at 35% 30%, #fff8, transparent 28%), var(--swatch); }
.tsm-colour-list-row.is-stock-out .tsm-list-product-photo > img,
.tsm-colour-list-row.is-stock-out .tsm-list-product-photo > .tsm-choice-placeholder { opacity: .38; filter: grayscale(.35); }
.tsm-colour-list-row.is-stock-out .tsm-list-colour,
.tsm-colour-list-row.is-stock-out .tsm-list-price { opacity: .52; }
.tsm-colour-list-row.is-stock-out .tsm-list-quantity { opacity: .38; }
.tsm-stock-out-label {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	z-index: 2;
	padding: 4px 6px;
	border-radius: 5px;
	background: rgba(255,255,255,.92);
	color: #991b1b;
	font-size: 9px;
	font-weight: 900;
	line-height: 1;
	letter-spacing: .02em;
	white-space: nowrap;
	box-shadow: 0 1px 4px rgba(0,0,0,.12);
}
.tsm-colour-list-row:not(.is-stock-out) .tsm-stock-out-label { display: none; }
.tsm-list-quantity button:disabled,
.tsm-list-quantity input:disabled { cursor: not-allowed; }
.tsm-list-quantity input:disabled { background: #eef0f3; }
.tsm-list-quantity button:disabled { background: #aeb5bd; }
