.itc-cab {
	max-width: 720px;
	font-size: 15px;
	line-height: 1.4;
}

.itc-cab:has(.itc-cab__layout) {
	max-width: none;
}

.itc-cab--compact {
	margin-bottom: 16px;
	padding-bottom: 12px;
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.itc-cab__title,
.itc-cab__orders-title {
	margin: 0 0 12px;
	font-size: 18px;
}

.itc-cab__form {
	display: grid;
	gap: 8px;
}

.itc-cab__label {
	font-size: 13px;
}

.itc-cab__input {
	width: 100%;
	box-sizing: border-box;
	padding: 10px 12px;
	border: 1px solid #c8c8c8;
	border-radius: 6px;
}

.itc-cab__input::placeholder {
	color: rgba(26, 26, 26, 0.28);
}

.itc-cab__otp {
	position: relative;
	display: grid;
	grid-template-columns: repeat(4, 3.4rem);
	gap: 10px;
	width: max-content;
	max-width: 100%;
	margin: 2px 0 6px;
}

.itc-cab__otp-cell {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 4rem;
	border: 1px solid #c8c8c8;
	border-radius: 10px;
	background: #fff;
	color: #1a1a1a;
	font-size: 2rem;
	font-weight: 600;
	line-height: 1;
	font-variant-numeric: tabular-nums;
}

.itc-cab__otp-cell.is-current {
	border-color: #1f6feb;
	box-shadow: 0 0 0 3px rgba(31, 111, 235, 0.16);
}

.itc-cab__otp-real {
	position: absolute;
	z-index: 1;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	color: transparent;
	background: transparent;
	caret-color: transparent;
	font-size: 16px;
	-webkit-text-fill-color: transparent;
}

.itc-cab__remember {
	position: relative;
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 2px 0 4px;
}

.itc-cab__remember-label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 15px;
	cursor: pointer;
}

.itc-cab__remember-label input {
	width: 18px;
	height: 18px;
	margin: 0;
	accent-color: #1a1a1a;
}

.itc-cab__remember-help,
.itc-cab__remember-close {
	padding: 0;
	border: 1px solid #d0d0d0;
	background: #fff;
	color: #6b7280;
	cursor: pointer;
	line-height: 1;
	font-family: inherit;
}

.itc-cab__remember-help {
	width: 18px;
	height: 18px;
	border-radius: 50%;
	font-size: 12px;
}

.itc-cab__remember-tip {
	position: absolute;
	z-index: 3;
	top: calc(100% + 10px);
	right: 0;
	width: min(280px, calc(100vw - 64px));
	box-sizing: border-box;
	padding: 14px 32px 14px 14px;
	background: #fff;
	color: #1a1a1a;
	border-radius: 12px;
	box-shadow: 0 10px 28px rgba(17, 17, 17, 0.16);
	font-size: 14px;
	line-height: 1.45;
}

.itc-cab__remember-tip p {
	margin: 0;
}

.itc-cab__remember-tip::before {
	content: "";
	position: absolute;
	top: -6px;
	right: 6px;
	width: 12px;
	height: 12px;
	background: #fff;
	transform: rotate(45deg);
}

.itc-cab__remember-close {
	position: absolute;
	top: 8px;
	right: 8px;
	width: 22px;
	height: 22px;
	border: 0;
	background: transparent;
	font-size: 18px;
}

.itc-cab__btn {
	justify-self: start;
	padding: 10px 16px;
	border: 0;
	border-radius: 6px;
	background: #1f6feb;
	color: #fff;
	cursor: pointer;
}

