/* ==========================================================
   Laugh Now – Make an Offer
   ========================================================== */


/* Product CTA */

.ln-make-offer-wrap {
	width: 100%;
	max-width: none;
	margin-top: 18px;
	margin-bottom: 10px;
	clear: both;
}

.ln-offer-trigger {
	width: 100%;
	min-height: 50px;
	padding: 13px 22px;
	border: 1px solid #222;
	border-radius: 0;
	background: transparent;
	color: #222;
	font: inherit;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.08em;
	line-height: 1.2;
	text-transform: uppercase;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
	transition:
		background-color 0.2s ease,
		color 0.2s ease;
}

.ln-offer-trigger:hover,
.ln-offer-trigger:focus-visible {
	background: #222;
	color: #fff;
}

.ln-offer-trigger:focus-visible,
.ln-enquiry-trigger:focus-visible,
.ln-offer-close:focus-visible,
.ln-offer-submit:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}


.ln-enquiry-trigger {
	display: block;
	width: 100%;
	margin: 10px 0 0;
	padding: 4px 0;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	font-size: 13px;
	line-height: 1.5;
	text-align: center;
	cursor: pointer;
	appearance: none;
}

.ln-enquiry-trigger span {
	text-decoration: underline;
	text-underline-offset: 3px;
}


/* Prevent background page scrolling */

body.ln-modal-open {
	overflow: hidden;
}


/* Modal backdrop */

.ln-offer-modal {
	position: fixed;
	z-index: 100000;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 25px;

	background: rgba(0, 0, 0, 0.58);

	overscroll-behavior: contain;
}

.ln-offer-modal[hidden] {
	display: none !important;
}


/* Panel */

.ln-offer-panel {
	position: relative;
	width: min(560px, 100%);
	max-height: calc(100vh - 50px);
	max-height: calc(100dvh - 50px);

	padding: 36px 38px;

	overflow-y: auto;
	-webkit-overflow-scrolling: touch;

	background: #fff;
	color: #222;

	border-radius: 4px;

	box-shadow:
		0 20px 70px rgba(0, 0, 0, 0.25);
}


/* Close */

.ln-offer-close {
	position: absolute;
	top: 13px;
	right: 15px;

	display: flex;
	align-items: center;
	justify-content: center;

	width: 40px;
	height: 40px;

	padding: 0;
	border: 0;
	background: transparent;

	color: #222;
	font-size: 32px;
	font-weight: 300;
	line-height: 1;

	cursor: pointer;
}


/* Header */

.ln-offer-heading {
	padding-right: 35px;
}

.ln-offer-heading h2 {
	margin: 0 0 8px;
	font-size: 27px;
	line-height: 1.2;
}

.ln-offer-heading p {
	margin: 0 0 22px;
	font-size: 15px;
	line-height: 1.55;
}


/* Product reference */

.ln-product-reference {
	margin: 0 0 24px;
	padding: 14px 16px;
	background: #f4f4f4;
}

.ln-product-reference span {
	display: block;
	margin-bottom: 2px;
	font-size: 11px;
	line-height: 1.4;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	opacity: 0.65;
}

.ln-product-reference strong {
	display: block;
	font-size: 13px;
	line-height: 1.45;
}


/* Form layout */

