/*
 * ac-shop-modal.css — results popup for the homepage air-conditioner icon.
 * Paired with assets/js/ac-shop-cta.js. Brand purple #A45B8D, matches
 * geo-consent.css / footer-shop-filter.css.
 *
 * Note: the cloned shop-list markup (.col/.area-col/.pref/h4/h5/ul/li) is
 * styled fresh here — the footer's own rules for those classes are scoped
 * under ".footer", so they don't reach content cloned into this dialog.
 */

body.ac-shop-modal-open {
  overflow: hidden;
}

.ac-shop-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;                 /* above .rl-geo (9999) and .geo-ask (9998) */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  visibility: hidden;
  pointer-events: none;
}

.ac-shop-modal.is-visible {
  visibility: visible;
  pointer-events: auto;
}

.ac-shop-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(49, 47, 46, 0.5);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.ac-shop-modal.is-visible .ac-shop-modal__backdrop {
  opacity: 1;
}

.ac-shop-modal__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 720px;
  max-height: 85vh;
  overflow-y: auto;
  border-radius: 16px;
  background: #fff;
  color: #312f2e;
  box-shadow: 0 20px 60px rgba(49, 47, 46, 0.3);
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  opacity: 0;
  transform: translateY(16px) scale(0.98);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.ac-shop-modal.is-visible .ac-shop-modal__panel {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .ac-shop-modal__backdrop,
  .ac-shop-modal__panel {
    transition: none;
  }
}

.ac-shop-modal__head {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px;
  border-bottom: 1px solid #ededed;
  background: #fff;
  border-radius: 16px 16px 0 0;
}

.ac-shop-modal__head h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}

.ac-shop-modal__close {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: #55514f;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.ac-shop-modal__close:hover,
.ac-shop-modal__close:focus-visible {
  background: #f3efee;
}

.ac-shop-modal__close:focus-visible {
  outline: 2px solid #A45B8D;
  outline-offset: 2px;
}

.ac-shop-modal__body {
  padding: 20px 22px 26px;
}

.ac-shop-modal__status {
  margin: 24px 0;
  text-align: center;
  color: #55514f;
  font-size: 14px;
}

.ac-shop-modal__location {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 700;
  color: #312f2e;
}

.ac-shop-modal__credit {
  margin: 16px 0 0;
  font-size: 11px;
  line-height: 1.5;
  color: #8a8683;
}

.ac-shop-modal__nearest {
  margin: 0 0 16px;
  padding: 12px 16px;
  border-radius: 10px;
  background: #A45B8D;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.7;
}

.ac-shop-modal__nearest a {
  color: #fff;
  text-decoration: underline;
}

.ac-shop-modal__distance {
  margin-left: 6px;
  color: #8a8683;
  font-size: 12px;
  font-weight: 400;
}

.ac-shop-modal__notice {
  margin: 0 0 16px;
  padding: 12px 16px;
  border-radius: 10px;
  background: #f6effa;
  color: #6d3a5c;
  font-size: 13px;
  line-height: 1.7;
}

.ac-shop-modal__all-link {
  display: inline-block;
  margin-top: 4px;
  color: #A45B8D;
  font-size: 13px;
  text-decoration: underline;
}

/* Cloned #localShopPC markup: bare .col / .area-col / .pref / h4 / h5 / ul / li */
.ac-shop-modal__body .col + .col {
  margin-top: 20px;
}

.ac-shop-modal__body .col h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 700;
}

.ac-shop-modal__body .col h4 img {
  width: 16px;
  height: 16px;
}

.ac-shop-modal__body .pref {
  margin-bottom: 14px;
}

.ac-shop-modal__body .pref h5 {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 700;
  color: #55514f;
}

.ac-shop-modal__body .pref ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ac-shop-modal__body .pref ul li {
  padding: 6px 0;
  border-bottom: 1px solid #f3efee;
  font-size: 13px;
  line-height: 1.6;
}

.ac-shop-modal__body .pref ul li:last-child {
  border-bottom: none;
}

.ac-shop-modal__body .pref ul li a {
  color: #312f2e;
  text-decoration: none;
}

.ac-shop-modal__body .pref ul li a:hover,
.ac-shop-modal__body .pref ul li a:focus-visible {
  color: #A45B8D;
  text-decoration: underline;
}

@media screen and (max-width: 768px) {
  .ac-shop-modal {
    padding: 0;
    align-items: flex-end;
  }

  .ac-shop-modal__panel {
    max-height: 90vh;
    border-radius: 16px 16px 0 0;
  }

  .ac-shop-modal.is-visible .ac-shop-modal__panel {
    transform: translateY(0);
  }
}
