/*
 Theme Name:   GMB Bricks Child
 Theme URI:    https://gmb.digital/
 Description:  Used to extend the Bricks theme.
 Author:       The Team @ Grow My Business
 Author URI:   https://gmb.digital/about
 Template:     bricks
 Version:      1.1
 Text Domain:  gmb
*/


/*
 * Prevent Horizontal Overflow
 */

html {
	height: 100%;
}

body {
	min-height: 100%;
	overflow-x: hidden;
}

section.brxe-section {
    overflow-x: clip;
}

/*
 * Set Bold font weight to Semi-Bold
 */
strong {
	font-weight: 600;
}

/*
 * Prevent content of elements with ratio class from stretching (e.g. images)
 */
[class*="ratio-"] {
    object-fit: cover;
    object-position: center;
}

/*
 * Prevent buttons inner text and the nav menu items from wrapping
 */
.brxe-button,
.nav-menu {
    white-space: nowrap;
}

/*
 * Set 'scroll to' offset for elements with ids (for in-page linking)
 */
[id] {
    scroll-margin-top: calc(var(--spacing-lrg) * 1.5);
}

/*
 * List Styles
 */
.brxe-text ul {
    padding-left: 2em;
}

.brxe-text ul li:not(:last-child) {
    margin-bottom: 0.3em;
}

/*
 * Enable overflow for shadows on table of contents
 */
.brxe-post-toc {
  overflow: visible;
}

/*
 * Gravity Forms Styles
 */

.gform_wrapper form {
    --btn-bg-color: var(--color-primary);
    --btn-text-color: var(--color-light);
    --text-color: var(--color-dark);
    --border-color: var(--color-grey);
    --field-bg-color: var(--color-white);
    --border-radius: var(--border-radius-med);
    --border-width: 0.1rem;
}

.gform_wrapper  form.light,
.light-form .gform_wrapper form {
    --btn-bg-color: var(--color-primary);
    --btn-text-color: var(--color-dark);
    --text-color: var(--color-light);
    --border-color: var(--color-grey);
    --field-bg-color: transparent;
}

.gform_wrapper input,
.gform_wrapper textarea,
.gform_wrapper select {
    background: var(--field-bg-color);
    color: #fff;
    border: var(--border-width) solid var(--border-color);
    padding: 1.2rem 2rem !important;
    border-radius: var(--border-radius);
    color: var(--text-color);
    line-height: 1.278;
	font-weight: 500;
	
	font-size: var(--font-size-label-s) !important;
}

.gform_wrapper label.gfield_label,
.gform_wrapper label {
	font-size: var(--font-size-label-s) !important;
    font-weight: 500;
    color: var(--color-dark);
    margin-bottom: 0.4rem;
}

/* .gfield_checkbox,
.gfield_radio {
    display: flex;
    grid-gap: 0 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.gfield--type-checkbox legend {
    width: 100%;
    text-align: center;
} */

.gchoice {
    display: flex;
    align-items: center;
    grid-gap: 0.8rem;
}

body .ui-datepicker * {
    font-size: 1.5rem !important;
}

.gform_wrapper select {
    appearance: none;
    -webkit-appearance: none;
    background-size: 1rem auto;
    background-position: right 1rem top 50%;
    background-repeat: no-repeat;
    background-image: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iOCIgdmlld0JveD0iMCAwIDEyIDgiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMF8xOTVfMTczOCkiPgo8cGF0aCBkPSJNMSAxLjVMNiA2LjVMMTEgMS41IiBzdHJva2U9IiMyMTIxMjEiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+CjwvZz4KPGRlZnM+CjxjbGlwUGF0aCBpZD0iY2xpcDBfMTk1XzE3MzgiPgo8cmVjdCB3aWR0aD0iMTIiIGhlaWdodD0iOCIgZmlsbD0id2hpdGUiLz4KPC9jbGlwUGF0aD4KPC9kZWZzPgo8L3N2Zz4K);
}

.gform_wrapper  form.light select,
.light-form .gform_wrapper form select {
    background-image: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iOCIgdmlld0JveD0iMCAwIDEyIDgiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMF8xOTVfMTczOCkiPgo8cGF0aCBkPSJNMSAxLjVMNiA2LjVMMTEgMS41IiBzdHJva2U9IiNmZmYiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+CjwvZz4KPGRlZnM+CjxjbGlwUGF0aCBpZD0iY2xpcDBfMTk1XzE3MzgiPgo8cmVjdCB3aWR0aD0iMTIiIGhlaWdodD0iOCIgZmlsbD0id2hpdGUiLz4KPC9jbGlwUGF0aD4KPC9kZWZzPgo8L3N2Zz4);
}

