/*
|---------------------------------------------------------------
| jetdrug 商品詳細 > 医薬品をご購入の方へ
|---------------------------------------------------------------
*/
.jd-pd-cartPopup {
  --jd-popup-color: #ff0000;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  padding: 40px 15px;
  font-size: clamp(14px, 3.73vw, 16px);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  margin: auto;
  background: rgba(0, 0, 0, 0);
}
.jd-pd-cartPopup:not(.js--show) {
  display: none;
  pointer-events: none;
}

.jd-pd-cartPopup-block {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 480px;
  max-height: 100%;
  margin: 0;
  padding: 0;
  color: var(--qfsd-color-foreground, #000000);
  background-color: #ffffff;
  border: 2px solid var(--jd-popup-color, #000000);
}
.jd-pd-cartPopup-block__head {
  flex-shrink: 0;
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  padding: 0.5em;
  font-size: 1.2em;
  font-weight: 500;
  text-align: center;
  color: #ffffff;
  background: var(--jd-popup-color, #000000);
}
.jd-pd-cartPopup-block__body {
  flex-grow: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  display: block;
  width: 100%;
  margin: 0;
  padding: 15px clamp(15px, 4vw, 40px);
}

.jd-pd-cartPopup-content {
  display: block;
  width: 100%;
  padding: 0.5em 0;
  font-size: 1em;
  line-height: 1.75;
}

.jd-pd-cartPopup-nav {
  width: 100%;
  margin: 15px 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.jd-pd-cartPopup-btn {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  padding: 0.5em 1em;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.25s;
  color: var(--jd-popup-color__font);
  background: var(--jd-popup-color);
}
.jd-pd-cartPopup-btn:hover {
  background: color-mix(in srgb, #000000 10%, var(--jd-popup-color));
}
.jd-pd-cartPopup-btn[data-action=submit] {
  --jd-popup-color__font: var(--qfsd-color-maincolor__font);
  --jd-popup-color: var(--qfsd-color-maincolor);
  padding: 1em 1.5em;
}
.jd-pd-cartPopup-btn[data-action=return] {
  --jd-popup-color__font: var(--qfsd-color-subcolor2__font);
  --jd-popup-color: var(--qfsd-color-subcolor2);
}
