/*!
Theme Name: Kadence-Child
Theme URI: https://www.kadencewp.com/kadence-theme/
Author: Piotr Stańczyk
Author URI: https://pstanczy.github.com
Template: kadence
Version: 1.0.0
Text Domain: kadence-child
Requires at least: 6.3
Tested up to: 6.9
Tags: translation-ready, accessibility-ready, two-columns, right-sidebar, left-sidebar, footer-widgets, blog, custom-logo, custom-background, custom-menu, rtl-language-support, editor-style, threaded-comments, custom-colors, featured-images, wide-blocks, full-width-template, theme-options, e-commerce
Requires PHP: 7.4
*/


/* CAR SELECTION WIDGET */
.car-row {
  position: relative;  /* anchor for absolutely positioned cards */
  display: flex;       /* optional: flex allows easier alignment */
  align-items: flex-start;
  height: 400px;       /* or dynamic depending on your cards */
}

/*.car-card {
  position: relative;
  width: 401px;
  height: 335px;
  min-height: 200px;
  max-height: 350px;
  overflow: visible;*/
  /*margin-left: var(--margin-left, 0);   per-card horizontal offset */
  /*z-index: var(--z, 1);                 control overlap: higher z on top */
/*}*/

/*.car-card {
  position: relative;
  width: min(400px, 100%);
  margin-inline: auto;
  height: 335px;
  min-height: 200px;
  max-height: 350px;
  overflow: visible;
  left: var(--left, 0);
  z-index: var(--z, 1);
}*/

.car-card {
  position: relative;
  width: min(400px, 100%);
  height: min(335px, 100%);
  margin-inline: auto;
  margin: auto;
  overflow: visible;
  left: var(--left, 0);  /* per-card horizontal offset */
  z-index: var(--z, 1);                /* control overlap: higher z on top */
}

@media (max-width: 475px) {
/*  .car-bg {
	  width: 300px;
	  height: 300px;
	  margin: 0;
	  padding: 0;
  }*/
  .car-card {
	  /*width: 95vw;   275px */
	  /*height: 300px;*/
	  width: 89vw !important;
	  margin: 0;
	  padding: 0;
	  left: 0%;
  }
  .car-image {
      /*transform: none !important;
	  left: 0% !important;
	  margin-inline: auto !important;
	  margin: auto !important;
	  padding: 0;*/
      /*left: 0% !important;              reset */
      /*transform: none !important;         remove translate */
	  height: calc(40vw + 40px) !important;
      /*display: block !important;          required for margin auto */
      /*margin-inline: auto !important;     center horizontally */
      /*max-width: 100% !important;         responsive safety */
  }
/*  .car-row {
	  width: 250px;
	  margin: 0;
	  padding: 0;
  }*/
/*  .car-row-kadence {
	  width: 250px;
	  margin: 0;
	  padding: 0;
  }*/
}

/*.car-image {
  position: absolute;
  bottom: var(--car-bottom, -50px);
  left: var(--car-left, 50%);
  transform: translateX(-50%) scale(1);
  height: var(--car-height, 220px);
  z-index: 2;
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);*/
  /*transition: transform 0.3s ease;*/
/*}*/

/*@media (max-width: 767px) {
  .car-card {
	  left: calc((100vw - 400px)/2);
  }
}*/

/*@media (max-width: 767px) {
  .car-card {
	left: 0%;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }
}*/



/* This ensures that only the <img> inside the <a> responds to clicks */
.car-card a .car-image {
  display: inline-block;
  cursor: pointer;
}

.car-card:hover .car-image {
  transform: translateX(-50%) scale(1.05);
}

.car-bg {
 filter:
  saturate(1.25)
  contrast(1.05)
  brightness(1.03)
  sepia(0.05);
}

/* Base + hover background layers 
.car-bg,
.car-hover-bg {
  width: 401px;
  position: absolute;
  inset: 0;
  z-index: 1;
  background: white;
  background-image: var(--bg-url);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: right 80% bottom 20%;
  mask-image: var(--bg-mask);
  -webkit-mask-image: var(--bg-mask);
  mask-size: cover;
  -webkit-mask-size: cover;
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-position: center;
  transition: all 0.3s ease;
  pointer-events: none;
}*/

