/* LatePoint Services — tablet browser + service detail layout */

.lp-services-body {
	background: #f3f4f6;
	min-height: 100vh;
}

/* Gate PIN — match Hub tablet sizing (1280×800) */
.lp-services-body .lp-tp-card {
	width: min(300px, 92%);
	padding: 16px 18px;
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.07);
}

.lp-services-body .lp-tp-title {
	font-size: 20px;
	margin-bottom: 6px;
}

.lp-services-body .lp-tp-subtitle {
	font-size: 11px;
	margin-bottom: 10px;
}

.lp-services-body .lp-tp-pin-display-w {
	min-height: 28px;
	margin-bottom: 8px;
	padding: 0 36px;
}

.lp-services-body .lp-tp-pin-display {
	font-size: 18px;
	letter-spacing: 4px;
	min-height: 28px;
}

.lp-services-body .lp-tp-pin-dots {
	color: var(--lp-tp-text, #14161d);
}

.lp-services-body .lp-tp-pin-reveal {
	width: 30px;
	height: 30px;
}

.lp-services-body .lp-tp-pin-reveal .latepoint-icon {
	font-size: 14px;
}

.lp-services-body .lp-tp-pad {
	gap: 6px;
	margin: 10px auto;
	max-width: 216px;
	pointer-events: auto;
}

.lp-services-body .lp-tp-pad-btn {
	min-height: 38px;
	font-size: 15px;
	border-radius: 8px;
	pointer-events: auto;
	touch-action: manipulation;
	-webkit-tap-highlight-color: rgba(37, 99, 235, 0.15);
	user-select: none;
}

.lp-services-body .lp-tp-btn {
	min-height: 40px;
	font-size: 14px;
	margin-top: 8px;
}

.lp-services-app {
	min-height: 100vh;
	width: 90%;
	max-width: var(--lp-tc-design-w, 1280px);
	margin: 0 auto;
	box-sizing: border-box;
}

/* Nested payments-style screens inherit the app shell (avoid 90% of 90%). */
.lp-services-app .lp-payments-screen {
	width: 100%;
	max-width: none;
	margin: 0;
}

.lp-services-header-title {
	margin: 0;
	font-size: clamp(18px, 2vw, 22px);
	font-weight: 700;
	color: #374151;
	text-align: center;
	line-height: 1.3;
}

/* Same tablet header grid as Payments / Calc / Editapp (console.css) */
.lp-services-app .lp-services-screen-header {
	margin-bottom: 12px;
	padding: 16px 0 0;
}

.lp-services-browse-screen .lp-tc-header-alert-cell,
.lp-services-detail-screen .lp-tc-header-alert-cell {
	padding-top: 0;
}

.lp-services-screen-header .lp-tc-header-page-actions {
	padding-left: 0;
}

.lp-services-language-screen .lp-payments-language-actions {
	display: none;
}

.lp-services-language-screen .lp-payments-language-scroll {
	padding-top: 4px;
}

/* Filter bar */
.lp-services-filter-bar {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding: 12px 16px;
	background: #fff;
	border-bottom: 1px solid #e5e7eb;
}

.lp-services-filter-chip {
	border: 1px solid #d1d5db;
	background: #fff;
	border-radius: 999px;
	padding: 8px 14px;
	font-size: 0.875rem;
	cursor: pointer;
	min-height: 44px;
}

.lp-services-filter-chip:active {
	background: #f3f4f6;
}

.lp-services-browse-alert {
	margin: 0 16px 8px;
	padding: 10px 14px;
	border-radius: 8px;
	background: #fef2f2;
	border: 1px solid #fecaca;
	color: #991b1b;
	font-size: 0.875rem;
}

/* List rows — 140px image / text */
.lp-services-list {
	padding: 12px 16px 24px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.lp-services-row {
	display: grid;
	grid-template-columns: 140px minmax(0, 1fr);
	align-items: start;
	gap: 14px;
	width: 100%;
	padding: 12px 14px;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	background: #fff;
	text-align: left;
	cursor: pointer;
	min-height: auto;
}

.lp-services-row:focus-visible {
	outline: 2px solid #428a88;
	outline-offset: 2px;
}

.lp-services-row-media {
	width: 140px;
	height: 140px;
	flex-shrink: 0;
}

.lp-services-row-img {
	display: block;
	width: 140px;
	height: 140px;
	object-fit: cover;
	border-radius: 8px;
	background: #e5e7eb;
}

.lp-services-row-img--empty {
	display: block;
	width: 140px;
	height: 140px;
	border-radius: 8px;
	background: linear-gradient(135deg, #d1e8e6, #abdedb);
}

.lp-services-row-text {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding-top: 2px;
}

.lp-services-row-title {
	display: block;
	font-size: 1.3rem;
	font-weight: 700;
	color: #1f4f4c;
	margin: 0;
	line-height: 1.35;
}

.lp-services-row-tagline {
	display: block;
	font-size: 1.05rem;
	color: #6b7280;
	line-height: 1.5;
}

.lp-services-row-desc {
	margin: 0;
	font-size: 1.05rem;
	color: #4b5563;
	line-height: 1.65;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.lp-services-row-pressure {
	margin-top: 2px;
	max-width: 280px;
}

.lp-services-row-pressure-label {
	display: block;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #6b7280;
	margin-bottom: 4px;
}

.lp-services-pressure-scale {
	width: 100%;
}

.lp-services-row-pressure .lp-services-pressure-track {
	height: 28px;
}

.lp-services-row-pressure .lp-services-pressure-num {
	font-size: 0.875rem;
}

.lp-services-row-pressure .lp-services-pressure-gradient-clip {
	height: 10px;
}

.lp-services-empty {
	text-align: center;
	color: #6b7280;
	padding: 32px 16px;
}

/* Filter modal */
.lp-services-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.35);
	z-index: 100;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}

.lp-services-modal {
	background: #fff;
	border-radius: 12px;
	max-width: 420px;
	width: 100%;
	max-height: 70vh;
	overflow: auto;
}

.lp-services-modal-list {
	list-style: none;
	margin: 0;
	padding: 8px 0;
}

.lp-services-modal-list li {
	display: flex;
	justify-content: space-between;
	padding: 14px 18px;
	cursor: pointer;
	border-bottom: 1px solid #f3f4f6;
	min-height: 44px;
	align-items: center;
}

.lp-services-modal-list li.is-selected {
	background: #ecfdf5;
	color: #1f4f4c;
	font-weight: 600;
}

/* Service detail layout — 75% / 25% */
.lp-services-detail-layout {
	display: grid;
	grid-template-columns: 1fr;
	gap: 20px;
	padding: 16px;
	max-width: 1160px;
	margin: 0 auto;
}

@media (min-width: 900px) {
	.lp-services-detail-layout {
		grid-template-columns: 3fr 1fr;
		align-items: start;
	}
}

.lp-services-detail-kicker {
	display: block;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #428a88;
	margin-bottom: 8px;
}

.lp-services-detail-title {
	font-size: clamp(1.75rem, 4vw, 2.25rem);
	font-weight: 700;
	color: #1f4f4c;
	margin: 0 0 8px;
	line-height: 1.15;
}

.lp-services-detail-tagline {
	font-size: 1.15rem;
	color: #6b7280;
	margin: 0 0 16px;
	line-height: 1.65;
}

.lp-services-detail-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 20px;
}

.lp-services-detail-chip {
	background: #e8f5f4;
	color: #1f4f4c;
	border-radius: 999px;
	padding: 6px 12px;
	font-size: 0.8rem;
	font-weight: 500;
}

.lp-services-detail-sidebar-image {
	display: block;
	width: 100%;
	max-height: 280px;
	object-fit: cover;
	border-radius: 12px;
	margin-bottom: 20px;
}

.lp-services-detail-sidebar-image--empty {
	min-height: 180px;
	background: linear-gradient(135deg, #d1e8e6, #abdedb);
}

.lp-services-detail-screen .prose p {
	margin: 0 0 1.15em;
	line-height: 1.85;
}

.lp-services-detail-screen .prose ul,
.lp-services-detail-screen .prose ol {
	margin: 0 0 1.15em;
	padding-left: 1.35em;
	line-height: 1.85;
}

.lp-services-detail-screen .prose li {
	margin-bottom: 0.5em;
}

.lp-services-detail-intro {
	color: #374151;
	font-size: 1.1rem;
	line-height: 1.85;
	margin-bottom: 24px;
}

.lp-services-detail-intro p {
	margin: 0 0 1.15em;
}

.lp-services-detail-cards-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 12px;
}

@media (min-width: 700px) {
	.lp-services-detail-cards-grid {
		grid-template-columns: 1fr 1fr;
	}

	.lp-services-detail-card--how_it_works {
		grid-column: 1 / -1;
	}
}

.lp-services-detail-card {
	background: #f0faf9;
	border: 1px solid #d1ebe8;
	border-radius: 12px;
	padding: 16px;
}

.lp-services-detail-card-head {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 10px;
}

.lp-services-detail-card-head i {
	color: #428a88;
	font-size: 1.1rem;
}

.lp-services-detail-card-head h3 {
	margin: 0;
	font-size: 1rem;
	font-weight: 700;
	color: #1f4f4c;
}

.lp-services-detail-card-body {
	font-size: 1.1rem;
	color: #374151;
	line-height: 1.85;
}

.lp-services-detail-card-body p {
	margin: 0 0 1em;
}

.lp-services-detail-card-body ul {
	margin: 0;
	padding-left: 1.2em;
}

.lp-services-detail-faq {
	margin-top: 28px;
}

.lp-services-detail-faq h2 {
	text-align: center;
	font-size: 1.35rem;
	color: #1f4f4c;
	margin-bottom: 16px;
}

.lp-services-detail-faq-item {
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	margin-bottom: 10px;
	overflow: hidden;
	background: #fff;
}

.lp-services-detail-faq-item summary {
	padding: 14px 16px;
	font-weight: 600;
	cursor: pointer;
	list-style: none;
}

.lp-services-detail-faq-item summary::-webkit-details-marker {
	display: none;
}

.lp-services-detail-faq-a {
	padding: 0 16px 14px;
	color: #4b5563;
	font-size: 1.05rem;
	line-height: 1.75;
}

/* Sidebar */
.lp-services-detail-sidebar {
	background: rgba(249, 250, 251, 0.9);
	border: 1px solid #f3f4f6;
	border-radius: 16px;
	padding: 20px;
	position: sticky;
	top: 16px;
}

.lp-services-detail-sidebar-label {
	display: block;
	text-align: center;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #6b7280;
	margin-bottom: 8px;
}

.lp-services-detail-sidebar-sublabel {
	display: block;
	text-align: center;
	font-size: 0.75rem;
	color: #9ca3af;
	margin-bottom: 12px;
}

.lp-services-detail-sidebar-divider {
	border: 0;
	border-top: 1px solid #e5e7eb;
	margin: 20px 0;
}

.lp-services-pressure-track {
	position: relative;
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	align-items: center;
	height: 32px;
	margin-bottom: 4px;
	z-index: 1;
}

.lp-services-pressure-num {
	text-align: center;
	font-size: 0.875rem;
	font-weight: 600;
	color: #9ca3af;
	z-index: 2;
}

.lp-services-pressure-num.is-on {
	color: #1f2937;
}

.lp-services-pressure-fill {
	position: absolute;
	top: 4px;
	bottom: 4px;
	background: #e5e7eb;
	border-radius: 6px;
	border: 1px solid rgba(209, 213, 219, 0.5);
	z-index: 0;
}

.lp-services-pressure-gradient-clip {
	overflow: hidden;
	height: 10px;
	border-radius: 999px;
	box-sizing: border-box;
}

.lp-services-pressure-gradient {
	height: 10px;
	border-radius: 999px;
	background: linear-gradient(to right, #abdedb, #428a88, #003333);
	opacity: 0.9;
	box-sizing: border-box;
	flex-shrink: 0;
}

.lp-services-duration-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 8px;
}

@media (min-width: 500px) {
	.lp-services-duration-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

.lp-services-duration-pill {
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	padding: 10px 8px;
	text-align: center;
	background: #fff;
}

.lp-services-duration-pill.is-selected {
	background: #428a88;
	border-color: #428a88;
	color: #fff;
}

.lp-services-duration-min {
	display: block;
	font-weight: 600;
	font-size: 0.9rem;
}

.lp-services-duration-price {
	display: block;
	font-size: 0.8rem;
	margin-top: 4px;
}

.lp-services-duration-pill.is-selected .lp-services-price-original {
	color: rgba(255, 255, 255, 0.75);
}

.lp-services-duration-pill.is-selected .lp-services-price-sale {
	color: #fff;
}

.lp-services-price-original {
	text-decoration: line-through;
	color: #9ca3af;
	margin-right: 4px;
}

.lp-services-price-sale {
	font-weight: 700;
	color: #1f4f4c;
}

/* Admin */
.lp-svc-admin-w {
	max-width: none;
}

.lp-svc-admin-w .lp-svc-table {
	width: 100%;
}

.lp-svc-admin-w .lp-svc-form-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

.lp-svc-col-order {
	width: 110px;
	white-space: nowrap;
}

.lp-svc-order-actions {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.lp-svc-order-num {
	display: inline-block;
	min-width: 28px;
	text-align: center;
	font-variant-numeric: tabular-nums;
	color: #6b7280;
	font-size: 12px;
}

.lp-svc-lang-panel {
	margin-bottom: 16px;
	border: 1px solid #ddd;
	border-radius: 8px;
	padding: 12px 16px;
	width: 100%;
	box-sizing: border-box;
}

.lp-svc-trans-form {
	margin-top: 12px;
	max-width: 960px;
}

.lp-svc-trans-form p {
	margin: 0 0 14px;
}

.lp-svc-trans-form label {
	display: block;
	width: 100%;
}

.lp-svc-trans-form input.large-text,
.lp-svc-trans-form textarea.large-text,
.lp-svc-trans-form textarea.code {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

.lp-svc-pressure-checks label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-right: 12px;
	min-height: 44px;
}

/* Phone / small tablet: service list copy sizing */
@media (max-width: 767px) {
	.lp-services-row-title {
		font-size: 18px;
	}

	.lp-services-row-tagline,
	.lp-services-row-desc {
		font-size: 14px;
	}
}
