/* ==== Phone Lookup styles ==== */

.phone-lookup-wrapper {
	max-width: 520px;
	margin: 24px auto;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Tahoma, Arial, sans-serif;
}

.phone-lookup-box {
	background: #ffffff;
	border: 1px solid #e6e8eb;
	border-radius: 14px;
	padding: 24px;
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
}

.phone-lookup-title {
	margin: 0 0 18px;
	font-size: 20px;
	font-weight: 700;
	color: #1f2937;
	text-align: center;
}

.phone-lookup-fields {
	display: flex;
	gap: 12px;
	margin-bottom: 16px;
}

.phone-lookup-field {
	display: flex;
	flex-direction: column;
}

.phone-lookup-field-code {
	flex: 0 0 110px;
}

.phone-lookup-field-number {
	flex: 1 1 auto;
}

.phone-lookup-field label {
	font-size: 13px;
	font-weight: 600;
	color: #6b7280;
	margin-bottom: 6px;
}

.phone-lookup-input {
	width: 100%;
	padding: 12px 14px;
	font-size: 16px;
	border: 1px solid #d1d5db;
	border-radius: 10px;
	background: #f9fafb;
	color: #111827;
	box-sizing: border-box;
	transition: border-color 0.15s ease, background 0.15s ease;
}

.phone-lookup-input:focus {
	outline: none;
	border-color: #2563eb;
	background: #ffffff;
}

.phone-lookup-button {
	position: relative;
	width: 100%;
	padding: 13px 18px;
	font-size: 16px;
	font-weight: 700;
	color: #ffffff;
	background: #2563eb;
	border: none;
	border-radius: 10px;
	cursor: pointer;
	transition: background 0.15s ease, opacity 0.15s ease;
}

.phone-lookup-button:hover {
	background: #1d4ed8;
}

.phone-lookup-button:disabled {
	opacity: 0.7;
	cursor: not-allowed;
}

.phone-lookup-spinner {
	display: none;
	width: 16px;
	height: 16px;
	margin-inline-start: 8px;
	border: 2px solid rgba(255, 255, 255, 0.5);
	border-top-color: #ffffff;
	border-radius: 50%;
	vertical-align: middle;
	animation: phone-lookup-spin 0.7s linear infinite;
}

.phone-lookup-button.is-loading .phone-lookup-spinner {
	display: inline-block;
}

@keyframes phone-lookup-spin {
	to {
		transform: rotate(360deg);
	}
}

.phone-lookup-result {
	margin-top: 18px;
}

.phone-lookup-result:empty {
	margin-top: 0;
}

.phone-lookup-result-card {
	background: #f9fafb;
	border: 1px solid #e6e8eb;
	border-radius: 10px;
	padding: 14px 16px;
}

.phone-lookup-row {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 8px 0;
	border-bottom: 1px solid #eef0f2;
}

.phone-lookup-row:last-child {
	border-bottom: none;
}

.phone-lookup-row-key {
	font-weight: 600;
	color: #6b7280;
	word-break: break-word;
}

.phone-lookup-row-value {
	color: #111827;
	text-align: left;
	word-break: break-word;
}

.phone-lookup-raw {
	white-space: pre-wrap;
	word-break: break-word;
	font-size: 14px;
	color: #111827;
	margin: 0;
}

.phone-lookup-error {
	background: #fef2f2;
	border: 1px solid #fecaca;
	color: #b91c1c;
	border-radius: 10px;
	padding: 12px 14px;
	font-size: 14px;
}
