/* Listing WhatsApp Popup — layout matched to the supplied reference image.
   White centred popup over the page (no dimmed backdrop — the client
   asked for it removed), logo left, heading + contact line + site
   title top, form below. */

.lwp-overlay {
	position: fixed;
	inset: 0;
	/* Above everything else on the page — including the theme's small
	   floating buttons, which were covering the popup's close button. */
	z-index: 2147483000;
	background: transparent;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	box-sizing: border-box;
	opacity: 0;
	transition: opacity 0.18s ease;
}

.lwp-overlay[hidden] {
	display: none !important;
}

.lwp-overlay.lwp-is-open {
	opacity: 1;
}

body.lwp-no-scroll {
	overflow: hidden !important;
}

.lwp-popup {
	position: relative;
	background: #fff;
	width: 810px;
	max-width: 94vw;
	max-height: 92vh;
	overflow-y: auto;
	border-radius: 12px;
	box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.5);
	padding: 50px;
	box-sizing: border-box;
	font-family: inherit;
	color: #222;
	transform: translateY(8px) scale(0.99);
	transition: transform 0.18s ease;
	border: 2px solid #e2ad00;
}

.lwp-overlay.lwp-is-open .lwp-popup {
	transform: translateY(0) scale(1);
}

.lwp-close {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 40px;
	height: 40px;
	padding: 0;
	margin: 0;
	/* Solid white circle so the X stays visible and clickable
	   whatever sits behind the popup corner. */
	background: #ffffff !important;
	border: 1px solid #e0e0e0 !important;
	border-radius: 50% !important;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18) !important;
	color: #333 !important;
	font-size: 26px;
	line-height: 1;
	font-weight: 400;
	cursor: pointer;
	z-index: 10;
	pointer-events: auto;
	display: flex;
	align-items: center;
	justify-content: center;
}

.lwp-close:hover {
	color: #000 !important;
	background: #f2f2f2 !important;
}

/* Header: logo left, heading + title right */
.lwp-header {
	display: flex;
	align-items: center;
	gap: 26px;
	margin-bottom: 28px;
	padding-right: 34px;
}

.lwp-logo {
	flex: 0 0 150px;
	max-width: 150px;
	line-height: 0;
}

.lwp-logo img {
	width: 100%;
	height: auto;
	max-height: 110px;
	object-fit: contain;
	display: block;
}

/* For a white/light logo (made for a dark site header): a dark
   rounded backing so it stays visible on the white popup. */
.lwp-logo.lwp-logo-dark {
	background: #111111;
	border-radius: 8px;
	padding: 12px 14px;
	box-sizing: border-box;
}

.lwp-heading-wrap {
	flex: 1 1 auto;
	min-width: 0;
}

.lwp-heading {
	font-size: 32px;
	font-weight: 700;
	line-height: 1.25;
	color: #111;
	text-transform: uppercase;
	margin: 0 0 5px;
}

/* Under the heading: a short contact line on the left and the
   site title next to it, like the reference popup. */
.lwp-subrow {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 24px;
	margin-top: 6px;
}

.lwp-subtitle {
	color: #707070;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.55;
	margin: 0;
}

.lwp-site-title {
	color: #111;
	font-size: 19px;
	font-weight: 700;
	line-height: 1.4;
	margin: 0;
	white-space: nowrap;
}

/* Form area (the owner's shortcode output) */
.lwp-body {
	margin-top: 4px;
}

.lwp-no-form {
	padding: 14px 16px;
	background: #fff8e1;
	border: 1px dashed #d6a700;
	color: #6b5900;
	font-size: 15px;
}

.lwp-body label {
	font-weight: 600;
	font-size: 15px;
	color: #333;
}

.lwp-body input[type="text"],
.lwp-body input[type="email"],
.lwp-body input[type="tel"],
.lwp-body input[type="number"],
.lwp-body input[type="url"],
.lwp-body select,
.lwp-body textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 11px 12px;
	border: 1px solid #8d8d8d;
	border-radius: 3px;
	background: #fff;
	color: #222;
	font-size: 16px;
	line-height: 1.4;
	margin-top: 5px;
}

.lwp-body input[type="radio"],
.lwp-body input[type="checkbox"] {
	width: 20px;
	height: 20px;
	vertical-align: middle;
	margin-right: 8px;
	accent-color: #555;
}

/* Green action button, like "Start WhatsApp Chat" in the reference */
.lwp-body input[type="submit"],
.lwp-body button[type="submit"] {
	background: #48c63e;
	border: 0;
	border-radius: 4px;
	color: #fff;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.3;
	padding: 13px 22px;
	cursor: pointer;
	box-shadow: none;
}

.lwp-body input[type="submit"]:hover,
.lwp-body button[type="submit"]:hover {
	background: #3db233;
}

/* Field widths and columns are NOT set here. They are defined in
   the form itself (in Contact Form 7), exactly as the site's other
   forms do it — the plugin must not impose its own column layout
   on the form. Only the radio/checkbox list spacing below is
   touched, so each consent option sits on its own line. */
.lwp-body .wpcf7-form .wpcf7-radio .wpcf7-list-item,
.lwp-body .wpcf7-form .wpcf7-checkbox .wpcf7-list-item {
	display: block;
	margin: 0 0 6px;
	font-weight: 400;
}


@media (max-width: 700px) {
	.lwp-popup {
		padding: 20px;
		max-width: 96vw;
	}

	.lwp-header {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
		padding-right: 28px;
	}

	.lwp-logo {
		flex-basis: auto;
		max-width: 160px;
	}

	.lwp-heading {
		font-size: 22px;
	}

	.lwp-subrow {
		flex-direction: column;
		gap: 6px;
	}

	.lwp-site-title {
		font-size: 17px;
		white-space: normal;
	}
}
