/*
Theme Name: Nation Auto Glass
Theme URI: https://olliewp.com
Description: A child theme for Ollie.
Author: Mike McAlister
Author URI: https://olliewp.com
Template:     ollie
Version: 1.0.0
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Tags:         blog, portfolio, entertainment, grid-layout, one-column, two-columns, three-columns, four-columns, block-patterns, block-styles, custom-logo, custom-menu, editor-style, featured-images, full-site-editing, full-width-template, rtl-language-support, style-variations, template-editing, theme-options, translation-ready, wide-blocks
Text Domain: ngs-child
*/

.wp-block-list li::marker {
	color: #d03241;
}

:root :where(.wp-block-navigation a:where(:not(.wp-element-button)):hover) {
    text-decoration: none;
    color: var(--wp--preset--color--custom-orange) !important;
}

.wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__container .current-menu-item > a, .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__container .has-child button:hover {
    text-decoration: none;
	color: var(--wp--preset--color--custom-orange) !important;
}

.wp-block-media-text__media img, .wp-block-media-text__media video {
    border-radius: var(--wp--preset--border-radius--md) !important;
}

/* Sub Menu */

.wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__submenu-container {
    min-width: max-content !important;
    margin-left: calc(var(--wp--preset--spacing--medium) * -5);

}

/* Store Locator - full width */
#wpsl-wrap {
	max-width: none;
}

#wpsl-wrap #wpsl-result-list li {
	border-bottom: none;
}

/* Alternating background colors for store locations */
#wpsl-stores ul li:nth-child(even) {
	background-color: var(--wp--preset--color--tertiary) !important;
	border-radius: 10px !important;
}

/* Add padding and border to each listing */
#wpsl-stores ul li {
	padding: 30px !important;
	border-bottom: 0;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

/* Distance styling */
.wpsl-distance-wrap {
	margin: 10px 0 5px 0;
	font-size: var(--wp--preset--font-size--x-small);
	color: var(--wp--preset--color--secondary);
}

.wpsl-buttons-wrap {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 10px;
	align-items: center;
}

.wpsl-buttons-wrap a {
	display: inline-block;
	background-color: var(--wp--preset--color--main);
	color: var(--wp--preset--color--base) !important;
	padding: 8px 16px;
	border-radius: 4px;
	text-decoration: none !important;
	font-size: var(--wp--preset--font-size--x-small);
	transition: background-color 0.3s ease;
	text-align: center;
}

.wpsl-buttons-wrap a:hover {
	background-color: var(--wp--preset--color--custom-orange);
	color: var(--wp--preset--color--base) !important;
}

@media (max-width: 480px) {
	.wpsl-buttons-wrap {
		flex-direction: column;
		align-items: stretch;
	}

	.wpsl-buttons-wrap a {
		text-align: center;
		width: 100%;
	}
}

#wpsl-gmap,
.wpsl-gmap-canvas,
.site-content iframe[src*="google.com/maps"] {
	border-radius: 10px !important;
	overflow: hidden;
}

#wpsl-stores .wpsl-store-location p strong a,
#wpsl-stores .wpsl-store-location p strong {
	color: var(--wp--preset--color--main) !important;
	font-size: var(--wp--preset--font-size--base) !important;
	font-weight: 700 !important;
}

/* Phone and other links */
#wpsl-stores .wpsl-store-location a {
	color: var(--wp--preset--color--main) !important;
}

#wpsl-stores .wpsl-store-location a:hover {
	color: var(--wp--preset--color--main) !important;
	opacity: 0.8;
}

/* Store thumbnail (featured image) pinned to bottom-right of listing card */
#wpsl-stores ul li {
	position: relative;
}

#wpsl-stores .wpsl-store-thumb {
	position: absolute;
	right: 30px;
	bottom: 30px;
	border-radius: 8px;
	object-fit: cover;
}

@media (max-width: 600px) {
	#wpsl-stores .wpsl-store-thumb {
		position: static;
		display: block;
		margin: 12px 0 0 0;
	}
}

/* Contact Form 7 - inherit theme styles */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="url"],
.wpcf7 input[type="number"],
.wpcf7 textarea,
.wpcf7 select {
	width: 100%;
	padding: var(--wp--preset--spacing--small);
	border: 1px solid var(--wp--preset--color--border-light);
	border-radius: 4px;
	background-color: var(--wp--preset--color--base);
	color: var(--wp--preset--color--main);
	font-size: var(--wp--preset--font-size--small);
	font-family: inherit;
}

.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 input[type="tel"]:focus,
.wpcf7 input[type="url"]:focus,
.wpcf7 input[type="number"]:focus,
.wpcf7 textarea:focus,
.wpcf7 select:focus {
	outline: none;
	border-color: var(--wp--preset--color--primary);
}

.wpcf7 input[type="submit"] {
	background-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--base);
	border: none;
	border-radius: 0;
	padding: 12px 24px;
	font-size: var(--wp--preset--font-size--small);
	font-family: inherit;
	cursor: pointer;
	transition: background-color 0.3s ease;
}

.wpcf7 input[type="submit"]:hover {
	background-color: var(--wp--preset--color--custom-orange);
}

.wpcf7 label {
	color: var(--wp--preset--color--main);
	font-size: var(--wp--preset--font-size--small);
	margin-bottom: 4px;
	display: block;
}

.wpcf7 p {
	margin-bottom: var(--wp--preset--spacing--small);
}