.itc-cab__choices {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.itc-cab__link {
	padding: 0;
	border: 0;
	background: none;
	color: #1f6feb;
	cursor: pointer;
}

.itc-cab__links {
	display: flex;
	gap: 16px;
}

.itc-cab__note,
.itc-cab__meta,
.itc-cab__name {
	margin: 0 0 8px;
}

.itc-cab__error {
	margin: 0 0 8px;
	color: #b42318;
}

.itc-cab__layout {
	--itc-ink: #18181b;
	--itc-muted: #52525b;
	--itc-subtle: #a1a1aa;
	--itc-surface: #fff;
	--itc-muted-bg: #f4f4f5;
	--itc-raised: #fafafa;
	--itc-border: #e4e4e7;
	--itc-border-strong: #d4d4d8;
	--itc-accent: #e11d48;
	--itc-ok: #15803d;
	--itc-ok-bg: #f0fdf4;
	--itc-bad: #b91c1c;
	--itc-bad-bg: #fef2f2;
	--itc-wait: #a16207;
	--itc-wait-bg: #fefce8;
	--itc-radius: 12px;
	--itc-radius-sm: 8px;
	--itc-shadow: 0 4px 16px rgba(24, 24, 27, 0.06), 0 1px 3px rgba(24, 24, 27, 0.04);
	display: grid;
	grid-template-columns: 272px minmax(0, 1fr);
	gap: 20px;
	width: 100%;
	box-sizing: border-box;
	color: var(--itc-ink);
	font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.itc-cab__sidebar,
.itc-cab__main {
	background: var(--itc-surface);
	border: 1px solid var(--itc-border);
	border-radius: 16px;
	box-shadow: var(--itc-shadow);
	box-sizing: border-box;
	min-width: 0;
}

.itc-cab__sidebar {
	align-self: start;
	padding: 20px;
	background: #fff;
}

.itc-cab__main {
	padding: 22px 22px 26px;
	background: var(--itc-raised);
}

.itc-cab__user {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 18px;
	padding-bottom: 18px;
	border-bottom: 1px solid var(--itc-border);
}

.itc-cab__avatar {
	flex-shrink: 0;
	width: 44px;
	height: 44px;
	border-radius: var(--itc-radius-sm);
	background: var(--itc-ink);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 1.125rem;
}

.itc-cab__user-info {
	flex: 1;
	min-width: 0;
}

.itc-cab__user-name {
	font-weight: 600;
	font-size: 0.9375rem;
	line-height: 1.3;
	overflow-wrap: anywhere;
}

.itc-cab__user-phone {
	margin-top: 2px;
	font-size: 0.8125rem;
	color: var(--itc-muted);
}

.itc-cab__sidebar-block {
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px solid var(--itc-border);
}

.itc-cab__sidebar-extra .itc-cab__sidebar-block:first-child {
	margin-top: 0;
	padding-top: 0;
	border-top: 0;
}

.itc-cab__side-label {
	margin-bottom: 4px;
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	color: var(--itc-subtle);
}

.itc-cab__value {
	font-size: 0.875rem;
	line-height: 1.4;
}

.itc-cab__status,
.itc-cab__pill {
	display: inline-flex;
	align-items: center;
	border-radius: 999px;
	padding: 4px 10px;
	font-size: 0.75rem;
	font-weight: 600;
	line-height: 1.3;
}

.itc-cab__status--active,
.itc-cab__pill--ok {
	background: var(--itc-ok-bg);
	color: var(--itc-ok);
	border: 1px solid #bbf7d0;
}

.itc-cab__pill--bad {
	background: var(--itc-bad-bg);
	color: var(--itc-bad);
	border: 1px solid #fecaca;
}

.itc-cab__pill--wait {
	background: var(--itc-wait-bg);
	color: var(--itc-wait);
	border: 1px solid #fde68a;
}

.itc-cab__logout {
	border-radius: var(--itc-radius-sm);
	border: 1px solid var(--itc-border-strong);
	background: #fff;
	color: var(--itc-muted);
	font-size: 0.875rem;
	font-weight: 600;
	cursor: pointer;
	font-family: inherit;
	line-height: 1.2;
}

.itc-cab__logout--desktop {
	display: block;
	width: 100%;
	margin-top: 18px;
	padding: 10px 14px;
}

.itc-cab__logout--mobile {
	display: none;
}

.itc-cab__logout--desktop:hover,
.itc-cab__logout--desktop:focus {
	background: var(--itc-bad-bg);
	border-color: #fecaca;
	color: var(--itc-bad);
}

.itc-cab__more {
	display: none;
	width: 100%;
	margin-top: 14px;
	padding: 10px 14px;
	border-radius: var(--itc-radius-sm);
	border: 1px solid var(--itc-border);
	background: #fff;
	color: var(--itc-ink);
	font: inherit;
	font-size: 0.875rem;
	font-weight: 600;
	cursor: pointer;
}

.itc-cab__more::after {
	content: "";
	display: inline-block;
	width: 7px;
	height: 7px;
	margin-left: 8px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg) translateY(-2px);
}

.itc-cab__more[aria-expanded="true"]::after {
	transform: rotate(-135deg) translateY(1px);
}

.itc-cab__section h2 {
	margin: 0 0 14px;
	font-size: 1.0625rem;
	font-weight: 600;
	letter-spacing: -0.02em;
}

.itc-cab__orders-empty {
	padding: 20px 22px;
	border: 1px dashed var(--itc-border-strong);
	border-radius: var(--itc-radius);
	background: #fff;
	color: var(--itc-muted);
	text-align: center;
	font-size: 0.875rem;
}

.itc-cab__orders-empty p {
	margin: 0;
}

.itc-cab__table-wrap,
.itc-cab__items-inner {
	background: #fff;
	border: 1px solid var(--itc-border);
	border-radius: var(--itc-radius);
	overflow-x: auto;
	box-shadow: 0 1px 2px rgba(24, 24, 27, 0.05);
}

.itc-cab__table,
.itc-cab__items-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.8125rem;
}

