.tlcot {
	--tlcot-border: #ddd;
	--tlcot-muted: #5f6368;
	--tlcot-surface: #fff;
	--tlcot-accent: #1677a6;
	--tlcot-danger: #9f1d1d;
	--tlcot-warning: #7a4d00;
	max-width: 960px;
	margin: 0 auto;
}

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

.tlcot__intro {
	color: var(--tlcot-muted);
}

.tlcot-form {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
	padding: 1.25rem;
	margin: 1rem 0 2rem;
	background: var(--tlcot-surface);
	border: 1px solid var(--tlcot-border);
	border-radius: 8px;
}

.tlcot-form__field {
	display: flex;
	flex-direction: column;
	gap: .35rem;
}

.tlcot-form__field label {
	font-weight: 600;
}

.tlcot-form__field input {
	width: 100%;
	min-height: 44px;
}

.tlcot-form__field small {
	color: var(--tlcot-muted);
}

.tlcot-button {
	min-height: 44px;
	align-self: end;
}

.tlcot :is(a, button, input):focus-visible {
	outline: 3px solid var(--tlcot-accent);
	outline-offset: 2px;
}

.tlcot-alert {
	padding: .9rem 1rem;
	margin: 1rem 0;
	border-left: 4px solid currentcolor;
	background: #f7f7f7;
}

.tlcot-alert--error {
	color: var(--tlcot-danger);
}

.tlcot-alert--warning {
	color: var(--tlcot-warning);
}

.tlcot-result__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1rem;
}

.tlcot-result__header h2,
.tlcot-result__header p {
	margin-top: 0;
}

.tlcot-status {
	display: inline-flex;
	align-items: center;
	min-height: 36px;
	padding: .45rem .75rem;
	border: 1px solid var(--tlcot-border);
	border-radius: 999px;
	font-weight: 600;
}

.tlcot-status--delivered {
	border-color: #1e7b42;
	color: #1e7b42;
}

.tlcot-status--exception,
.tlcot-status--failed,
.tlcot-status--cancelled {
	border-color: var(--tlcot-danger);
	color: var(--tlcot-danger);
}

.tlcot-status--exception::before {
	margin-right: .35rem;
	content: "⚠";
}

.tlcot-shipments {
	display: grid;
	gap: 1rem;
}

.tlcot-shipment,
.tlcot-empty {
	padding: 1.25rem;
	background: var(--tlcot-surface);
	border: 1px solid var(--tlcot-border);
	border-radius: 8px;
}

.tlcot-shipment__header {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
}

.tlcot-shipment__title {
	margin: 0;
}

.tlcot-shipment__number {
	display: flex;
	flex-direction: column;
	gap: .25rem;
}

.tlcot-shipment__number code {
	word-break: break-all;
}

.tlcot-shipment__products ul {
	margin-bottom: 1rem;
}

.tlcot-shipment__note {
	padding: .75rem;
	margin: 1rem 0;
	background: #f7f7f7;
}

.tlcot-shipment__note p {
	margin-bottom: 0;
}

.tlcot-account-orders {
	display: grid;
	gap: .75rem;
}

.tlcot-account-order {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(150px, auto) auto;
	align-items: center;
	gap: 1rem;
	padding: 1rem;
	border: 1px solid var(--tlcot-border);
	border-radius: 8px;
	background: var(--tlcot-surface);
}

.tlcot-account-order h3,
.tlcot-account-order p {
	margin-top: 0;
}

.tlcot-pagination {
	margin-top: 1.5rem;
}

.tlcot-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
}

@media (max-width: 600px) {
	.tlcot-form {
		grid-template-columns: 1fr;
		padding: 1rem;
	}

	.tlcot-result__header,
	.tlcot-shipment__header {
		flex-direction: column;
	}

	.tlcot-account-order {
		grid-template-columns: 1fr;
	}

	.tlcot-button {
		width: 100%;
		text-align: center;
	}
}

@media (prefers-reduced-motion: reduce) {
	.tlcot * {
		scroll-behavior: auto !important;
		transition: none !important;
	}
}
