.cmhb-banner,
.cmhb-banner * {
  box-sizing: border-box;
}

.cmhb-banner {
  position: relative;
  display: block;
  clear: both;
  width: 100%;
  overflow: hidden;
  isolation: isolate;
  z-index: var(--cmhb-stack-level, 40);
  transform: translateZ(0);
  --cmhb-transition-speed: 680ms;
}

.cmhb-banner-host,
.cmhb-banner-section {
  position: relative;
  z-index: var(--cmhb-stack-level, 40);
}

/* v1.0.29: content layers are part of the first paint.
   Critical CSS already gives title/text/buttons their final position and shape,
   so they no longer wait for the image complete event or JS ready state. */
.cmhb-banner.cmhb-is-booting .cmhb-content,
.cmhb-banner.cmhb-is-booting .cmhb-free-content,
.cmhb-banner.cmhb-is-ready .cmhb-content,
.cmhb-banner.cmhb-is-ready .cmhb-free-content {
  visibility: visible;
}

.cmhb-stage {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: var(--cmhb-pc-aspect-ratio, 1920 / 760);
  height: var(--cmhb-pc-height, auto);
  overflow: hidden;
  background: #f1f5f9;
  isolation: isolate;
  transition: height var(--cmhb-transition-speed) ease;
}

.cmhb-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  z-index: 1;
  transition: opacity var(--cmhb-transition-speed) ease, transform var(--cmhb-transition-speed) ease;
  --cmhb-responsive-scale: 1;
}

.cmhb-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 2;
}

.cmhb-picture {
  position: relative;
  z-index: 1;
}

.cmhb-picture,
.cmhb-picture img {
  display: block;
  width: 100%;
  height: 100%;
}

.cmhb-picture img {
  object-fit: var(--cmhb-pc-fit, cover);
  object-position: var(--cmhb-pc-position, center center);
  transition: transform 900ms ease;
}

.cmhb-image-mask {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(to bottom, var(--cmhb-mask-top, rgba(0,0,0,0)), var(--cmhb-mask-bottom, rgba(0,0,0,0)));
}

.cmhb-mask-mobile {
  display: none;
}

.cmhb-animation-none .cmhb-slide {
  transition: none;
}

.cmhb-animation-slide .cmhb-slide {
  transform: translateX(24px);
}

.cmhb-animation-slide .cmhb-slide.is-active {
  transform: translateX(0);
}

.cmhb-animation-zoom .cmhb-slide .cmhb-picture img {
  transform: scale(1.045);
}

.cmhb-animation-zoom .cmhb-slide.is-active .cmhb-picture img {
  transform: scale(1);
}

.cmhb-content {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  padding: clamp(24px, 5vw, 84px);
  pointer-events: none;
  text-align: var(--cmhb-text-align, left);
}

.cmhb-content-mobile {
  display: none;
}

.cmhb-content-inner {
  width: 100%;
  max-width: var(--cmhb-content-max-width, 560px);
  padding: 24px;
  border-radius: 24px;
  background: var(--cmhb-panel-bg, rgba(0,0,0,0));
  pointer-events: auto;
  transform: scale(var(--cmhb-responsive-scale, 1));
  transform-origin: center center;
}

