.finpromo-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.finpromo-modal.is-open {
  display: flex;
}

.finpromo-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(2px);
}

.finpromo-modal__dialog {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: 96vw;
  max-height: 96vh;
}

.finpromo-modal__media {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 96vw;
  max-height: 92vh;
}

.finpromo-modal__image {
  display: block;
  width: auto;
  height: auto;
  max-width: 96vw;
  max-height: 92vh;
  object-fit: contain;
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  background: #fff;
}

.finpromo-modal__close {
  position: absolute;
  top: -12px;
  right: -12px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #111;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
  padding: 0px !important;
}

.finpromo-modal__close:hover{
  background-color: #fff !important;
  color: #111 !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

body.finpromo-modal-open {
  overflow: hidden;
}

@media (max-width: 768px) {
  .finpromo-modal {
    padding: 10px;
  }

  .finpromo-modal__close {
    top: 8px;
    right: 8px;
  }
}