/**
 * Legacy shortcode compatibility styles.
 *
 * The shortcodes of this plugin still print the markup they had under the Hub theme
 * (Hub / Bootstrap 3 / WPBakery / Elementor class names). Hub and Elementor's per-page CSS
 * styled that markup; the block theme does not load it. These rules recreate the original
 * look, and every selector is scoped to a shortcode's own wrapper so nothing else changes:
 *
 *   .packages-listing      [swa-rental-packages]
 *   .website-templates     [swa-website-templates]
 *   #cost_estimator        [process_estimate_form]  (plus its own inline <style>)
 *   .smartweb_faQs26       [new_faqs_section]       (plus its own inline <style>)
 *   .chat-container        [swa_chat]               (plus chat/chat.css)
 *
 * Breakpoints follow the original: Bootstrap sm 768px, md/lg 992px, container 1200px;
 * Elementor tablet <= 1199px, mobile <= 767px.
 */

/* ==========================================================================
   [swa-rental-packages] - price tables (Hub "lqd-pt-style-11" in WPBakery columns)
   ========================================================================== */

/* Row: three columns that bleed 15px past the content edges, as the WPBakery row did.
   (Double class to beat core's flex-layout child reset "margin: 0".) */
.packages-listing.ld-row {
	display: flex;
	flex-wrap: wrap;
	box-sizing: border-box;
	flex: 0 0 calc(100% + 30px);
	width: calc(100% + 30px);
	max-width: none;
	margin: 0 -15px;
	padding: 0;
	font-size: 16px;
	line-height: 21px;
	text-align: start;
	color: var(--wp--preset--color--contrast);
}

.packages-listing *,
.packages-listing *::before,
.packages-listing *::after {
	box-sizing: border-box;
}

/* Columns: 1 per row on phones, 2 from 768px, 3 from 992px. */
.packages-listing > .vc_column_container {
	position: relative;
	width: 100%;
	min-height: 1px;
	padding: 0;
}

.packages-listing > .vc_column_container.pt-50px {
	padding-top: 50px;
}

@media (min-width: 768px) {
	.packages-listing > .vc_column_container {
		width: 50%;
	}
}

@media (min-width: 992px) {
	.packages-listing > .vc_column_container {
		width: 33.3333%;
	}
}

/* Hairline top and right edge of every column. */
.packages-listing .vc_column-inner {
	border-top: 1px solid #e7ecf0;
	border-right: 1px solid #e7ecf0;
}

/* Card */
.packages-listing .lqd-pt {
	position: relative;
	overflow: hidden;
	margin: 0 0 24px;
	text-align: center;
	color: #616161;
}

@media (min-width: 992px) {
	.packages-listing .lqd-pt {
		margin-bottom: 0;
	}
}

.packages-listing .lqd-pt.lqd-pt-featured {
	z-index: 2;
	color: #565a62;
}

