/* Valley Firearms ID Verification */
.vfid-panel, .vfid-note {
	--vfid-ink: #1f2328;
	--vfid-muted: #5b6168;
	--vfid-line: #d6d9dd;
	--vfid-bg: #f6f7f8;
	--vfid-accent: #2f5d3a;
	--vfid-accent-bg: #eaf3ec;
	--vfid-warn: #9a3b12;
	--vfid-warn-bg: #fdf0e8;
	color: var(--vfid-ink);
}
.vfid-icon { flex: none; }

/* Notices on product, cart and thank-you pages */
.vfid-note {
	display: flex; gap: 12px; align-items: flex-start;
	margin: 0 0 1.5em; padding: 12px 14px;
	border: 1px solid var(--vfid-line); border-left: 4px solid var(--vfid-accent);
	border-radius: 6px; background: #fff; font-size: .95em; line-height: 1.45;
}
.vfid-note .vfid-icon { color: var(--vfid-accent); margin-top: 1px; }
.vfid-note strong { display: block; }
.vfid-note span { color: var(--vfid-muted); }
.single-product .summary .vfid-note { margin-top: -.5em; }

/* Panel */
.vfid-panel {
	clear: both; margin: 0 0 2em; padding: 20px;
	border: 1px solid var(--vfid-line); border-radius: 10px; background: #fff;
	scroll-margin-top: 90px;
}
.vfid-panel.is-attention { border-color: var(--vfid-warn); box-shadow: 0 0 0 3px var(--vfid-warn-bg); }
.vfid-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 16px; }
.vfid-head .vfid-icon { color: var(--vfid-accent); width: 28px; height: 28px; margin-top: 2px; }
.vfid-head h3 { margin: 0 0 4px; font-size: 1.25em; line-height: 1.25; }
.vfid-head p { margin: 0; color: var(--vfid-muted); font-size: .95em; line-height: 1.45; }

.vfid-body { display: block; }
.vfid-panel.is-on-file .vfid-body { display: none; }

.vfid-onfile {
	display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: center;
	padding: 12px 14px; margin-bottom: 16px; border-radius: 8px;
	background: var(--vfid-accent-bg); font-size: .95em; line-height: 1.4;
}
.vfid-onfile .vfid-icon { color: var(--vfid-accent); }
.vfid-onfile > div { flex: 1 1 220px; }
.vfid-onfile strong { display: block; }
.vfid-onfile span { color: var(--vfid-muted); }
.vfid-panel:not(.is-on-file) .vfid-onfile { background: var(--vfid-bg); }
.vfid-link {
	background: none !important; border: 0; padding: 6px 0; color: var(--vfid-accent) !important;
	text-decoration: underline; font-weight: 600; cursor: pointer; font-size: inherit;
}

