.popup-dialog {
  --ease-3: cubic-bezier(0.25, 0, 0.3, 1);
  --animation-slide-in-up: slide-in-up 0.4s var(--ease-3);
  --popup-bottom-offset: 16px;

  position: fixed;
  inset-inline: 0;
  bottom: var(--popup-bottom-offset);
  z-index: 999999;
  margin: 0 auto;
  width: min(960px, 92vw);
  max-inline-size: 92vw;
  height: auto;
  overflow: hidden;
  transition: bottom 0.3s var(--ease-3);
  animation: var(--animation-slide-in-up) forwards;
  border-radius: 10px;
  padding: 0;
  border: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  background: #f5f2ed;
  font-family: "Maven Pro", sans-serif;
}

.popup-dialog__close {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  font-size: 18px;
  color: #9e6d42;
  cursor: pointer;
  z-index: 10;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  border-radius: 50%;
  backdrop-filter: blur(5px);
}

.popup-dialog__close:hover {
  background: rgba(255, 255, 255, 1);
  transform: scale(1.1);
}

.popup-dialog__close-icon {
  font-size: 18px;
  line-height: 1;
}

.popup-dialog__content {
  isolation: isolate;
  position: relative;
  padding: 0;
  text-align: left;
  color: #9e6d42;
  background: #f5f2ed;
  height: 100%;
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
}

.popup-dialog__content-background {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
}

.popup-dialog__content-background-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.popup-dialog__content-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
  padding: 14px 50px 14px 20px;
}

.popup-dialog__content-inner-content {
  max-width: var(--content-max-width, 700px);
  margin: 0;
  display: block;
  line-height: 1.5;
  font-size: 14px;
  font-weight: 400;
}

.popup-dialog__content-inner-content p {
  margin: 0;
  color: #9e6d42;
}

.popup-dialog__content-inner-content strong {
  font-weight: 600;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

@keyframes slide-in-up {
  0% {
    transform: translateY(100%);
  }
}

/* Responsive design */
@media (max-width: 768px) {
  .popup-dialog {
    width: 95vw;
    max-inline-size: 95vw;
  }

  .popup-dialog__content-inner {
    padding: 12px 44px 12px 16px;
  }

  .popup-dialog__content-inner-content {
    font-size: 13px;
  }

  .popup-dialog__close {
    right: 8px;
    width: 26px;
    height: 26px;
  }

  .popup-dialog__close-icon {
    font-size: 16px;
  }
}
