@charset "Shift_JIS";
/* cart-restore - meganesuper.net カート復元
   このファイルは Shift_JIS です。自動生成のため直接編集しないでください。
   編集は src/cart-restore/cart-restore.css で行い、tools/build_cart_restore.py を実行します。
   本体は ASCII のみ（画面に出る文字は \uXXXX）なので転送で化けません。 */

/* ========================================
   cart-restore.css
   買い物かごの「前回カートに入れた商品があります」案内／セットのJS: cart-restore.js
   UTF-8 ソース。tools/build_cart_restore.py で Shift_JIS に変換して出力する。
   ======================================== */

.cart-restore {
  margin: 12px 10px 16px;
  padding: 14px 16px;
  border: 1px solid #d3d3d3;
  border-left: 4px solid var(--ms_blue, #006eb2);
  background: #fff;
  color: var(--ms_black, #221815);
  font-size: var(--fs-sm, 14px);
  line-height: 1.7;
  /* ダイアログは body 直下に置くため、サイト側の text-align: center を打ち消す */
  text-align: left;
}

.cart-restore--result {
  border-left-color: #6e6e6e;
}

/* サイト共通の h2 装飾を打ち消す */
.cart-restore .cart-restore__title {
  margin: 0 0 6px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font-size: var(--fs-md, 16px);
  font-weight: bold;
  line-height: 1.4;
}

.cart-restore .cart-restore__lead {
  margin: 0 0 4px;
}

.cart-restore .cart-restore__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* 商品画像はカート一覧（td.img_ 内の画像 50px 角）と同じ大きさ */
.cart-restore .cart-restore__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-top: 1px solid #e1e1e1;
}

.cart-restore .cart-restore__item:first-child {
  border-top: 0;
}

.cart-restore .cart-restore__img {
  flex: 0 0 50px;
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.cart-restore .cart-restore__info {
  flex: 1 1 auto;
  min-width: 0;
}

.cart-restore .cart-restore__spec {
  display: block;
  color: #6e6e6e;
  font-size: var(--fs-xs, 12px);
}

.cart-restore .cart-restore__more {
  margin: 2px 0 0;
  color: #6e6e6e;
  font-size: var(--fs-xs, 12px);
}

.cart-restore .cart-restore__link {
  color: var(--ms_blue, #006eb2);
  text-decoration: underline;
}

.cart-restore .cart-restore__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 16px;
  margin-top: 10px;
}

.cart-restore .cart-restore__button {
  min-width: 180px;
  min-height: 44px;
  padding: 8px 20px;
  border: 0;
  border-radius: 0;
  background: var(--ms_blue, #006eb2);
  color: #fff;
  font: inherit;
  font-weight: bold;
  cursor: pointer;
}

.cart-restore .cart-restore__button:hover {
  background: var(--ms_blue_light, #1a92dc);
}

.cart-restore .cart-restore__button:disabled {
  background: #9a9a9a;
  cursor: default;
}

.cart-restore .cart-restore__dismiss {
  padding: 8px 0;
  border: 0;
  background: none;
  color: #6e6e6e;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.cart-restore .cart-restore__status {
  margin: 6px 0 0;
  color: var(--ms_red, #c7321f);
  text-align: center;
}

.cart-restore .cart-restore__status:empty {
  display: none;
}

/* PC: カート一覧の表（1000px）に揃える。padding・枠線込みで 1000px になる幅 */
@media (min-width: 768px) {
  .cart-restore {
    width: 960px;
    margin: 0 auto;
  }
}

/* ----------------------------------------
   空のカートで 1 回だけ出すダイアログ
   見た目はサイト共通モーダル（modal-switcher.css）に合わせる
   ---------------------------------------- */
.cart-restore-dialog {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.7);
}

.cart-restore-dialog .cart-restore-dialog__wrap {
  position: relative;
  z-index: 100001;
  width: 480px;
  max-width: 90%;
  max-height: calc(100svh - 32px);
  padding-top: 24px;
  display: flex;
  flex-direction: column;
}

.cart-restore-dialog .cart-restore--dialog {
  width: auto;
  margin: 0;
  padding: 20px;
  border: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.cart-restore-dialog .cart-restore__title {
  padding-right: 16px;
}

.cart-restore-dialog .cart-restore__actions {
  margin-top: 16px;
}

.cart-restore-dialog .cart-restore-dialog__close {
  position: absolute;
  top: 4px;
  right: -16px;
  z-index: 1;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 40px;
  background: #1f1f1f;
  cursor: pointer;
}

.cart-restore-dialog .cart-restore-dialog__close::before,
.cart-restore-dialog .cart-restore-dialog__close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 22px;
  height: 3px;
  border-radius: 2px;
  background-color: #fff;
}

.cart-restore-dialog .cart-restore-dialog__close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.cart-restore-dialog .cart-restore-dialog__close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}
