/*Global variables*/
:root {
  --blanco: #ffffff;
  --negro: #000000;
  --gris-oscuro: #333333;
  --gris-claro: #ededed;

  --ccv-primary-color: #93754f;

  --fuente-global: "Roboto", sans-serif;

  --admin-bar-height: 32px;
  --header-height: 108px;

  /*Calculate margin top to fixed sections with admin bar*/
  --fixed-admin-top-margin: calc(
    var(--admin-bar-height) + var(--header-height)
  );

  /*Calculate margin top to fixed sections without admin bar*/
  --fixed-client-top-margin: var(--header-height);

  /*Calculate margin top to fixed sections when elementor editor is active*/
  --fixed-elementor-top-margin: var(--header-height) + 48px;

  --tablet-breakpoint: 1140px;
}

/*Global styles*/
html,
body {
  max-width: 100%;
  width: 100vw;
}
body {
  overflow-x: hidden;
}
p:first-child {
  margin-top: 0;
}
p:last-child {
  margin-bottom: 0;
}
a:focus,
button:focus,
input:focus,
textarea:focus {
  outline: 0 !important;
}
.elementor-editor-active .content-area {
  position: relative;
  z-index: 1;
}
.elementor-field-group .elementor-field-textual {
  box-shadow: none !important;
}

/* Header */
body.admin-bar #site-header {
  margin-top: var(--admin-bar-height);
}

/* Megamenu */
.custom-megamenu {
  height: calc(100% - var(--fixed-client-top-margin));
  position: fixed;
  top: var(--fixed-client-top-margin);
}
body.admin-bar .custom-megamenu {
  max-height: calc(100vh - var(--fixed-admin-top-margin)) !important;
  overflow: hidden;
  top: var(--fixed-admin-top-margin);
}
body.elementor-editor-active .custom-megamenu {
  max-height: calc(100vh - var(--header-height)) !important;
}
.custom-megamenu .dialog-widget-content {
  height: 100%;
}
.custom-megamenu .dialog-message {
  max-height: 100% !important;
}

/* Single menu itmes */
.single-menu-item .e-con.e-parent a,
.single-menu-item a {
  background-image: linear-gradient(
    var(--ccv-primary-color),
    var(--ccv-primary-color)
  ) !important;
  background-size: 100% 2px;
  background-position: 0 95%;
  background-repeat: no-repeat;
  padding-bottom: 5px;
  padding-top: 5px;
  position: relative;
  text-decoration: none !important;
  transition: all 0.3s ease;
}
.single-menu-item a:hover {
  background-size: 30% 2px;
}

/* Custom Megamenu close icon */
.custom-close-icon {
  background-color: transparent;
  border: none;
  cursor: pointer;
  display: inline-flex;
  height: 2rem;
  margin-left: auto;
  outline: 0;
  position: relative;
  width: 2rem;
}
.custom-close-icon:after,
.custom-close-icon:before {
  content: "";
  position: absolute;
  top: 16px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--ccv-primary-color);
  border-radius: 2px;
}
.custom-close-icon:before {
  -webkit-transform: rotate(45deg);
  transform: rotate(45deg);
}
.custom-close-icon:after {
  -webkit-transform: rotate(-45deg);
  transform: rotate(-45deg);
}
.custom-close-icon .elementor-button-wrapper,
.custom-close-icon .elementor-widget-container {
  display: inline-flex;
}
.custom-close-icon .elementor-button {
  display: inline-flex;
  position: relative;
  height: 32px;
  top: 0;
  width: 32px;
  z-index: 10;
}

/* Header menu */
#site-menu {
  margin-left: auto;
}

#site-menu .elementor-inline-item a {
  background-image: linear-gradient(
    var(--ccv-primary-color),
    var(--ccv-primary-color)
  ) !important;
  background-size: 0% 2px;
  background-position: 0 95%;
  background-repeat: no-repeat;
  padding: 7.5px 0;
  position: relative;
  text-decoration: none !important;
  transition: all 0.3s ease;
}
#site-menu .elementor-inline-item a:hover {
  background-size: 100% 2px;
}