/* Base + hover background layers */
.car-bg,
.car-hover-bg {
  width: 401px;
  position: absolute;
  inset: 0;
  z-index: 1;
  background: white;
  background-image: var(--bg-url);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: right 80% bottom 20%;
  mask-image: var(--bg-mask);
  -webkit-mask-image: var(--bg-mask);
  mask-size: cover;
  -webkit-mask-size: cover;
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-position: center;
  transition: all 0.3s ease;
  pointer-events: none;
}

.car-hover-bg {
  z-index: 0;
  background: var(--hover-color, #00A1B4);
  mask-image: var(--hover-mask);
  -webkit-mask-image: var(--hover-mask);
  transform: translate(var(--hover-offset-x, 0), var(--hover-offset-y, 0));
  opacity: 0;
}

/* Car image */
.car-image {
  position: absolute;
  bottom: var(--car-bottom, -50px);
  left: var(--car-left, 50%);
  transform: translateX(-50%) scale(1);
  height: var(--car-height, 220px);
  z-index: 2;
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  /*transition: transform 0.3s ease;*/
}

/* Label */
.car-label {
  position: absolute;
  top: 20px;
  left: 60px;
  font-size: 25px;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.2em;
  text-shadow: 0 0 10px rgba(0,0,0,.3);
  z-index: 3;
}

/* Hover effect */
.car-card:hover .car-hover-bg {
  opacity: 1;
}

@media (max-width: 767px) {
  .car-hover-bg {
    transform: translate(var(--hover-offset-x-mobile, var(--hover-offset-x, 0)),
                         var(--hover-offset-y-mobile, var(--hover-offset-y, 0)));
  }
  .mapa-b1 iframe {
    max-height: 350px;
    height: 350px;
  }
}

/* HERO MAIN PAGE CUSTOMISATION */
.hero-overlay {
  position: relative;
  /*top: 350px;*/
  left: 200px;
  z-index: 2;
}

/*.hero-overlay-mask-up {
	height: 25%;
}*/

.hero-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: -1;
}











.hero-baw {
  position: relative;
  height: 100svh-80px;
  /*height: 100svh-80px;
  max-height: 100svh-80px;
  height: 100%;*/
  overflow: clip;
  /*object-fit: cover;*/
}
.hero-baw-stripe-top {
  position: relative;
  width: 15%;
  left: 7%;
  top: 0;
  z-index: 2;
  pointer-events: none;
  margin-top: 0% !important;
  margin-bottom: 0% !important;
}

.hero-baw-stripe-bottom {
  position: relative;
  width: 15%;
  left: 18%;
  top: 0;
  z-index: 2;
  pointer-events: none;
  margin-top: 0% !important;
  margin-bottom: 0% !important;
}
.hero-baw-content-header {
  position: relative;
  display: inline-block;
  left: 10%;
  font-size: clamp(24px, 3svw, 80px) !important;
  /*font-weight: 900 !important;*/
  max-width: clamp(260px, 28svw, 600px) !important;
  line-height: 1 !important;
  /*margin-top: clamp(1%, 3svw, 8%) !important;*/
  margin-top: 2% !important;
  margin-bottom: 1% !important;
  z-index: 3;
}

.hero-baw-content-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: -1;
}

.hero-baw-content-button {
  position: relative;
  left: 10%;
  /*margin-bottom: clamp(1%, 3svw, 10%) !important;*/
  font-size: clamp(14px, 2svw, 30px) !important;
  z-index: 3;
}
.hero-baw-content-button-main {
  margin-bottom: 2% !important;
}

@media (max-width: 767px) {
	.hero-baw-content-header {
	  left: 0%;
	  z-index: 3;
	}
	.hero-baw-content-button {
	  left: 0%;
	  z-index: 3;
	}
  .hero-baw-stripe-bottom {
	  left: 22%;
  }
}

/*@media (min-width: 768px) {
	.hero-baw {
	  height: 100svh;
	}
}*/

















/* GRAY CARS SLIDER WIDGET */
.baw-hero-slider::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 70%; /* controls how far the light-gray background reaches */
  height: 100%;
  background: #F5F7FA;
  z-index: 0;
  transform: translateX(-100%);
  /*min-width: 100vw;
  margin-left: -50vw;
  left: -50%;
  right: -50%;
  margin-left: -50vw;  break out of container 
  margin-right: -50vw;*/
}

.baw-hero-slider {
  position: relative;
  /*overflow: hidden;*/
  background: #ffffff;
  padding: 40px 20px 20px;
  /*min-width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;  break out of container 
  margin-right: -50vw;*/
}