.ginput_complex span {
    display: block !important;
}

.gform_wrapper input::placeholder,
.gform_wrapper textarea::placeholder,
.gform_wrapper select:not(:focus) {
    color: color-mix(in srgb, var(--text-color), transparent 40%);
}

body .gform_wrapper input:not([type="submit"]):not([type="button"]):focus,
body .gform_wrapper textarea:focus {
    border-color: var(--text-color) !important;
	color: var(--text-color) !important;
    outline: none;
}

.gform_wrapper input[type="submit"] {
	width: 100%;
}

.gform_wrapper input[type="submit"],
.gform_wrapper input[type="button"] {
    background: var(--btn-bg-color);
    color: var(--btn-text-color);
    border: none;
	line-height: 1;
    
    text-align: center;
    padding: 0.85em 1.65em !important;
    
    cursor: pointer;
    transition: background 200ms ease;
}

.gform_wrapper input[type="submit"]:hover,
.gform_wrapper input[type="button"]:hover {
    background: color-mix(in srgb, var(--btn-bg-color), var(--color-dark) 10%);
}

.gform_required_legend,
.gform_wrapper .gform_heading {
	display: none;
}

.gform_wrapper .gform_footer {
    padding: 0 !important;
}

.gform_wrapper .gform_footer input {
    margin-bottom: 0 !important;
}

.gform_wrapper .gfield--type-html {
    font-size: 0.85em;
}

.gform_ajax_spinner {
    margin-left: 2rem;
}

.gfield_validation_message {
    display: none;
}

select.light option,
.light-form select option {
    background-color: var(--btn-bg-color);
    color: var(--btn-text-color);
}

.gform_wrapper .gf_progressbar {
    background: var(--color-light-grey) !important;
}

.gf_progressbar_percentage {
    background-color: var(--color-primary) !important;
}


/* Custom Field Styling */
.wcpa_field_label {
	color: #fff !important;
	font-size: 18px !important;
}

.wcpa_field {
	background-color: rgba(0,0,0,0) !important;
	border-radius: 0px !important;
	border: 1px solid #fff !important;
	color: #fff !important;
	font-size: 18px !important;
}

.wcpa_file_style .awpca_custom_file {
	background-color: rgba(0,0,0,0) !important;
	border: 0px !important;
}

.wcpa_file_style .wcpa_choose_button {
	background-color: rgba(0,0,0,0) !important;
}

/*
 * Radio button styles
 */

input[type="radio"]:not([data-mode="button"] input[type="radio"]):checked,
input[type="checkbox"]:not([data-mode="button"] input[type="checkbox"]):checked {
  color: var(--color-primary) !important;
}

input[type="radio"]:not(ul[data-mode="button"] input[type="radio"]),
input[type="checkbox"]:not(ul[data-mode="button"] input[type="checkbox"]) {
    appearance: none !important;
    background-color: #fff !important;
    margin: 0 !important;
    font: inherit !important;
    color: var(--color-grey) !important;
    width: 1.6rem !important;
    height: 1.6rem !important;
    border: 0.1rem solid currentColor !important;
    border-radius: 0.6rem !important;
    transform: translateY(-0.05em) !important;
    display: grid !important;
    place-content: center !important;
    padding: 0 !important;
}

input[type="radio"]:not(ul[data-mode="button"] input[type="radio"])::before,
input[type="checkbox"]:not(ul[data-mode="button"] input[type="checkbox"])::before {
  content: "" !important;
  width: 1rem !important;
  height: 1rem !important;
  border-radius: 0.3rem; !important;
  opacity: 0 !important;
  transition: 120ms opacity ease-in-out !important;
  box-shadow: inset 1em 1em currentColor !important;
}

input[type="radio"]:not(ul[data-mode="button"] input[type="radio"]):checked::before,
input[type="checkbox"]:not(ul[data-mode="button"] input[type="checkbox"]):checked::before {
  opacity: 1 !important;
}

.gform_wrapper .ginput_container_date input {
    width: 100% !important;
}

/*
 * No Results
 */
