/**
 * L P Checkout Help — frontend styles
 */

/* Toggle button (fixed bottom-right) */
.lp-cht-toggle {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 999998;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 12px 18px;
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
	color: #fff;
	background: var(--lp-cht-accent, #000);
	border: 0;
	border-radius: 999px;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
	cursor: pointer;
	transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.lp-cht-toggle:hover,
.lp-cht-toggle:focus-visible {
	transform: translateY(-1px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.24);
}

.lp-cht-toggle:focus-visible {
	outline: 3px solid rgba(31, 111, 235, 0.45);
	outline-offset: 2px;
}

.lp-cht-toggle-icon {
	flex: 0 0 auto;
}

/* Modal (full page) */
.lp-cht-modal[hidden] {
	display: none;
}

.lp-cht-modal {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	box-sizing: border-box;
}

.lp-cht-overlay {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.55);
	border: 0;
	cursor: pointer;
	animation: lp-cht-fade 0.2s ease;
}

.lp-cht-dialog {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 520px;
	max-height: calc(100vh - 48px);
	overflow: auto;
	-webkit-overflow-scrolling: touch;
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
	animation: lp-cht-pop 0.2s ease;
}

.lp-cht-dialog-inner {
	padding: 28px 28px 32px;
}

.lp-cht-close {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	padding: 0;
	color: #475569;
	background: transparent;
	border: 0;
	border-radius: 50%;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
}
button.lp-scf-button {
    background: #000;
    color: #FFF;
    padding: 20px;
    border-radius: 5px;
}
.lp-cht-close:hover,
.lp-cht-close:focus-visible {
	background: #f1f5f9;
	color: #0f172a;
}

.lp-cht-close:focus-visible {
	outline: 2px solid rgba(31, 111, 235, 0.5);
	outline-offset: 1px;
}

.lp-cht-heading {
	margin: 0 36px 8px 0;
	font-size: 22px;
	line-height: 1.25;
}

.lp-cht-intro {
	margin: 0 0 18px;
	color: #475569;
	font-size: 15px;
	line-height: 1.5;
}

/* Contact links */
.lp-cht-contacts {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0 0 20px;
}

.lp-cht-contact {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 14px;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	color: var(--lp-cht-accent, #1f6feb);
	background: #f1f5f9;
	border-radius: 8px;
	transition: background 0.15s ease;
}

.lp-cht-contact:hover,
.lp-cht-contact:focus-visible {
	background: #e2e8f0;
}

.lp-cht-contact svg {
	flex: 0 0 auto;
}

/* Body scroll lock while modal is open */
body.lp-cht-open {
	overflow: hidden;
}

/* Contact form layout overrides (scoped to the modal only) */
.lp-cht-form .lp-scf-field {
	display: flex;
	flex-direction: column;
	margin-bottom: 18px;
}

.lp-cht-form input[type="text"],
.lp-cht-form input[type="email"],
.lp-cht-form input[type="tel"] {
	height: 40px;
}

.lp-cht-form .lp-scf-field label {
	display: block;
	margin-bottom: 6px;
	font-weight: 600;
}

.lp-cht-form .lp-scf-field input,
.lp-cht-form .lp-scf-field textarea,
.lp-cht-form .lp-scf-field select {
	width: 100%;
	box-sizing: border-box;
}

/* Stack any half-width field pairs vertically */
.lp-cht-form .lp-scf-row-two-col {
	display: flex;
	flex-direction: column;
}

/* Hide the required asterisk */
.lp-cht-form .required {
	display: none;
}

/* Success state (injected by the contact form on submit) */
.lp-cht-form .lp-scf-success-overlay {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 200px;
	padding: 20px;
	text-align: center;
}

.lp-cht-form .lp-scf-success-content {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
}

.lp-cht-form .lp-scf-success-icon {
	width: 100%;
	max-width: 100px;
	height: auto;
	color: #8cc635;
}

@keyframes lp-cht-fade {
	from { opacity: 0; }
	to   { opacity: 1; }
}

@keyframes lp-cht-pop {
	from { opacity: 0; transform: translateY(8px); }
	to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
	.lp-cht-toggle,
	.lp-cht-overlay,
	.lp-cht-dialog {
		animation: none;
		transition: none;
	}
}

@media (max-width: 480px) {
	.lp-cht-toggle-label {
		display: none;
	}

	.lp-cht-toggle {
		padding: 14px;
	}

	.lp-cht-dialog {
		max-height: 100vh;
		border-radius: 12px;
	}

	.lp-cht-dialog-inner {
		padding: 24px 20px 28px;
	}
}
