/* Payment Calculator */
.ehi-calc__inputs {
  display: flex;
  flex-direction: column;
  gap: 0.75em;
  margin-bottom: 1.5em;
}
.ehi-calc__field {
  display: flex;
  flex-direction: column;
  gap: 0.25em;
}
.ehi-calc__field label {
  font-weight: bold;
  font-size: 0.9em;
}
.ehi-calc__input-wrap {
  display: flex;
  align-items: center;
  border: 1px solid #ccc;
  border-radius: 0.25em;
  overflow: hidden;
}
.ehi-calc__input-wrap input {
  flex: 1;
  border: none;
  padding: 0.5em;
  font-size: 1em;
  min-width: 0;
}
.ehi-calc__input-wrap input:focus {
  outline: none;
}
.ehi-calc__prefix,
.ehi-calc__suffix {
  padding: 0.5em;
  background: #f5f5f5;
  color: #666;
  font-size: 0.9em;
}
.ehi-calc__output {
  padding: 0.5em;
  background: #f5f5f5;
  border: 1px solid #ccc;
  border-radius: 0.25em;
  font-weight: bold;
}
.ehi-calc__results {
  display: flex;
  gap: 1em;
}
.ehi-calc__term {
  flex: 1;
  text-align: center;
  padding: 1em;
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 0.25em;
}
.ehi-calc__term-title {
  font-weight: bold;
  font-size: 1.1em;
  margin-bottom: 0.25em;
}
.ehi-calc__term-payments {
  font-size: 0.85em;
  color: #666;
  margin-bottom: 0.5em;
}
.ehi-calc__term-amount {
  font-size: 1.25em;
  font-weight: bold;
  color: green;
}
.ehi-calc__term-total {
  font-size: 0.85em;
  color: #666;
  margin-top: 0.25em;
}
@media (max-width: 500px) {
  .ehi-calc__results {
    flex-direction: column;
  }
}
body.single .type-ehi_model .et_post_meta_wrapper {
  display: none;
}
body.single .type-ehi_model .entry-content {
  padding-top: 0 !important;
}
#ehi-payment-modal,
.micromodal-slide.is-open {
  z-index: 1000000;
}
@media (max-width: 1100px) {
  .home-model-details {
    flex-direction: row !important;
    flex-wrap: wrap;
  }
  .home-model-details .home-model-thumbnail {
    width: 100%;
    max-width: none !important;
  }
  .home-model-details .home-model-thumbnail img {
    width: 100%;
    height: auto;
  }
  .home-model-details .home-model-specs {
    flex: 1 1 auto !important;
  }
  .home-model-details .home-model-specs ul {
    padding-left: 0 !important;
  }
  .home-model-details .ehi-pricing-block {
    justify-content: center;
  }
  .home-model-header .home-model-name {
    display: block;
    margin-bottom: 0.375em;
  }
  .home-model-header .ehi-stock-number {
    margin-left: 0;
  }
}
:root {
  --ehi-brand-color: #B90008;
}
.home-model-grid {
  display: grid;
  grid-template-columns: 250px 1fr;
  grid-template-rows: auto auto;
  gap: 1rem;
}
.home-model-grid .effective-grid-filters {
  grid-column: 1;
  grid-row: 1 / -1;
}
.home-model-grid .effective-grid-elements-container {
  grid-column: 2;
  grid-row: 1;
}
.home-model-grid .effective-grid-pagination {
  grid-column: 2;
  grid-row: 2;
}
ul.effective-grid-elements {
  margin-left: 0;
  padding-left: 0;
}
.effective-grid-filters > form {
  display: flex;
  flex-direction: column;
}
@media (max-width: 600px) {
  .home-model-grid {
    grid-template-columns: 1fr;
  }
  .home-model-grid .effective-grid-filters,
  .home-model-grid .effective-grid-elements-container,
  .home-model-grid .effective-grid-pagination {
    grid-column: 1;
    grid-row: auto;
  }
}
/* Element styles */
.effective-grid-elements-container ul {
  display: flex;
  flex-direction: column;
}
.effective-grid-elements-container ul > * {
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #ddd;
}
.effective-grid-elements-container ul > *:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.home-model-element .effective-grid-element-content {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.home-model-element .home-model-header {
  vertical-align: middle;
}
.home-model-element .home-model-name {
  font-size: 1.5rem;
  margin: 0;
  display: inline-block;
  vertical-align: middle;
}
.home-model-element .home-model-name a {
  color: var(--ehi-brand-color);
}
.home-model-element .home-model-details {
  display: flex;
  flex-direction: row;
  gap: 0.5rem;
}
.home-model-element .home-model-details .home-model-thumbnail {
  flex: 0 0 auto;
  max-width: 200px;
  height: auto;
  line-height: 1em;
}
.home-model-element .home-model-details .home-model-specs {
  flex: 1 1 100%;
}
.home-model-element .home-model-details .home-model-specs ul {
  margin: 0;
  padding: 0;
}
.home-model-element .home-model-details .home-model-specs ul li {
  list-style: none;
  margin-bottom: 0.0625rem;
  padding-bottom: 0.0625rem;
  border-bottom: 1px solid #eee;
}
.home-model-element .home-model-details .home-model-specs ul li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}
.home-model-element .home-model-details .ehi-pricing-block .ehi-pricing-block__custom-quote {
  text-align: right;
  color: #666;
}
.home-model-element .home-model-details .ehi-pricing-block .ehi-pricing-block__calc-btn--gray {
  background-color: #666;
}
.home-model-element .home-model-details .ehi-pricing-block .ehi-pricing-block__calc-btn--gray:hover {
  background-color: #555;
}
/* Stock number component */
.ehi-stock-number {
  display: inline-block;
  padding: 0.5em 0.75em;
  border-radius: 0.25em;
  border: 1px solid transparent;
  line-height: 1em;
  vertical-align: middle;
  font-weight: bold;
  border-color: darkgray;
}
/* Availability component */
.ehi-availability {
  display: inline-block;
  padding: 0.5em 0.75em;
  border-radius: 0.25em;
  border: 1px solid transparent;
  line-height: 1em;
  vertical-align: middle;
  font-weight: bold;
  color: white;
  background-color: darkgray;
  font-size: 1em;
}
.ehi-availability--available {
  background-color: green;
  border-color: green;
}
/* Tour badge component */
.ehi-tour-badge {
  display: inline-block;
  padding: 0.5em 0.75em;
  border-radius: 0.25em;
  border: 1px solid transparent;
  line-height: 1em;
  vertical-align: middle;
  font-weight: bold;
  border: 1px solid var(--ehi-brand-color);
  background-color: var(--ehi-brand-color);
  color: white;
  cursor: pointer;
  font-size: 1em;
}
.ehi-tour-badge i {
  margin-right: 0.35em;
}
/* Grid element overrides for stock/availability */
.home-model-element .ehi-availability,
.home-model-element .ehi-tour-badge,
.home-model-element .ehi-stock-number {
  margin-left: 0.5em;
  font-size: 0.8em;
}
/* Single page meta row */
.ehi-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1em;
  gap: 1rem;
}
.ehi-meta-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.ehi-meta-right {
  flex-shrink: 0;
}
/* Social share buttons */
.ehi-social-share {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background-color: #f5f5f5;
  border-radius: 4px;
}
.ehi-social-share__label {
  font-size: 0.9rem;
  color: #666;
  margin-right: 0.25rem;
}
.ehi-social-share__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 4px;
  color: #fff;
  text-decoration: none;
  transition: all 0.2s ease;
}
.ehi-social-share__link i {
  font-size: 0.9rem;
}
.ehi-social-share__link:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.ehi-social-share__link--facebook {
  background-color: #1877f2;
}
.ehi-social-share__link--facebook:hover {
  background-color: #0d5fc6;
}
.ehi-social-share__link--twitter {
  background-color: #000;
}
.ehi-social-share__link--twitter:hover {
  background-color: #333;
}
.ehi-social-share__link--pinterest {
  background-color: #e60023;
}
.ehi-social-share__link--pinterest:hover {
  background-color: #c5001d;
}
.ehi-social-share__link--email {
  background-color: #666;
}
.ehi-social-share__link--email:hover {
  background-color: #444;
}
/* Social share in grid element */
.home-model-pricing-social {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1rem;
}
.home-model-pricing-social .ehi-social-share {
  justify-content: flex-end;
}
@media (max-width: 768px) {
  .ehi-meta-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .ehi-social-share {
    width: 100%;
    justify-content: center;
  }
}
/* Pricing block component */
.ehi-pricing-block {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1em;
  gap: 0.25em;
}
.ehi-pricing-block__custom-quote {
  font-size: 1em;
  font-weight: normal;
  color: #666;
  text-align: right;
  margin-bottom: 0.5em;
}
.ehi-pricing-block__sale-price {
  font-size: 1.25em;
  font-weight: bold;
}
.ehi-pricing-block__list-price {
  text-decoration: line-through;
  color: gray;
}
.ehi-pricing-block__savings {
  margin-top: 0.5em;
  color: green;
  font-weight: bold;
  font-size: 0.85em;
}
.ehi-pricing-block__calc-btn {
  margin-top: 0.5em;
  padding: 0.4em 0.8em;
  background-color: var(--ehi-brand-color);
  color: white;
  text-decoration: none;
  border-radius: 0.25em;
  font-size: 0.85em;
  cursor: pointer;
  text-align: center;
}
.ehi-pricing-block__calc-btn:hover {
  background-color: #860006;
  color: white;
}
.ehi-pricing-block__calc-btn--gray {
  background-color: #666;
}
.ehi-pricing-block__calc-btn--gray:hover {
  background-color: #555;
  color: white;
}
/* Modal styles */
.ehi-modal {
  display: none;
}
.ehi-modal.is-open {
  display: block;
}
.ehi-modal__overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}
.ehi-modal__container {
  background-color: #fff;
  padding: 1.5em;
  max-width: 500px;
  width: 90%;
  border-radius: 0.25em;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
.ehi-modal__container.ehi-modal__container--video {
  max-width: 800px;
}
.ehi-modal__container--lightbox {
  max-width: 90vw;
  max-height: 90vh;
  padding: 0;
  background-color: transparent;
  box-shadow: none;
}
.ehi-modal__container--lightbox .ehi-modal__content {
  padding: 0;
}
.ehi-modal__container--lightbox .ehi-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 100;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  transition: background 0.2s;
}
.ehi-modal__container--lightbox .ehi-modal__close:hover {
  background: rgba(0, 0, 0, 0.9);
}
.ehi-modal__container--lightbox .splide {
  max-height: 90vh;
}
.ehi-modal__container--lightbox .splide img {
  max-height: 90vh;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}
