/**
 * VIN lookup portal.
 *
 * Everything — header, search form and every result section — lives inside a
 * single centered container. Sections are separated by hairline rules and share
 * one horizontal inset (--ggw-pad) so the panel reads as a single object rather
 * than a stack of cards. The result list is single column, which gives every
 * value the full container width instead of the ~190px a two-column card
 * layout allows.
 */

.ggw-vin-lookup {
	--ggw-red: #e31b23;
	--ggw-red-hover: #b81218;
	--ggw-red-soft: rgba(227, 27, 35, 0.12);

	--ggw-panel: #1a1a1a;
	--ggw-inset: #151515;
	--ggw-input: #262626;

	--ggw-text: #f5f5f5;
	--ggw-muted: #8f8f8f;
	--ggw-dim: #6b6b6b;

	--ggw-border: #2e2e2e;
	--ggw-hairline: #262626;

	--ggw-green: #4caf50;
	--ggw-green-soft: rgba(76, 175, 80, 0.12);
	--ggw-amber: #ffb020;
	--ggw-amber-soft: rgba(255, 176, 32, 0.14);
	--ggw-blue: #64b5f6;
	--ggw-blue-soft: rgba(100, 181, 246, 0.14);

	--ggw-pad: 34px;
	--ggw-radius: 16px;

	--ggw-font: Montserrat, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	--ggw-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

	background: var(--ggw-panel);
	border: 1px solid var(--ggw-border);
	border-radius: var(--ggw-radius);
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
	color: var(--ggw-text);
	font-family: var(--ggw-font);
	margin: 24px auto;
	max-width: 700px;
	overflow: hidden;
	width: 100%;
}

.ggw-vin-lookup *,
.ggw-vin-lookup *::before,
.ggw-vin-lookup *::after {
	box-sizing: border-box;
}

/**
 * Neutralize theme spacing on the elements we compose with. :where() keeps the
 * reset at zero specificity so the component's own margin rules — which are all
 * single class selectors — still win.
 */
.ggw-vin-lookup :where(h2, h3, h4, p, dl, dt, dd, address) {
	margin: 0;
}

/**
 * Every top-level section shares the same inset and is divided by a hairline.
 */
.ggw-vin-lookup__section {
	border-top: 1px solid var(--ggw-hairline);
	padding: 26px var(--ggw-pad);
}

.ggw-vin-lookup__section:first-child {
	border-top: 0;
}

/* ---------------------------------------------------------------- Header */

.ggw-vin-lookup__header {
	padding: 32px var(--ggw-pad) 28px;
	text-align: center;
}

.ggw-vin-lookup__header h2 {
	color: var(--ggw-text);
	font-size: 1.15rem;
	font-weight: 700;
	letter-spacing: 2px;
	line-height: 1.3;
	text-transform: uppercase;
}

.ggw-vin-lookup__header p {
	color: var(--ggw-muted);
	font-size: 0.84rem;
	margin-top: 9px;
}

/* ---------------------------------------------------------------- Search */

.ggw-vin-lookup__form-label {
	color: var(--ggw-muted);
	display: block;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 1.2px;
	margin-bottom: 10px;
	text-transform: uppercase;
}

.ggw-vin-lookup__form-label span {
	color: var(--ggw-red);
}

.ggw-vin-lookup__form-row {
	display: flex;
	gap: 10px;
}

.ggw-vin-lookup__input {
	background: var(--ggw-input);
	border: 1px solid var(--ggw-border);
	border-radius: 10px;
	color: var(--ggw-text);
	flex: 1 1 auto;
	font-family: var(--ggw-mono);
	font-size: 0.98rem;
	letter-spacing: 1.4px;
	min-height: 50px;
	min-width: 0;
	padding: 12px 16px;
	text-transform: uppercase;
	transition: border-color 0.15s, box-shadow 0.15s;
	width: auto;
}

.ggw-vin-lookup__input::placeholder {
	color: var(--ggw-dim);
	letter-spacing: 1px;
}

.ggw-vin-lookup__input:focus {
	border-color: var(--ggw-red);
	box-shadow: 0 0 0 3px var(--ggw-red-soft);
	outline: none;
}

