/*
Theme Name: 3PM Auto Template
Theme URI: https://3phasemarketing.com.au/
Author: 3 Phase Marketing
Author URI: https://3phasemarketing.com.au/
Description: This theme is capable of full site editing
Tags: block-patterns, block-styles, custom-colors, custom-logo, custom-menu, editor-style, full-site-editing, one-column, template-editing, threaded-comments, translation-ready, wide-blocks
Requires at least: 6.7
Tested up to: 6.7
Requires PHP: 7.2
Version: 1.0.2
License: GNU General Public License v3
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Text Domain: 3pm-auto-template
*/

/* Defaults
---------------------------------------- */

/* ─── SCROLLBAR ─── */
/* ::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #868686}
::-webkit-scrollbar-thumb { background: var(--wp--preset--color--primary); } */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@view-transition {
  navigation: auto;
}

a,
button,
input:focus,
input[type="button"],
input[type="submit"],
textarea:focus,
.wp-element-button {
  transition: all 0.2s ease-in-out;
}

a,
a:focus,
a:hover,
a:not(.wp-element-button) {
  text-decoration-thickness: 1px;
}

b,
strong,
th {
  font-weight: var(--wp--custom--font-weight--medium);
}

mark {
  background: linear-gradient(
    90deg,
    var(--wp--preset--color--primary) 0%,
    var(--wp--preset--color--primary) 100%
  );
  background-position: 0 85%;
  background-repeat: repeat-x;
  background-size: 100% 15%;
}

.mob-horz-scroll {
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  width: 100%;
}

/* Absolute group */
.block-editor-block-list__layout .is-style-absolute,
.is-style-absolute {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 2;
}

.t-center {
  text-align: center;
}

.wp-block-separator.is-style-wide {
  width: 100%;
}

.is-style-full-height {
  height: 100%;
}

.is-style-inline-block {
  display: inline-block;
}

/* Remove margin top the first heading in a block */
:where(h1, h2, h3, h4, h5, h6):first-child {
  margin-top: 0;
}

/* Full IMG width - functions.php */
.is-style-img-fullwidth img {
  width: 100%;
}

.is-style-img-object-fit {
  height: 100%;
}

.is-style-img-object-fit img,
.embla .embla__slide .is-style-img-object-fit img {
  object-fit: cover;
  height: 100%;
  width: 100%;
}

/* center svgs */
.wp-block-custom-block-icon-block svg {
  display: block;
}

/* Remove Margin from first and last element of absolute group*/
:root :where(.wp-block-custom-block-absolute-group) > :first-child {
  margin-block-start: 0;
}

:root :where(.wp-block-custom-block-absolute-group) > :last-child {
  margin-block-end: 0;
}

/* custom blocks remove margin top on slider */
.wp-block-custom-block-slider {
  margin-block-start: 0;
}

/* ===========================
Forms - Fluet form Styling
=========================== */

/* -- input fields -- */
input,
select,
textarea {
  background-color: var(--wp--preset--color--custom-form-background);
  border: 1px solid var(--wp--preset--color--custom-form-lb-border);
  border-radius: 4px;
  color: var(--wp--preset--color--custom-form-input-text);
  font-family: var(--wp--preset--font-family--hanken-grotesk);
  font-size: var(--wp--preset--font-size--text-size-regular);
  font-weight: var(--wp--custom--font-weight--light);
  line-height: var(--wp--custom--line-height--body);
  padding: 10px 16px;
  width: 100%;
}

.ff-el-input--label label {
  font-size: var(--wp--preset--font-size--text-size-small);
  font-weight: var(--wp--custom--font-weight--medium);
  margin-bottom: 4px;
}

.ff-btn-submit {
  border: none;
  padding: 12px;
  text-transform: uppercase;
  background: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--base);
  border-radius: 25px;
  width: 100%;
  font-weight: 400;
  font-size: 16px;
  cursor: pointer;
}

.ff-btn-submit:hover {
  background-color: var(--wp--preset--color--contrast);
  color: var(--wp--preset--color--base);
}

.ff-el-input--content:has(.ff-el-form-control) {
  position: relative;
}

.ff-el-form-control {
  appearance: none;
}

.ff-el-input--content:has(select):after {
  content: "";
  display: block;
  overflow: hidden;
  height: 10px;
  width: 10px;
  background: url(../../uploads/select-input.png) no-repeat right 0 center
    transparent;
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
}

