html.cbh-home-popup-dismissed .cbh-home-popup {
  display: none !important;
}

html.cbh-home-popup-open,
html.cbh-home-popup-open body {
  overflow: hidden;
}

.cbh-home-popup {
  position: fixed;
  inset: 0;
  z-index: 1000000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(17, 24, 32, 0.62);
}

.cbh-home-popup__dialog {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 100%;
  max-height: 100%;
}

.cbh-home-popup__image {
  display: block;
  width: auto;
  height: auto;
  max-width: min(560px, calc(100vw - 3rem));
  max-height: calc(85vh - 3.5rem);
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

.cbh-home-popup__close {
  margin-top: 0.85rem;
  min-height: 44px;
  padding: 0.45rem 1.1rem;
  border: 0;
  border-radius: 6px;
  background: #fff;
  color: #1d2327;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 1.2;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.22);
}

.cbh-home-popup__close:hover,
.cbh-home-popup__close:focus-visible {
  background: #f4f7f8;
}

.cbh-home-popup__close:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

@media (max-width: 767px) {
  .cbh-home-popup {
    padding: 1rem;
  }

  .cbh-home-popup__image {
    max-width: calc(100vw - 2rem);
    max-height: calc(85vh - 3.5rem);
    border-radius: 12px;
  }
}
