.shop-notice-modal-lock {
  overflow: hidden;
}

.shop-notice-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  box-sizing: border-box;
}

.shop-notice-modal-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.shop-notice-modal {
  width: min(520px, 100%);
  max-height: min(76vh, 680px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
  color: #1d2129;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.18);
  transform: translateY(14px) scale(0.98);
  transition: transform 0.2s ease;
}

.shop-notice-modal-overlay.is-visible .shop-notice-modal {
  transform: translateY(0) scale(1);
}

.shop-notice-modal__header {
  position: relative;
  padding: 18px 20px 12px;
  text-align: center;
}

.shop-notice-modal__title {
  margin: 0;
  font-size: 18px;
  line-height: 1.4;
  font-weight: 700;
  color: #1d2129;
}

.shop-notice-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  display: none;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #86909c;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.shop-notice-modal__close.is-visible {
  display: inline-flex;
}

.shop-notice-modal__close:hover {
  background: #f2f3f5;
  color: #1d2129;
}

.shop-notice-modal__body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 0 22px 18px;
  color: #4e5969;
  font-size: 14px;
  line-height: 1.85;
  word-break: break-word;
}

.shop-notice-modal__body :first-child {
  margin-top: 0;
}

.shop-notice-modal__body :last-child {
  margin-bottom: 0;
}

.shop-notice-modal__body p {
  margin: 0 0 10px;
}

.shop-notice-modal__body img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

.shop-notice-modal__footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 14px 20px 20px;
}

.shop-notice-modal__hint {
  grid-column: 3;
  min-width: 44px;
  color: #86909c;
  font-size: 13px;
  text-align: left;
}

.shop-notice-modal__button {
  grid-column: 2;
  grid-row: 1;
  min-width: 132px;
  height: 40px;
  border: 0;
  border-radius: 8px;
  background: #165dff;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, opacity 0.2s ease;
}

.shop-notice-modal__button:hover {
  background: #4080ff;
}

.shop-notice-modal__button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

@media (max-width: 768px) {
  .shop-notice-modal-overlay {
    align-items: flex-end;
    padding: 12px;
  }

  .shop-notice-modal {
    width: 100%;
    max-height: calc(100vh - 24px);
    border-radius: 16px 16px 12px 12px;
    transform: translateY(32px);
  }

  .shop-notice-modal__header {
    padding: 18px 48px 10px;
  }

  .shop-notice-modal__title {
    font-size: 17px;
  }

  .shop-notice-modal__body {
    padding: 0 18px 16px;
    font-size: 14px;
  }

  .shop-notice-modal__footer {
    padding: 12px 18px calc(18px + env(safe-area-inset-bottom));
  }

  .shop-notice-modal__button {
    width: min(100%, 180px);
  }
}