.ggw-vin-lookup__button {
	appearance: none;
	background: var(--ggw-red);
	border: 0;
	border-radius: 10px;
	color: #fff !important;
	cursor: pointer;
	flex: 0 0 auto;
	font-family: inherit;
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 1.2px;
	min-height: 50px;
	padding: 0 28px;
	text-decoration: none !important;
	text-transform: uppercase;
	transition: background-color 0.15s, transform 0.1s, opacity 0.15s;
	white-space: nowrap;
}

.ggw-vin-lookup__button:hover,
.ggw-vin-lookup__button:focus {
	background: var(--ggw-red-hover);
}

.ggw-vin-lookup__button:active {
	transform: scale(0.985);
}

.ggw-vin-lookup__button:disabled {
	cursor: wait;
	opacity: 0.6;
}

.ggw-vin-lookup__button--secondary {
	background: transparent;
	border: 1px solid var(--ggw-border);
	margin-left: 8px;
}

.ggw-vin-lookup__hint {
	color: var(--ggw-dim);
	font-size: 0.74rem;
	margin-top: 12px;
}

/* ---------------------------------------------------------------- Status */

.ggw-vin-lookup__status {
	align-items: center;
	border-radius: 10px;
	display: flex;
	font-size: 0.84rem;
	font-weight: 600;
	gap: 10px;
	line-height: 1.5;
	margin-top: 18px;
	padding: 12px 16px;
}

.ggw-vin-lookup__status:empty {
	display: none;
}

.ggw-vin-lookup__status svg {
	flex: 0 0 auto;
}

.ggw-vin-lookup__status.is-loading {
	background: rgba(255, 255, 255, 0.05);
	color: var(--ggw-muted);
}

.ggw-vin-lookup__status.is-error {
	background: var(--ggw-red-soft);
	color: #ff8a8f;
}

/**
 * Success is announced by the result hero, so the status line only carries the
 * message for assistive technology.
 */
.ggw-vin-lookup__status.is-success {
	clip: rect(0, 0, 0, 0);
	clip-path: inset(50%);
	height: 1px;
	margin: 0;
	overflow: hidden;
	padding: 0;
	position: absolute;
	white-space: nowrap;
	width: 1px;
}

/* ------------------------------------------------------------------ Hero */

.ggw-vin-lookup__hero {
	background: var(--ggw-inset);
	border-top: 1px solid var(--ggw-hairline);
	padding: 28px var(--ggw-pad) 26px;
	text-align: center;
}

.ggw-vin-lookup__verified {
	align-items: center;
	background: var(--ggw-green-soft);
	border-radius: 100px;
	color: var(--ggw-green);
	display: inline-flex;
	font-size: 0.68rem;
	font-weight: 700;
	gap: 7px;
	letter-spacing: 1.4px;
	margin-bottom: 16px;
	padding: 6px 14px;
	text-transform: uppercase;
}

.ggw-vin-lookup__vin-label {
	color: var(--ggw-dim);
	font-size: 0.64rem;
	font-weight: 700;
	letter-spacing: 1.6px;
	margin-bottom: 8px;
	text-transform: uppercase;
}

.ggw-vin-lookup__vin {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: center;
}

.ggw-vin-lookup__vin-number {
	color: var(--ggw-text);
	font-family: var(--ggw-mono);
	font-size: 1.6rem;
	font-weight: 700;
	letter-spacing: 1px;
	line-height: 1.2;
	overflow-wrap: anywhere;
}

.ggw-vin-lookup__copy {
	background: transparent;
	border: 1px solid var(--ggw-border);
	border-radius: 6px;
	color: var(--ggw-muted);
	cursor: pointer;
	font-family: inherit;
	font-size: 0.66rem;
	font-weight: 600;
	letter-spacing: 0.8px;
	padding: 5px 10px;
	text-transform: uppercase;
	transition: color 0.15s, border-color 0.15s;
}

.ggw-vin-lookup__copy:hover,
.ggw-vin-lookup__copy:focus {
	border-color: var(--ggw-muted);
	color: var(--ggw-text);
}

.ggw-vin-lookup__product {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: center;
	margin-top: 16px;
}

.ggw-vin-lookup__product-name {
	font-size: 0.95rem;
	font-weight: 600;
}