/* "Popular" bar on the featured card. */
.packages-listing .lqd-pt-label {
	display: block;
	position: relative;
	z-index: 2;
	height: 50px;
	padding: 15px;
	background: var(--wp--preset--color--midnight);
	color: var(--wp--preset--color--base);
	font-size: 14px;
	font-weight: 600;
	line-height: 21px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.packages-listing .lqd-pt-inner {
	position: relative;
	padding: 0 0 40px;
}

/* Light grey panel behind the featured card (slightly oversized, clipped by the card). */
.packages-listing .lqd-pt-bg {
	position: absolute;
	inset: 0;
	background: #f5f8fa;
	transform: scale(1.05, 1.1);
}

.packages-listing .lqd-pt-head,
.packages-listing .lqd-pt-body,
.packages-listing .lqd-pt-foot {
	position: relative;
}

/* Head: title, intro line, price */
.packages-listing .lqd-pt-head {
	padding: 16px 0 0;
}

.packages-listing .lqd-pt-title {
	margin: 0;
	color: var(--wp--preset--color--midnight);
	font-family: inherit;
	font-size: 25px;
	font-weight: 600;
	line-height: 1.5;
	letter-spacing: normal;
}

.packages-listing .lqd-pt-head > p {
	margin: 0 0 24px;
	padding: 0 24px 20px;
	border-bottom: 1px solid #e7ecf0;
	color: inherit;
	font-size: 16px;
	line-height: 1.56;
}

.packages-listing .lqd-pt-price {
	display: inline-block;
	margin: 0 0 24px;
	color: var(--wp--preset--color--midnight);
	font-size: 60px;
	font-weight: 400;
	line-height: 1;
}

.packages-listing .lqd-pt-price small {
	font-size: 0.5em;
}

.packages-listing .lqd-pt-price small:last-child {
	display: block;
	font-size: 14px;
	opacity: 0.6;
}

.packages-listing .lqd-pt-description {
	margin: 0 0 4px;
	line-height: 25px;
}

/* Feature list with green ticks */
.packages-listing .lqd-pt-body {
	padding: 16px;
	font-size: 13px;
	line-height: 21px;
	text-align: start;
}

@media (min-width: 768px) {
	.packages-listing .lqd-pt-body {
		padding: 16px 40px;
	}
}

.packages-listing .lqd-pt-body ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.packages-listing .lqd-pt-body li {
	margin: 1em 0 0.75em;
	padding: 0;
	font-size: inherit;
	line-height: inherit;
}

.packages-listing .lqd-pt-body li:last-child {
	margin-bottom: 1em;
}

/* The tick was a Hub icon-font glyph; draw it with a mask so it keeps the inline colour. */
.packages-listing .lqd-icn-ess.icon-ion-ios-checkmark {
	display: inline-block;
	width: 1.1em;
	height: 1em;
	margin-inline-end: 0.9em;
	vertical-align: -0.1em;
	background-color: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='128 160 240 190'%3E%3Cpath d='M362.6 192.9 345 174.8c-.7-.8-1.8-1.2-2.8-1.2-1.1 0-2.1.4-2.8 1.2l-122 122.9-44.4-44.4c-.8-.8-1.8-1.2-2.8-1.2-1 0-2 .4-2.8 1.2l-17.8 17.8c-1.6 1.6-1.6 4.1 0 5.7l56 56c3.6 3.6 8 5.7 11.7 5.7 5.3 0 9.9-3.9 11.6-5.5h.1l133.7-134.4c1.4-1.7 1.4-4.2-.1-5.7z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='128 160 240 190'%3E%3Cpath d='M362.6 192.9 345 174.8c-.7-.8-1.8-1.2-2.8-1.2-1.1 0-2.1.4-2.8 1.2l-122 122.9-44.4-44.4c-.8-.8-1.8-1.2-2.8-1.2-1 0-2 .4-2.8 1.2l-17.8 17.8c-1.6 1.6-1.6 4.1 0 5.7l56 56c3.6 3.6 8 5.7 11.7 5.7 5.3 0 9.9-3.9 11.6-5.5h.1l133.7-134.4c1.4-1.7 1.4-4.2-.1-5.7z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Foot: "Choose Package" button (outlined; solid black on the featured card) */
.packages-listing .lqd-pt-foot {
	padding: 16px;
	text-align: center;
}

.packages-listing .lqd-pt-foot .btn {
	display: inline-flex;
	position: relative;
	align-items: center;
	justify-content: center;
	min-width: 200px;
	margin: 0;
	padding: 1.15em 2.1em;
	overflow: hidden;
	border: 0;
	border-radius: 0;
	background: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base);
	font-family: inherit;
	font-size: 15px;
	font-weight: 400;
	line-height: 21px;
	text-decoration: none;
	vertical-align: middle;
	box-shadow: 0 0 0 rgba(0, 0, 0, 0);
	transition: all 0.3s;
}

.packages-listing .lqd-pt-foot .btn.btn-bordered {
	border: 2px solid var(--wp--preset--color--midnight);
	background: transparent;
	color: var(--wp--preset--color--midnight);
}

.packages-listing .lqd-pt-foot .btn:hover,
.packages-listing .lqd-pt-foot .btn:focus-visible {
	transform: translate3d(0, -2px, 0);
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.packages-listing .lqd-pt-foot .btn .btn-txt {
	display: block;
	position: relative;
	z-index: 3;
}

/* ==========================================================================
   [swa-website-templates] - 3-column grid of template screenshots
   (was an Elementor grid container: 3 cols / 2 on tablet / 1 on mobile)
   ========================================================================== */

.website-templates.e-con.e-grid {
	display: block;
	box-sizing: border-box;
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0 10px;
	border: 0;
	background: none;
}

.website-templates.e-con.e-grid > .e-con-inner {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
	box-sizing: border-box;
	width: 100%;
	max-width: min(100%, 1140px);
	margin: 0 auto;
	padding: 10px 0;
}

@media (max-width: 1199px) {
	.website-templates.e-con.e-grid > .e-con-inner {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	/* 10px gutters each side, as on the original (the section around it has none on phones). */
	.website-templates.e-con.e-grid {
		padding: 0 10px;
	}

	.website-templates.e-con.e-grid > .e-con-inner {
		grid-template-columns: minmax(0, 1fr);
		gap: 50px 20px;
	}
}

.website-templates .elementor-widget-ld_content_box {
	position: relative;
	width: 100%;
	max-width: 100%;
	margin: 0;
}

.website-templates .elementor-widget-container {
	margin: 0;
	padding: 0;
}

/* Square card that lifts on hover */
.website-templates .lqd-fb {
	position: relative;
	box-sizing: border-box;
	height: 0;
	padding-top: 100%;
	overflow: hidden;
	border-radius: 4px;
	box-shadow: 0 15px 80px rgba(0, 0, 0, 0);
	transition: transform 0.85s cubic-bezier(0.15, 0.95, 0.4, 1), box-shadow 0.3s;
}

@media (max-width: 767px) {
	.website-templates .lqd-fb {
		height: auto;
		padding-top: 0;
		aspect-ratio: 370 / 390;
	}
}

.website-templates .lqd-fb:hover {
	transform: translateY(-3px);
	box-shadow: 0 15px 80px rgba(0, 0, 0, 0.25);
}

.website-templates .lqd-fb-inner,
.website-templates .lqd-fb-img {
	position: absolute;
	inset: 0;
	overflow: hidden;
}

.website-templates .lqd-fb-img figure {
	position: relative;
	width: 100%;
	height: 100%;
	margin: 0;
	overflow: hidden;
}

/* Full-page screenshot pinned to the top; on hover it slowly scrolls up (the "reveal"). */
.website-templates .lqd-fb-img img {
	display: block;
	width: 100%;
	max-width: none;
	height: auto;
	min-height: 100%;
	margin: 0;
	object-fit: cover;
	object-position: center top;
	transform: translateY(0);
	transition: transform 10s cubic-bezier(0.16, 1, 0.3, 1);
	will-change: transform;
}

.website-templates .lqd-fb-img figure:hover img {
	transform: translateY(-65%);
}

@media (prefers-reduced-motion: reduce) {
	.website-templates .lqd-fb-img figure:hover img {
		transform: none;
	}
}

/* Template name under the card */
.website-templates .lqd-fb__title {
	margin: 16px 0 0;
	color: var(--wp--preset--color--contrast);
	font-family: inherit;
	font-size: 20px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: normal;
}

/* "Select" button shown when arriving from a package (?id=): outlined, fills black on hover,
   arrow slides in from the right. */
.website-templates .select-template-btn {
	display: inline-flex;
	position: relative;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-width: 200px;
	margin: 8px 0 32px 4px;
	padding: 1.15em 2.1em;
	overflow: hidden;
	border: 1px solid var(--wp--preset--color--contrast);
	border-radius: 0;
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
	font-family: inherit;
	font-size: 15px;
	font-weight: 400;
	line-height: 21px;
	text-decoration: none;
	vertical-align: middle;
	transition: all 0.3s;
}

.website-templates .select-template-btn:hover,
.website-templates .select-template-btn:focus-visible {
	border-color: var(--wp--preset--color--contrast);
	background: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base);
	transform: translate3d(0, -2px, 0);
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.website-templates .select-template-btn .btn-txt {
	display: block;
	position: relative;
	z-index: 3;
	transition: transform 0.5s cubic-bezier(0, 0.71, 0.4, 1);
}

.website-templates .select-template-btn .btn-icon {
	display: flex;
	position: absolute;
	z-index: 3;
	right: 2.1em;
	align-items: center;
	justify-content: center;
	width: 1em;
	height: 1em;
	opacity: 0;
	transition: opacity 0.25s cubic-bezier(0, 0.71, 0.4, 1), transform 0.5s cubic-bezier(0, 0.71, 0.4, 1);
}

.website-templates .select-template-btn .btn-icon svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
}

.website-templates .select-template-btn:hover .btn-txt {
	transform: translateX(-0.5em);
}

.website-templates .select-template-btn:hover .btn-icon {
	opacity: 1;
	transform: translateX(0.5em);
}

/* ==========================================================================
   [process_estimate_form] - project cost estimator
   Its inline <style> still styles the fields and option chips; this adds the
   Bootstrap grid/spacing helpers and Hub button look it relied on.
   ========================================================================== */

#cost_estimator .row {
	display: flex;
	flex-wrap: wrap;
	margin: 0 -15px;
}

#cost_estimator .row > [class*="col-"] {
	position: relative;
	box-sizing: border-box;
	width: 100%;
	min-height: 1px;
	padding: 0 15px;
}

