/* Visitor popup only: no selectors or resets outside the miyu-popup root. */
#miyu-popup-root {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2147483647;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #242329;
  font: inherit;
  line-height: 1.4;
  text-align: left;
  pointer-events: none;
  isolation: isolate;
}

#miyu-popup-root.miyu-popup-modal {
  background: rgba(0, 0, 0, .58);
  pointer-events: auto;
}

#miyu-popup-root,
#miyu-popup-root * {
  box-sizing: border-box;
}

#miyu-popup-root [hidden] {
  display: none !important;
}

#miyu-popup-root .miyu-popup-dialog {
  --miyu-popup-ui-scale: 1;
  position: absolute;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(101, 84, 166, .16);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .2);
  font: inherit;
  color: #242329;
  pointer-events: auto;
  outline: none;
}

#miyu-popup-root .miyu-popup-title,
#miyu-popup-root .miyu-popup-status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  border: 0;
  white-space: nowrap;
}

/* The X has its own measured row; it cannot disappear behind a tall image. */
#miyu-popup-root .miyu-popup-header {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
  padding: calc(3px * var(--miyu-popup-ui-scale));
}

#miyu-popup-root button {
  appearance: none;
  -webkit-appearance: none;
  position: static;
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 0;
  max-width: 100%;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  color: #6554a6;
  font-family: inherit;
  font-size: calc(14px * var(--miyu-popup-ui-scale));
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: normal;
  text-align: center;
  text-decoration: none;
  text-transform: none;
  white-space: nowrap;
  cursor: pointer;
  touch-action: manipulation;
}

#miyu-popup-root button::before,
#miyu-popup-root button::after {
  content: none;
}

#miyu-popup-root button:focus-visible,
#miyu-popup-root .miyu-popup-link:focus-visible {
  outline: 2px solid #6554a6;
  outline-offset: -2px;
}

#miyu-popup-root button:hover {
  background: #f4f2f8;
}

#miyu-popup-root .miyu-popup-x {
  width: calc(30px * var(--miyu-popup-ui-scale));
  height: calc(30px * var(--miyu-popup-ui-scale));
  border-radius: 50%;
  font-size: calc(24px * var(--miyu-popup-ui-scale));
  line-height: 1;
}

#miyu-popup-root .miyu-popup-media {
  display: block;
  position: relative;
  flex: none;
  min-width: 0;
  min-height: 0;
  width: 100%;
  margin: 0;
  padding: 0;
  background: #fff;
  touch-action: pan-y pinch-zoom;
}

#miyu-popup-root .miyu-popup-link,
#miyu-popup-root .miyu-popup-unlinked {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  text-decoration: none;
}

#miyu-popup-root .miyu-popup-link {
  cursor: pointer;
}

#miyu-popup-root .miyu-popup-unlinked,
#miyu-popup-root .miyu-popup-unlinked img {
  cursor: default;
}

#miyu-popup-root .miyu-popup-image {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  max-width: 100%;
  max-height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  object-fit: contain;
  object-position: center;
}

#miyu-popup-root .miyu-popup-nav {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  flex: none;
  align-items: center;
  gap: calc(4px * var(--miyu-popup-ui-scale));
  min-width: 0;
  margin: 0;
  padding: calc(4px * var(--miyu-popup-ui-scale)) calc(8px * var(--miyu-popup-ui-scale));
  border-top: calc(1px * var(--miyu-popup-ui-scale)) solid #eeeaf6;
  background: #fff;
}

#miyu-popup-root .miyu-popup-arrow {
  width: calc(32px * var(--miyu-popup-ui-scale));
  height: calc(30px * var(--miyu-popup-ui-scale));
  border-radius: 4px;
  font-size: calc(24px * var(--miyu-popup-ui-scale));
  line-height: 1;
}

#miyu-popup-root .miyu-popup-dots {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: calc(2px * var(--miyu-popup-ui-scale));
  min-width: 0;
  max-height: calc(60px * var(--miyu-popup-ui-scale));
  overflow-y: auto;
  overscroll-behavior: contain;
}

#miyu-popup-root .miyu-popup-dot {
  width: calc(24px * var(--miyu-popup-ui-scale));
  height: calc(26px * var(--miyu-popup-ui-scale));
  border-radius: 4px;
  font-size: calc(14px * var(--miyu-popup-ui-scale));
  line-height: 1;
}

#miyu-popup-root .miyu-popup-dot[aria-current="true"] {
  color: #6554a6;
  font-weight: 700;
}

#miyu-popup-root .miyu-popup-footer {
  display: flex;
  flex: none;
  min-width: 0;
  margin: 0;
  padding: 0;
  border-top: calc(1px * var(--miyu-popup-ui-scale)) solid #eeeaf6;
  border-radius: 0 0 7px 7px;
  background: #fff;
}

#miyu-popup-root .miyu-popup-footer button {
  flex: 1 1 0;
  min-width: 0;
  padding: calc(13px * var(--miyu-popup-ui-scale)) calc(4px * var(--miyu-popup-ui-scale));
}

#miyu-popup-root .miyu-popup-footer button + button {
  border-left: calc(1px * var(--miyu-popup-ui-scale)) solid #eeeaf6;
}

#miyu-popup-root .miyu-popup-today {
  font-weight: 700;
}

/* Shared inquiry subtitle: only its explicit mobile line break is changed. */
.detail-inquiry .inquiry-subtitle-break { display: none; }
@media (max-width: 767px) {
  .detail-inquiry .inquiry-subtitle-break { display: block; }
}