.ggw-vin-lookup__sku {
	background: rgba(255, 255, 255, 0.06);
	border-radius: 4px;
	color: var(--ggw-muted);
	font-family: var(--ggw-mono);
	font-size: 0.74rem;
	padding: 3px 8px;
}

.ggw-vin-lookup__badge {
	border-radius: 100px;
	font-size: 0.66rem;
	font-weight: 700;
	letter-spacing: 1px;
	padding: 5px 12px;
	text-transform: uppercase;
}

.ggw-vin-lookup__badge.is-pending {
	background: var(--ggw-amber-soft);
	color: var(--ggw-amber);
}

.ggw-vin-lookup__badge.is-success {
	background: var(--ggw-green-soft);
	color: var(--ggw-green);
}

.ggw-vin-lookup__badge.is-info {
	background: var(--ggw-blue-soft);
	color: var(--ggw-blue);
}

.ggw-vin-lookup__badge.is-danger {
	background: var(--ggw-red-soft);
	color: #ff8a8f;
}

/* -------------------------------------------------------- Section titles */

.ggw-vin-lookup__section-title {
	align-items: center;
	color: var(--ggw-muted);
	display: flex;
	font-size: 0.68rem;
	font-weight: 700;
	gap: 9px;
	letter-spacing: 1.6px;
	margin-bottom: 16px;
	text-transform: uppercase;
}

.ggw-vin-lookup__section-title svg {
	color: var(--ggw-dim);
	flex: 0 0 auto;
}

.ggw-vin-lookup__section-title::after {
	background: var(--ggw-hairline);
	content: "";
	flex: 1 1 auto;
	height: 1px;
}

/* ------------------------------------------------------------ Spec tiles */

.ggw-vin-lookup__specs {
	display: grid;
	gap: 18px 20px;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.ggw-vin-lookup__spec dt {
	color: var(--ggw-dim);
	font-size: 0.64rem;
	font-weight: 600;
	letter-spacing: 1px;
	margin-bottom: 5px;
	text-transform: uppercase;
	white-space: nowrap;
}

.ggw-vin-lookup__spec dd {
	color: var(--ggw-text);
	font-size: 0.9rem;
	font-weight: 600;
	overflow-wrap: anywhere;
}

.ggw-vin-lookup__spec dd.is-mono {
	font-family: var(--ggw-mono);
	font-size: 0.85rem;
}

/* ------------------------------------------------------------- Row lists */

.ggw-vin-lookup__row {
	align-items: baseline;
	border-bottom: 1px solid var(--ggw-hairline);
	display: flex;
	gap: 20px;
	justify-content: space-between;
	padding: 11px 0;
}

.ggw-vin-lookup__row:first-child {
	padding-top: 0;
}

.ggw-vin-lookup__row:last-child {
	border-bottom: 0;
	padding-bottom: 0;
}

.ggw-vin-lookup__row dt {
	color: var(--ggw-muted);
	flex: 0 0 auto;
	font-size: 0.84rem;
}

.ggw-vin-lookup__row dd {
	color: var(--ggw-text);
	font-size: 0.88rem;
	font-weight: 600;
	min-width: 0;
	overflow-wrap: anywhere;
	text-align: right;
}

.ggw-vin-lookup__row dd.is-mono {
	font-family: var(--ggw-mono);
	font-size: 0.84rem;
}

.ggw-vin-lookup__row dd.is-status {
	font-weight: 700;
}

.ggw-vin-lookup__row dd.is-status.is-pending {
	color: var(--ggw-amber);
}

.ggw-vin-lookup__row dd.is-status.is-success {
	color: var(--ggw-green);
}

.ggw-vin-lookup__row dd.is-status.is-info {
	color: var(--ggw-blue);
}

.ggw-vin-lookup__row dd.is-status.is-danger {
	color: #ff8a8f;
}

.ggw-vin-lookup__row dd.is-status.is-muted {
	color: var(--ggw-muted);
}

.ggw-vin-lookup__row.is-total {
	border-bottom: 0;
	border-top: 1px solid var(--ggw-border);
	margin-top: 8px;
	padding-top: 16px;
}

.ggw-vin-lookup__row.is-total dt {
	color: var(--ggw-text);
	font-size: 0.85rem;
	font-weight: 600;
}

.ggw-vin-lookup__row.is-total dd {
	font-size: 1.2rem;
	font-weight: 700;
}

.ggw-vin-lookup__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 22px;
}