input:focus,
textarea:focus {
  border-color: #4ba2ff;
  outline: none;
}

input[type="checkbox"],
input[type="image"],
input[type="radio"] {
  width: auto;
}

input[type="button"],
input[type="email"],
input[type="search"],
input[type="submit"],
input[type="text"],
textarea {
  appearance: none;
}

input::placeholder,
textarea::placeholder,
.fluentform .ff-el-form-control::placeholder {
  color: var(--wp--preset--color--contrast);
  font-size: var(--wp--preset--font-size--text-size-regular);
  opacity: 0.5;
}

.fluentform .ff-el-group.ff_submit_btn_wrapper {
  margin-bottom: 0;
}

/* -- Radio Field -- */

/* Hide default radio button */
.radio-style input[type="radio"] {
  display: none;
}

/* Style the button container */
.radio-style .ff-el-input--content label {
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.3s;
  background: #fff;
  padding: 10px;
  border: 1px solid #ccc;
  display: block;
}

.radio-style .ff-el-form-check {
  margin-bottom: 0;
}

/* Style for selected state */
.radio-style .ff_item_selected label:hover {
  border-color: var(--wp--preset--color--primary);
}

/* Style for selected state */
.radio-style .ff_item_selected label {
  background-color: var(--wp--preset--color--primary);
  color: #fff;
  border-color: var(--wp--preset--color--primary);
}

.radio-style .ff-el-input--content {
  display: flex;
  gap: 12px;
}

@media (max-width: 800px) {
  .radio-style .ff-el-input--content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }
}

/* -- finance Calculator layout -- */

.calc-amount,
.ff_calc_form .ff-t-cell.ff-t-column-1 {
  padding: 24px;
  border-radius: 12px;
  height: 100%;
  background: #f5f5f4;
}

.calc-amount {
  background: #eff6fd;
}