.ln-form-row-two {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.ln-field {
	margin-bottom: 17px;
}

.ln-field label {
	display: block;
	margin: 0 0 6px;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
}

.ln-field label > span {
	color: #8a0000;
}

.ln-field label small {
	font-weight: 400;
	opacity: 0.65;
}

.ln-field input,
.ln-field textarea {
	box-sizing: border-box;
	display: block;
	width: 100%;

	margin: 0;
	padding: 12px 13px;

	border: 1px solid #ccc;
	border-radius: 2px;

	background: #fff;
	color: #222;

	font-family: inherit;
	font-size: 16px;
	line-height: 1.4;

	box-shadow: none;
	appearance: none;
	-webkit-appearance: none;
}

.ln-field input {
	min-height: 48px;
}

.ln-field textarea {
	min-height: 110px;
	resize: vertical;
}

.ln-field input:focus,
.ln-field textarea:focus {
	border-color: #222;
	outline: 1px solid #222;
	outline-offset: 0;
}


/* £ input */

.ln-money-input {
	position: relative;
}

.ln-money-input > span {
	position: absolute;
	top: 50%;
	left: 14px;
	z-index: 2;

	transform: translateY(-50%);

	font-size: 16px;
	font-weight: 600;

	pointer-events: none;
}

.ln-money-input input {
	padding-left: 32px;
}


/* Disclaimer */

.ln-form-note {
	margin: 2px 0 18px;
	font-size: 11px;
	line-height: 1.5;
	opacity: 0.65;
}


/* Submit */

.ln-offer-submit,
.ln-success-close {
	display: block;
	width: 100%;
	min-height: 52px;

	padding: 14px 20px;

	border: 1px solid #222;
	border-radius: 0;

	background: #222;
	color: #fff;

	font: inherit;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.07em;
	line-height: 1.2;
	text-transform: uppercase;

	cursor: pointer;

	appearance: none;
	-webkit-appearance: none;

	transition:
		opacity 0.2s ease,
		background-color 0.2s ease;
}

.ln-offer-submit:hover,
.ln-success-close:hover {
	opacity: 0.85;
}

.ln-offer-submit:disabled {
	opacity: 0.45;
	cursor: wait;
}


/* Status/errors */

.ln-offer-status {
	min-height: 22px;
	margin-top: 10px;
	font-size: 13px;
	line-height: 1.5;
}

.ln-offer-status.is-error {
	color: #a40000;
}


/* Success */

.ln-offer-success {
	padding: 28px 0 5px;
	text-align: center;
}

.ln-success-icon {
	display: flex;
	align-items: center;
	justify-content: center;

	width: 52px;
	height: 52px;

	margin: 0 auto 18px;

	border: 1px solid #222;
	border-radius: 50%;

	font-size: 24px;
}

.ln-offer-success h3 {
	margin: 0 0 8px;
	font-size: 22px;
}

.ln-offer-success p {
	margin: 0 0 24px;
}


/* Honeypot */

.ln-hp {
	position: absolute !important;
	left: -10000px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}


/* ==========================================================
   MOBILE – matches Salient's <690px phone breakpoint
   ========================================================== */

@media only screen and (max-width: 690px) {

	.ln-make-offer-wrap {
		width: 100%;
		max-width: none;
		margin-top: 16px;
	}

	.ln-offer-trigger {
		min-height: 52px;
		font-size: 13px;
	}

	.ln-enquiry-trigger {
		min-height: 40px;
		margin-top: 7px;
		font-size: 13px;
	}


	/* Bottom-sheet treatment */

	.ln-offer-modal {
		align-items: flex-end;
		padding: 12px 0 0;
	}

	.ln-offer-panel {
		width: 100%;
		max-width: none;

		max-height: calc(100vh - 12px);
		max-height: calc(100dvh - 12px);

		padding:
			27px
			18px
			calc(22px + env(safe-area-inset-bottom));

		border-radius: 16px 16px 0 0;
	}


	.ln-offer-close {
		top: 9px;
		right: 10px;

		width: 44px;
		height: 44px;
	}


	.ln-offer-heading {
		padding-right: 35px;
	}

	.ln-offer-heading h2 {
		font-size: 23px;
	}


	/* One column on phone */

	.ln-form-row-two {
		display: block;
	}


	/*
	 * 16px minimum prevents Safari automatically
	 * zooming into form fields on iPhone.
	 */

	.ln-field input,
	.ln-field textarea {
		font-size: 16px;
	}

	.ln-field input {
		min-height: 50px;
	}


	/* Comfortable thumb target */

	.ln-offer-submit,
	.ln-success-close {
		min-height: 54px;
	}

}


/* Reduced-motion accessibility */

@media (prefers-reduced-motion: reduce) {

	.ln-offer-trigger,
	.ln-offer-submit {
		transition: none;
	}

}