/**
 * Theme Name: WP Auto Listings Blocks
 * Theme URI: https://wpautolistings.com
 * Description: Block theme for wpautolistings.com, built with core WordPress blocks.
 * Version: 1.0.0
 * Author: WP Auto Listings
 * Author URI: https://wpautolistings.com
 * Requires at least: 7.0
 * Requires PHP: 7.4
 * Text Domain: wpautolistings
 */

/* Sections sit flush against each other, like the old layout. */
.wp-site-blocks > * + * {
	margin-block-start: 0;
}

/* Background photos: set here so templates stay plain block markup. */
.al-hero {
	background: #000 url(assets/images/page-header-bg.jpg) center / cover no-repeat;
}
.al-home-hero {
	background: #000 url(assets/images/hero2.jpg) center / cover no-repeat;
}
.al-newsletter {
	background: url(assets/images/newsletter-bg.png) center bottom / cover no-repeat;
}

.font-light {
	font-weight: 300;
}

.al-shadow {
	box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

/* Lift the content box over the page hero, like the old layout. */
.al-overlap {
	position: relative;
	margin-top: -100px !important;
}

/* Round outlined icons in the features list. */
.al-icon-circle svg {
	box-sizing: border-box;
	width: 52px;
	height: 52px;
	padding: 14px;
	border: 2px solid var(--wp--preset--color--primary);
	border-radius: 50%;
	fill: var(--wp--preset--color--primary);
}

/* Docs sidebar menus. */
.al-docs-nav .wp-block-navigation-item__content::before {
	content: "›";
	margin-right: 6px;
	color: var(--wp--preset--color--primary);
	font-weight: 700;
}
.al-docs-nav .wp-block-navigation-item__content {
	padding: 4px 0;
}

/* Buy buttons from the [buy_button] shortcode keep the "fl-button" class. */
a.fl-button {
	display: inline-block;
	padding: 12px 24px;
	border: 1px solid var(--wp--preset--color--primary-dark);
	border-radius: 4px;
	background: var(--wp--preset--color--primary);
	color: #fff;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
}
a.fl-button:hover {
	background: var(--wp--preset--color--primary-dark);
	text-decoration: none;
}

/* Extension tabs (Yearly / Lifetime). */
.al-price-tabs .wp-block-tab-list button {
	padding: 12px 20px;
	border: 0;
	background: var(--wp--preset--color--gray);
	color: var(--wp--preset--color--dark);
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}
.al-price-tabs .wp-block-tab-list button[aria-selected="true"] {
	background: var(--wp--preset--color--primary);
	color: #fff;
}

.wp-block-post-content > :first-child {
	margin-top: 0;
}

/* Outline style for [buy_button class="wp-element-button is-outline"]. */
.wp-element-button.is-outline {
	display: inline-block;
	background: transparent;
	color: inherit;
	text-decoration: none;
}

/* Extension cards on the Extensions page. */
.al-ext-card .wp-block-post-title a {
	text-decoration: none;
}
.al-ext-card ul {
	padding-left: 20px;
}

.al-hero .wp-block-breadcrumbs ol {
	justify-content: center;
}

.al-ext-card {
	display: flex;
	flex-direction: column;
	height: 100%;
}
.al-ext-card > .al-ext-body {
	flex: 1;
}
.al-ext-card .wp-block-image img {
	width: auto;
	height: 30px;
}

/* Form fields (the old theme got these from Bootstrap). */
input:is([type="text"], [type="email"], [type="url"], [type="password"], [type="tel"], [type="number"], [type="search"]),
textarea,
select {
	box-sizing: border-box;
	max-width: 100%;
	padding: 10px 14px;
	border: 1px solid #d4d4d4;
	border-radius: 4px;
	background: #fff;
	color: inherit;
	font: inherit;
	line-height: 1.5;
}
input:focus,
textarea:focus,
select:focus {
	border-color: var(--wp--preset--color--primary);
	outline: 2px solid rgb(51 139 231 / 0.2);
}

/* Demo sign-up form from the [buse2_demo_form] shortcode. */
.demoForm label,
.demoForm input {
	display: block;
	width: 100%;
}
.demoForm input {
	margin: 6px 0 20px;
}
.demoForm button {
	width: 100%;
	border: 0;
	border-radius: 99px;
	color: #fff;
	cursor: pointer;
	font: inherit;
	font-weight: 700;
}
.demoForm button:hover {
	background: var(--wp--preset--color--primary-dark);
}

@media (max-width: 781px) {
	/* Keep logo, title and menu button on one row. */
	header .wp-block-site-tagline {
		display: none;
	}
	.al-newsletter {
		padding-top: 80px !important;
	}
	.al-overlap {
		margin-top: -60px !important;
	}
}

/* Extension page: buy box. */
.al-buy-box {
	position: sticky;
	top: calc(20px + var(--wp-admin--admin-bar--height, 0px));
}
.al-buy a.fl-button,
.al-buy a.wp-element-button {
	display: block;
	box-sizing: border-box;
	width: 100%;
	text-align: center;
}
.al-buy a.fl-button {
	padding: 16px 20px;
	font-size: 18px;
}
.al-upsell .al-buy a.wp-element-button {
	padding: 10px 12px;
	font-size: 12px;
	color: var(--wp--preset--color--primary);
}
.al-price-tabs .wp-block-tab-list {
	display: flex;
	gap: 0;
	margin-bottom: 15px;
}
.al-price-tabs .wp-block-tab-list button {
	flex: 1;
}
.al-checklist {
	padding: 0;
	list-style: none;
}
.al-checklist li {
	position: relative;
	margin: 6px 0;
	padding-left: 26px;
}
.al-checklist li::before {
	content: "✓";
	position: absolute;
	left: 0;
	color: #2e9e44;
	font-weight: 700;
}

/* Buy buttons on blue backgrounds. */
.al-hero-cta,
.al-on-blue .al-buy {
	margin-top: 20px;
}
.al-hero-cta span {
	margin-left: 12px;
	font-size: 13px;
	opacity: 0.9;
}
.al-hero-cta a.fl-button,
.al-on-blue a.fl-button {
	border-color: #fff;
	background: #fff;
	color: var(--wp--preset--color--primary);
	font-size: 18px;
}
.al-hero-cta a.fl-button:hover,
.al-on-blue a.fl-button:hover {
	background: var(--wp--preset--color--light);
}

@media (max-width: 781px) {
	.al-buy-box {
		position: static;
	}
	.al-ext-icon {
		display: none;
	}
	.al-hero-cta span {
		display: block;
		margin: 8px 0 0;
	}
}
