/* Product SN Verification - frontend */

.psv-page {
	--psv-green: #2f854d;
	--psv-green-dark: #267140;
	--psv-text: #001f3f;
	--psv-placeholder: #bfc5cc;
	--psv-border: #e5e5e5;
	--psv-overlay: rgba(0, 0, 0, 0.55);
	font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
	color: var(--psv-text);
	line-height: 1.5;
	background: #fff;
	margin: 0;
	min-height: 100vh;
}

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

.psv-shell {
	width: 100%;
	max-width: 812px;
	min-height: 690px;
	padding: 50px 20px 64px;
	background: #fff;
}

.psv-card {
	width: 100%;
	background: transparent;
	box-shadow: none;
	padding: 0;
}

.psv-card__intro {
	max-width: 760px;
	margin: 0 0 58px;
	padding-left: 36px;
	font-size: 17px;
	font-weight: 400;
	line-height: 1.6;
	color: #001f3f;
}

.psv-card__sticker {
	width: 100%;
	margin: 0 0 28px;
}

.psv-card__sticker img {
	display: block;
	width: 100%;
	max-width: 770px;
	height: 197px;
	object-fit: cover;
	object-position: center;
}

.psv-form {
	width: 100%;
	max-width: 706px;
	margin-left: 14px;
	display: flex;
	flex-direction: column;
}

.psv-honeypot {
	position: absolute !important;
	left: -9999px !important;
	opacity: 0 !important;
	height: 0 !important;
	width: 0 !important;
	pointer-events: none;
}

.psv-field {
	border: 0;
	margin: 0 0 23px;
}

.psv-field select,
.psv-field input[type="text"] {
	width: 100%;
	border: 0;
	outline: 0;
	background: transparent;
	color: var(--psv-text);
	font: inherit;
	font-size: 18px;
	line-height: 1.35;
	padding: 0;
	min-height: 34px;
}

.psv-field select {
	appearance: none;
	background: transparent;
	cursor: pointer;
	color: var(--psv-text);
}

.psv-field input::placeholder {
	color: var(--psv-placeholder);
	opacity: 1;
}

.psv-field--captcha-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	margin-bottom: 9px;
}

.psv-field--captcha-row input[type="text"] {
	flex: 1;
	min-width: 0;
}

.psv-captcha {
	display: flex;
	align-items: center;
	flex: 0 0 auto;
	min-width: 90px;
	justify-content: flex-end;
}

.psv-captcha__code {
	color: #001b36;
	font-size: 18px;
	font-weight: 700;
	letter-spacing: 0;
	user-select: none;
	white-space: nowrap;
}

.psv-captcha__refresh {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.psv-form-error {
	color: #c62828;
	font-size: 14px;
	text-align: center;
	margin: 8px 0 0;
}

.psv-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	border: 0;
	font-family: inherit;
	font-size: 18px;
	font-weight: 700;
	line-height: 1;
	transition: background 0.2s;
}

.psv-btn--verify {
	width: 152px;
	height: 52px;
	margin: 7px auto 0;
	background: var(--psv-green);
	color: #fff;
	border-radius: 7px;
}

.psv-btn--verify:hover {
	background: var(--psv-green-dark);
}

.psv-btn--verify:disabled {
	opacity: 0.65;
	cursor: not-allowed;
}

.psv-modal-overlay {
	position: fixed;
	inset: 0;
	z-index: 100000;
	background: var(--psv-overlay);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	overflow-y: auto;
}

.psv-modal-overlay[hidden] {
	display: none !important;
}

.psv-modal {
	position: relative;
	width: 100%;
	max-width: 640px;
	max-height: 90vh;
	overflow-y: auto;
	background: #fff;
	padding: 36px 40px 32px;
	box-shadow: 0 12px 48px rgba(0, 0, 0, 0.25);
	color: #333;
}

.psv-modal__close {
	position: absolute;
	top: 12px;
	right: 16px;
	background: none;
	border: 0;
	font-size: 24px;
	line-height: 1;
	color: #999;
	cursor: pointer;
	padding: 4px 8px;
}

.psv-modal__close:hover {
	color: #333;
}

.psv-modal__intro {
	font-size: 14px;
	color: #666;
	text-align: center;
	margin: 0 0 12px;
	line-height: 1.5;
}

.psv-modal__warranty {
	font-size: 15px;
	color: #333;
	text-align: center;
	margin: 0 0 24px;
	line-height: 1.55;
}

.psv-result-list {
	margin: 0 0 28px;
	padding: 0;
}

.psv-result-row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 16px;
	padding: 12px 0;
	border-bottom: 1px dotted var(--psv-border);
}

.psv-result-row:last-child {
	border-bottom: 0;
}

.psv-result-row dt {
	margin: 0;
	font-weight: 400;
	font-size: 14px;
	color: #666;
}

.psv-result-row dd {
	margin: 0;
	font-weight: 700;
	font-size: 15px;
	color: #000;
	text-align: right;
	word-break: break-word;
}

.psv-btn--back {
	display: flex;
	width: 140px;
	height: 44px;
	margin: 0 auto;
	background: var(--psv-green);
	color: #fff;
	border-radius: 7px;
}

.psv-btn--back:hover {
	background: var(--psv-green-dark);
}

body.psv-modal-open {
	overflow: hidden;
}

@media (max-width: 700px) {
	.psv-shell {
		min-height: auto;
		padding: 32px 18px 48px;
	}

	.psv-card__intro {
		padding-left: 0;
		margin-bottom: 34px;
		font-size: 16px;
	}

	.psv-card__sticker img {
		height: auto;
		aspect-ratio: 770 / 197;
	}

	.psv-form {
		max-width: none;
		margin-left: 0;
	}

	.psv-field select,
	.psv-field input[type="text"],
	.psv-captcha__code {
		font-size: 16px;
	}

	.psv-field--captcha-row {
		gap: 12px;
	}
}