.vfid-panel fieldset.vfid-group { margin: 0 0 16px; padding: 0; border: 0; min-width: 0; background: none; }
.vfid-panel .vfid-group legend { padding: 0; margin: 0 0 8px; font-weight: 700; font-size: 1em; background: none; border: 0; }
.vfid-slots { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.vfid-slot { position: relative; }
.vfid-drop {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
	min-height: 150px; padding: 14px 10px; margin: 0;
	border: 2px dashed var(--vfid-line); border-radius: 10px; background: var(--vfid-bg);
	text-align: center; cursor: pointer; overflow: hidden; position: relative;
	transition: border-color .15s, background .15s;
}
.vfid-drop:hover, .vfid-drop.is-drag { border-color: var(--vfid-accent); background: var(--vfid-accent-bg); }
.vfid-input {
	position: absolute !important; width: 1px; height: 1px; opacity: 0; overflow: hidden; clip: rect(0 0 0 0);
}
.vfid-drop:focus-within { outline: 3px solid rgba(47, 93, 58, .45); outline-offset: 2px; }
.vfid-preview { display: flex; align-items: center; justify-content: center; color: #9aa0a6; height: 64px; }
.vfid-preview.has-image { height: 84px; }
.vfid-preview img { max-height: 84px; max-width: 100%; border-radius: 4px; object-fit: contain; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.vfid-pdf { display: inline-block; padding: 18px 16px; border-radius: 4px; background: #fff; border: 1px solid var(--vfid-line); font-weight: 700; color: var(--vfid-muted); }
.vfid-slot-text { display: flex; flex-direction: column; gap: 2px; line-height: 1.3; }
.vfid-slot-text strong { font-size: 1em; }
.vfid-hint { font-size: .85em; color: var(--vfid-muted); display: none; }
.vfid-hint .vfid-icon { width: 16px; height: 16px; vertical-align: -3px; margin-right: 2px; }

.vfid-slot[data-state="empty"] .vfid-when-empty,
.vfid-slot[data-state="done"] .vfid-when-done,
.vfid-slot[data-state="rejected"] .vfid-when-rejected,
.vfid-slot[data-state="busy"] .vfid-when-busy,
.vfid-slot[data-state="error"] .vfid-when-error,
.vfid-slot[data-state="error"] .vfid-when-empty { display: block; }

.vfid-slot[data-state="done"] .vfid-drop { border-style: solid; border-color: var(--vfid-accent); background: var(--vfid-accent-bg); }
.vfid-slot[data-state="done"] .vfid-when-done { color: var(--vfid-accent); font-weight: 600; }
.vfid-slot[data-state="rejected"] .vfid-drop,
.vfid-slot[data-state="error"] .vfid-drop { border-color: var(--vfid-warn); background: var(--vfid-warn-bg); }
.vfid-slot[data-state="rejected"] .vfid-when-rejected,
.vfid-slot[data-state="error"] .vfid-when-error { color: var(--vfid-warn); font-weight: 600; }

.vfid-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: transparent; }
.vfid-progress > span { display: block; height: 100%; width: 0; background: var(--vfid-accent); transition: width .2s; }
.vfid-slot:not([data-state="busy"]) .vfid-progress { display: none; }

.vfid-remove {
	display: none; position: absolute; top: 8px; right: 8px;
	padding: 4px 10px !important; font-size: .8em !important; line-height: 1.4 !important;
	border-radius: 999px !important; background: #fff !important; color: var(--vfid-ink) !important;
	border: 1px solid var(--vfid-line) !important; font-weight: 600;
}
.vfid-slot[data-state="done"] .vfid-remove { display: block; }

.vfid-tips { margin: 4px 0 14px 1.2em; padding: 0; color: var(--vfid-muted); font-size: .9em; line-height: 1.45; }
.vfid-tips li { margin: 0 0 2px; }

.vfid-keep { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 12px; font-size: .92em; line-height: 1.45; cursor: pointer; }
.vfid-keep input { margin-top: 3px; flex: none; width: 18px; height: 18px; }

.vfid-privacy { display: flex; gap: 8px; align-items: flex-start; margin: 0; color: var(--vfid-muted); font-size: .85em; line-height: 1.45; }
.vfid-privacy .vfid-icon { width: 18px; height: 18px; margin-top: 1px; }

.vfid-status { margin: 12px 0 0; font-weight: 600; font-size: .95em; color: var(--vfid-muted); }
.vfid-panel.is-complete .vfid-status { color: var(--vfid-accent); }
.vfid-panel.is-on-file .vfid-status { display: none; }

.vfid-submit-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 16px; }
.vfid-submit-msg { font-weight: 600; }
.vfid-panel.is-submitted .vfid-group, .vfid-panel.is-submitted .vfid-tips, .vfid-panel.is-submitted .vfid-submit,
.vfid-panel.is-submitted .vfid-keep, .vfid-panel.is-submitted .vfid-privacy, .vfid-panel.is-submitted .vfid-status { display: none; }

/* Block checkout sits in a wide wrapper */
.vfid-block-wrap { max-width: 1200px; margin: 0 auto; }

@media (min-width: 900px) {
	.vfid-body { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
	.vfid-panel.is-on-file .vfid-body { display: none; }
	.vfid-body > :not(fieldset) { grid-column: 1 / -1; }
	.vfid-panel { padding: 24px 28px; }
}
@media (max-width: 420px) {
	.vfid-panel { padding: 16px 14px; margin-left: -4px; margin-right: -4px; }
	.vfid-drop { min-height: 136px; padding: 12px 6px; }
	.vfid-head .vfid-icon { display: none; }
}