@media (min-width: 768px) {
	#cost_estimator .row > .col-md-6 {
		width: 50%;
	}
}

@media (min-width: 992px) {
	#cost_estimator .row > .col-lg-3 {
		width: 25%;
	}

	#cost_estimator .row > .col-lg-6 {
		width: 50%;
	}

	#cost_estimator .row > .col-lg-12 {
		width: 100%;
	}
}

#cost_estimator .mt-3 {
	margin-top: 16px;
}

#cost_estimator .my-5 {
	margin-top: 32px;
	margin-bottom: 32px;
}

#cost_estimator .w-100 {
	width: 100%;
}

#cost_estimator .step h5 {
	margin: 24px 0 16px;
	font-family: inherit;
	font-size: 24px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: normal;
}

@media (max-width: 768px) {
	#cost_estimator .step h5 {
		font-size: 18px;
	}
}

#cost_estimator .step label {
	max-width: 100%;
	font-size: 16px;
	font-weight: 400;
	line-height: 21px;
}

/* Contact step fields: border-box like Bootstrap, so width: 100% stays inside the column. */
#cost_estimator input[type="text"],
#cost_estimator input[type="email"],
#cost_estimator input[type="url"],
#cost_estimator select,
#cost_estimator textarea {
	box-sizing: border-box;
	max-width: 100%;
	font-family: inherit;
	line-height: 21px;
}

