/*
 Theme Name:   Bricks Child Theme
 Theme URI:    https://bricksbuilder.io/
 Description:  Use this child theme to extend Bricks.
 Author:       Bricks
 Author URI:   https://bricksbuilder.io/
 Template:     bricks
 Version:      1.1
 Text Domain:  bricks
*/

/*****************************
  Setting sensible defaults 
*****************************/
body {
    min-height: 100vh;
}
img,
picture {
    max-width: 100%;
}
input,
button,
textarea,
select {
  font: inherit;
}

/*** end of sensible defaults ***/


/*****************************
  Content - Link styles
*****************************/
/* Add underline on hover */
main #nhs-bricks-content a ,
main #nhs-wordpress-content a {
  position: relative;
}
main #nhs-bricks-content a:hover::after,
main #nhs-wordpress-content a:hover::after{
  content: "";
  position: absolute;
  left: 0.3rem;
  right: 0.3rem;
  bottom: -0.3rem;
  border: 1px solid var(--nhs-primary-03);
}

/* Footer links - Add underline on hover */
footer a {
  position: relative;
  display: inline;
  width: auto;
}
footer a:hover::after{
  content: "";
  position: absolute;
  left: 0.3rem;
  right: 0.3rem;
  bottom: -0.3rem;
  border: 1px solid var(--nhs-footer-link-hover-colour);
}
footer .nhs-footer__logo a:hover::after{
  content: "";
  border: 0 solid var(--nhs-footer-link-hover-colour);
}

/*** end link styles ***/

/*****************************
  Content - Button styles
*****************************/
/* Standard buttons */
.nhs-button, a.nhs-button, input[type="submit"], button[type="submit"]{
  color: var(--nhs-text-white);
  background-color: var(--nhs-primary-05);
  border-radius: var(--nhs-button-corner);
  padding: var(--nhs-button-padding-block) var(--nhs-button-padding-inline);
  box-shadow: none;
  white-space: nowrap;
  position: relative;
  top: 0;
  transition: var(--nhs-transition);
}
.nhs-button:hover, a.nhs-button:hover, input[type="submit"]:hover, button[type="submit"]:hover{
  color: var(--nhs-text-white);    
  background-color: var(--nhs-primary-03);
  text-decoration: none;
  top: 0;
  box-shadow: var(--nhs-button-shadows);
  cursor: pointer;
}
/* Button with clear fill */
.nhs-button--clear{
  color: var(--nhs-primary-03);
  border-radius: var(--nhs-button-corner);
  padding: var(--nhs-button-padding-block) var(--nhs-button-padding-inline);	
  border: solid 0.2rem var(--nhs-primary-03);	
  background-color: transparent;
  box-shadow: none;
  white-space: nowrap;	
}
.nhs-button--clear:hover{ 
  color: var(--nhs-primary-05);
  border: solid 0.2rem var(--nhs-primary-05);	
  background-color: transparent;
  text-decoration: none;
  cursor: pointer;
}
/* Button on dark bg */
.nhs-button--darkbg{
  border-radius: var(--nhs-button-corner);
  padding: var(--nhs-button-padding-block) var(--nhs-button-padding-inline);
  color: var(--nhs-primary-04);
  border: solid 0.2rem var(--nhs-text-white);
  background-color: var(--nhs-text-white);	
  box-shadow: var(--nhs-button-shadows);
  white-space: nowrap;	
}
.nhs-button--darkbg:hover{ 
  color: var(--nhs-primary-07);
  border: solid 0.2rem var(--nhs-text-white);
  background-color: var(--nhs-text-white);
  text-decoration: none;
  cursor: pointer;
}
/*** end of button styles ***/


/*****************************
  List styles
*****************************/
.brxe-text li{
    margin-bottom: var(--nhs-list-item-spacing);   
}

/*** end of list styles ***/


/*****************************
  Video styles 
*****************************/
/* WP Lyte */
.nhs-post__content .lyte-wrapper{
    margin-block: var(--nhs-space-l) !important;
}

/*** end of video styles ***/


/*****************************
  Form styles 
*****************************/
/** Fluent forms **/
/* Cnfimration message */
.fluentform .ff-message-success {
    border: 0 solid #FFF;
	border-top: 2px solid var(--nhs-primary-04);
	border-bottom: 2px solid var(--nhs-primary-04);
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    padding: var(--nhs-space-l) 0;
	margin-bottom: var(--nhs-space-l);
}