.calc-amount .ff-section_break_desk {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.fluentform .ff-el-group.calc-amount {
  margin-bottom: 0;
}

.calc-amount * {
  margin: 0;
}

.calc-cta {
  margin-top: 24px;
  display: grid;
  gap: 16px;
}

.calc-amount.ff-el-section-break hr {
  display: none;
}

.ff_calc_form .ff-t-cell {
  display: flex;
  flex-direction: column;
}

.ff_calc_form.frm-fluent-form .ff-t-cell {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: end;
}

.ff_calc_form .ff-el-group {
  width: 100%;
}

.ff_calc_form .ff-el-group.calc-int-rate {
  flex: 0 1 90px;
  margin-right: 12px;
}

.ff_calc_form .ff-el-group.calc-int-slider {
  flex: 1 0 65%;
  margin-bottom: 40px;
}

.ff_calc_form .ff-el-group.calc-int-slider .ff_range_value {
  display: none;
}

@media (max-width: 768px) {
  .ff_calc_form .ff-t-cell.ff-t-column-1 {
    margin-bottom: 24px;
  }
}

/* -- Range Slider Styling -- */

.rangeslider {
  background: #d9d9d9;
  height: 8px;
  width: 100%;
  border-radius: 20px;
  -moz-box-shadow: inset 0px 1px 3px rgba(0, 0, 0, 0.3);
  -webkit-box-shadow: inset 0px 1px 3px rgba(0, 0, 0, 0.3);
  box-shadow: inset 0px 1px 3px rgba(0, 0, 0, 0.3);
  -moz-border-radius: 10px;
  -webkit-border-radius: 10px;
}

.rangeslider__fill {
  background: var(--wp--preset--color--primary);
  position: absolute;
  height: 100%;
  border-radius: 20px;
}

.rangeslider__handle {
  background: #fff;
  height: 24px;
  width: 24px;
  position: absolute;
  top: -8px;
  border: 2px solid var(--wp--preset--color--primary);
  border-radius: 52px;
  cursor: pointer;
}

/* -- Thank You Message -- */

.ff-message-success {
  padding: 24px;
  text-align: center;
}

.ff-tick {
  border: 2px solid #6cab14;
  border-radius: 25px;
  display: flex;
  height: 40px;
  width: 40px;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  color: #6cab14;
  font-size: 24px;
}

.ff-message-success h3 {
  margin-top: 24px;
  margin-bottom: 12px;
}

.ff-message-success *:last-child {
  margin-top: 12px;
  margin-bottom: 0;
}

/* -- EDM Table styling -- */

[id*="-fluent-tables"] table tbody {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
}

[id*="-fluent-tables"] table tbody tr {
  flex: 1 0 50%;
}

[id*="-fluent-tables"] table tbody tr th {
  background: red;
}

[id*="-fluent-tables"] table tbody tr:nth-child(4n + 3),
[id*="-fluent-tables"] table tbody tr:nth-child(4n + 4) {
  background: #f8f8f8;
}

/* ===========================
Iframe - Responsive Map
=========================== */

.responsive-map {
  position: relative;
  overflow: clip;
  width: 100%;
  padding-top: 56.25%;
  height: 0;
}

.responsive-map iframe {
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  position: absolute;
  display: block;
}

@media only screen and (min-width: 768px) {
  .responsive-map {
    padding-top: 25%;
  }
}

/* Blocks
---------------------------------------- */

/* -- Code -- */

*:not(.wp-block-code) > code {
  background-color: var(--wp--preset--color--neutral);
  font-size: var(--wp--preset--font-size--small);
  padding: 5px 8px;
}

/* Utility
---------------------------------------- */

/* -- Box Shadow -- */

.is-style-shadow-light {
  box-shadow: var(--wp--preset--shadow--light);
}

.is-style-shadow-solid {
  box-shadow: var(--wp--preset--shadow--solid);
}

/* Media Queries
---------------------------------------- */

@media only screen and (max-width: 600px) {
  /* -- Utility -- */

  .is-style-hidden-mobile {
    display: none !important;
  }
}

/* Media Queries
---------------------------------------- */

@media only screen and (max-width: 600px) {
  /* -- Utility -- */

  .is-style-hidden-mobile {
    display: none !important;
  }
}

/* Hide on Mobile (Small screens) */
@media (max-width: 781px) {
  .hide-mobile {
    display: none !important;
  }
}

/* Hide on Tablet (Mid screens) */
@media (min-width: 782px) and (max-width: 1023px) {
  .hide-tablet {
    display: none !important;
  }
}

/* Hide on Desktop (Large screens) */
@media (min-width: 1024px) {
  .hide-desktop {
    display: none !important;
  }
}

@media only screen and (max-width: 782px) {
  /* -- Columns -- */

  .is-style-columns-reverse {
    flex-direction: column-reverse;
  }
}

@media only screen and (max-width: 1024px) {
  .is-style-columns-laptop-break {
    flex-direction: column;
  }

  .is-style-columns-reverse.is-style-columns-laptop-break {
    flex-direction: column-reverse;
  }
}

.is-style-columns-overflow,
.has-custom-border {
  overflow: clip;
}

.is-style-width-small {
  max-width: var(--wp--custom--layout--small);
}

.is-style-width-large {
  max-width: var(--wp--custom--layout--large);
}

/* Picture block */
.wp-block-custom-block-picture img {
  display: block;
  width: 100%;
}

img {
  max-width: 100%;
  height: auto;
}

/* Block anchor link */
.has-cover-link {
  position: relative;
}

a.block-cover-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9;
  opacity: 0;
}

.has-cover-link a:not(.block-cover-link),
.has-cover-link button,
.has-cover-link input {
  position: relative;
  z-index: 2;
}

/* Grid columns */

.is-layout-grid.sm-1-cols {
  grid-template-columns: repeat(1, 1fr);
}
.is-layout-grid.sm-2-cols {
  grid-template-columns: repeat(2, 1fr);
}
.is-layout-grid.sm-3-cols {
  grid-template-columns: repeat(2, 1fr);
}