/* Next / Back / Submit: solid black Hub button that lifts on hover */
#cost_estimator .estimate-btn {
	box-sizing: border-box;
	min-width: 0;
	margin: 0;
	padding: 15px 20px;
	border: 0;
	border-radius: 0;
	background: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base);
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	line-height: 21px;
	cursor: pointer;
	box-shadow: 0 0 0 rgba(0, 0, 0, 0);
}

#cost_estimator .estimate-btn:hover,
#cost_estimator .estimate-btn:focus-visible {
	background: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base);
	transform: translate3d(0, -2px, 0);
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

#cost_estimator .estimate-btn:disabled {
	opacity: 0.6;
	transform: none;
}

/* ==========================================================================
   [new_faqs_section] - FAQs: heading column (4/12) beside the questions (8/12)
   ========================================================================== */

.smartweb_faQs26 .container {
	box-sizing: border-box;
	width: auto;
	max-width: none;
	margin: 0;
	padding: 0 15px;
}

/* Hub's Bootstrap container was 1170px wide inside the 1140px content area. */
@media (min-width: 1200px) {
	.smartweb_faQs26 .container {
		width: calc(100% + 30px);
		max-width: 1170px;
		margin-right: -30px;
	}
}

.smartweb_faQs26 .row {
	display: flex;
	flex-wrap: wrap;
	margin: 0 -15px;
}

.smartweb_faQs26 .row > [class*="col-"] {
	box-sizing: border-box;
	width: 100%;
	padding: 0 15px;
}

@media (min-width: 992px) {
	.smartweb_faQs26 .row > .col-lg-4 {
		width: 33.3333%;
	}

	.smartweb_faQs26 .row > .col-lg-8 {
		width: 66.6667%;
	}
}

/* Below 992px the columns stack; the script's sticky height sync only applies above that. */
@media (max-width: 991px) {
	.smartweb_faQs26 .faq-left {
		min-height: 0 !important;
	}
}

/* "FAQs" heading: Hub's h1-size fancy heading */
.smartweb_faQs26 .faq-left .ld-fh-element {
	display: inline-block;
	position: relative;
	margin: 0 0 0.5em;
	color: var(--wp--preset--color--contrast);
	font-family: inherit;
	font-size: 47px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: -0.32px;
	vertical-align: middle;
}

.smartweb_faQs26 .faq-left p,
.smartweb_faQs26 .faqs_answer p {
	margin: 0 0 24px;
	font-size: 16px;
	line-height: 21px;
}

.smartweb_faQs26 .faqs_question h5 {
	margin: 0;
	font-family: inherit;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: normal;
}

/* ==========================================================================
   [swa_chat] - AI chat panel. chat/chat.css styles the widget itself; these are
   the Bootstrap 3 layout, form and utility classes it was written against.
   ========================================================================== */

