html,
body {
  margin: 0;
  padding: 0;
}
img {
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  max-width: 100%;
  height: auto;
}
.popup {
  font-size: 0;
  line-height: 0;
  display: none;
  margin: 0 auto;
  width: 100%;
  max-width: min(375px, 100vw - 40px);
  box-sizing: border-box;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
  z-index: 10001;
  text-align: center;
}
.popup-inner {
  position: relative;
}
.popup-btn {
  position: absolute;
  bottom: 2%;
  padding: 0 16px;
  transition: transform 0.3s ease;
}
.popup-btn:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
}
.close-popup-outer {
  display: none;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 20px;
  right: 20px;
  background: #fff;
  border: none;
  font-size: 32px;
  color: #888;
  cursor: pointer;
  z-index: 10002;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  line-height: 1;
  padding: 0;
}
body::before {
  content: "";
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10000;
}
body.popup-active::before {
  display: block;
}
body.popup-active .close-popup-outer {
  display: flex;
}
.close-popup-outer span {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
