html.lanna-royal-popup-lock,
body.lanna-royal-popup-lock {
  overflow: hidden !important;
}

.lanna-royal-popup {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.lanna-royal-popup.is-active {
  display: flex;
}

/* Clean layout: dark blurred backdrop + one soft glow directly on the image */
.lanna-royal-popup__box {
  width: min(860px, 94vw);
  max-height: 92vh;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.lanna-royal-popup__step {
  min-height: 20px;
  margin-bottom: 10px;
  padding-right: 6px;
  text-align: right;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 500;
  color: rgba(255, 247, 231, 0.92);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.lanna-royal-popup__step.is-hidden {
  display: none !important;
}

.lanna-royal-popup__image-wrap {
  flex: 1;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.lanna-royal-popup__image-wrap img {
  width: auto;
  max-width: 100%;
  max-height: 76vh;
  display: block;
  object-fit: contain;
  border: 1px solid rgba(244, 231, 195, 0.72);
  border-radius: 10px;
  opacity: 1;
  transition: opacity 0.4s ease;
  box-shadow:
    0 0 0 1px rgba(255, 245, 220, 0.14),
    0 0 18px rgba(234, 208, 143, 0.24),
    0 0 46px rgba(255, 244, 214, 0.12),
    0 16px 48px rgba(0, 0, 0, 0.36);
}

.lanna-royal-popup__image-wrap img.is-fading {
  opacity: 0;
}

.lanna-royal-popup__actions {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.lanna-royal-popup__notice {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 248, 235, 0.94);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
}

.lanna-royal-popup__button {
  min-width: 170px;
  min-height: 46px;
  border: 1px solid rgba(255, 241, 206, 0.28);
  border-radius: 999px;
  padding: 0 26px;
  background: rgba(143, 116, 66, 0.92);
  color: #ffffff;
  font-size: 16px;
  line-height: 46px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
}

.lanna-royal-popup__button:hover,
.lanna-royal-popup__button:focus {
  background: rgba(154, 128, 80, 0.96);
  outline: 2px solid rgba(255, 255, 255, 0.28);
  outline-offset: 3px;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (max-width: 768px) {
  .lanna-royal-popup {
    padding: 12px;
    background: rgba(0, 0, 0, 0.66);
    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px);
  }

  .lanna-royal-popup__box {
    width: 100%;
    max-height: 94vh;
  }

  .lanna-royal-popup__image-wrap {
    min-height: 240px;
  }

  .lanna-royal-popup__image-wrap img {
    max-height: 72vh;
    border-radius: 8px;
  }

  .lanna-royal-popup__button {
    width: 100%;
  }

  .lanna-royal-popup__actions {
    flex-direction: column;
    margin-top: 14px;
  }
}