.baw-slide {
  display: none;
  flex-direction: column;
  /*max-width: 1240px;
  margin: auto;*/
}

.baw-slide.is-active {
  display: flex;
}

.baw-slide-top {
  display: flex;
  align-items: stretch;
  gap: 20px;
  min-height: 450px;
  height: 450px;
}

.baw-content {
  flex: 1;
}

.baw-image {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.baw-image img {
  width: auto;
  max-width: 100%;
  height: 100%;
  object-fit: contain; /*cover;*/
  pointer-events: none;
  /*min-width: 100vw;
  margin-left: -50vw;
  left: -50%;
  right: -50%;
  margin-left: -50vw;  break out of container 
  margin-right: -50vw;*/
}

.baw-slide-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  /*margin-top: 20px;*/
}

.baw-btn-price {
  display: flex;
  align-items: center;
  gap: 30px;
}

.baw-title {
  display: inline-block;
  position: relative;
  font-size: 55px;
  font-weight: 700;
  line-height: 1;
}

.baw-title-text {
  display: inline-block;
}

.baw-title-wrap {
  display: inline-flex;
  position: relative;
  overflow: hidden;
}

.baw-title-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #F5F7FA, #93163a);
  transform: translateX(-101%);
  z-index: 2;
}

.baw-desc {
  font-size: 18px;
  padding-top: 30px;
}

.baw-price {
  font-size: 36px;
  font-weight: 700;
  white-space: nowrap;
}

.baw-btn {
  background-color: #99003A;
  background: #93163a;
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  font-size: 17px;
  transition: background-color 0.3s ease;
  white-space: nowrap;
}

.baw-btn:hover {
  background-color: #000000;
  color: #ffffff;
}

.baw-nav {
  display: flex;
  gap: 10px;
  z-index: 1;
}

.baw-nav button {
  background: rgba(0,0,0,0.5);
  border: none;
  width: 60px;
  height: 60px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.3s ease;
}

.baw-nav button:hover {
  background: rgba(0,0,0,0.8);
}

.baw-nav button img {
  width: 40px;
  height: 40px;
  display: block;
  pointer-events: none;
  filter: brightness(0) invert(1);
}

.baw-specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 24px;
  /*margin-bottom: 24px;*/
}

.baw-spec {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
}

.baw-spec-icon {
  line-height: 1;
}

.baw-spec-icon img {
  width: 36px;
  height: 36px;
  display: block;
}


/* Animations */

@keyframes slideFromLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideFromRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideFromLeftBg {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(0);
  }
}

@keyframes titleMaskIn {
  from { transform: translate3d(-101%,0,0); }
  to   { transform: translate3d(0,0,0); }
}

@keyframes titleMaskOut {
  from { transform: translate3d(0,0,0); }
  to   { transform: translate3d(101%,0,0); }
}


/* Mobile */
@media (max-width: 767px) {
  .baw-hero-slider {
	  padding: 0;
  }
  .baw-slide-top {
	  height: auto;
	  display: block;
  }
  .baw-slide {
    flex-direction: column;
    text-align: center;
  }
  .baw-cta-row {
    justify-content: center;
    flex-wrap: wrap;
  }

  .baw-image img {
	  display: block;
	  width: 85%;
  }
  .baw-hero-slider::before {
    width: 100%; /* controls how far the light-gray background reaches */
  }
  .baw-specs-grid {
	  margin-bottom: 16px;
	  display: inline-grid;
  }
  .baw-nav {
	  /*display: block;
	  flex-direction: column;*/
	  padding-top: 16px;
	  padding-bottom: 16px;
	  text-align: center;
	  align-items: center;
	  justify-content: center;
  }
  .baw-desc {
	text-align: left;
	padding-left: 1rem;
	padding-right: 1rem;
	font-size: 14px;
  }
  .baw-price {
	white-space: wrap;
	display: block;
	flex-direction: column;
	font-size: 28px;
	padding-top: 16px;
	padding-bottom: 16px;
    text-align: center;
	align-items: center;
	justify-content: center;
  }
  .baw-btn {
	white-space: wrap;
	/*display: block;*/
	flex-direction: column;
  }
  .baw-btn-price {
	display: block;
	flex-direction: column;
    padding-top: 16px;
	padding-bottom: 16px;
	text-align: center;
	align-items: center;
	justify-content: center;
  }
  .baw-slide-bottom {
	display: grid;
	flex-direction: column;
	/*padding-top: 16px;
	padding-bottom: 16px;
	margin-top: 16px;
	margin-bottom: 16px;*/
	text-align: center;
	align-items: center;
	justify-content: center;
  }
  .baw-slide-bottom-parent {
	display: block;
	/*padding-top: 16px;*/
	padding-bottom: 16px;
	/*margin-top: 16px;*/
	/*margin-bottom: 16px;*/
  }
  .item-1 {
    order: 2;
  }
  .item-2 {
    order: 1;
  }
  .item-3 {
    order: 3;
  }
}

