.cpl-part-lookup {
	max-width: 1400px;
	margin: auto;
	padding: 20px;
}

.cpl-search-label {
	display: block;
	color: #bfc9d6;
	font-weight: 600;
	font-size: 14px;
	margin-bottom: 8px;
}

.cpl-search-row {
	width: 100%;
	display: flex;
	align-items: center;
	gap: 8px;
	background: linear-gradient(180deg, #162434, #111c2b);
	border: 1px solid rgba(255, 255, 255, .15);
	border-radius: 18px;
	padding: 6px;
	height: 65px;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 10px 20px rgba(0, 0, 0, .25);
	box-sizing: border-box;
}

/*
 * Specificity bumped (.cpl-part-lookup ancestor) and border/outline/
 * box-shadow/appearance explicitly reset on every rule below — the theme
 * applies its own default border to bare <input>/<button> elements with
 * enough specificity to beat a plain single-class selector, which showed
 * up as a stray grey ring around the search box (and the same thing was
 * already found and fixed for the modal's buttons/close icon above).
 */
.cpl-part-lookup .cpl-search-input {
	flex: 1 1 auto;
	background: transparent;
	background-image: none;
	border: none;
	outline: none;
	box-shadow: none;
	appearance: none;
	-webkit-appearance: none;
	color: #fff;
	font-size: 17px;
	padding: 0 0 0 15px;
}

.cpl-part-lookup .cpl-search-input::placeholder {
	color: #9ba7b4;
}

.cpl-part-lookup .cpl-search-button {
	width: 150px;
	height: 50px;
	border: none;
	box-shadow: none;
	appearance: none;
	-webkit-appearance: none;
	border-radius: 12px;
	background: #01cee7;
	background-image: none;
	color: #08202a;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	white-space: nowrap;
	transition: .3s;
}

.cpl-part-lookup .cpl-search-button:hover {
	background: linear-gradient(180deg, #438aff, #2568ff);
	color: #fff;
	transform: translateY(-2px);
}

.cpl-search-form.cpl-search-loading {
	opacity: 0.6;
	pointer-events: none;
}

.cpl-search-helper {
	margin: 8px 0 0;
	font-size: 13px;
	color: #9ba7b4;
}

.cpl-search-result,
.cpl-modal-result {
	padding: 14px 16px;
	border-radius: 12px;
	font-size: 15px;
	color: #fff;
	display: none;
}

.cpl-search-result {
	margin-top: 16px;
}

.cpl-modal-result {
	margin-bottom: 16px;
}

.cpl-search-result.cpl-result--found,
.cpl-modal-result.cpl-result--found {
	display: block;
	background: #198754;
	border: none;
}

.cpl-search-result.cpl-result--notfound,
.cpl-modal-result.cpl-result--notfound {
	display: block;
	background: #dc3545;
	border: none;
}

.cpl-estimate-heading {
	margin: 0 0 12px;
	font-size: 16px;
	color: #fff;
}

.cpl-form-row {
	margin-bottom: 12px;
}

.cpl-form-row label {
	display: block;
	font-weight: 600;
	margin-bottom: 4px;
	font-size: 14px;
	color: #bfc9d6;
}

.cpl-modal .cpl-form-row input,
.cpl-modal .cpl-form-row textarea {
	width: 100%;
	padding: 8px 10px;
	background: rgba(255, 255, 255, .06);
	background-image: none;
	border: 1px solid rgba(255, 255, 255, .15);
	outline: none;
	box-shadow: none;
	appearance: none;
	-webkit-appearance: none;
	border-radius: 4px;
	color: #fff;
	font-size: 14px;
	box-sizing: border-box;
	font-family: inherit;
}

.cpl-modal .cpl-form-row input:focus,
.cpl-modal .cpl-form-row textarea:focus {
	border-color: rgba(255, 255, 255, .3);
	outline: none;
	box-shadow: none;
}

.cpl-modal .cpl-form-row input::placeholder,
.cpl-modal .cpl-form-row textarea::placeholder {
	color: #9ba7b4;
}

.cpl-hp-field {
	position: absolute;
	left: -9999px;
	top: -9999px;
}

/*
 * Specificity bumped (.cpl-modal .cpl-estimate-submit) and every box-model
 * property reset explicitly — same reasoning as .cpl-modal-close above:
 * Elementor/theme dialog styles can otherwise leak an outline-button look
 * onto plain buttons sitting inside the modal.
 */
.cpl-modal .cpl-estimate-submit {
	width: 100%;
	height: 50px;
	border: none;
	box-shadow: none;
	appearance: none;
	-webkit-appearance: none;
	border-radius: 12px;
	background: #01cee7;
	background-image: none;
	color: #08202a;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: .3s;
}

.cpl-modal .cpl-estimate-submit:hover {
	background: linear-gradient(180deg, #438aff, #2568ff);
	color: #fff;
}

.cpl-estimate-status {
	margin-top: 10px;
	font-size: 14px;
}

.cpl-estimate-status--success {
	color: #4ade80;
}

.cpl-estimate-status--error {
	color: #f87171;
}

.cpl-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(8, 15, 24, 0.75);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 100000;
	padding: 16px;
}

.cpl-modal-overlay.cpl-hidden {
	display: none;
}

.cpl-modal {
	position: relative;
	background: linear-gradient(180deg, #162434, #111c2b);
	border: 1px solid rgba(255, 255, 255, .15);
	color: #fff;
	border-radius: 10px;
	padding: 32px;
	max-width: 480px;
	width: 100%;
	max-height: 90vh;
	overflow-y: auto;
	text-align: center;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 20px 50px rgba(0, 0, 0, .4);
}

.cpl-modal h3 {
	margin: 0 0 12px;
	font-size: 20px;
	color: #fff;
}

.cpl-modal-view.cpl-hidden {
	display: none;
}

.cpl-modal-view--form {
	text-align: left;
}

.cpl-modal-view--form .cpl-estimate-heading {
	text-align: center;
}

.cpl-modal-message {
	margin: 0 0 20px;
	font-size: 15px;
	line-height: 1.5;
	color: #bfc9d6;
}

/*
 * Specificity bumped (.cpl-modal .cpl-modal-close, not just .cpl-modal-close)
 * and every box-model property reset explicitly, since many themes apply
 * fairly specific global `button` styling (border, background, radius)
 * that would otherwise bleed through and make this look like a stray pill
 * button instead of a plain close icon.
 */
.cpl-modal .cpl-modal-close {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	background-image: none;
	border: none;
	border-radius: 50%;
	box-shadow: none;
	appearance: none;
	-webkit-appearance: none;
	margin: 0;
	padding: 0;
	line-height: 1;
	cursor: pointer;
	color: #9ba7b4;
}

.cpl-modal .cpl-modal-close svg {
	display: block;
	pointer-events: none;
}

.cpl-modal .cpl-modal-close:hover {
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
}

.cpl-modal .cpl-modal-close:focus-visible {
	outline: 2px solid #01cee7;
	outline-offset: 2px;
}

.cpl-modal .cpl-modal-ok {
	padding: 10px 24px;
	background: #01cee7;
	background-image: none;
	color: #08202a;
	border: none;
	box-shadow: none;
	appearance: none;
	-webkit-appearance: none;
	border-radius: 4px;
	cursor: pointer;
	font-size: 15px;
	font-weight: 600;
}

.cpl-modal .cpl-modal-ok:hover {
	background: linear-gradient(180deg, #438aff, #2568ff);
	color: #fff;
}

@media (max-width: 480px) {
	.cpl-search-row {
		flex-wrap: wrap;
		height: auto;
		padding: 12px;
	}

	.cpl-search-input {
		flex-basis: 100%;
		padding: 10px 0 10px 10px;
	}

	.cpl-search-button {
		width: 100%;
	}

	.cpl-modal-overlay {
		padding: 10px;
		align-items: flex-end;
	}

	.cpl-modal {
		padding: 24px 18px;
		border-radius: 14px 14px 0 0;
		max-height: 85vh;
	}

	.cpl-modal .cpl-modal-close {
		top: 10px;
		right: 10px;
	}

	.cpl-modal h3 {
		font-size: 18px;
	}
}