/* --- Tablet (Medium Screens) --- */
@media (min-width: 768px) {
  .is-layout-grid.md-1-cols {
    grid-template-columns: repeat(1, 1fr);
  }
  .is-layout-grid.md-2-cols {
    grid-template-columns: repeat(2, 1fr);
  }
  .is-layout-grid.md-3-cols {
    grid-template-columns: repeat(3, 1fr);
  }
  .is-layout-grid.md-4-cols {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* --- Desktop (Large Screens) --- */
@media (min-width: 1023px) {
  .is-layout-grid.lg-1-cols {
    grid-template-columns: repeat(1, 1fr);
  }
  .is-layout-grid.lg-2-cols {
    grid-template-columns: repeat(2, 1fr);
  }
  .is-layout-grid.lg-3-cols {
    grid-template-columns: repeat(3, 1fr);
  }
  .is-layout-grid.lg-4-cols {
    grid-template-columns: repeat(4, 1fr);
  }
  .is-layout-grid.lg-5-cols {
    grid-template-columns: repeat(5, 1fr);
  }
  .is-layout-grid.lg-6-cols {
    grid-template-columns: repeat(6, 1fr);
  }
}

/* --- Desktop (Extra Large Screens) --- */
@media (min-width: 1440px) {
  .is-layout-grid.xl-1-cols {
    grid-template-columns: repeat(1, 1fr);
  }
  .is-layout-grid.xl-2-cols {
    grid-template-columns: repeat(2, 1fr);
  }
  .is-layout-grid.xl-3-cols {
    grid-template-columns: repeat(3, 1fr);
  }
  .is-layout-grid.xl-4-cols {
    grid-template-columns: repeat(4, 1fr);
  }
  .is-layout-grid.xl-5-cols {
    grid-template-columns: repeat(5, 1fr);
  }
  .is-layout-grid.xl-6-cols {
    grid-template-columns: repeat(6, 1fr);
  }
}

.wp-block-column {
  position: relative;
}

/* Navigation update Breakpoint */
body .wp-block-navigation__responsive-container-open:not(.always-shown) {
  display: flex;
  height: 34px;
  width: 34px;
  justify-content: center;
  align-items: center;
}

body
  .wp-block-navigation__responsive-container:not(.hidden-by-default):not(
    .is-menu-open
  ) {
  display: none;
}

@media (min-width: 1024px) {
  body .wp-block-navigation__responsive-container-open:not(.always-shown) {
    display: none;
  }

  body
    .wp-block-navigation__responsive-container:not(.hidden-by-default):not(
      .is-menu-open
    ) {
    display: block;
  }
}

/* ===========================
Embla Slider
=========================== */

@media (min-width: 1900px) {
  .banner-full-height .embla .embla__slide img {
    height: calc(100vh - 230px); /* Pixel value is minus the header height */
    object-fit: cover;
  }
}

/* -- Embla: Bannr Text -- */

.embla .banner-overlay {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  color: #fff;
  width: 100%;
  max-width: var(--wp--custom--layout--large);
  margin: 0 auto;
  padding-inline: var(--wp--preset--spacing--padding-lr);
}

.text-bottom .banner-overlay {
  top: auto;
  bottom: 42px;
  transform: none;
}

.embla .banner-overlay *:first-child {
  margin-top: 0;
}

.banner-overlay .wp-block-heading {
  font-size: var(--wp--preset--font-size--heading-style-one);
  margin-block: 0;
}

.embla .banner-overlay p {
  margin-top: 0;
}

/* -- Embla: Arrows -- */

.embla .embla__button {
  display: none;
}

@media (min-width: 1024px) {
  .embla .embla__button {
    background-color: rgb(245 245 244 / 40%);
    color: #000;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
  }

  .embla .embla__button:hover {
    background-color: #fff;
  }
}

.embla .embla__button--prev {
  left: 20px;
}

.embla .embla__button--next {
  right: 20px;
}

/* -- Embla: Dots Banner Position -- */

.banner-dots .embla__dots_container {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}

/* -- Embla: Dots General -- */

.embla__dots_container {
  padding: 16px;
  text-align: center;
}

.wp-block-custom-block-section:not(.banner-dots) .embla__dots {
  display: inline-flex;
  justify-content: center;
  background: #f5f5f4;
  border-radius: 30px;
  padding: 8px;
}

.embla .embla__dot {
  background-color: rgb(221 221 221 / 70%);
  border: none;
  width: 10px;
  height: 10px;
  border-radius: 20px;
}

.embla .embla__dot:hover:not(.embla__dot--selected) {
  background-color: rgb(221 221 221 / 100%);
}

.embla .embla__dot--selected {
  background-color: var(--wp--preset--color--primary);
  width: 36px;
}

/* ===========================
Buttons
=========================== */

.btn-full a {
  width: 100%;
}

/* -- Buttons: Hover States General -- */

/* -- Buttons: Primary -- */
.wp-element-button:hover,
.is-style-primary .wp-element-button:hover {
  background-color: var(--wp--preset--color--primary);
  border-color: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--neutral);
  text-decoration: none;
}

/* -- Buttons: Secondary -- */
.is-style-secondary .wp-element-button:hover,
.wp-block-navigation__responsive-container
  .wp-block-navigation__responsive-container-content
  .btn-solid
  .wp-block-navigation-item__content:hover {
  background-color: var(--wp--preset--color--primary);
  border-color: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--neutral);
  text-decoration: none;
}