@media (max-width: 425px) {
  .baw-specs-grid {
    display: inline-grid;
    grid-template-columns: 1fr;
    margin-inline: auto;
    /*grid-template-columns: 1fr;
	margin: auto;
	padding: auto;
	text-align: center;
	align-items: center;
	justify-content: center;
	margin: auto !important;
	margin-inline: auto !important;*/
  }
  /*.baw-specs-grid, .baw-spec, .baw-spec-icon {
	text-align: center;
	align-items: center;
	justify-content: center;
  }*/
  .baw-spec {
    /*display: flex;
    justify-content: flex-start;
	justify-content: center;
	margin-left: 25%;*/
  }
}

/* Reset animations for all slide children */
.baw-slide .baw-title,
.baw-slide .baw-desc,
.baw-slide .baw-specs-grid,
.baw-slide .baw-price,
.baw-slide .baw-btn,
.baw-slide .baw-image {
  opacity: 0;
  transform: translateX(0);
}

/* Animate left side content */
.baw-slide.is-active .baw-title {
  animation: slideFromLeft 0s ease forwards 0.8s;
}

.baw-slide.is-active .baw-desc {
  animation: slideFromLeft 1s ease forwards 0.1s;
}

.baw-slide.is-active .baw-specs-grid {
  animation: slideFromLeft 1s ease forwards 0.2s;
}

.baw-slide.is-active .baw-price {
  animation: slideFromLeft 1s ease forwards 0.3s;
}

.baw-slide.is-active .baw-btn {
  animation: slideFromLeft 1s ease forwards 0.3s;
}

.baw-slide.is-active .baw-image {
  animation: slideFromRight 1.5s ease forwards 0s;
}

.baw-hero-slider.animate-bg::before {
  animation: slideFromLeftBg 1s ease forwards;
}

.baw-title-overlay.animate-in {
  animation: titleMaskIn 0.8s ease forwards;
}

.baw-title-overlay.animate-out {
  animation: titleMaskOut 0.8s ease forwards;
}

/*.wp-block-cover.alignfull {
  max-width: 100%;
  overflow-x: hidden;
}*/










/* TIMELINE */
/* Hide on mobile */
@media (max-width: 767px) {
  .timeline-desktop {
    display: none !important;
  }
}

/* Show on tablet + desktop */
@media (min-width: 768px) {
  .timeline-desktop {
    display: block;
  }
}

/* Hide on tablet + desktop */
@media (min-width: 768px) {
  .timeline-mobile {
    display: none !important;
  }
}

/* Show on mobile */
@media (max-width: 767px) {
  .timeline-mobile {
    display: block;
  }
}

@media (max-width: 767px) {
  .vertical-line.vertical-line-left {
    background-position: 5% center !important;
  }
  .vertical-line.vertical-line-right {
    background-position: 95% center !important;
  }
  .timeline-node-left {
    position: absolute;
    left: 5%;
    transform: translateX(-50%); /* centers icon on the line */
  }
  .timeline-node-right {
    position: absolute;
    left: 95%;
    transform: translateX(-50%); /* centers icon on the line */
  }/*
  .timeline-label-left {
    position: relative;
    left: 15%;
	transform: translateX(-50%);
  }
  .timeline-label-right {
    position: relative;
    left: 85%;
	transform: translateX(-50%);
  }*/
  .timeline-horizontal-line {
    position: relative;
  }

  .timeline-horizontal-line::after {
    content: "";
    position: absolute;

    left: 5%;
    right: 5%;
    bottom: 0;

    height: 2px;
    background: #000;
  }
}




/* PONY VIDEO BANNER CUSTOMISATION */