/* Header search icon */
#header-search-icon {
  cursor: pointer;
}
#header-search-icon .elementor-widget-container {
  display: flex;
}
#header-search-icon svg {
  display: inline-block;
  fill: #878787;
  font-size: 1.25rem;
  line-height: 1em;
  height: 1em;
  vertical-align: middle;
  width: 1em;
}

@media screen and (max-width: 767px) {
  body:not(.elementor-editor-active) #header-search-icon {
    margin-left: auto;
  }
}

/* Header navbar button */
.header-burger-icon .elementor-widget-container {
  align-items: center;
  display: flex;
  height: 24px !important;
  justify-content: center;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
}
.header-burger-icon {
  cursor: pointer;
  display: inline-flex;
  position: relative;
  height: 2px;
  width: 24px !important;
  vertical-align: middle;
  background-color: var(--ccv-primary-color);
  transition: background-color;
  transition-duration: 0.2s;
  transition-timing-function: cubic-bezier(0.7, 0, 0, 0.7);
}
.header-burger-icon:after,
.header-burger-icon:before {
  width: 24px;
  display: inline-block;
  position: absolute;
  content: "";
  height: 2px;
  background-color: var(--ccv-primary-color);
  transition: -webkit-transform;
  transition: transform;
  transition: transform, -webkit-transform;
  transition-duration: 0.2s;
  transition-timing-function: cubic-bezier(0.7, 0, 0, 0.7);
}
.header-burger-icon:before {
  left: 0;
  -webkit-transform: translateY(-8px);
  transform: translateY(-8px);
}
.header-burger-icon:after {
  left: 0;
  -webkit-transform: translateY(8px);
  transform: translateY(8px);
}

.header-burger-icon.actived {
  background-color: transparent;
  transition-duration: 0.1s;
}

.header-burger-icon.actived:before {
  background-color: #333;
  left: 0;
  -webkit-transform: rotate(45deg);
  transform: rotate(45deg);
}

.header-burger-icon.actived:after {
  background-color: #333;
  left: 0;
  -webkit-transform: rotate(-45deg);
  transform: rotate(-45deg);
}

@media screen and (max-width: 1140px) {
  body:not(.elementor-editor-active) .header-burger-icon.desktop-menu-trigger {
    display: none;
  }
}

/* Mobile megamenu */
.e-n-accordion-item > .e-n-accordion-item-title {
  justify-content: space-between;
  outline: 0 !important;
}
.custom-accordeon
  .elementor-widget-n-accordion
  .e-n-accordion-item
  .e-n-accordion-item-title-icon
  .e-closed {
  display: flex !important;
}
.custom-accordeon
  .e-n-accordion-item-title
  .e-n-accordion-item-title-icon
  > span {
  align-items: center;
  background-color: transparent;
  border-radius: 50%;
  border: 2px solid var(--ccv-primary-color);
  display: inline-flex;
  flex-flow: column nowrap;
  height: 25px;
  justify-content: center;
  transform: rotate(0deg);
  transition: all 0.3s ease;
  width: 25px;
}
.custom-accordeon
  .e-n-accordion-item[open]
  > .e-n-accordion-item-title
  .e-n-accordion-item-title-icon
  .e-closed {
  display: flex !important;
  border-color: #000;
  transform: rotate(180deg);
}
.custom-accordeon
  .e-n-accordion-item-title
  .e-n-accordion-item-title-icon
  > span.e-opened {
  display: none !important;
}

/* Content */
#content.site-main,
.elementor[data-elementor-type="wp-page"],
.elementor[data-elementor-type="wp-post"] {
  margin-top: var(--header-height);
}

/* Searcher popup */
.searcher-popup .e-search-submit {
  display: inline-flex;
  width: 60px !important;
}

.searcher-popup .dialog-widget-content {
  height: auto;
}

/* Desktop megamenu menu */
.desktop-menu-top .e-con-inner {
  border-bottom: 1px solid #cdcdcd;
}

.desktop-menu .dialog-widget-content {
  height: auto;
}