/* -- Buttons: Outline -- */
.is-style-outline-primary .wp-element-button:hover,
.is-style-outline-secondary .wp-element-button:hover,
.wp-block-navigation__responsive-container
  .wp-block-navigation__responsive-container-content
  .btn-outline
  .wp-block-navigation-item__content:hover {
  background-color: var(--wp--preset--color--primary);
  border-color: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--neutral);
  text-decoration: none;
}

/* -- Buttons: Arrow After Text -- */

.wp-element-button.is-arrow,
.wp-element-button.is-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.wp-element-button.is-arrow::after,
.wp-element-button.is-chevron::after {
  content: "\2192";
  font-family: inherit;
  font-size: 1.2em;
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.wp-element-button.is-chevron::after {
  content: "\203A";
}

.wp-element-button.is-arrow:hover::after,
.wp-element-button.is-chevron:hover::after {
  transform: translateX(5px);
}

/* -- Buttons: Custom Hover Colour -- */

.has-custom-hover-colors {
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}

.has-custom-hover-colors:not(.wp-block-custom-block-button):hover,
.has-custom-hover-colors.wp-block-custom-block-button .wp-element-button:hover {
  background-color: var(--custom-hover-bg, inherit);
  color: var(--custom-hover-text, inherit);
}

.has-custom-hover-colors:hover *,
.has-custom-hover-colors:hover a {
  color: var(--custom-hover-text, inherit);
}

/* ===========================
Navigation
=========================== */

/* -- Top Header -- */

.top-header .has-cover-link:hover p {
  text-decoration: underline;
}

/* -- Main Navigation -- */

.site-header .wrapper {
  overflow: visible;
}

.wp-block-navigation__responsive-container-close,
.wp-block-navigation-submenu .wp-block-navigation__submenu-icon {
  display: none;
}

.wp-block-navigation__responsive-container-close,
.wp-block-navigation__responsive-container-open {
  border: 1px solid #5c5c5c;
  padding: 4px;
  border-radius: 25px;
}

.has-background .wp-block-navigation__responsive-container-open:focus,
.has-background .wp-block-navigation__responsive-container-open:hover {
  color: var(--wp--preset--color--base);
}

.wp-block-navigation-item.open-on-click .wp-block-navigation-submenu__toggle {
  padding-right: 0;
}

a.wp-block-navigation-item__content:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

/* -- Navigation Submenu -- */

.wp-block-navigation:not(.has-background)
  .wp-block-navigation__submenu-container {
  background-color: var(--wp--preset--color--contrast);
  border: var(--wp--preset--color--contrast);
  color: var(--wp--preset--color--base);
  padding: 10px;
}

.wp-block-navigation :where(.wp-block-navigation__submenu-container) a {
  padding: 2px 10px;
}

@media (min-width: 1023px) {
  .wp-block-navigation-item.has-child:hover
    > .wp-block-navigation__submenu-container {
    opacity: 1;
    visibility: visible;
    height: auto;
    overflow: visible;
    display: flex;
    width: auto;
    white-space: nowrap;
  }
}

/* -- Fixed header -- */

.site-header {
  position: relative;
  width: 100%;
  z-index: 9;
}

.is-fixed .site-header > * {
  position: fixed;
  top: 0;
  left: 0;
  transform: translateY(-100%);
  z-index: 99;
  width: 100%;
}

.is-visible .site-header .sticky-header {
  transform: translateY(0);
  box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.05);
}

/* -- Mega Menu -- */
.mega-menu .has-cover-link {
  border-color: var(--wp--preset--color--custom-form-lb-border);
}

.mega-menu .has-cover-link:hover {
  border-color: var(--wp--preset--color--primary);
}

.mega-menu .has-cover-link img {
  transition: all 0.4s ease-in-out;
}

.mega-menu .has-cover-link:hover img {
  transform: scale(0.9);
}
.site-header .mega-menu {
  display: none;
  position: fixed;
  top: 132px;
  left: 0;
  width: 100%;
  z-index: 99;
  transform: none;
  transition: all 0.3s ease-in-out;
}

.site-header.is-fixed .mega-menu {
  top: 0;
}

.site-header.is-fixed.is-visible .mega-menu {
  top: 82px;
}

/* ===========================
Mobile Nav
=========================== */