.ehi-modal__container--lightbox .splide__arrow {
  background: rgba(0, 0, 0, 0.7);
  opacity: 1;
}
.ehi-modal__container--lightbox .splide__arrow:hover {
  background: rgba(0, 0, 0, 0.9);
}
.ehi-modal__container--lightbox .splide__arrow svg {
  fill: #fff;
}
.ehi-modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1em;
}
.ehi-modal__title {
  margin: 0;
  font-size: 1.25em;
}
.ehi-modal__close {
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 0;
  width: 1.5em;
  height: 1.5em;
  position: relative;
}
.ehi-modal__close::before,
.ehi-modal__close::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1em;
  height: 2px;
  background: #333;
}
.ehi-modal__close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}
.ehi-modal__close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}
.ehi-modal__close:hover::before,
.ehi-modal__close:hover::after {
  background: var(--ehi-brand-color);
}
.ehi-modal__content {
  line-height: 1.5;
}
/* Video wrapper for responsive embeds */
.ehi-video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}
.ehi-video-wrapper iframe,
.ehi-video-wrapper object,
.ehi-video-wrapper embed {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
/* Micromodal animation */
.micromodal-slide {
  display: none;
}
.micromodal-slide.is-open {
  display: block;
}
.micromodal-slide .ehi-modal__overlay {
  animation: mmfadeIn 0.2s ease-out;
}
.micromodal-slide .ehi-modal__container {
  animation: mmslideIn 0.2s ease-out;
}
@keyframes mmfadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes mmslideIn {
  from {
    transform: translateY(-15%);
  }
  to {
    transform: translateY(0);
  }
}
/* Slideshow styles */
.ehi-slideshow-wrapper {
  margin-bottom: 1.5rem;
}
#ehi-thumbnail-slider {
  padding-inline: 0 !important;
}
#ehi-main-slider {
  background-color: #333;
}
#ehi-main-slider .splide__slide {
  display: flex;
  align-items: center;
  justify-content: center;
}
#ehi-main-slider .splide__slide img {
  max-width: 100%;
  max-height: 500px;
  width: auto;
  height: auto;
  object-fit: contain;
}
#ehi-thumbnail-slider {
  margin-top: 4px;
  padding: 8px;
}
#ehi-thumbnail-slider .splide__slide {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.6;
  cursor: pointer;
  border: 2px solid transparent;
}
#ehi-thumbnail-slider .splide__slide.is-active {
  opacity: 1;
  border-color: var(--ehi-brand-color);
}
#ehi-thumbnail-slider .splide__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ehi-slideshow-single {
  margin-bottom: 1.5rem;
}
.ehi-slideshow-single img {
  max-width: 100%;
  height: auto;
}
.ehi-slideshow-single a.ehi-lightbox-trigger {
  cursor: pointer;
  display: block;
}
/* Lightbox trigger styling */
.ehi-lightbox-trigger {
  cursor: pointer;
  display: inline-block;
}
.ehi-lightbox-trigger img {
  transition: opacity 0.2s;
}
.ehi-lightbox-trigger:hover img {
  opacity: 0.85;
}
/* Single page content layout */
.ehi-single-content {
  overflow: hidden;
}
.ehi-single-content .ehi-pricing-block {
  float: right;
  margin: 0 0 1em 1.5em;
  padding: 1em;
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 0.25em;
  font-size: 1.1em;
}
/* Specifications table */
h3 + .ehi-specs-table {
  margin-top: 0.5em;
}
.ehi-specs-table + h3,
.ehi-features + h3,
.ehi-media-table + h3,
.ehi-single-content + h3 {
  margin-top: 1.5em;
}
/* Media table */
.ehi-media-table {
  width: 100%;
  border-collapse: collapse;
}
.ehi-media-table thead th {
  font-weight: bold;
  border-bottom: 2px solid #ddd;
}
.ehi-media-table tr:nth-child(even) {
  background-color: #f9f9f9;
}
.ehi-media-table th,
.ehi-media-table td {
  padding: 0.75em 1em;
  text-align: left;
}
.ehi-media-table td:first-child i {
  color: var(--ehi-brand-color);
  margin-right: 0.5em;
  width: 1em;
  display: inline-block;
  text-align: center;
}
.ehi-media-table td:last-child {
  text-align: right;
  width: 1%;
  white-space: nowrap;
}
.ehi-media-table .ehi-media-action {
  display: inline-block;
  padding: 0.5em 1em;
  background-color: var(--ehi-brand-color);
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-size: 0.9em;
  transition: background-color 0.2s;
  cursor: pointer;
}
.ehi-media-table .ehi-media-action i {
  margin-right: 0.35em;
}
.ehi-media-table .ehi-media-action:hover {
  background-color: #860006;
  color: white;
}
.ehi-media-table .ehi-media-action--disabled {
  background-color: #ccc;
  color: #666;
  cursor: default;
}
.ehi-media-table .ehi-media-action--disabled:hover {
  background-color: #ccc;
  color: #666;
}
h3 + .ehi-media-table {
  margin-top: 0.5em;
}
/* Features section */
.ehi-features h4 {
  font-size: 1.05em;
  font-weight: bold;
  margin-top: 1em !important;
  margin-bottom: 0 !important;
}
.ehi-features h4:first-child {
  margin-top: 0 !important;
}
.ehi-features ul.ehi-features-list {
  margin: 0;
  padding: 0 !important;
  list-style-type: none !important;
  line-height: 1em !important;
}
.ehi-features ul.ehi-features-list li {
  margin-bottom: 4px;
}
.ehi-features ul.ehi-features-list li:last-child {
  margin-bottom: 0;
}
.ehi-features ul.ehi-features-list ul {
  margin: 0;
  padding: 0 0 0 1.5em !important;
  list-style-type: none !important;
}
h3 + .ehi-features {
  margin-top: 0.5em;
}
.ehi-specs-table {
  width: 100%;
  border-collapse: collapse;
}
.ehi-specs-table tr:nth-child(odd) {
  background-color: #f5f5f5;
}
.ehi-specs-table th,
.ehi-specs-table td {
  padding: 0.5em 0.75em;
  text-align: left;
}
.ehi-specs-table th {
  font-weight: normal;
}
.ehi-specs-table td {
  text-align: right;
}
#effective-grid-filter-features li {
  list-style: none !important;
}
#effective-grid-filter-features ul.features-filter-list {
  margin-left: 0;
  padding-left: 0;
}
.effective-grid-filter-buttons {
  display: flex !important;
  width: 100%;
  flex-direction: row;
  gap: 1rem;
  font-size: 0.8em;
}
