.otc-wrapper {
	box-sizing: border-box;
	width: 100%;
	max-width: 620px;
	margin: 24px auto;
	font-size: 16px;
}

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

.otc-form {
	display: grid;
	gap: 16px;
	padding: 20px;
	border: 1px solid #e8e8e8;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.04);
}

.otc-field label {
	display: block;
	margin-bottom: 8px;
	font-weight: 700;
	line-height: 1.3;
}

.otc-field input {
	width: 100%;
	min-height: 48px;
	padding: 12px 14px;
	border: 1px solid #d8d8d8;
	border-radius: 12px;
	background: #fff;
	font-size: 16px;
	line-height: 1.4;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.otc-field input:focus {
	outline: none;
	border-color: #222;
	box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
}

.otc-button {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	min-height: 50px;
	padding: 12px 18px;
	border: 0;
	border-radius: 999px;
	background: #111;
	color: #fff;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.2;
	cursor: pointer;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.otc-button:hover {
	transform: translateY(-1px);
}

.otc-button:disabled {
	cursor: wait;
	opacity: 0.72;
	transform: none;
}

.otc-spinner {
	display: none;
	width: 18px;
	height: 18px;
	border: 2px solid rgba(255, 255, 255, 0.45);
	border-top-color: #fff;
	border-radius: 50%;
	animation: otc-spin 0.8s linear infinite;
}

.otc-button.is-loading .otc-spinner {
	display: inline-block;
}

.otc-result {
	margin-top: 18px;
}

.otc-card {
	padding: 18px;
	border-radius: 16px;
	border: 1px solid #e6e6e6;
	background: #fff;
}

.otc-card h3,
.otc-card h4 {
	margin: 0 0 12px;
	line-height: 1.3;
}

.otc-card p {
	margin: 0 0 10px;
}

.otc-status {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: baseline;
}

.otc-status strong {
	font-size: 1.08em;
}

.otc-message {
	margin-top: 12px;
	padding: 14px;
	border-radius: 12px;
	line-height: 1.55;
}

.otc-message--info {
	background: #f5f7fb;
}

.otc-message--warning {
	background: #fff7e8;
}

.otc-message--error {
	background: #fff0f0;
}

.otc-card--success {
	border-color: #d7eadc;
}

.otc-card--warning {
	border-color: #f5ddb0;
}

.otc-card--error {
	border-color: #f2c2c2;
}

.otc-package {
	margin-top: 12px;
	padding: 14px;
	border: 1px solid #ececec;
	border-radius: 12px;
	background: #fafafa;
}

.otc-package:last-child {
	margin-bottom: 0;
}

.otc-tracking-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-top: 4px;
	padding: 9px 14px;
	border-radius: 999px;
	background: #111;
	color: #fff;
	font-weight: 700;
	text-decoration: none;
}

.otc-tracking-link:hover,
.otc-tracking-link:focus {
	color: #fff;
	text-decoration: none;
	opacity: 0.86;
}

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

@media (min-width: 640px) {
	.otc-form {
		padding: 26px;
	}

	.otc-button {
		width: auto;
		justify-self: start;
		min-width: 220px;
	}

	.otc-card {
		padding: 22px;
	}
}