/*****************************
  Form styles 
*****************************/
/* Field & label styles */
.fluentform{
	padding-top: 1rem;
	padding-bottom: 1rem;
}
.fluentform .nhs-form .ff-el-group label{
	font-weight: var(--nhs-font-weight-mh);
	color: var(--nhs-primary);
	margin-bottom: 0;
}
.fluentform .nhs-form .ff-el-group{
    padding-top: 0;
    padding-bottom: 0;
}
.fluentform .nhs-form .ff-el-group .ff-el-input--content input{
	padding: 0.5rem 1rem;
}
.fluentform .nhs-form .ff-el-group .ff-el-input--content input[type=text],
.fluentform .nhs-form .ff-el-group .ff-el-input--content input[type=tel],
.fluentform .nhs-form .ff-el-group .ff-el-input--content input[type=email],
.fluentform .nhs-form .ff-el-group .ff-el-input--content textarea{
    border-radius: calc(var(--nhs-corner-radius) * 0.05);
}
.fluentform .nhs-form .ff-el-input--label.ff-el-is-required.asterisk-right label:after{
	color: var(--nhs-accent);
	content: "*";
	margin-left: 0.2rem;
}
.fluentform .nhs-form input{
    color: var(--nhs-neutral);    
}
.fluentform .nhs-form input::placeholder,
.fluentform .nhs-form input::-webkit-input-placeholder,
.fluentform .nhs-form input::placeholder,
.fluentform .nhs-form input::-webkit-input-placeholder{
    color: var(--nhs-neutral-light);
    opacity: 0.8;
}

.ff-el-input--content:has(textarea[name="user_journey"]),
.ff-el-input--label:has(+ .ff-el-input--content textarea[name="user_journey"]) {
    display: none;
}

/* Errors */
.fluentform .nhs-form .text-danger{
	color: var(--nhs-accent);
}
.fluentform .nhs-form .ff-el-is-error .ff-el-form-control{
    border-color: var(--nhs-accent);
}

/* Horizontal form */
.nhs-form--line .wpforms-form,
.nhs-form--line .wpforms-field-container{
    display: flex;
    flex-direction: row;
    gap: var(--nhs-card-gap);
    align-items: start;
}
.nhs-form--line .wpforms-container .wpforms-submit-container{
    padding-top: 0;
}
.nhs-form--line .nhs-button{
    margin-top: 2.9rem;
}
/* Fluent Forms single line form */
@media (min-width: 640px) {
	.nhs-form--line .fluentform fieldset{
		display: flex;
		flex-direction: row;
		gap: var(--nhs-card-gap);
		align-items: end;
	}
}
@media only screen and (max-width: 478px) {
    .nhs-form--line .wpforms-form,
    .nhs-form--line .wpforms-field-container{
        flex-direction: column;
        gap: var(--nhs-space-xs); 
    }
    .nhs-form--line .wpforms-field-container .wpforms-field{
        padding-bottom: 0; 
    }    
    .nhs-form--line .nhs-button{
        margin-top: 0;
    }    
}

/*** end of form styles ***/



/*****************************
  Search styles 
*****************************/

/*** end of search styles ***/


/*****************************
  Blog post styles 
*****************************/

/*** end of blog post styles ***/


/*****************************
  Social sharing styles 
*****************************/
.nhs-page-content__social-collapse .heateor_sss_sharing_container.heateor_sss_horizontal_sharing{
    margin-top: var(--nhs-space-l);
    margin-bottom: var(--nhs-space-xxl);
}
.nhs-content-wordpress .heateor_sss_sharing_container.heateor_sss_horizontal_sharing{
    margin-top: var(--nhs-space-xl);
    margin-bottom: 0;    
}
.heateor_sss_sharing_title{
    font-size: var(--nhs-font-m);
    padding-bottom: var(--nhs-space-s);
}
.heateor_sss_vertical_sharing a{
	margin-bottom: 3px;
}

/*** end of social sharing styles ***/

/*****************************
  Shop styles 
*****************************/

/*** end of shop styles ***/