/* Make video fill */
.pony-video video{
  width: 100%;
  height: 100%;
  /*object-fit: 100%;*/
  object-fit: cover;

  /* MASK */
  -webkit-mask-image: url("https://test-baw-auto.pl/wp-content/uploads/2026/03/back_red.svg");
  mask-image: url("https://test-baw-auto.pl/wp-content/uploads/2026/03/back_red.svg");

  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;

  -webkit-mask-position: 50% 50%;
  mask-position: 50% 50%;

  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  
/*  -webkit-mask-size: 80% 100%;
  mask-size: 80% 100%;*/
}

/*.pony-video {
	padding: 0px !important;
}
*/



@media (max-width: 767px) {
  .pony-banner * {
  	margin: 0vw !important;
	min-height: auto !important;
  }
}
@media (max-width: 1100px) {
  .pony-banner * {
	min-height: auto !important;
  }
}




/* MOBILE HEADERS, LOGO, FOOTER, CONTACT */

/* Desktop footer */
.footer-desktop {
  display: block;
}

/* Mobile footer */
.footer-mobile {
  display: none;
}

@media (max-width: 768px) {
  .header-mobile {
	  text-align: left;
	  margin-left: 1rem !important;
  }
  .header-mobile-left {
	  font-size: 20px !important;
  }
  /*.footer-widget-area {
	  padding-left: 1rem;
	  padding-right: 1rem;
  }*/
  .custom-logo {
	  width: 75% !important;
  }
  .about-company-mobile {
	  padding-left: 0rem !important;
	  padding-right: 0rem !important;
  }
  .site-footer-section {
	  flex-direction: column;
  }
  .footer-desktop {
    display: none;
  }
  .footer-mobile {
    display: block;
  }
}


/* CUSTOM CSS FOR CAR COLOR SELECTOR */

.baw-pony-configurator-section {
    padding: 0;
}

.baw-color-widget {
    display: flex;
    flex-direction: column;
    gap: 18px;
    width: 100%;
	align-items: center;
}

.baw-color-widget__viewer {
    position: relative;
    width: 65%;
    aspect-ratio: 800 / 591;
    overflow: hidden;
    border-radius: 24px;
}

.baw-color-widget__viewer img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transform: scale(0.98);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
}

.baw-color-widget__viewer img.is-active {
    opacity: 1;
    transform: scale(1);
    z-index: 1;
}

.baw-color-widget__swatches {
    display: flex;
    gap: 12px;
    width: 50%;
    flex-wrap: nowrap;
}

.baw-swatch {
    appearance: none;
    border: none;
    background: transparent;
    padding: 0;
    width: auto;
    height: auto;
    cursor: pointer;
	outline: none;
    display: flex;
    align-items: center;
    justify-content: center;
	flex: 1 1 0;
}

.baw-swatch:hover,
.baw-swatch:focus,
.baw-swatch:active {
    background: transparent;
    outline: none;
	box-shadow: none;
}

.baw-swatch:hover .baw-swatch__split {
    transform: scale(1.08);
}

.baw-swatch.is-active .baw-swatch__split {
    transform: scale(1.25);
	box-shadow: 0 0 0 3px rgba(0,0,0,0.75);
}