.bricks-posts-nothing-found {
    text-align: center;
}

/*
 * Trust Index Reviews Slider Styles
 */
body .ti-widget.ti-goog .ti-review-item>.ti-inner,
body .ti-widget.ti-goog .ti-load-more-reviews-container .ti-load-more-reviews-button {
    box-shadow: 0px 9.2rem 5.5rem 0px rgba(0, 0, 0, 0.02), 0px 1rem 2.2rem 0px rgba(0, 0, 0, 0.04) !important;
}

body .ti-widget.ti-goog .ti-review-item>.ti-inner {
    padding: 3rem !important;
}

body .ti-widget.ti-goog .ti-widget-container, .ti-widget.ti-goog .ti-widget-container * {
	font-size: var(--font-size-sml) !important;
}

body .ti-widget.ti-goog .ti-review-content {
	
}

body .ti-reviews-container-wrapper {
    overflow: visible !important;
}

body .ti-widget.ti-goog .ti-controls .ti-next,
body .ti-widget.ti-goog .ti-controls .ti-prev {
    width: 4rem;
    height: 4rem;
    border-radius: 100rem;
    outline: 0.1rem solid rgba(0, 0, 0, 0.02);
	box-shadow: 0 0.5rem 1.2rem -0.2rem rgba(0, 0, 0, 0.08) !important;
	transition: box-shadow 200ms ease !important;
}

body .ti-widget.ti-goog .ti-controls .ti-next:hover,
body .ti-widget.ti-goog .ti-controls .ti-prev:hover {
    background: white !important;
    outline-color: rgba(0, 0, 0, 0.02) !important;
    box-shadow: 0 0.5rem 1.2rem -0.2rem rgba(0, 0, 0, 0.2) !important;
}

body .ti-widget.ti-goog .ti-controls .ti-next:before,
body .ti-widget.ti-goog .ti-controls .ti-prev:before {
    width: 1.4rem;
    height: 1.4rem;
    border: none !important;
    background: url(/wp-content/uploads/2025/07/Vector-Stroke.svg) no-repeat 50% 50% / 100% 100%;
    transform: translate(-50%, -50%);
}

body .ti-widget.ti-goog .ti-controls .ti-prev:before {
    transform: translate(-50%, -50%) scaleX(-1);
}

/*
 * Style tippy tool tips
 */
.tippy-box {
	background: var(--color-white);
	box-shadow: 0px 2px 8px 0 rgba(0, 0, 0, 0.16);
	border-radius: var(--border-radius-sml);
	font-size: 0.9em;
}

.tippy-content {
	color: var(--color-dark);
	line-height: var(--line-height);
}

.tippy-arrow {
	color: var(--color-white);
}

/*
 * Popup Transition
 */
.brx-popup {
	transition: opacity 300ms ease;
}

/*
 * Active Filters Prevent Overflow
 */
.brxe-filter-active-filters li {
    width: 100%;
}

.brxe-filter-active-filters button {
	display: block;
	text-overflow: ellipsis;
    overflow: hidden;
    max-width: 100%;
	padding-right: 1.6em !important;
}

.brxe-filter-active-filters button i {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 0.8em;
    width: 0.8em;
}

/* Listing Image Loading */
.listing-card:not(.content-loaded) .lc-image-wrap::before,
.gallery-main .media-wrap:not(.content-loaded) .bricks-lightbox::before {
    content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(
		90deg,
		transparent,
		rgba(33, 33, 33, 0.05),
		transparent
	);
	animation: image-loader 3s infinite;
}

@keyframes image-loader {
	0% {
		transform: translateX(-200%) rotate(-15deg) scale(1.5, 4);
	}
	100% {
		transform: translateX(200%) rotate(-15deg) scale(1.5, 4);
	}
}

.listing-card .lc-image-wrap img,
.gallery-main .media-wrap .bricks-lightbox img {
	opacity: 0;
	transition: opacity 300ms ease-in-out, transform 400ms ease;
}

.listing-card.content-loaded .lc-image-wrap img,
.gallery-main .media-wrap.content-loaded .bricks-lightbox img {
	opacity: 1;
}

/*
 * 
 * Prevent selecting of background images
 * 
 */
.bg-image {
	user-select: none;
	-webkit-user-select: none;
}

/*
 * 
 */
ul.brxe-filter-checkbox > li:has(> label.child) {
  padding-left: 2.5rem;
}