.mim-bricks-popup {
  position: fixed;
  inset: 0;
  z-index: 99999;
}

.mim-bricks-popup.is-hidden {
  display: none;
}

.mim-bricks-popup__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.44);
}

.mim-bricks-popup__panel {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(760px, 94vw);
  max-height: 90vh;
  overflow: auto;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.24);
}

.mim-bricks-popup__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: #39666d;
  color: #fff;
  font-size: 24px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  cursor: pointer;
}

.mim-bricks-popup__media {
  background: #f4f3ef;
}

.mim-bricks-popup__img {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  display: block;
  filter: saturate(1.14) contrast(1.04);
}

.mim-bricks-popup__content {
  padding: 16px 18px 20px;
  display: grid;
  gap: 12px;
}

.mim-bricks-popup__title {
  margin: 0;
  font-size: 34px;
  line-height: 1.16;
  font-weight: 600;
  color: #2d2a24;
  text-align: center;
}

.mim-bricks-popup__price {
  color: #39666d;
  font-size: 22px;
  font-weight: 800;
  text-align: center;
}

.mim-bricks-popup__price .woocommerce-Price-amount {
  color: #39666d;
}

.mim-bricks-popup__desc {
  color: #66635c;
  font-size: 16px;
  line-height: 1.55;
  text-align: center;
}

.mim-bricks-popup__desc p {
  margin: 0 0 10px;
}

.mim-bricks-popup__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  align-self: center;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(
    135deg,
    var(--bricks-color-njsisd, #f3a23f) 0%,
    var(--mim-accent-warm, #f6bf57) 100%
  );
  border-radius: 999px;
  padding: 12px 22px;
  min-width: 190px;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(44, 42, 36, 0.16);
}

body.mim-bricks-popup-open {
  overflow: hidden;
}

@media (max-width: 860px) {
  .mim-bricks-popup__title {
    font-size: 30px;
  }
}
