.lgdh-search {
	--lgdh-black: #171717;
	--lgdh-red: #a50000;
	--lgdh-red-dark: #7d0000;
	--lgdh-green: #16805b;
	--lgdh-border: #d7d7d7;
	--lgdh-muted: #666;
	--lgdh-radius: 16px;
	max-width: 960px;
	margin: 30px auto;
	padding: clamp(22px, 5vw, 52px);
	border: 1px solid var(--lgdh-border);
	border-radius: 24px;
	background: #fff;
	box-shadow: 0 18px 55px rgba(0, 0, 0, .08);
	color: var(--lgdh-black);
}

.lgdh-search *,
.lgdh-search *::before,
.lgdh-search *::after {
	box-sizing: border-box;
}

.lgdh-search__intro {
	max-width: 840px;
	margin: 0 auto 28px;
	text-align: center;
}

.lgdh-search__eyebrow {
	display: inline-block;
	margin-bottom: 8px;
	color: var(--lgdh-red);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .12em;
	text-transform: uppercase;
}

.lgdh-search__intro h2 {
	margin: 0 0 10px;
	color: var(--lgdh-black);
	font-size: clamp(28px, 4vw, 44px);
	line-height: 1.12;
}

.lgdh-search__intro p,
.lgdh-search__hint {
	color: var(--lgdh-muted);
}

.lgdh-search__intro p {
	margin: 0;
	font-size: 16px;
	white-space: nowrap;
}

.lgdh-search__field {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 122px 176px;
	align-items: center;
	overflow: hidden;
	border: 2px solid #b9b9b9;
	border-radius: var(--lgdh-radius);
	background: #fff;
	transition: border-color .2s, box-shadow .2s;
}

.lgdh-search__field:focus-within {
	border-color: var(--lgdh-red);
	box-shadow: 0 0 0 4px rgba(165, 0, 0, .1);
}

.lgdh-search__field input {
	min-width: 0;
	width: 100% !important;
	height: 58px !important;
	min-height: 58px !important;
	margin: 0 !important;
	padding: 0 18px !important;
	border: 0 !important;
	border-radius: 0 !important;
	outline: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	color: var(--lgdh-black) !important;
	font-size: 17px;
	line-height: 58px !important;
	vertical-align: middle;
}

.lgdh-search__field select {
	width: 100% !important;
	height: 58px !important;
	min-height: 58px !important;
	margin: 0 !important;
	padding: 0 32px 0 15px !important;
	border: 0 !important;
	border-left: 1px solid var(--lgdh-border) !important;
	border-radius: 0 !important;
	outline: 0 !important;
	background-color: #f7f7f7 !important;
	box-shadow: none !important;
	color: var(--lgdh-black) !important;
	font-size: 16px !important;
	font-weight: 700;
	line-height: 58px !important;
	cursor: pointer;
}

.lgdh-search__field button,
.lgdh-result__add {
	border: 0;
	background: var(--lgdh-red);
	color: #fff;
	font-weight: 800;
	cursor: pointer;
	transition: background .2s, transform .2s;
}

.lgdh-search__field button {
	width: auto;
	height: 48px;
	min-height: 48px;
	min-width: 0;
	padding: 0 22px;
	border-radius: 12px;
	margin: 5px;
	line-height: 48px;
	text-transform: uppercase;
	white-space: nowrap;
}

.lgdh-search__field button:hover,
.lgdh-result__add:hover {
	background: var(--lgdh-red-dark);
}

.lgdh-search__field button:disabled,
.lgdh-result__add:disabled {
	opacity: .58;
	cursor: not-allowed;
}

.lgdh-search__hint {
	margin: 9px 4px 0;
	font-size: 13px;
}

.lgdh-search__notice {
	display: none;
	margin-top: 18px;
	padding: 12px 15px;
	border-radius: 10px;
}

.lgdh-search__notice:not(:empty) {
	display: block;
}

.lgdh-search__notice--error {
	border: 1px solid #f4b6b6;
	background: #fff2f2;
	color: #8b1d1d;
}

.lgdh-search__results {
	display: grid;
	gap: 18px;
	margin-top: 24px;
}

.lgdh-loading {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	min-height: 90px;
	color: var(--lgdh-muted);
}

.lgdh-loading span {
	width: 22px;
	height: 22px;
	border: 3px solid #ddd;
	border-top-color: var(--lgdh-red);
	border-radius: 50%;
	animation: lgdh-spin .8s linear infinite;
}

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