/* Common banners */
.n2-ss-slider-controls .nextend-arrow {
  align-items: center;
  background-color: var(--ccv-primary-color);
  display: flex;
  flex-flow: column nowrap;
  justify-content: center;
  height: 70px;
  width: 35px;
}
.n2-ss-slider-controls .nextend-arrow.nextend-arrow-previous {
  border-radius: 0 8px 8px 0;
}
.n2-ss-slider-controls .nextend-arrow.nextend-arrow-next {
  border-radius: 8px 0 0 8px;
}
.n2-ss-slider-controls .nextend-arrow:hover,
.n2-ss-slider-controls .nextend-arrow:active {
  background-color: #000000;
}
.n2-ss-slider-controls .n2-bullet {
  background-color: #fff !important;
  border: 1px solid #fff !important;
  height: 15px;
  padding: 0 !important;
  width: 15px;
}
.n2-ss-slider-controls .n2-bullet.n2-active {
  background-color: var(--ccv-primary-color) !important;
}

@media screen and (max-width: 1140px) {
  .common-banner-slide .n2-ss-layer-row-inner {
    flex-direction: column-reverse;
  }
  .common-banner-slide .n2-ss-layer-with-background {
    background-color: #000000;
  }
}

/* Vehicles carousel */
.vehicles-carousel .swiper-slide.e-loop-item > .e-flex > .e-con-inner {
  align-items: center;
  justify-content: center;
}

/* Information strip */
.information-strip .elementor-widget-container,
.information-strip .elementor-icon-wrapper,
.information-strip .elementor-icon {
  display: flex;
}

/* Check bullet lists */
.checks-list .elementor-icon-list-text {
  background: transparent url(../img/check-bullet.png) 0 7px no-repeat scroll;
  padding: 5px 0 5px 30px;
}

.editor-checks-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
}

.editor-checks-list ul li {
  background: transparent url(../img/check-bullet.png) 0 7px no-repeat scroll;
  padding: 5px 0 5px 30px;
}

/* Video section */
.video-section
  .elementor-widget-video
  .elementor-wrapper.elementor-open-lightbox,
.video-section .elementor-widget-video .elementor-custom-embed-image-overlay {
  height: 100%;
  width: 100%;
}
.video-section
  .elementor-widget-video
  .elementor-custom-embed-image-overlay
  img {
  height: 100%;
  width: auto;
}
.video-section .elementor-custom-embed-play {
  background-color: #93754f;
  border-radius: 8px;
  opacity: 0.6;
  padding: 43px 30px 40px;
  transition: all 0.3s ease;
}
.video-section .elementor-widget-video:hover .elementor-custom-embed-play {
  opacity: 1;
}

/* Accesories section */
.accesories-list .elementor-icon-list-text {
  text-decoration: underline;
}

/* Green car section */
.green-car-section .e-con-inner {
  position: relative;
}
.green-car-image {
  transform: translateY(-50%);
}

/* Jump To section */
.jump-to__menu ul.elementor-icon-list-items {
  justify-content: space-evenly;
}
.jump-to__menu .elementor-icon-list-text:hover {
  text-decoration: underline;
}
@media screen and (max-width: 480px) {
  .jump-to__menu ul.elementor-icon-list-items {
    flex-flow: column nowrap;
  }
}

/* Section title with top button */
.section-title-top > .e-con-inner {
  position: relative;
}
.section-title-top__button .elementor-button .elementor-button-content-wrapper {
  display: inline-flex;
  flex-direction: column !important;
}

/* Features section */
.features-wrapper .elementor-cta,
.features-wrapper .elementor-cta .elementor-cta__content {
  height: 100%;
}

/* Vehicle specifications tables */
.vehicle-specifications
  table.tafe-table
  tbody.tafe-table-body
  tr
  td:first-child {
  font-weight: bold;
  width: 40%;
  word-break: keep-all;
}

/* Footer */
#site-footer a,
#site-footer a:visited {
  color: #a7a7a7;
  text-decoration: none;
}
#site-footer a:hover {
  color: var(--ccv-primary-color);
  text-decoration: underline;
}
#footer-policies a,
#footer-policies a:visited {
  color: var(--ccv-primary-color);
  text-decoration: underline;
}
#footer-policies a:hover {
  color: #2583d8;
  text-decoration: none;
}

#site-footer
  .cc-items-list
  .elementor-icon-list-item
  .elementor-icon-list-text:is(:empty) {
  height: 8px;
}

@media screen and (max-width: 1140px) {
  .elementor-popup-modal {
    position: fixed !important;
  }
}
