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


/* ======================================================================
   FOOTER
   ====================================================================== */

/* shipping footer cta */
/* shipping footer cta */
#shipping-footer-cta{
  position: relative;
  overflow: visible;              /* was hidden — this prevented overlap */
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}

/* LEFT */
#shipping-footer-cta > .brxe-div:first-child{
  --panel: #4b9aa0;
  background: var(--panel);
  color: #fff;
  position: relative;
  z-index: 2;                     /* above image */
}

#shipping-footer-cta > .brxe-div:first-child::after{
  content: "";
  position: absolute;
  top: 0;
  right: -145px;                   /* same */
  width: 100px;                   /* same */
  height: 100%;
  background: var(--panel);
  transform: skewX(-6deg);        /* same */
  transform-origin: left top;
  z-index: 3;                     /* ensure overlay is on top */
  pointer-events: none;
}

/* RIGHT image column */
#shipping-footer-cta > .brxe-div:last-child{
  position: relative;
  overflow: hidden;               /* keep image clipped inside its column */
  min-height: 320px;
  z-index: 0;                     /* make sure it's under the overlay */
}

#shipping-footer-cta > .brxe-div:last-child img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right bottom;
  display: block;
}

/* optional: replace old #brxe-patsbc */
#shipping-footer-cta > .brxe-div:first-child :is(.brxe-heading, .brxe-text){
  max-width: 520px;
}

@media (max-width: 767px){
  #shipping-footer-cta{
    grid-template-columns: 1fr;
    overflow: hidden;             /* ok on mobile since overlay is disabled */
  }

  #shipping-footer-cta > .brxe-div:first-child{
    padding: 28px;
  }

  #shipping-footer-cta > .brxe-div:first-child::after{
    display: none;
  }

  #shipping-footer-cta > .brxe-div:last-child{
    min-height: 240px;
  }
}

/* footer links */
#brxe-fucijb a[href]:not([href=""]):not([href="#"]):not([href^="javascript:"]),
.footer-links #brxe-fucijb a[href]:not([href=""]):not([href="#"]):not([href^="javascript:"]) {
  text-decoration: underline !important;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

#brxe-fucijb a[href]:not([href=""]):not([href="#"]):not([href^="javascript:"]):hover,
#brxe-fucijb a[href]:not([href=""]):not([href="#"]):not([href^="javascript:"]):focus-visible,
.footer-links #brxe-fucijb a[href]:not([href=""]):not([href="#"]):not([href^="javascript:"]):hover,
.footer-links #brxe-fucijb a[href]:not([href=""]):not([href="#"]):not([href^="javascript:"]):focus-visible {
  color: #F97929 !important;
}
