.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%, 400px);

  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);

  padding: 20px 15px 20px 15px;

  display: flex;
  flex-direction: column;
  gap: 10px;
}

.booking-messages-popup__header {
  display: flex;
  align-items: center;
  gap: 10px;

  min-width: 0;
}

.booking-messages-popup__row {
  display: flex;
  align-items: center;
  gap: 12px;

  min-width: 0;
}

.booking-messages-popup__top {
  font-size: 18px;
  line-height: 1.4;
  font-weight: 600;
  color: var(--booking-popup-text);

  min-width: 0;
  margin-left: 20px;
}

.booking-messages-popup__bottom {
  flex: 1 1 auto;
  min-width: 0;

  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;
  white-space: nowrap;

  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 {
  flex: 0 0 auto;

  height: 22px;

  border: none;
  background: transparent;
  padding: 0;
  margin: 0;

  font-size: 25px;
  line-height: 1;
  cursor: pointer;

  color: var(--booking-popup-text);

  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.booking-messages-popup__close:hover {
  opacity: 1;
}


/* Mobile */
@media (max-width: 767px) {
  .booking-messages-popup {
    right: 15px;
    bottom: 15px;
    width: calc(100% - 30px);
  }

  .booking-messages-popup__inner {
    padding: 16px 14px;
    gap: 10px;
  }

  .booking-messages-popup__header {
    gap: 8px;
  }

  .booking-messages-popup__row {
    gap: 10px;
  }

  .booking-messages-popup__top {
    font-size: 14px;
  }

  .booking-messages-popup__bottom {
    font-size: 12px;
  }

  .booking-messages-popup__button {
    padding: 8px 12px;
    font-size: 12px;
  }
}