/* Device Finder widget — mobile-first, theme-neutral. */

.device-finder {
	max-width: 480px;
	margin: 0 auto;
	padding: 20px;
	border: 1px solid rgba(0, 0, 0, 0.1);
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
	font-family: inherit;
	color: #1a1a1a;
}

.df-title {
	margin: 0 0 12px;
	font-size: 1.25em;
	line-height: 1.3;
	text-align: center;
}

.df-status,
.df-question,
.df-hint {
	margin: 0 0 16px;
	font-size: 1em;
	line-height: 1.45;
	text-align: center;
}

.df-hint {
	font-size: 0.9em;
	color: #555;
}

.df-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
	gap: 10px;
}

.df-option {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 96px;
	padding: 14px 10px;
	border: 2px solid #e3e3e3;
	border-radius: 12px;
	background: #fafafa;
	cursor: pointer;
	font-size: 0.95em;
	line-height: 1.3;
	text-align: center;
	color: inherit;
	transition: border-color 0.15s ease, transform 0.1s ease;
	-webkit-tap-highlight-color: transparent;
}

.df-option:hover,
.df-option:focus-visible {
	border-color: #1a1a1a;
	background: #fff;
}

.df-option:active {
	transform: scale(0.97);
}

.df-option svg {
	width: 56px;
	height: 52px;
	display: block;
}

.df-bump {
	fill: #e8e8e8;
	stroke: #999;
	stroke-width: 1.5;
}

.df-lens {
	fill: #444;
}

.df-card strong {
	font-size: 1.02em;
}

.df-card span {
	color: #777;
	font-size: 0.85em;
}

.df-result {
	padding: 20px 14px;
	border-radius: 12px;
	background: #f0f9f2;
	border: 1px solid #bfe5c8;
	text-align: center;
}

.df-result-label {
	margin: 0 0 6px;
	font-size: 0.9em;
	color: #2e6b3f;
}

.df-result-model {
	margin: 0;
	font-size: 1.45em;
	font-weight: 700;
	color: #1c4526;
}

.df-restart {
	display: block;
	margin: 14px auto 0;
	padding: 8px 14px;
	border: none;
	background: none;
	color: #666;
	font-size: 0.88em;
	text-decoration: underline;
	cursor: pointer;
}

.df-restart:hover {
	color: #1a1a1a;
}

.df-manual {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.df-input {
	width: 100%;
	box-sizing: border-box;
	padding: 12px 14px;
	border: 2px solid #e3e3e3;
	border-radius: 10px;
	font-size: 1em;
}

.df-input:focus {
	outline: none;
	border-color: #1a1a1a;
}

.df-go {
	min-height: 48px;
	background: #1a1a1a;
	border-color: #1a1a1a;
	color: #fff;
	font-weight: 600;
}

.df-go:hover,
.df-go:focus-visible {
	background: #333;
	color: #fff;
}

.df-emoji {
	font-size: 30px;
	line-height: 1;
}

.df-brand {
	min-height: 60px;
	font-weight: 600;
}

.df-qr {
	display: block;
	margin: 0 auto 14px;
	border: 1px solid #e3e3e3;
	border-radius: 8px;
	image-rendering: pixelated;
}

/* ----- persistent badge ----- */

.df-badge {
	position: fixed;
	left: 16px;
	bottom: 16px;
	z-index: 99998;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 14px;
	background: #1a1a1a;
	color: #fff;
	border-radius: 999px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
	font-size: 0.88em;
	line-height: 1.2;
	max-width: calc(100vw - 32px);
}

.df-badge-label strong {
	font-weight: 700;
}

.df-badge-check {
	color: #7dd88f;
}

.df-badge-change {
	flex-shrink: 0;
	border: 1px solid rgba(255, 255, 255, 0.35);
	background: none;
	color: #fff;
	border-radius: 999px;
	padding: 4px 12px;
	font-size: 0.92em;
	cursor: pointer;
}

.df-badge-change:hover {
	background: rgba(255, 255, 255, 0.15);
}

/* ----- change-phone popover ----- */

.df-popover {
	position: fixed;
	left: 16px;
	bottom: 72px;
	z-index: 99999;
	width: 360px;
	max-width: calc(100vw - 32px);
	max-height: 70vh;
	overflow-y: auto;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
	padding: 8px;
}

.df-popover .device-finder {
	border: none;
	box-shadow: none;
	padding: 16px;
}

.df-popover-close {
	position: absolute;
	top: 8px;
	right: 10px;
	z-index: 1;
	border: none;
	background: none;
	font-size: 22px;
	line-height: 1;
	color: #888;
	cursor: pointer;
	padding: 4px 8px;
}

.df-popover-close:hover {
	color: #1a1a1a;
}

@media (max-width: 380px) {
	.df-grid {
		grid-template-columns: 1fr 1fr;
	}
}