.itc-cab__table th,
.itc-cab__table td,
.itc-cab__items-table th,
.itc-cab__items-table td {
	padding: 10px 12px;
	border-bottom: 1px solid var(--itc-border);
	text-align: left;
	vertical-align: middle;
}

.itc-cab__table th,
.itc-cab__items-table th {
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--itc-subtle);
	background: var(--itc-muted-bg);
}

.itc-cab__table tbody tr:last-child td {
	border-bottom: 0;
}

.itc-cab__amount {
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}

.itc-cab__order-mobile {
	display: none;
}

.itc-cab__order-row:has(.itc-cab__items-toggle) {
	cursor: pointer;
}

.itc-cab__order-row:hover td {
	background: var(--itc-raised);
}

.itc-cab__items-toggle {
	padding: 6px 12px;
	min-width: 128px;
	border-radius: 999px;
	border: 1px solid var(--itc-border);
	background: #fff;
	color: var(--itc-muted);
	font-size: 0.6875rem;
	font-weight: 600;
	font-family: inherit;
	cursor: pointer;
}

.itc-cab__items-toggle:hover,
.itc-cab__items-toggle:focus {
	background: var(--itc-muted-bg);
	color: var(--itc-ink);
}

.itc-cab__items-row td {
	padding: 0;
	background: var(--itc-muted-bg);
}

.itc-cab__items-cell {
	padding: 14px 16px !important;
}

.itc-cab__ship-address {
	margin: 0 0 12px;
}

.itc-cab__ship-address .itc-cab__value {
	line-height: 1.45;
}

.itc-cab__items-table code {
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 0.75rem;
}

.itc-cab__order-summary {
	display: flex;
	align-items: center;
	gap: 4px;
	width: 100%;
	padding: 8px 10px;
	border: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	text-align: left;
	cursor: pointer;
}

.itc-cab__summary-body {
	flex: 1;
	min-width: 0;
	display: flex;
	align-items: center;
	gap: 6px;
}

.itc-cab__summary-cell {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: 0.8125rem;
}

.itc-cab__summary-number,
.itc-cab__summary-amount {
	font-weight: 600;
}

.itc-cab__summary-amount {
	flex: 1;
	text-align: right;
	font-variant-numeric: tabular-nums;
}

.itc-cab__chevron {
	flex-shrink: 0;
	width: 7px;
	height: 7px;
	border-right: 2px solid var(--itc-subtle);
	border-bottom: 2px solid var(--itc-subtle);
	transform: rotate(45deg);
}

.itc-cab__order-row.is-expanded .itc-cab__chevron {
	transform: rotate(-135deg);
}

.itc-cab__order-details {
	border-top: 1px solid var(--itc-border);
}

.itc-cab__extra {
	box-shadow: none;
}

.itc-cab__extra th[scope="row"] {
	width: 42%;
	background: var(--itc-muted-bg);
}

.itc-cab__items-panel {
	margin: 0 12px 12px;
}