.baw-swatch__split {
	width: 100%;
    aspect-ratio: 1 / 1;
    max-width: clamp(30px, 2.5vw, 65px);
	
    border-radius: 50%;
    background: linear-gradient(to bottom, var(--top) 50%, var(--bottom) 50%);
	flex: 0 0 auto;
	border: 2px solid #fff;
    box-shadow: 0 0 0 2px rgba(0,0,0,.25);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

@media (max-width: 767px) {
    .baw-color-widget__swatches {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
	.baw-swatch {
      -webkit-tap-highlight-color: transparent;
	}
	.baw-color-widget__viewer {
      width: 85%;
    }
	.baw-color-widget__swatches {
      width: 75%;
	}
	.baw-swatch__split {
		max-width: 7.5vw;
	}
}


/* CUSTOM CAR GALLERY WIDGET */

.baw-gallery{
  display:grid;
  gap:2px;
  width:100%;
}

.baw-gallery__main{
  position:relative;
  overflow:hidden;
  background:#ffffff;
  aspect-ratio:16 / 9;
}

.baw-gallery__main-link{
  display:block;
  width:100%;
  height:100%;
  cursor: zoom-in;
}

.baw-gallery__main-img{
  /*display:block;*/
  width:100%;
  height:100%;
  object-fit:cover;
  /*opacity:1;
  transform:scale(1);
  backface-visibility:hidden;
  will-change:opacity, transform, filter;*/
  
  position:absolute;
  inset:0;
}

.baw-gallery__main-img--active{
  z-index:2;
}

.baw-gallery__main-img--next{
  z-index:1;
}

.baw-gallery__nav{
  all: unset;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  box-sizing: border-box;

  width: 44px;
  height: 44px;
  border-radius: 999px;

  display: grid;
  place-items: center;

  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  overflow: hidden;

  background: rgba(255,255,255,.72) !important;
  box-shadow: 0 8px 18px rgba(0,0,0,.12) !important;
  color: #111 !important;

  font-size: 0;
  line-height: 0;
  -webkit-tap-highlight-color: transparent;

  transition: background .2s ease, box-shadow .2s ease, transform .2s ease, opacity .2s ease;
}

.baw-gallery__nav::before{
  content: '';
  display: block;
  width: 12px;
  height: 12px;
  box-sizing: border-box;
  border-top: 2.75px solid #111;
  border-right: 2.75px solid #111;
}

.baw-gallery__nav--prev{
  left: 12px;
}

.baw-gallery__nav--prev::before{
  transform: translateX(1px) rotate(225deg);
}

.baw-gallery__nav--next{
  right: 12px;
}

.baw-gallery__nav--next::before{
  transform: translateX(-1px) rotate(45deg);
}

.baw-gallery__nav:hover{
  background: rgba(255,255,255,.92) !important;
  box-shadow: 0 10px 22px rgba(0,0,0,.14) !important;
  transform: translateY(-50%) scale(1.03);
}

.baw-gallery__nav:focus,
.baw-gallery__nav:active,
.baw-gallery__nav:focus-visible{
  background: rgba(255,255,255,.72) !important;
  box-shadow: 0 8px 18px rgba(0,0,0,.12) !important;
  color: #111 !important;
}

.baw-gallery__nav:focus-visible{
  outline: 3px solid rgba(26,92,255,.35);
  outline-offset: 2px;
}

.baw-gallery button{
  font: inherit;
}

.baw-gallery button::-moz-focus-inner{
  border: 0;
  padding: 0;
}

.baw-gallery__thumbs{
  display:flex;
  gap:2px;
  overflow-x:auto;
  overflow-y:hidden;
  padding:2px 2px 8px;
  scroll-snap-type:x mandatory;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:none;
  -ms-overflow-style:none;
}

.baw-gallery__thumbs::-webkit-scrollbar{
  width:0;
  height:0;
  display:none;
}

.baw-gallery__thumb{
  flex:0 0 clamp(82px, 12vw, 140px);
  aspect-ratio:16 / 10;
  border:2px solid transparent;
  border-radius:14px;
  padding:0;
  background:#fff;
  overflow:hidden;
  cursor:pointer;
  scroll-snap-align:center;
  opacity:.82;
  transition:border-color .2s ease, opacity .2s ease, box-shadow .2s ease, transform .2s ease;
  appearance:none;
}

.baw-gallery__thumb:hover{
  opacity:1;
  transform:translateY(-1px);
}

.baw-gallery__thumb.is-active{
  opacity:1;
  border-color:var(--wp--preset--color--primary, #1a5cff);
  box-shadow:0 0 0 3px rgba(26,92,255,.12);
}

.baw-gallery__thumb-img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
}

.baw-gallery__thumb:focus-visible,
.baw-gallery__nav:focus-visible{
  outline:3px solid rgba(26,92,255,.35);
  outline-offset:2px;
}

.baw-lightbox{
  position:fixed;
  inset:0;
  z-index:99999;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(0,0,0,.86);
  backdrop-filter:blur(4px);
  opacity:0;
  visibility:hidden;
  transition:.2s;
  padding:24px;
}

.baw-lightbox.is-open{
  opacity:1;
  visibility:visible;
}

.baw-lightbox__dialog{
  position:relative;
  width:min(96vw,1440px);
  height:min(92vh,1080px);
  display:flex;
  align-items:center;
  justify-content:center;
}

.baw-lightbox__img{
  max-width:100%;
  max-height:100%;
  object-fit:contain;
}

.baw-lightbox__nav,
.baw-lightbox__close{
  all: unset;
  position: absolute;
  inset:auto !important;
  display:grid;
  place-items:center;
  cursor:pointer;
  z-index:10;

  background: rgba(255,255,255,.72) !important;
  box-shadow: 0 10px 18px rgba(0,0,0,.12) !important;
  color:#111 !important;

  width:44px;
  height:44px;
  border-radius:999px;
  
  font-size: 0;
  line-height: 0;

  transition:.2s;
}

.baw-lightbox__nav{
  top:50% !important;
  transform: translateY(-50%);
}

.baw-lightbox__nav--prev{
  left:16px !important;
}

.baw-lightbox__nav--next{
  right:16px !important;
}

.baw-lightbox__nav::before{
  content:'';
  position:absolute;
  top:50%;
  left:50%;
  width:12px;
  height:12px;
  border-top: 2.75px solid #111;
  border-right: 2.75px solid #111;
  box-sizing: border-box;
  transform: translate(-50%, -50%);
}

.baw-lightbox__nav--prev::before{
  transform: translate(-50%, -50%) rotate(225deg);
}

.baw-lightbox__nav--next::before{
  transform: translate(-50%, -50%) rotate(45deg);
}

.baw-lightbox__nav:hover{
  background: rgba(255,255,255,.92) !important;
  transform: translateY(-50%) scale(1.03);
}

.baw-lightbox__close{
  top:16px !important;
  right:16px !important;
  width:44px;
  height:44px;
}

.baw-lightbox__close::before,
.baw-lightbox__close::after{
  content:'';
  position:absolute;
  width:18px;
  height:2px;
  background:#111;
}

.baw-lightbox__close::before{
  transform:rotate(45deg);
}

.baw-lightbox__close::after{
  transform:rotate(-45deg);
}

.baw-lightbox__close:hover{
  background: rgba(255,255,255,.92) !important;
  transform:scale(1.03);
}

body.baw-lightbox-open{
  overflow:hidden;
}

@media (max-width:767px){

  .baw-gallery__main{
    aspect-ratio:4/3;
  }

  .baw-lightbox{
    padding:12px;
  }

  .baw-lightbox__dialog{
    width:100%;
    height:100%;
  }

  .baw-lightbox__nav{
    width:48px;
    height:48px;
	display: none;
  }

  .baw-lightbox__nav--prev{
    left:6px !important;
  }

  .baw-lightbox__nav--next{
    right:6px !important;
  }

  .baw-lightbox__close{
    top:10px !important;
    right:10px !important;
    width:48px;
    height:48px;
  }
}

/* Custom Table */

.baw-table.wp-block-kadence-rowlayout {
  width: 100%;
  max-width: none;
}

.baw-table.wp-block-kadence-rowlayout .kt-row-column-wrap,
.baw-table.wp-block-kadence-rowlayout .kt-inside-inner-col {
  width: 100%;
  max-width: none;
}

.baw-table .kt-inside-inner-col > h3.baw-table-title {
  display: block;
  width: 100%;
  margin: 0;
  background: #99003A;
  color: #fff;
  padding: 14px 18px;
  border-radius: 10px 10px 0 0;
  font-size: 1.1rem;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.baw-table .kb-table-container {
  width: 100%;
  margin-top: 0;
  overflow: hidden;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  background: #fff;
}

.baw-table table.kb-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  margin: 0;
  font-size: 15px;
}

.baw-table table.kb-table th,
.baw-table table.kb-table td {
  padding: 12px 16px;
  border: 1px solid #e6e6e6;
  vertical-align: top;
  transition: background-color 0.2s ease;
}

.baw-table table.kb-table th {
  width: 40%;
  background: #f7f7f7;
  font-weight: 600;
}

.baw-table table.kb-table tr:hover th,
.baw-table table.kb-table tr:hover td {
  background: #f0f0f0;
}

.baw-table table.kb-table tr:last-child th,
.baw-table table.kb-table tr:last-child td {
  border-bottom: none;
}

.baw-table .baw-dot {
  color: #99003A;
  font-weight: 700;
}

@media (max-width: 767px) {
  .baw-table table.kb-table th,
  .baw-table table.kb-table td {
    width: 100%;
    display: block;
    box-sizing: border-box;
  }

  .baw-table table.kb-table th {
    border-bottom: 0;
    padding-bottom: 4px;
  }

  .baw-table table.kb-table td {
    padding-top: 0;
    padding-bottom: 14px;
  }
}




/* FORM CUSTOMISATION */
.baw-form a,
.baw-form a:visited,
.baw-form a:hover,
.baw-form a:focus,
.baw-form a:active {
  color: #ffffff !important;
}
