.booking-messages-popup {
  --booking-popup-bg: #111111;
  --booking-popup-text: #ffffff;
  --booking-popup-button: #ffffff;

  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9999;

  width: min(100%, 360px);

  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);

  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

.booking-messages-popup.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.booking-messages-popup[hidden] {
  display: block;
}

.booking-messages-popup__inner {
  position: relative;
  background: var(--booking-popup-bg);
  color: var(--booking-popup-text);

  border-radius: 18px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);

  display: flex;
  align-items: center;
  gap: 16px;

  padding: 20px 15px 20px 25px;
}

.booking-messages-popup__content {
  flex: 1 1 auto;
  min-width: 0;
}

.booking-messages-popup__top {
  font-size: 15px;
  line-height: 1.4;
  font-weight: 600;

  margin-bottom: 6px;
  color: var(--booking-popup-text);
}

.booking-messages-popup__bottom {
  font-size: 13px;
  line-height: 1.45;

  color: var(--booking-popup-text);
  opacity: 0.82;
}

.booking-messages-popup__button {
  flex: 0 0 auto;

  padding: 8px 14px;

  border-radius: 8px;
  background: var(--booking-popup-button);
  color: var(--booking-popup-bg);

  text-decoration: none;
  font-size: 13px;
  font-weight: 600;

  display: inline-flex;
  align-items: center;
  gap: 6px;

  transition: opacity 0.2s ease;
}

.booking-messages-popup__button:hover {
  opacity: 0.9;
}

.booking-messages-popup__button-text {
  display: inline;
}

.booking-messages-popup__button::after {
  content: "→";
  font-size: 14px;
}

.booking-messages-popup__close {
  position: absolute;
  top: 5px;
  left: 5px;

  width: 22px;
  height: 22px;

  border: none;
  background: transparent;

  font-size: 22px;
  line-height: 1;
  cursor: pointer;

  color: var(--booking-popup-text);

  display: flex;
  align-items: center;
  justify-content: center;
}

.booking-messages-popup__close:hover {
  opacity: 1;
}


/* Mobile */

@media (max-width: 767px) {

  .booking-messages-popup {
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
  }

  .booking-messages-popup__inner {
    padding: 16px;
    gap: 12px;
  }

  .booking-messages-popup__top {
    font-size: 14px;
  }

  .booking-messages-popup__bottom {
    font-size: 12px;
  }

  .booking-messages-popup__button {
    width: 40px;
    height: 40px;
    min-width: 40px;
  }

}
