/**
 * WooCommerce Product Verification - front-end styles.
 */

.wcpv-verify {
	max-width: 520px;
	margin: 1.5em auto;
	box-sizing: border-box;
}

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

.wcpv-verify__card {
	background: #fff;
	border: 1px solid #e3e6ea;
	border-radius: 12px;
	padding: 28px;
	box-shadow: 0 4px 18px rgba( 0, 0, 0, 0.05 );
}

.wcpv-verify__title {
	margin: 0 0 8px;
	font-size: 1.5rem;
	line-height: 1.25;
}

.wcpv-verify__intro {
	margin: 0 0 20px;
	color: #555f6d;
	font-size: 0.95rem;
}

.wcpv-verify__form {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.wcpv-verify__input {
	flex: 1 1 180px;
	min-width: 0;
	padding: 12px 14px;
	font-size: 1.25rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	text-align: center;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	border: 2px solid #d4d8dd;
	border-radius: 8px;
	background: #fbfcfd;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.wcpv-verify__input:focus {
	outline: none;
	border-color: #2563eb;
	box-shadow: 0 0 0 3px rgba( 37, 99, 235, 0.15 );
}

.wcpv-verify__button {
	flex: 0 0 auto;
	padding: 12px 26px;
	font-size: 1rem;
	font-weight: 600;
	color: #fff;
	background: #2563eb;
	border: 0;
	border-radius: 8px;
	cursor: pointer;
	transition: background 0.15s ease, opacity 0.15s ease;
}

.wcpv-verify__button:hover {
	background: #1d4ed8;
}

.wcpv-verify__button:disabled {
	opacity: 0.65;
	cursor: default;
}

.wcpv-verify__result {
	margin-top: 18px;
}

.wcpv-verify__result:empty {
	display: none;
}

/* Result messages */
.wcpv-message {
	border-radius: 10px;
	padding: 20px;
	border: 1px solid transparent;
}

.wcpv-message__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	font-size: 1.25rem;
	font-weight: 700;
	margin-bottom: 10px;
	color: #fff;
}

.wcpv-message__text {
	font-size: 1.05rem;
}

.wcpv-message__text p {
	margin: 0 0 0.5em;
}

.wcpv-message__subhead {
	margin: 12px 0 4px;
	font-weight: 700;
	text-transform: uppercase;
	font-size: 0.78rem;
	letter-spacing: 0.05em;
	opacity: 0.75;
}

.wcpv-message__details {
	list-style: none;
	margin: 14px 0 0;
	padding: 0;
}

.wcpv-message__details li {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 8px 0;
	border-top: 1px solid rgba( 0, 0, 0, 0.08 );
	font-size: 0.95rem;
}

.wcpv-message__details li span {
	color: #5b6571;
}

.wcpv-message--success {
	background: #ecfdf3;
	border-color: #b7ebc6;
	color: #11663a;
}

.wcpv-message--success .wcpv-message__icon {
	background: #16a34a;
}

.wcpv-message--warning {
	background: #fff7ed;
	border-color: #fed7aa;
	color: #9a3412;
}

.wcpv-message--warning .wcpv-message__icon {
	background: #ea580c;
}

.wcpv-message--error {
	background: #fef2f2;
	border-color: #fecaca;
	color: #991b1b;
}

.wcpv-message--error .wcpv-message__icon {
	background: #dc2626;
}

/* RTL */
.wcpv-verify[dir="rtl"] .wcpv-verify__input {
	letter-spacing: 0.18em;
}

@media ( max-width: 480px ) {
	.wcpv-verify__card {
		padding: 20px;
	}

	.wcpv-verify__button {
		flex: 1 1 100%;
	}
}