/* Colour for Ham Menu & X Button */
.wp-block-navigation__responsive-container-open svg,
.has-modal-open .wp-block-navigation__responsive-container-open:before {
  fill: #fff;
  color: #fff;
}

.has-modal-open .wp-block-navigation__responsive-container-open {
  pointer-events: none;
}

.has-modal-open .wp-block-navigation__responsive-container-open:before {
  content: "\2715";
  font-size: 18px;
}

.has-modal-open .wp-block-navigation__responsive-container-open svg {
  display: none;
}

/* Navigation Button Styling */
.wp-block-navigation__responsive-container
  .wp-block-navigation__responsive-container-content
  .btn-outline
  .wp-block-navigation-item__content,
.wp-block-navigation__responsive-container
  .wp-block-navigation__responsive-container-content
  .btn-solid
  .wp-block-navigation-item__content {
  padding: 10px 20px;
  border-radius: 999px;
  text-align: center;
  line-height: 1em;
}

/* -- Mobile Nav: Button Outline  -- */
.wp-block-navigation__responsive-container
  .wp-block-navigation__responsive-container-content
  .btn-outline
  .wp-block-navigation-item__content {
  border: 1px solid #fff;
  color: #ffffff;
}

/* -- Mobile Nav: Primary Button  -- */
.wp-block-navigation__responsive-container
  .wp-block-navigation__responsive-container-content
  .btn-solid
  .wp-block-navigation-item__content {
  border: 1px solid #ffffff;
  background-color: #ffffff;
  color: #292929;
}

