@font-face {
	font-family: 'Fixel Display';
	src: url('/assets/fonts/FixelDisplay-Regular.otf') format('truetype');
	font-weight: 400;
}
@font-face {
	font-family: 'Fixel Display';
	src: url('/assets/fonts/FixelDisplay-Medium.otf') format('truetype');
	font-weight: 500;
}
@font-face {
	font-family: 'Fixel Display';
	src: url('/assets/fonts/FixelDisplay-SemiBold.otf') format('truetype');
	font-weight: 600;
}

:root {
	--text: #32383c;
	--tertiary: #767f8a;
	--stroke: #dbdfe4;
	--violet: #690dd3;
	--bg: #f4f6f7;
	--footer: #a8adb4;
}

body {
	margin: 0;
	min-height: 100vh;
	background: var(--bg);
}

* {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	box-sizing: border-box;
	font-family: 'Fixel Display', sans-serif;
}

h1,
h3,
p {
	margin: 0;
}

.operation-status-lookup-container {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

header {
	display: flex;
	align-items: center;
	height: 92px;
	padding: 0 62px;
	background: var(--bg);
}

header .logo {
	height: 24px;
}

header .sep {
	width: 2px;
	height: 24px;
	margin: 0 12px;
	background: var(--text);
}

header h3 {
	font-weight: 500;
	font-size: 24px;
	line-height: 28px;
	color: var(--text);
}

main {
	flex: 1 0 auto;
	display: flex;
	justify-content: center;
	padding: 80px 16px;
}

section {
	width: 100%;
	max-width: 648px;
}

h1 {
	margin-bottom: 48px;
	font-weight: 600;
	font-size: 24px;
	line-height: 28px;
	text-align: center;
	color: var(--text);
}

.form-card {
	display: flex;
	gap: 16px;
	align-items: flex-start;
	padding: 32px;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 4px 6px rgba(96, 108, 156, 0.1);
}

.input {
	position: relative;
	flex: 1 0 0;
	min-width: 0;
}

.input label {
	position: absolute;
	top: -8px;
	left: 12px;
	padding: 0 4px;
	background: #fff;
	font-size: 12px;
	line-height: 16px;
	color: var(--text);
}

.input input {
	width: 100%;
	height: 40px;
	padding: 0 16px;
	border: 1px solid var(--stroke);
	border-radius: 4px;
	font-size: 14px;
	line-height: normal;
	color: var(--text);
	outline: none;
}

.input input:focus {
	border-color: var(--violet);
}

button.submit {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 8px;
	border: none;
	border-radius: 4px;
	background: var(--violet);
	box-shadow: 0 2px 3px rgba(105, 13, 211, 0.08);
	cursor: pointer;
}

button.submit .icon-search {
	width: 20px;
	height: 20px;
	filter: brightness(0) invert(1);
}

button.submit .icon-loading {
	display: none;
	width: 20px;
	height: 20px;
	filter: brightness(0) invert(1);
}

button.submit .submit-text {
	display: none;
	font-weight: 500;
	font-size: 14px;
	line-height: 18px;
	color: #fff;
}

button.submit.loading .icon-search {
	display: none;
}

button.submit.loading .icon-loading {
	display: block;
	animation: spin 0.8s linear infinite;
}

@keyframes spin {
	from {
		transform: rotate(0deg);
	}
	to {
		transform: rotate(360deg);
	}
}

.payment-not-found {
	display: none;
	align-items: center;
	margin-top: 16px;
	padding: 16px;
	border-radius: 6px;
	background: #ffebea;
	font-size: 14px;
	line-height: 17px;
	color: #eb4235;
}

.payment-not-found.visible {
	display: flex;
}

.payment-not-found .icon-search-not-found {
	width: 24px;
	height: 24px;
	margin-right: 16px;
}

.result-card {
	display: none;
	margin-top: 16px;
	padding: 32px;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 4px 12px rgba(96, 108, 156, 0.1);
}

.result-card.visible {
	display: block;
}

.result-table {
	width: 100%;
	border-collapse: collapse;
}

.result-table tr {
	border-bottom: 1px solid var(--stroke);
}

.result-table tr:last-child {
	border-bottom: none;
}

.result-table td {
	padding: 12px 0;
	font-size: 14px;
	line-height: 18px;
	vertical-align: middle;
}

.result-table tr:first-child td {
	padding-top: 0;
}

.result-table tr:last-child td {
	padding-bottom: 0;
}

.cell-label {
	padding-right: 20px;
	font-weight: 400;
	color: var(--tertiary);
}

.cell-value {
	font-weight: 500;
	color: var(--text);
	text-align: right;
	white-space: nowrap;
}

.tag {
	display: inline-block;
	padding: 4px 8px;
	border-radius: 24px;
	font-weight: 500;
	font-size: 12px;
	line-height: 16px;
}

.tag-done {
	background: #e1f8f2;
	color: #0a7b65;
}

.tag-progress {
	background: #fff5dd;
	color: #7f560f;
}

.tag-returned {
	background: #ffebea;
	color: #c6261a;
}

footer {
	flex-shrink: 0;
	padding: 17px 63px;
	border-top: 1px solid #edeff1;
}

footer .copyright {
	font-size: 12px;
	line-height: 16px;
	color: var(--footer);
}

@media (max-width: 648px) {
	header {
		padding: 0 16px;
		justify-content: center;
	}

	main {
		padding: 32px 16px;
	}

	.form-card {
		flex-wrap: wrap;
	}

	.input {
		flex: 1 0 100%;
	}

	button.submit {
		width: 100%;
		gap: 8px;
	}

	button.submit .submit-text {
		display: inline;
	}

	.result-table tr {
		display: block;
	}

	.result-table td {
		display: block;
		padding: 0;
	}

	.result-table .cell-label {
		padding: 12px 0 4px;
	}

	.result-table .cell-value {
		padding: 0 0 12px;
		text-align: left;
		white-space: normal;
		word-break: break-word;
	}

	.result-table tr:first-child .cell-label {
		padding-top: 0;
	}

	.result-table tr:last-child .cell-value {
		padding-bottom: 0;
	}

	footer {
		padding: 17px 16px;
	}

	footer .copyright {
		text-align: center;
	}
}
