/* ========================================================
   RACEKON MOTOR IMAGES STYLES & CONFIGURATION
   ======================================================== */

:root {
  --motor-scale: 1.300;
  --motor-base-width: 366px;
  --motor-base-height: 400px;
  --motor-desktop-width: calc(var(--motor-base-width) * var(--motor-scale));
  --motor-desktop-height: calc(var(--motor-base-height) * var(--motor-scale));
  --motor-mobile-width: 280px;
  --motor-mobile-height: 306px;
  --motor-banner-padding-top: 24px;
  --motor-banner-padding-bottom: 24px;
  --motor-banner-margin-top: 0px;
  --motor-banner-margin-bottom: 40px;
}

/* Prevent horizontal scrollbars caused by 100vw breakout */
html, body {
  overflow-x: hidden;
}

/* Dedicated white styling for 14-kg and 80-kg image sections */
.elementor-element-00da342,
.elementor-element-37ec16e,
.motor-hero-section[data-id="00da342"],
.motor-hero-section[data-id="37ec16e"] {
  background-color: #ffffff !important;
  background: #ffffff !important;
}

/* Zero out all top spacing above the motor image banner across all breakpoints */
.motor-hero-section,
.elementor-section.motor-hero-section,
.elementor-top-section.motor-hero-section,
.motor-hero-section .elementor-container,
.motor-hero-section .elementor-row,
.motor-hero-section .elementor-column,
.motor-hero-section .elementor-column-wrap,
.motor-hero-section .elementor-widget-wrap,
.motor-hero-section .elementor-widget,
.motor-hero-section .elementor-widget-container,
.motor-hero-section .elementor-image {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

@media (max-width: 1024px) {
  .motor-hero-section,
  .elementor-section.motor-hero-section,
  .elementor-top-section.motor-hero-section,
  .motor-hero-section .elementor-container,
  .motor-hero-section .elementor-row,
  .motor-hero-section .elementor-column,
  .motor-hero-section .elementor-column-wrap,
  .motor-hero-section .elementor-widget-wrap,
  .motor-hero-section .elementor-widget,
  .motor-hero-section .elementor-widget-container,
  .motor-hero-section .elementor-image {
    padding-top: 0 !important;
    margin-top: 0 !important;
  }
}

@media (max-width: 767px) {
  .motor-hero-section,
  .elementor-section.motor-hero-section,
  .elementor-top-section.motor-hero-section,
  .motor-hero-section .elementor-container,
  .motor-hero-section .elementor-row,
  .motor-hero-section .elementor-column,
  .motor-hero-section .elementor-column-wrap,
  .motor-hero-section .elementor-widget-wrap,
  .motor-hero-section .elementor-widget,
  .motor-hero-section .elementor-widget-container,
  .motor-hero-section .elementor-image {
    padding-top: 0 !important;
    margin-top: 0 !important;
  }
}

/* Hide any spacer widgets inside motor-hero-section */
.motor-hero-section .elementor-widget-spacer {
  display: none !important;
}

/* Full-width matching white background for motor product images */
.motor-image-banner-wrap,
.elementor-widget-image .elementor-image.motor-image-banner-wrap {
  width: 100vw !important;
  position: relative !important;
  left: 50% !important;
  right: 50% !important;
  margin-left: -50vw !important;
  margin-right: -50vw !important;
  background-color: #ffffff !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  text-align: center !important;
  box-sizing: border-box !important;
  padding: var(--motor-banner-padding-top, 24px) 0 var(--motor-banner-padding-bottom, 24px) 0 !important;
  margin-top: var(--motor-banner-margin-top, 0px) !important;
  margin-bottom: var(--motor-banner-margin-bottom, 40px) !important;
}

/* In 14-kg and 80-kg where next section follows, reset excessive top padding so margin-bottom sets the exact 40px gap */
.motor-hero-section + .elementor-top-section {
  padding-top: 0 !important;
}

.elementor-widget-image .elementor-image {
  text-align: center !important;
}

/* Desktop sizing (scaled) */
.elementor-widget-image .elementor-image img.motor-product-img,
.elementor-widget-image .elementor-image img[src*="-motor.png"] {
  width: var(--motor-desktop-width, 183px) !important;
  height: var(--motor-desktop-height, 200px) !important;
  max-width: 100% !important;
  margin: 0 auto !important;
  display: inline-block !important;
  object-fit: contain !important;
}

/* Mobile sizing & spacing (< 768px) */
@media (max-width: 767px) {
  .motor-image-banner-wrap,
  .elementor-widget-image .elementor-image.motor-image-banner-wrap {
    padding: 16px 0 !important;
    margin-bottom: 25px !important;
  }

  .elementor-widget-image .elementor-image img.motor-product-img,
  .elementor-widget-image .elementor-image img[src*="-motor.png"] {
    width: var(--motor-mobile-width, 280px) !important;
    height: var(--motor-mobile-height, 306px) !important;
  }
}