.lgdh-result {
	padding: 22px;
	border: 1px solid var(--lgdh-border);
	border-radius: var(--lgdh-radius);
	background: #fff;
}

.lgdh-result--available {
	border-color: #b9d9ce;
	background: linear-gradient(145deg, #fff 0%, #f6fbf9 100%);
}

.lgdh-result--unavailable,
.lgdh-result--unknown {
	background: #f7f7f7;
}

.lgdh-result__summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
}

.lgdh-result__status {
	display: flex;
	align-items: center;
	gap: 7px;
	color: var(--lgdh-muted);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.lgdh-result__status i {
	display: block;
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: #777;
}

.lgdh-result--available .lgdh-result__status {
	color: var(--lgdh-green);
}

.lgdh-result--available .lgdh-result__status i {
	background: var(--lgdh-green);
}

.lgdh-result--unavailable .lgdh-result__status,
.lgdh-result--unknown .lgdh-result__status {
	color: var(--lgdh-red);
}

.lgdh-result--unavailable .lgdh-result__status i,
.lgdh-result--unknown .lgdh-result__status i {
	background: var(--lgdh-red);
}

.lgdh-result h3 {
	margin: 5px 0 0;
	color: var(--lgdh-black);
	font-size: clamp(20px, 3vw, 28px);
	overflow-wrap: anywhere;
}

.lgdh-result__message {
	margin: 5px 0 0;
	color: var(--lgdh-muted);
	font-size: 13px;
}

.lgdh-result__price {
	color: var(--lgdh-black);
	font-size: 22px;
	font-weight: 900;
	text-align: right;
	white-space: nowrap;
}

.lgdh-result__price small {
	display: block;
	color: var(--lgdh-muted);
	font-size: 11px;
	font-weight: 600;
}

.lgdh-hosting {
	margin: 20px 0 16px;
	padding-top: 18px;
	border-top: 1px solid var(--lgdh-border);
}

.lgdh-hosting h4 {
	margin: 0 0 4px;
	font-size: 16px;
}

.lgdh-hosting__required {
	margin: 0 0 12px;
	color: var(--lgdh-muted);
	font-size: 12px;
}

.lgdh-hosting-card {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 9px;
	padding: 13px 15px;
	border: 1px solid var(--lgdh-border);
	border-radius: 12px;
	background: #fff;
	cursor: pointer;
	transition: border-color .2s, box-shadow .2s;
}

.lgdh-hosting-card:has(input:checked) {
	border-color: var(--lgdh-red);
	box-shadow: 0 0 0 3px rgba(165, 0, 0, .09);
}

.lgdh-hosting-card input {
	flex: 0 0 auto;
	margin: 0;
	accent-color: var(--lgdh-red);
}

.lgdh-hosting-card__content {
	display: flex;
	flex: 1;
	flex-direction: column;
}

.lgdh-hosting-card__content strong {
	color: var(--lgdh-black);
}

.lgdh-hosting-card__content small {
	margin-top: 2px;
	color: var(--lgdh-muted);
}

.lgdh-hosting-card__price {
	color: var(--lgdh-black);
	font-weight: 800;
	text-align: right;
}

.lgdh-result__add {
	width: 100%;
	min-height: 50px;
	padding: 12px 18px;
	border-radius: 12px;
}

.lgdh-hosting--empty {
	color: var(--lgdh-red);
}

@media (max-width: 650px) {
	.lgdh-search {
		margin: 16px auto;
		padding: 20px 15px;
		border-radius: 16px;
	}

	.lgdh-search__intro p {
		white-space: normal;
	}

	.lgdh-search__field {
		grid-template-columns: minmax(0, 1fr) 108px;
	}

	.lgdh-search__field input {
		height: 54px !important;
		min-height: 54px !important;
		line-height: 54px !important;
	}

	.lgdh-search__field select {
		height: 54px !important;
		min-height: 54px !important;
		padding-left: 10px !important;
		line-height: 54px !important;
	}

	.lgdh-search__field button {
		grid-column: 1 / -1;
		width: calc(100% - 10px);
		min-height: 48px;
	}

	.lgdh-result__summary,
	.lgdh-hosting-card {
		align-items: flex-start;
	}

	.lgdh-result__summary {
		flex-direction: column;
	}

	.lgdh-result__price {
		text-align: left;
	}

	.lgdh-hosting-card__price {
		font-size: 13px;
	}
}