.ggw-vin-lookup__actions .ggw-vin-lookup__button {
	align-items: center;
	display: inline-flex;
	justify-content: center;
}

/* ------------------------------------------------------------ Addresses */

.ggw-vin-lookup__addresses {
	display: grid;
	gap: 24px;
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.ggw-vin-lookup__addr-label {
	color: var(--ggw-dim);
	font-size: 0.64rem;
	font-weight: 700;
	letter-spacing: 1.2px;
	margin-bottom: 10px;
	text-transform: uppercase;
}

.ggw-vin-lookup__address {
	color: var(--ggw-text);
	font-size: 0.88rem;
	font-style: normal;
	line-height: 1.65;
}

.ggw-vin-lookup__address strong {
	display: block;
	font-size: 0.93rem;
	font-weight: 700;
}

.ggw-vin-lookup__company {
	color: var(--ggw-muted);
	display: block;
}

.ggw-vin-lookup__lines {
	display: block;
	margin-top: 8px;
}

.ggw-vin-lookup__contact {
	border-top: 1px solid var(--ggw-hairline);
	display: flex;
	flex-direction: column;
	gap: 9px;
	margin-top: 14px;
	padding-top: 14px;
}

.ggw-vin-lookup__contact a {
	align-items: center;
	color: var(--ggw-text);
	display: inline-flex;
	font-size: 0.84rem;
	gap: 9px;
	overflow-wrap: anywhere;
	text-decoration: none;
}

.ggw-vin-lookup__contact a:hover,
.ggw-vin-lookup__contact a:focus {
	color: var(--ggw-red);
	text-decoration: underline;
}

.ggw-vin-lookup__contact svg {
	color: var(--ggw-dim);
	flex: 0 0 auto;
}

.ggw-vin-lookup__same-as {
	align-items: center;
	color: var(--ggw-muted);
	display: flex;
	font-size: 0.84rem;
	gap: 8px;
}

.ggw-vin-lookup__same-as svg {
	color: var(--ggw-green);
	flex: 0 0 auto;
}

/* ------------------------------------------------------- Reference IDs */

.ggw-vin-lookup__refs {
	background: var(--ggw-inset);
	border-top: 1px solid var(--ggw-hairline);
	color: var(--ggw-dim);
	display: flex;
	flex-wrap: wrap;
	font-family: var(--ggw-mono);
	font-size: 0.7rem;
	gap: 6px 20px;
	justify-content: center;
	padding: 14px var(--ggw-pad);
}

/* ---------------------------------------------------------- Signed out */

.ggw-vin-lookup__notice {
	border-top: 1px solid var(--ggw-hairline);
	padding: 34px var(--ggw-pad) 38px;
	text-align: center;
}

.ggw-vin-lookup__notice-icon {
	align-items: center;
	background: rgba(255, 255, 255, 0.05);
	border-radius: 50%;
	color: var(--ggw-muted);
	display: inline-flex;
	height: 52px;
	justify-content: center;
	margin-bottom: 16px;
	width: 52px;
}

.ggw-vin-lookup__notice h3 {
	color: var(--ggw-text);
	font-size: 0.98rem;
	margin-bottom: 8px;
}

.ggw-vin-lookup__notice p {
	color: var(--ggw-muted);
	font-size: 0.86rem;
	line-height: 1.6;
	margin: 0 auto 22px;
	max-width: 380px;
}

.ggw-vin-lookup__notice .ggw-vin-lookup__button {
	display: inline-block;
	line-height: 50px;
	padding: 0 32px;
}

/* --------------------------------------------------------- Responsive */

@media (max-width: 600px) {
	.ggw-vin-lookup {
		--ggw-pad: 20px;

		margin: 16px auto;
	}

	.ggw-vin-lookup__form-row {
		flex-direction: column;
	}

	.ggw-vin-lookup__button {
		width: 100%;
	}

	.ggw-vin-lookup__vin-number {
		font-size: 1.25rem;
	}

	.ggw-vin-lookup__specs {
		gap: 16px;
		grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
	}

	.ggw-vin-lookup__row {
		flex-direction: column;
		gap: 3px;
	}

	.ggw-vin-lookup__row dd {
		text-align: left;
	}
}