.container.chat-container {
	box-sizing: border-box;
	width: auto;
	max-width: none;
	margin: 40px 0 0; /* chat.css value; the block gap would otherwise win */
}

/* Hub's Bootstrap container was 1170px wide inside the 1140px content area. */
@media (min-width: 1200px) {
	.container.chat-container {
		width: calc(100% + 30px);
		max-width: 1170px;
		margin-right: -30px;
	}
}

.chat-container *,
.chat-container *::before,
.chat-container *::after {
	box-sizing: border-box;
}

/* Flex helpers */
.chat-container .d-flex {
	display: flex;
}

.chat-container .justify-content-center {
	justify-content: center;
}

.chat-container .align-items-center {
	align-items: center;
}

/* Main column: full width, 10/12 centred from 992px */
.chat-container .chat-wrapper > main {
	position: relative;
	width: 100%;
	min-height: 1px;
	padding: 0 15px;
}

@media (min-width: 992px) {
	.chat-container .chat-wrapper > main.col-md-10 {
		width: 83.3333%;
		margin-right: auto;
		margin-left: auto;
	}
}

/* Bootstrap rows and columns inside the panel */
.chat-container .row,
.chat-container .form-group {
	margin-right: -15px;
	margin-left: -15px;
}

.chat-container .row::after,
.chat-container .form-group::after {
	content: "";
	display: table;
	clear: both;
}

.chat-container .col-xs-8,
.chat-container .col-xs-12 {
	position: relative;
	float: left;
	min-height: 1px;
	padding: 0 15px;
}

.chat-container .col-xs-8 {
	width: 66.6667%;
}

.chat-container .col-xs-12 {
	width: 100%;
}

/* Spacing and text utilities */
.chat-container .p-5 {
	padding: 32px;
}

.chat-container .px-4 {
	padding-right: 24px;
	padding-left: 24px;
}

.chat-container .mt-2 {
	margin-top: 8px;
}

.chat-container .mt-3 {
	margin-top: 16px;
}

.chat-container .mb-2 {
	margin-bottom: 8px;
}

.chat-container .mb-3 {
	margin-bottom: 16px;
}

.chat-container .my-2 {
	margin-top: 8px;
	margin-bottom: 8px;
}

.chat-container .text-center {
	text-align: center;
}

.chat-container .small {
	font-size: 85%;
}

/* Header and empty state */
.chat-container .chat-header h4 {
	font-family: inherit;
	font-size: 25px;
	line-height: 30px;
	letter-spacing: normal;
}

.chat-container .empty-state h5 {
	color: var(--wp--preset--color--contrast);
	font-family: inherit;
	font-size: 20px;
	font-weight: 600;
	line-height: 24px;
	letter-spacing: normal;
}

.chat-container .empty-state p {
	margin-top: 0;
	line-height: 21px;
}

.chat-container .empty-state .icon svg {
	display: block;
	width: 100%;
	height: 100%;
}

/* Input area: Bootstrap 3 form controls */
.chat-container .chat-input-panel .input-group {
	display: block;
	position: relative;
}

.chat-container .chat-input-panel .form-control {
	display: block;
	width: 100%;
	margin: 0;
	padding: 6px 12px;
	border: 1px solid #ccc;
	border-radius: 4px;
	background-color: var(--wp--preset--color--base);
	color: #555;
	font-family: inherit;
	font-size: 14px;
	line-height: 20px;
	box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
	transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;
}

.chat-container .chat-input-panel .form-control:focus {
	border-color: #66afe9;
	outline: 0;
	box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(102, 175, 233, 0.6);
}

.chat-container .chat-input-panel select.form-control {
	height: 44px;
}

.chat-container .chat-input-panel label {
	display: inline-block;
	max-width: 100%;
	margin: 8px 0 5px;
	font-size: 16px;
	font-weight: 400;
	line-height: 21px;
}

.chat-container .chat-input-panel .input-group-btn {
	display: inline;
}

/* Send button (black, arrow slides in on hover - see chat.css) */
.chat-container .btn-send {
	display: flex;
	position: relative;
	align-items: center;
	overflow: hidden;
	margin-top: 8px;
	padding: 10px 24px;
	border: 2px solid var(--wp--preset--color--contrast);
	border-radius: 0;
	background-color: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base);
	font-family: inherit;
	font-size: 16px;
	font-weight: 400;
	line-height: 21px;
	cursor: pointer;
}

.chat-container .btn-send span {
	display: block;
}