.cmhb-content h2 {
  margin: 0 0 14px;
  color: var(--cmhb-title-color, #ffffff);
  opacity: var(--cmhb-title-opacity, 1);
  --cmhb-anim-opacity: var(--cmhb-title-opacity, 1);
  font-size: var(--cmhb-title-size, 54px);
  font-weight: var(--cmhb-title-weight, 700);
  line-height: 1.06;
  letter-spacing: -0.03em;
}

.cmhb-content p {
  margin: 0 0 22px;
  color: var(--cmhb-text-color, #ffffff);
  opacity: var(--cmhb-text-opacity, 1);
  --cmhb-anim-opacity: var(--cmhb-text-opacity, 1);
  font-size: var(--cmhb-text-size, 18px);
  line-height: 1.56;
}

.cmhb-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: var(--cmhb-button-padding-y, 13px) var(--cmhb-button-padding-x, 28px);
  position: relative;
  border: 0 !important;
  border-radius: var(--cmhb-button-radius, 999px) !important;
  outline: none !important;
  appearance: none;
  -webkit-appearance: none;
  background-clip: padding-box;
  overflow: hidden;
  color: var(--cmhb-button-color, #ffffff) !important;
  background: var(--cmhb-button-bg, #111111);
  opacity: var(--cmhb-button-opacity, 1);
  --cmhb-anim-opacity: var(--cmhb-button-opacity, 1);
  text-decoration: none !important;
  font-size: var(--cmhb-button-font-size, 15px);
  font-weight: 700;
  line-height: 1.2;
  transition: transform 180ms ease, opacity 180ms ease, background-color 180ms ease, color 180ms ease, box-shadow 180ms ease, filter 180ms ease;
  will-change: transform, opacity;
}



.cmhb-button::before {
  content: "";
  position: absolute;
  inset: 0;
  border: var(--cmhb-button-border-width, 0px) solid var(--cmhb-button-border-color, transparent);
  border-radius: inherit;
  pointer-events: none;
  box-sizing: border-box;
  z-index: 1;
}

.cmhb-banner a.cmhb-button,
.cmhb-banner span.cmhb-button,
.cmhb-banner .cmhb-button {
  position: relative;
  border: 0 !important;
  border-radius: var(--cmhb-button-radius, 999px) !important;
  outline: none !important;
  background-clip: padding-box;
  overflow: hidden;
}

/* v1.0.28: hover background must override inline first-paint background styles. */
.cmhb-button:hover,
.cmhb-button:focus {
  color: var(--cmhb-button-hover-color, var(--cmhb-button-color, #ffffff)) !important;
  background: var(--cmhb-button-hover-bg, var(--cmhb-button-bg, #111111)) !important;
  opacity: var(--cmhb-button-opacity, 1);
}

.cmhb-button:focus-visible {
  border-radius: var(--cmhb-button-radius, 999px);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.22);
}

.cmhb-button-hover-none:hover,
.cmhb-button-hover-none:focus {
  transform: none;
  box-shadow: none;
  filter: none;
}

.cmhb-button-hover-lift:hover,
.cmhb-button-hover-lift:focus {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.18);
}

.cmhb-button-hover-scale:hover,
.cmhb-button-hover-scale:focus {
  transform: scale(1.045);
}

.cmhb-button-hover-glow:hover,
.cmhb-button-hover-glow:focus {
  transform: translateY(-1px);
  box-shadow: 0 0 0 4px rgba(255,255,255,0.18), 0 14px 32px rgba(15, 23, 42, 0.24);
  filter: brightness(1.04);
}

.cmhb-button-hover-invert:hover,
.cmhb-button-hover-invert:focus {
  transform: translateY(-1px);
}

.cmhb-pos-left-top { align-items: flex-start; justify-content: flex-start; }
.cmhb-pos-center-top { align-items: flex-start; justify-content: center; }
.cmhb-pos-right-top { align-items: flex-start; justify-content: flex-end; }
.cmhb-pos-left-center { align-items: center; justify-content: flex-start; }
.cmhb-pos-center-center { align-items: center; justify-content: center; }
.cmhb-pos-right-center { align-items: center; justify-content: flex-end; }
.cmhb-pos-left-bottom { align-items: flex-end; justify-content: flex-start; }
.cmhb-pos-center-bottom { align-items: flex-end; justify-content: center; }
.cmhb-pos-right-bottom { align-items: flex-end; justify-content: flex-end; }

.cmhb-arrow {
  position: absolute;
  top: 50%;
  z-index: 8;
  width: 44px;
  height: 44px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 999px;
  color: #111827;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.14);
  cursor: pointer;
  font-size: 32px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 180ms ease, transform 180ms ease;
}

.cmhb-arrow:hover,
.cmhb-arrow:focus {
  background: #ffffff;
}

.cmhb-arrow-prev {
  left: 22px;
}

.cmhb-arrow-next {
  right: 22px;
}

.cmhb-dots,
.cmhb-numbers,
.cmhb-thumbnails {
  position: absolute;
  left: 50%;
  bottom: 22px;
  z-index: 8;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.cmhb-dots button {
  width: var(--cmhb-nav-width, 26px) !important;
  height: var(--cmhb-nav-height, 10px) !important;
  min-width: 0 !important;
  min-height: 0 !important;
  flex: 0 0 var(--cmhb-nav-width, 26px) !important;
  padding: 0 !important;
  line-height: 0 !important;
  border: 0;
  border-radius: var(--cmhb-nav-radius, 999px);
  background: var(--cmhb-nav-color, #111111);
  opacity: var(--cmhb-nav-opacity, 1);
  cursor: pointer;
  transition: background 180ms ease, opacity 180ms ease, transform 180ms ease;
}

.cmhb-dots button.is-active {
  background: var(--cmhb-nav-active-color, #ffffff);
}

.cmhb-dots button:hover,
.cmhb-dots button:focus {
  transform: translateY(-1px);
}

.cmhb-numbers {
  gap: 8px;
}

.cmhb-numbers button {
  width: var(--cmhb-nav-width, 34px) !important;
  height: var(--cmhb-nav-height, 34px) !important;
  min-width: 0 !important;
  min-height: 0 !important;
  flex: 0 0 var(--cmhb-nav-width, 34px) !important;
  padding: 0 !important;
  line-height: 1 !important;
  border: 0;
  border-radius: var(--cmhb-nav-radius, 999px);
  color: var(--cmhb-nav-active-color, #ffffff);
  background: var(--cmhb-nav-color, #111827);
  opacity: var(--cmhb-nav-opacity, 1);
  font-weight: 800;
  cursor: pointer;
}

.cmhb-numbers button.is-active {
  color: var(--cmhb-nav-color, #111827);
  background: var(--cmhb-nav-active-color, #ffffff);
}

.cmhb-thumbnails {
  bottom: 18px;
  gap: 8px;
  padding: 8px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.26);
  backdrop-filter: blur(8px);
}

.cmhb-thumbnails button {
  width: var(--cmhb-nav-width, 74px) !important;
  height: var(--cmhb-nav-height, 46px) !important;
  min-width: 0 !important;
  min-height: 0 !important;
  flex: 0 0 var(--cmhb-nav-width, 74px) !important;
  padding: 0 !important;
  overflow: hidden;
  border: 2px solid var(--cmhb-nav-color, rgba(255, 255, 255, 0.4));
  border-radius: var(--cmhb-nav-radius, 12px);
  background: transparent;
  cursor: pointer;
  opacity: var(--cmhb-nav-opacity, 0.72);
  transition: opacity 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.cmhb-thumbnails button.is-active {
  border-color: var(--cmhb-nav-active-color, #ffffff);
  opacity: 1;
  transform: translateY(-1px);
}

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

@media (max-width: 767px) {
  .cmhb-banner,
  .cmhb-banner-host,
  .cmhb-banner-section {
    z-index: var(--cmhb-mobile-stack-level, 120);
  }

  .cmhb-banner {
    contain: layout paint;
  }

  .cmhb-stage {
    aspect-ratio: var(--cmhb-mobile-aspect-ratio, 576 / 680);
    height: var(--cmhb-mobile-height, auto);
  }

  .cmhb-mask-pc {
    display: none;
  }

  .cmhb-mask-mobile {
    display: block;
  }

  .cmhb-picture img {
    object-fit: var(--cmhb-mobile-fit, cover);
    object-position: var(--cmhb-mobile-position, center center);
  }

  .cmhb-content-pc {
    display: none;
  }

  .cmhb-content-mobile {
    display: flex;
  }

  .cmhb-content {
    padding: 24px 18px 32px;
  }

  .cmhb-content-inner {
    max-width: var(--cmhb-content-max-width, 330px);
    padding: 18px;
    border-radius: 20px;
  }

  .cmhb-content h2 {
    font-size: var(--cmhb-title-size, 34px);
  }

  .cmhb-content p {
    font-size: var(--cmhb-text-size, 15px);
  }

  .cmhb-arrow {
    width: 38px;
    height: 38px;
    font-size: 28px;
  }

  .cmhb-arrow-prev {
    left: 10px;
  }

  .cmhb-arrow-next {
    right: 10px;
  }

  .cmhb-dots,
  .cmhb-numbers,
  .cmhb-thumbnails {
    bottom: 12px;
  }

  .cmhb-thumbnails button {
    width: var(--cmhb-nav-width, 52px) !important;
    height: var(--cmhb-nav-height, 34px) !important;
    border-radius: var(--cmhb-nav-radius, 10px);
  }
}

/* v1.0.8: independent free positioning for title, text and button. */
.cmhb-free-content {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  text-align: var(--cmhb-text-align, left);
}

.cmhb-free-content.cmhb-content-mobile {
  display: none;
}

.cmhb-free-title,
.cmhb-free-text,
.cmhb-free-button-wrap {
  position: absolute;
  z-index: 6;
  transform: translate(-50%, -50%) scale(var(--cmhb-responsive-scale, 1));
  pointer-events: auto;
}

.cmhb-free-title {
  left: var(--cmhb-title-x, 26%);
  top: var(--cmhb-title-y, 42%);
  width: var(--cmhb-title-width, 560px);
  max-width: calc(var(--cmhb-pc-design-width, 1920px) - 32px);
  box-sizing: border-box;
  margin: 0;
  color: var(--cmhb-title-color, #ffffff);
  opacity: var(--cmhb-title-opacity, 1);
  --cmhb-anim-opacity: var(--cmhb-title-opacity, 1);
  font-size: var(--cmhb-title-size, 54px);
  font-weight: var(--cmhb-title-weight, 700);
  line-height: 1.06;
  letter-spacing: -0.03em;
}

.cmhb-free-text {
  left: var(--cmhb-text-x, 26%);
  top: var(--cmhb-text-y, 55%);
  width: var(--cmhb-text-width, 520px);
  max-width: calc(var(--cmhb-pc-design-width, 1920px) - 32px);
  box-sizing: border-box;
  margin: 0;
  color: var(--cmhb-text-color, #ffffff);
  opacity: var(--cmhb-text-opacity, 1);
  --cmhb-anim-opacity: var(--cmhb-text-opacity, 1);
  font-size: var(--cmhb-text-size, 18px);
  line-height: 1.56;
}

.cmhb-free-button-wrap {
  left: var(--cmhb-button-x, 26%);
  top: var(--cmhb-button-y, 67%);
  width: var(--cmhb-button-width, auto);
  max-width: calc(var(--cmhb-pc-design-width, 1920px) - 32px);
  display: inline-flex;
  justify-content: center;
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
}

.cmhb-free-button-wrap .cmhb-button {
  width: var(--cmhb-button-width, auto);
  white-space: nowrap;
}

.cmhb-button-disabled {
  cursor: default;
}

@media (max-width: 767px) {
  .cmhb-free-content.cmhb-content-pc {
    display: none;
  }

  .cmhb-free-content.cmhb-content-mobile {
    display: block;
  }

  .cmhb-free-title {
    font-size: var(--cmhb-title-size, 34px);
    max-width: calc(var(--cmhb-mobile-design-width, 576px) - 32px);
  }

  .cmhb-free-text {
    font-size: var(--cmhb-text-size, 15px);
    max-width: calc(var(--cmhb-mobile-design-width, 576px) - 32px);
  }

  .cmhb-free-button-wrap {
    max-width: calc(var(--cmhb-mobile-design-width, 576px) - 32px);
  }
}

/* v1.0.11: multiple buttons per slide/device. */
.cmhb-button-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.cmhb-align-left .cmhb-button-row {
  justify-content: flex-start;
}

.cmhb-align-center .cmhb-button-row {
  justify-content: center;
}

.cmhb-align-right .cmhb-button-row {
  justify-content: flex-end;
}

.cmhb-button {
  width: var(--cmhb-button-width, auto);
  max-width: 100%;
  text-align: center;
  white-space: nowrap;
}

.cmhb-free-button-wrap {
  left: var(--cmhb-button-x, 26%);
  top: var(--cmhb-button-y, 67%);
  width: var(--cmhb-button-width, auto);
}

.cmhb-free-button-wrap .cmhb-button {
  width: var(--cmhb-button-width, auto);
}

@media (max-width: 767px) {
  .cmhb-button-row {
    gap: 10px;
  }

  .cmhb-button {
    white-space: normal;
  }
}


/* v1.0.15: independent element entrance animations for title, content and buttons. */
.cmhb-animate {
  animation-duration: 720ms;
  animation-fill-mode: both;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
}

.cmhb-slide:not(.is-active) .cmhb-animate {
  animation: none !important;
}

.cmhb-slide.is-active .cmhb-anim-none {
  animation: none;
}

.cmhb-slide.is-active .cmhb-anim-fade-in {
  animation-name: cmhbFadeIn;
}

.cmhb-slide.is-active .cmhb-anim-fade-up {
  animation-name: cmhbFadeUp;
}

.cmhb-slide.is-active .cmhb-anim-slide-left {
  animation-name: cmhbSlideLeft;
}

.cmhb-slide.is-active .cmhb-anim-slide-right {
  animation-name: cmhbSlideRight;
}

.cmhb-slide.is-active .cmhb-anim-zoom-in {
  animation-name: cmhbZoomIn;
}

@keyframes cmhbFadeIn {
  from { opacity: 0; }
  to { opacity: var(--cmhb-anim-opacity, 1); }
}

@keyframes cmhbFadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: var(--cmhb-anim-opacity, 1); transform: translateY(0); }
}

@keyframes cmhbSlideLeft {
  from { opacity: 0; transform: translateX(-28px); }
  to { opacity: var(--cmhb-anim-opacity, 1); transform: translateX(0); }
}

@keyframes cmhbSlideRight {
  from { opacity: 0; transform: translateX(28px); }
  to { opacity: var(--cmhb-anim-opacity, 1); transform: translateX(0); }
}

@keyframes cmhbZoomIn {
  from { opacity: 0; transform: scale(0.94); }
  to { opacity: var(--cmhb-anim-opacity, 1); transform: scale(1); }
}

/* Free-positioned elements already use transform for centering and responsive scaling,
   so they use equivalent keyframes that keep that base transform intact. */
.cmhb-slide.is-active .cmhb-free-title.cmhb-anim-fade-up,
.cmhb-slide.is-active .cmhb-free-text.cmhb-anim-fade-up,
.cmhb-slide.is-active .cmhb-free-button-wrap.cmhb-anim-fade-up {
  animation-name: cmhbFreeFadeUp;
}

.cmhb-slide.is-active .cmhb-free-title.cmhb-anim-slide-left,
.cmhb-slide.is-active .cmhb-free-text.cmhb-anim-slide-left,
.cmhb-slide.is-active .cmhb-free-button-wrap.cmhb-anim-slide-left {
  animation-name: cmhbFreeSlideLeft;
}

.cmhb-slide.is-active .cmhb-free-title.cmhb-anim-slide-right,
.cmhb-slide.is-active .cmhb-free-text.cmhb-anim-slide-right,
.cmhb-slide.is-active .cmhb-free-button-wrap.cmhb-anim-slide-right {
  animation-name: cmhbFreeSlideRight;
}

.cmhb-slide.is-active .cmhb-free-title.cmhb-anim-zoom-in,
.cmhb-slide.is-active .cmhb-free-text.cmhb-anim-zoom-in,
.cmhb-slide.is-active .cmhb-free-button-wrap.cmhb-anim-zoom-in {
  animation-name: cmhbFreeZoomIn;
}

@keyframes cmhbFreeFadeUp {
  from { opacity: 0; transform: translate(-50%, calc(-50% + 18px)) scale(var(--cmhb-responsive-scale, 1)); }
  to { opacity: var(--cmhb-anim-opacity, 1); transform: translate(-50%, -50%) scale(var(--cmhb-responsive-scale, 1)); }
}

@keyframes cmhbFreeSlideLeft {
  from { opacity: 0; transform: translate(calc(-50% - 28px), -50%) scale(var(--cmhb-responsive-scale, 1)); }
  to { opacity: var(--cmhb-anim-opacity, 1); transform: translate(-50%, -50%) scale(var(--cmhb-responsive-scale, 1)); }
}

@keyframes cmhbFreeSlideRight {
  from { opacity: 0; transform: translate(calc(-50% + 28px), -50%) scale(var(--cmhb-responsive-scale, 1)); }
  to { opacity: var(--cmhb-anim-opacity, 1); transform: translate(-50%, -50%) scale(var(--cmhb-responsive-scale, 1)); }
}

@keyframes cmhbFreeZoomIn {
  from { opacity: 0; transform: translate(-50%, -50%) scale(calc(var(--cmhb-responsive-scale, 1) * 0.94)); }
  to { opacity: var(--cmhb-anim-opacity, 1); transform: translate(-50%, -50%) scale(var(--cmhb-responsive-scale, 1)); }
}


/* v1.0.16: free-positioned button animation belongs to the positioned wrapper,
   not the inner button. This keeps the visual button exactly on the saved X/Y point. */
.cmhb-free-button-wrap > .cmhb-button.cmhb-animate {
  animation-name: none;
}

@media (prefers-reduced-motion: reduce) {
  .cmhb-animate,
  .cmhb-slide,
  .cmhb-picture img,
  .cmhb-button {
    animation: none !important;
    transition: none !important;
  }
}

/* v1.0.21: prevent theme/browser square borders on free-positioned buttons. */
.cmhb-banner .cmhb-free-button-wrap,
.cmhb-banner .cmhb-button-row {
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
}

.cmhb-banner a.cmhb-button,
.cmhb-banner span.cmhb-button,
.cmhb-banner .cmhb-button,
.cmhb-banner a.cmhb-button:hover,
.cmhb-banner span.cmhb-button:hover,
.cmhb-banner .cmhb-button:hover,
.cmhb-banner a.cmhb-button:focus,
.cmhb-banner span.cmhb-button:focus,
.cmhb-banner .cmhb-button:focus,
.cmhb-banner a.cmhb-button:active,
.cmhb-banner span.cmhb-button:active,
.cmhb-banner .cmhb-button:active {
  border: 0 !important;
  outline: 0 !important;
  -webkit-tap-highlight-color: transparent;
}

.cmhb-banner .cmhb-button::before {
  border-radius: inherit !important;
}

/* v1.0.32: mobile compatibility with Closemate Video Reels. When a following
   reels module is pulled upward by Elementor mobile layout/negative margins,
   JS adds a safe flow offset instead of relying on z-index only. */
@media (max-width: 767px) {
  .cmhb-cvr-overlap-adjusted {
    clear: both;
    transform: none !important;
  }
}