@media (max-width: 768px) {
	.itc-cab__layout {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.itc-cab__main {
		padding: 10px 1px;
		background: transparent;
		border: 0;
		box-shadow: none;
	}

	.itc-cab__user {
		margin-bottom: 0;
		padding-bottom: 0;
		border-bottom: 0;
		align-items: flex-start;
	}

	.itc-cab__logout--desktop {
		display: none;
	}

	.itc-cab__logout--mobile {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 2px;
		flex-shrink: 0;
		width: auto;
		min-width: 40px;
		margin: 0;
		padding: 6px;
		background: #fff;
	}

	.itc-cab__logout-caption {
		font-size: 0.625rem;
		font-weight: 600;
	}

	.itc-cab__more {
		display: inline-flex;
		align-items: center;
		justify-content: center;
	}

	.itc-cab__sidebar-extra {
		display: none;
		margin-top: 14px;
		padding-top: 14px;
		border-top: 1px solid var(--itc-border);
	}

	.itc-cab__sidebar.is-open .itc-cab__sidebar-extra {
		display: block;
	}

	.itc-cab__table thead {
		display: none;
	}

	.itc-cab__order-row {
		display: block;
		border-bottom: 1px solid var(--itc-border);
	}

	td.itc-cab__order-desktop,
	tr.itc-cab__items-row {
		display: none !important;
	}

	td.itc-cab__order-mobile {
		display: block;
		width: 100%;
		padding: 0;
		border: 0;
	}

	.itc-cab__items-table thead {
		display: none;
	}

	.itc-cab__items-table tbody tr {
		display: block;
		border-bottom: 1px solid var(--itc-border);
	}

	.itc-cab__items-table tbody td {
		display: flex;
		justify-content: space-between;
		gap: 10px;
		text-align: right;
	}

	.itc-cab__items-table tbody td::before {
		content: attr(data-label);
		flex: 0 0 40%;
		font-size: 0.6875rem;
		font-weight: 600;
		color: var(--itc-subtle);
		text-align: left;
		text-transform: uppercase;
	}
}

.itc-cab.is-loading {
	pointer-events: none;
}

.itc-cab__loader {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 12px 0 0;
	color: #5c6570;
	font-size: 14px;
}

.itc-cab__spinner {
	width: 16px;
	height: 16px;
	border: 2px solid rgba(31, 111, 235, 0.25);
	border-top-color: #1f6feb;
	border-radius: 50%;
	animation: itc-cab-spin 0.7s linear infinite;
}

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

.itc-cab-launcher {
	display: none;
}

.itc-cab-launcher.is-open {
	display: block;
}

.itc-cab-launcher__btn--icon,
.itc-cab-launcher__close {
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	cursor: pointer;
	line-height: 0;
	text-decoration: none;
}

.itc-cab-launcher__svg {
	display: block;
}

.itc-cab-launcher__backdrop {
	position: fixed;
	inset: 0;
	z-index: 99998;
	background: rgba(17, 17, 17, 0.35);
}

.itc-cab-launcher__panel {
	position: fixed;
	z-index: 99999;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: min(420px, calc(100vw - 32px));
	max-height: min(640px, calc(100vh - 48px));
	overflow: auto;
	box-sizing: border-box;
	padding: 16px 40px 8px 16px;
	background: #fff;
	color: #1a1a1a;
	border-radius: 12px;
	box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
}

.itc-cab-checkout-banner {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	width: 100%;
	margin: 0 0 16px;
	padding: 12px 14px;
	border: 0;
	border-radius: 4px;
	background: #f3f4f6;
	color: #3a3a3a;
	text-align: left;
	line-height: 1.45;
	font-size: 14px;
	cursor: pointer;
}

.itc-cab-checkout-banner__icon {
	flex: 0 0 auto;
	margin-top: 1px;
	color: #4f6bed;
}

.itc-cab-checkout-banner__link {
	text-decoration: underline;
	text-underline-offset: 2px;
}

.itc-cab-launcher__panel .itc-cab {
	max-width: none;
}

.itc-cab-launcher__close {
	position: absolute;
	top: 8px;
	right: 10px;
	width: 32px;
	height: 32px;
	font-size: 24px;
	line-height: 32px;
	text-align: center;
}

.itc-cab-checkout-banner[hidden] {
	display: none;
}