@media (max-width: 1023px) {
  .wp-block-navigation__responsive-container {
    top: 82px; /* Adjust this value based on your header height */
    height: 100vh;
  }

  header .wp-block-custom-block-icon-block {
    border: 1px solid #5c5c5c;
    padding: 8px;
    border-radius: 25px;
    height: 34px;
    width: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .wp-block-navigation__responsive-container.is-menu-open {
    padding: var(--wp--custom--spacing--gap) 16px 100px;
    gap: 16px;
  }

  .wp-block-navigation__responsive-container.is-menu-open
    .wp-block-navigation__responsive-container-content {
    padding-top: 0;
  }
}

/* -- Mobile Nav: Hide Sub-menu  -- */

@media (max-width: 1023px) {
  .wp-block-navigation__submenu-container.has-text-color.has-contrast-color.has-background.has-neutral-background-color.wp-block-navigation-submenu {
    padding-left: 0;
    padding-right: 0;
  }

  .wp-block-navigation__responsive-container.is-menu-open
    .wp-block-navigation__responsive-container-content
    .has-child
    .wp-block-navigation__submenu-container {
    width: 100%;
    height: 0;
    overflow: hidden;
    padding: 0;
  }

  .wp-block-navigation__responsive-container.is-menu-open
    .wp-block-navigation__responsive-container-content
    .wp-block-navigation__submenu-icon {
    display: block;
  }

  .wp-block-navigation
    .has-child
    .wp-block-navigation-submenu__toggle[aria-expanded="true"] {
    height: auto;
    opacity: 1;
    overflow: visible;
    visibility: visible;
  }

  .wp-block-navigation
    .has-child
    .wp-block-navigation-submenu__toggle[aria-expanded="true"]
    ~ ul.wp-block-navigation__submenu-container {
    height: auto;
    margin-top: 16px;
  }

  .wp-block-navigation__responsive-container.is-menu-open
    .wp-block-navigation__responsive-container-content
    .wp-block-navigation-item__content,
  .wp-block-navigation__container,
  .wp-block-navigation__container > li {
    width: 100%;
  }

  .wp-block-navigation__responsive-container.is-menu-open
    .wp-block-navigation__responsive-container-content
    .has-child {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
  }
}

/* ===========================
Quicklnks
=========================== */

@media (max-width: 768px) {
  .q-link .wp-block-group .wp-block-group {
    padding: 8px !important;
    text-align: center;
  }
}

.q-link .wp-block-group .wp-block-group h3 {
  font-size: clamp(16px, 2.222222222vw, 32px);
}

/* ===========================
Accordion
=========================== */
.is-style-accordion-line {
  border-bottom: 1px solid #000;
  padding-bottom: 12px;
  margin-bottom: 12px;
}

/* accordion style */

.is-style-accordion-style {
  background: #e5e5e5;
  border-radius: 8px;
  border: 1px solid #e5e5e5;
}

.is-style-accordion-style .wp-block-accordion-heading button {
  padding: 20px;
}

.is-style-accordion-style .wp-block-accordion-panel {
  display: block;
  max-height: 0;
  overflow: clip;
  transition: all 1s ease;
  padding-left: 20px;
  padding-right: 20px;
}

.is-style-accordion-style.is-open .wp-block-accordion-panel {
  padding: 0 20px 20px;
  max-height: 10000px;
}

.is-style-accordion-style:hover,
.is-style-accordion-style.is-open {
  background-color: #ffffff;
}

.is-style-accordion-style
  .wp-block-accordion-heading__toggle:hover
  .wp-block-accordion-heading__toggle-title {
  text-decoration: none;
}

/* ===========================
Footer
=========================== */

footer a {
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

footer .wp-block-social-links .wp-social-link a:hover {
  color: var(--wp--preset--color--primary);
}

@media (min-width: 768px) and (max-width: 1023px) {
  .site-footer
    .wp-block-columns:not(.is-not-stacked-on-mobile)
    > .wp-block-column {
    flex-basis: 47% !important;
  }
}

@media (max-width: 768px) {
  .wp-block-social-links {
    justify-content: flex-start;
  }

  .wp-container-core-columns-is-layout-98c150c9.wp-block-columns-is-layout-flex {
    margin-bottom: 40px;
  }
}

@media (min-width: 768px) {
  .site-footer .wp-block-accordion-item .wp-block-accordion-panel {
    display: block;
    margin-block-start: var(--wp--preset--spacing--gap);
  }

  .site-footer .wp-block-accordion-heading__toggle-icon {
    display: none;
  }
}

@media (min-width: 1024px) {
  .is-style-auto-desktop .wp-block-accordion-heading__toggle {
    pointer-events: none;
  }
}
/* Hover effects */
.hover-hide-parent {
  position: relative;
}

.hover-hide-parent .hover-hide-child > :nth-child(2) {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
}

.hover-hide-parent:hover .hover-hide-child > :nth-child(1) {
  opacity: 0;
}
.hover-hide-parent:hover .hover-hide-child > :nth-child(2) {
  opacity: 1;
}

/* ===========================
Table Responsive
=========================== */

.wp-block-table {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.wp-block-table table {
  width: 100%;
  border-collapse: collapse;
}

.wp-block-table table th,
.wp-block-table table td {
  padding: 12px 16px;
  border: 1px solid #ddd;
  text-align: left;
}

@media (max-width: 1024px) {
  .wp-block-table table th,
  .wp-block-table table td {
    white-space: nowrap; /* optional: prevents wrapping */
  }
}

/* ===========================
Custom - Page Styles
=========================== */

/* -- Sell you car Numbers-- */

.sell-number {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
}

/* ===========================
Model Pages
=========================== */

/* Into Text Mobile */
@media (max-width: 782px) {
  .model-text-left p {
    text-align: left;
  }
}

/* Max banner Full Height after 1900px*/
@media (min-width: 1900px) {
  .model-banner-full-height img {
    height: calc(100vh - 230px);
    object-fit: cover;
  }
}

@media (min-width: 1080px) {
  /* Compare Model Section*/
  .models-compare .embla[data-disable-above="1024"] .embla__container {
    justify-content: center;
  }

  .models-compare .embla .embla__slide {
    flex: 0 0 22%;
    max-width: 456px;
  }
}

/* fixed model menu */

.model-nav {
  position: sticky;
  top: 20px;
  left: 0;
  right: 0;
  margin: 0 auto;
  z-index: 8;
  transition: all 1s ease-in-out;
}

.model-nav .wrapper {
  overflow: visible;
}

.model-nav .wrapper > div {
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.12),
    0 1px 2px rgba(0, 0, 0, 0.24);
}

.is-visible .model-nav {
  top: -100%;
}

@media (max-width: 1024px) {
  .show .wrapper {
    overflow: visible;
  }

  .model-menu .is-layout-flex {
    flex-direction: column;
  }

  body .model-menu {
    display: none;
  }

  body .show .model-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    margin: 0 auto;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    background-color: var(--wp--preset--color--neutral);
    width: calc(
      100% - (var(--wp--preset--spacing--padding-sixteen-forty-eight) * 2)
    );
    z-index: 99;
    box-shadow:
      0 1px 3px rgba(0, 0, 0, 0.12),
      0 1px 2px rgba(0, 0, 0, 0.24);
  }

  body .show .model-ham-menu div:first-child {
    display: none;
  }

  body .model-ham-menu div:last-child {
    display: none;
  }

  body .show .model-ham-menu div:last-child,
  body .model-ham-menu div:first-child {
    display: block;
  }
}

/* ===========================
Model - Colour Picker
=========================== */

.cp-swatch {
  list-style: none;
  height: 38px;
  width: 38px;
  /* border: 2px solid #fff; */
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 0 2px #f0f0f0;
}

.cp-swatch:hover {
  box-shadow: 0 0 0 2px #000000;
}

.cp-swatch.cp-active {
  box-shadow: 0 0 0 2px #000000;
}

.modal-popover-inner {
  height: 70vh;
  overflow-y: auto;
  overflow-x: hidden;
}

/* ===========================
Offer Filter 
=========================== */

.offer-filter {
  cursor: pointer;
  width: 100%;
}

.offer-filter:hover,
.offer-filter.active {
  border-color: var(--wp--preset--color--custom-block) !important;
}

.filter-fixed {
  position: sticky;
  top: 20px;
  transition: all 0.3s ease;
  height: 90vh;
  overflow-y: auto;
  overflow-x: hidden;
}

.is-visible .filter-fixed {
  top: 100px;
}

body .fltr-content {
  display: none;
}

body .fltr-content.show {
  display: block;
}

/* ===========================
Tabs
=========================== */

.tab-flex {
  background-color: #fff;
  padding: 8px;
  display: inline-flex;
  gap: 12px;
  border-radius: 25px;
  white-space: nowrap;
}

.tab-header {
  padding: 5px 10px;
  background-color: #fff;
  font-size: 16px;
  font-weight: 500;
  color: #6a6a6a;
  border-radius: 25px;
  text-align: center;
  cursor: pointer;
  border: 2px solid #ffffff;
}

.tab-header:hover {
  border-color: #f5f5f4;
}

.tab-header.tab-active {
  background-color: #f5f5f4;
  border-color: #f5f5f4;
}

/* ===========================
Hover Effects Animations
=========================== */

[class^="hover-"],
[class*=" hover-"],
[class*="hover-"] .wp-block-column,
[class^="hover-"] .embla__slide_inner,
[class*=" hover-"] .embla__slide_inner {
  position: relative;
  overflow: clip;
}

[class^="hover-"] img,
[class*=" hover-"] img {
  transition: all 0.3s ease;
}

/* -- Zoom in  -- */
.has-cover-link:hover .hover-zoom-in img,
.hover-zoom-in:hover img {
  transform: scale(1.05);
}

/* -- Fade  -- */
.hover-fade,
[class^="hover-fade-"],
[class*=" hover-fade-"] {
  animation: fade-in linear forwards;
  animation-timeline: view();
  animation-range: entry 10% cover 30%;
  opacity: 0;
}

/* -- Fade: in -- */
@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* -- Fade: Up -- */
.hover-fade-up {
  transform: translate3d(0, 48px, 0);
  animation-name: fadeup;
}

@keyframes fadeup {
  to {
    opacity: 1;
    transform: translateZ(0);
  }
}

/* -- Fade: Down -- */
.hover-fade-down {
  transform: translate3d(0, -96px, 0);
  animation-name: fadedown;
}

@keyframes fadedown {
  to {
    opacity: 1;
    transform: translateZ(0);
  }
}

/* -- Fade: Down -- */
.hover-fade-left {
  transform: translate3d(-96px, 0, 0);
  animation-name: fadeleft;
}

@keyframes fadeleft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animation-slide-up {
  animation: slide-up-fade linear forwards;
  animation-timeline: view();
  animation-range: entry 5% cover 15%;
  transform: translateY(10vh);
}

@keyframes slide-up-fade {
  from {
    transform: translateY(10vh);
  }
  to {
    transform: translateY(0);
  }
}

@media (max-width: 767px) {
  .animation-slide-up:nth-child(even) {
    animation-range: entry 15% cover 25%;
  }
}

@media (min-width: 768px) {
  .animation-slide-up:nth-child(2) {
    animation-range: entry 15% cover 25%;
  }

  .animation-slide-up:nth-child(3) {
    animation-range: entry 25% cover 35%;
  }

  .animation-slide-up:nth-child(4) {
    animation-range: entry 35% cover 45%;
  }
}
