/*
 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);
}

/*
 * Set content within .has-bg-image elements to z-index 2
 */
.has-bg-image > *:not(.bg-image) {
    z-index: 2;
}

/*
 * 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-primary);
    --border-color: var(--color-light-grey);
    --field-bg-color: var(--color-light);
    --border-radius: var(--border-radius-sml);
    --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 1.6rem !important;
    border-radius: var(--border-radius);
    color: var(--text-color);
    line-height: 2rem;
	font-size: 0.9em !important;
	font-weight: 500;
}

.gform_wrapper.gravity-theme label.gfield_label {
    font-size: 0.9em;
    font-weight: 500;
    color: var(--color-dark);
    margin-bottom: 0.4rem;
}

.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;
    
    text-align: center;
    padding: 0.8em 1.2em !important;
    
    cursor: pointer;
    transition: background 200ms ease;
	
	text-transform: uppercase;
	font-weight: 400;
	font-family: "Barlow Condensed", sans-serif;
	font-size: var(--font-size-base) !important;
}

.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);
}


/* 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;
}

/* Product Addons Styling STARTS */
.wcpa_img_wrap {
	border-radius: 3px !important;
}

.wcpa_type_textarea textarea {
	color: #191618 !important;
	border-radius: 3px !important;
	border: 1px solid #191618 !important;
}

.wcpa_type_textarea label {
	color: #191618 !important;
}

.wcpa_section {
	overflow: hidden !important;
/* 	height: 0px !important; */
	transition: height 0.2s ease-in-out;
}

.wcpa_field_bottom, .wcpa_image_label {
	display: none !important;
}

.wcpa_selected_tick {
	background-color: #f37243 !important;
	background: #f37243 !important;
}

.wcpa_wrap .wcpa_selection_outline input:checked~.wcpa_img_wrap {
	outline-color: #f37243 !important;
}

/* Hide the original selects but keep them accessible */
.variation-select--hidden{
  position:absolute !important; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0;
}

/* Pill group + pill */
.variation-pills{ display:flex; flex-wrap:wrap; gap:.5rem; margin:.35rem 0 1rem; }
.variation-pill{
  border:1px solid var(--accent, #e46a3a);
  background:transparent; color:inherit; line-height:1;
  padding:.55rem .95rem; border-radius:9999px; cursor:pointer;
}
.variation-pill[aria-checked="true"]{
  background:var(--accent, #e46a3a); color:#fff; border-color:var(--accent, #e46a3a);
}
.variation-pill[disabled]{ opacity:.45; cursor:not-allowed; }


.variations, .variations tr {
	border: 0px !important;
}

.variations tr {
	display: flex;
	width: 100%;
	flex-direction: column;
}

.variations .value {
	width: 100%;
}
/* Product Addons Styling ENDS */

/* Never collapse the wrapper itself */
.wcpa_section { height: auto !important; overflow: visible !important; }

/* Base: closed by default */
.wcpa_section_body {
  height: 0;                /* start closed */
  overflow: hidden;
  transition: height 260ms ease-in-out;
}

/* Optional: when JS marks open */
.wcpa_section.is-open .wcpa_section_body {
  /* height is controlled by JS (0px → Npx → auto), so no height here */
}

/* Make sure the header shows */
.wcpa_section_head { display: block !important; visibility: visible !important; }

/* Tooltip bubble */
.wcpa-tip {
  position: fixed;
  z-index: 99999;
  background: #2b2b2b;
  color: #fff;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.2;
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: 0 2px 10px rgba(0,0,0,.25);
  transform: translateX(-50%);
  pointer-events: none;
  white-space: nowrap;
}
.wcpa-tip::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 100%;
  width: 0; height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid #2b2b2b;
  filter: drop-shadow(0 1px 0 rgba(0,0,0,.2));
}
.wcpa-tip--below { transform: translate(-50%, 0); }
.wcpa-tip--below::after {
  top: auto; bottom: 100%;
  border-top: 0;
  border-bottom: 6px solid #2b2b2b;
}

.wcpa_wrap .wcpa_image .wcpa_img_wrap {
	min-width: 100px;
	min-height: 100px;
}
