.footer-inquiry {
  position: fixed;
  inset: 0;
  box-sizing: border-box;
  width: min(31rem, calc(100% - 32px));
  height: fit-content;
  max-height: calc(100dvh - 32px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  margin: auto;
  padding: 52px clamp(20px, 6vw, 35px) 30px;
  overflow: auto;
  color: #182436;
  background: linear-gradient(155deg, #fff4e9, #fff 65%);
  border: 1px solid #f4d5bc;
  border-top: 7px solid #ff7936;
  border-radius: 16px;
  box-shadow: 0 22px 68px #111a30a6;
}

.footer-inquiry:not([open]) {
  display: none;
}

.footer-inquiry::backdrop {
  background: #111a309e;
}

.footer-inquiry h2 {
  margin: 0 0 12px;
  font-size: clamp(1.6rem, 5vw, 2.05rem);
  font-weight: 800;
  line-height: 1.12;
  overflow-wrap: break-word;
}

.footer-inquiry p {
  margin: 0 0 24px;
  color: #34455c;
  line-height: 1.52;
}

.footer-inquiry .button {
  box-sizing: border-box;
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  color: #172033;
  background: #ff7936;
  border-color: #ff7936;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.3;
  text-align: center;
  white-space: normal;
}

.footer-inquiry .button:hover {
  background: #ffa06c;
  border-color: #ffa06c;
}

.footer-inquiry-close {
  position: absolute;
  top: 6px;
  right: 8px;
  width: 44px;
  height: 44px;
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  border-radius: 8px;
  font: 28px/1 system-ui, sans-serif;
  cursor: pointer;
}

.footer-inquiry-close:hover {
  background: #ffe8d6;
}

.footer-inquiry :focus-visible {
  outline: 2px solid #274875;
  outline-offset: 2px;
}
