* {
  margin: 0;
  padding: 0;
  font-weight: 700;
}

ol,
ul,
li {
  list-style: none;
}

a {
  text-decoration: none;
}

.cart-progress-item:nth-of-type(1) .cart-progress-spot::before {
  content: "";
  width: 24px;
  height: 24px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background-color: #ffffff;
}

.cart-column-img img {
  width: 160px;
  height: auto;
}

.cart-actions .ec-blockBtn--action img,
.cart-actions .ec-blockBtn--cancel img {
  height: auto;
}

@media screen and (max-width: 840px) {
  .cart-row {
    display: flex;
    flex-direction: column;
    gap: 0.5em;
    padding: 1em 0;
    border-bottom: 1px solid #d5daed;
  }

  .cart-column-delete,
  .cart-column-content,
  .cart-column-amountColumn,
  .cart-column-subtotalColumn {
    width: 100%;
  }

  .cart-column-amountColumn {
    display: flex;
    align-items: center;
    gap: 0.5em;
  }

  .cart-column-subtotalColumn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.5em;
  }

  .cart-column-subtotalColumn::before {
    content: "小計：";
    font-weight: bold;
    margin-right: 0.5em;
  }
}

/*── 全体レイアウト ──*/
.wrapper {
  margin: 0 10% 0;
}

@media screen and (max-width: 840px) {
  .wrapper {
    margin: 0 5% 0;
  }
}

/*── 見出しエリア ──*/
h1 {
  padding: 30px 0 20px;
  text-align: center;
  border-bottom: 1px solid #111111;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
}

@media screen and (max-width: 840px) {
  h1 {
    font-size: 18px;
  }
}

/*── タイトルアイコン付き ──*/
.ec-title {
  display: flex;
  align-items: center;
}

.title-ic {
  padding-right: 10px;
}

.ec-title span {
  color: #111111;
}

/* .ec-title img,
.title-ic {
  width: 35px;
} */
@media screen and (max-width: 840px) {

  .ec-title img,
  .title-ic {
    width: 22px;
  }
}

/*── 見出し下の縦線 ──*/
.vertical-line {
  width: 50px;
  height: 20px;
  background-color: #ffffff;
  position: absolute;
  bottom: -2px;
  display: flex;
  justify-content: center;
}

.vertical-line::after {
  content: "";
  border-left: 1px solid #111111;
}

/*── 購入ステッププログレスバー ──*/
.cart-progress-list,
.ec-progress {
  display: flex;
  width: 70%;
  margin: 0 auto;
  padding: 50px 0;
  justify-content: space-between;
  position: relative;
}

.cart-progress-list::before,
.ec-progress::before {
  content: "";
  border-bottom: 2px solid #9ccb8c;
  width: 95%;
  position: absolute;
  top: 72.5px;
  left: 30px;
}

@media screen and (max-width: 840px) {

  .cart-progress-list,
  .ec-progress {
    width: 90%;
  }

  .cart-progress-list::before,
  .ec-progress::before {
    width: 80% !important;
  }
}

.cart-progress-item,
.ec-progress__item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cart-progress-spot,
.ec-progress__number {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background-color: #9ccb8c;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #ffffff;
}

.cart-progress-label,
.ec-progress__label {
  padding-top: 10px;
  font-size: 12px;
  color: #9ccb8c;
}

.is-complete .ec-progress__number::before {
  content: "";
  width: 24px;
  height: 24px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background-color: #ffffff;
}

/*── カートテーブル ──*/
.cart-table ul {
  display: flex;
  gap: 10px;
}

.cart-header {
  background-color: #f8f9fc;
  text-align: center;
}

.cart-header-label {
  flex: 1;
  border-bottom: solid 1px #92c980;
  padding: 15px 0;
}

.cart-row {
  display: flex;
}

.cart-row li {
  flex: 1;
  display: flex;
  align-items: center;
  border-bottom: solid 1px #d5daed;
  padding: 10px;
}

.cart-column-delete,
.cart-column-amountColumn {
  justify-content: center;
}

.cart-column-content {
  flex: 9;
  display: flex;
  align-items: flex-start;
}

.cart-column-img img {
  width: 160px;
  height: 226px;
  object-fit: contain;
}

.cart-column-summary {
  padding-left: 10px;
}

.cart-column-name a {
  color: #629649;
}

.cart-column-unitPrice {
  margin-top: 10px;
}

.cart-column-amountColumn {
  flex: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cart-column-amount {
  margin-bottom: 10px;
  color: #111111;
}

.cart-column-amountUpDown {
  display: flex;
  gap: 10px;
}

.cart-column-amountUpButton {
  background-color: #629649;
}

.ec-cartRow__amountDownButtonDisabled {
  background-color: #d9d9d9;
}

.cart-column-subtotalColumn {
  flex: 3;
  justify-content: flex-end;
}

/*── アラート表示 ──*/
.ec-cartRole__error .ec-alert-warning__text {
  color: #e8353e;
  /* 実際は赤系ですが、.ec-errorMessage を参照 */
}

/*── カートアクション ──*/
.cart-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  background-color: #f8f9fc;
  margin: 20px 0 0 auto;
  padding: 0 20px 20px;
  width: fit-content;
}

.cart-actions-total {
  display: flex;
  justify-content: flex-end;
  border-bottom: 1px solid #d5daed;
  margin-bottom: 10px;
  width: 90%;
  padding: 20px 0;
  color: #111111;
}

.cart-total-totalAmount {
  width: max(110px);
  text-align: end;
  color: #e8353e;
}

/*── ボタンスタイル ──*/
.ec-blockBtn--action {
  display: block;
  width: 280px;
  padding: 15px 0;
  border-radius: 30px;
  text-align: center;
  background-color: #e8353e;
  color: #ffffff;
  position: relative;
  margin-bottom: 20px;
}

.ec-blockBtn--action::after {
  content: "→";
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
}

.ec-blockBtn--action:hover {
  background-color: #97272c;
}

.ec-blockBtn--cancel {
  display: flex;
  width: 280px;
  padding: 15px 0;
  border-radius: 30px;
  text-align: center;
  background-color: #629649;
  color: #ffffff;
  position: relative;
  align-items: center;
  justify-content: center;
}

.ec-blockBtn--cancel::before {
  content: "←";
  position: absolute;
  top: 50%;
  left: 20px;
  transform: translateY(-50%);
}

.ec-blockBtn--cancel:hover {
  background-color: #3d5d2e;
}

@media screen and (max-width: 840px) {
  .ec-blockBtn--cancel {
    width: 200px;
  }

  .ec-blockBtn--action {
    width: 200px;
    font-size: 14px;
  }
}

/* カート関連 */
.ec-alert-warning__text {
  margin: 30px;
  font-size: 14px;
}

.ec-rectHeading h2 {
  border-left: 2px solid #629649;
  margin-top: 40px;
}

/* .ec-orderAccount__account {
  color: #555555;
} */
.ec-imageGrid {
  display: flex;
  align-items: flex-start;
}

.ec-imageGrid__img img {
  width: 10vw;
  height: 6vw;
  object-fit: contain;
}

@media screen and (max-width: 840px) {
  .ec-imageGrid__img img {
    width: 15vw;
    height: 10vw;
    object-fit: contain;
  }
}

.ec-imageGrid__content {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  height: 100%;
}

.ec-imageGrid__content>p,
.ec-cartRole__progress,
.ec-cartRole__totalText,
.cart-header,
.cart-row {
  /* color: #555555; */
  color: #111111;
}

.ec-imageGrid__content>p:first-child {
  color: #629649;
}

.subtotal {
  margin-left: 30px;
}

iframe[name^="__privateStripeFrame"],
div[class^="_PrivateStripeElement"],
div[class*="StripeElement"] {
  display: none !important;
}

.ec-orderDelivery__actions {
  padding-bottom: 15px;
  border-bottom: 1px solid #d5daed;
}

.ec-input textarea {
  width: 98%;
  padding: 20px 0 0 20px;
}

#paypal-credit-card {
  color: #555555;
  font-size: 16px;
}

.ec-radio div {
  margin: 20px 0 20px 0;
}

.ec-select.third {
  display: flex;
  justify-content: space-between;
  margin-top: 15px;
}

.ec-pageHeader {
  display: flex;
  justify-content: start;
  align-items: center;
  position: absolute;
  top: -15px;
}

.ec-pageHeader h1 {
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-bottom: none;
}

.address {
  font-size: 14px;
  margin: 10px 0;
}

/* ----------インラインスタイル---------- */
.cart-column-amountDownButtonEnabled {
  background-color: #629649;
}

.cart-table ul li:nth-child(1) {
  flex: 1;
  color: #111111;
}

.cart-table ul li:nth-child(2) {
  flex: 9;
  color: #111111;
}

.cart-table ul li:nth-child(3) {
  flex: 3;
  color: #111111;
}

.cart-table ul li:nth-child(4) {
  flex: 3;
  color: #111111;
}

@media screen and (max-width: 820px) {
  .cart-table ul li:nth-child(1) {
    flex: 3;
  }

  .cart-table ul li:nth-child(2) {
    flex: 5;
  }

  .cart-table ul li:nth-child(3) {
    flex: 3;
  }

  .cart-header-label:nth-child(4) {
    display: none;
  }
}

.cart-column-deleteIc {
  padding: 2px 7px;
  background-color: #629649;
  color: #ffffff;
  border-radius: 2px;
}

.cart-column-amountUpDown a,
.ec-cartRow__amountDownButtonDisabled {
  display: flex;
  justify-content: center;
  padding: 12px 15px;
  border-radius: 50%;
  color: #ffffff;
}

.cart-column-sutbtotal {
  color: #111111;
}

/* タブメニュー */
.tab__menu {
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

@media screen and (max-width: 840px) {
  .tab__menu {
    font-size: 12px;
  }
}

.tab__menu-item {
  list-style: none;
  padding: 8px 0;
  text-align: center;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1;
  border-bottom: 1px solid #d5daed;
}

.tab_book,
.tab_photo {
  color: #111111;
}

.tab_book.is-active {
  color: #09860d;
  border-top: 1px solid #d5daed;
  border-right: 1px solid #d5daed;
  border-bottom: 1px solid transparent;
  border-left: 1px solid #d5daed;
  position: relative;
}

.tab_book.is-active img {
  filter: brightness(0) saturate(100%) invert(32%) sepia(94%) saturate(840%) hue-rotate(85deg) brightness(93%) contrast(98%);
}

.tab_photo.is-active {
  color: #109f98;
  border-top: 1px solid #d5daed;
  border-right: 1px solid #d5daed;
  border-bottom: 1px solid transparent;
  border-left: 1px solid #d5daed;
  position: relative;
}

.tab_photo.is-active img {
  filter: invert(52%) sepia(16%) saturate(1978%) hue-rotate(128deg) brightness(94%) contrast(93%);
}

.tab__menu-item.is-active::after {
  content: "";
  width: 97%;
  position: absolute;
  bottom: 0;
  border-bottom: 1px solid #d5daed;
}

/* タブパネル */
.tab__panel {
  width: 100%;
  min-height: 160px;
  box-sizing: border-box;
  border-top: 1px solid #d5daed;
  border-right: 1px solid #d5daed;
  border-bottom: 1px solid #d5daed;
  border-left: 1px solid #d5daed;
  padding: 20px;
  margin-bottom: 100px;
}

.tab__panel-box {
  padding: 10px 15px;
  border-radius: 10px;
}

.tab__panel-box001,
.tab__panel-box002 {
  display: none;
}

.tab__panel-box.is-show {
  display: block;
}

.cart-table h2 {
  border-left: 2px solid #629649;
  padding: 5px 0 5px 10px;
  color: #111111;
  margin: 10px 0 10px;
}

@media screen and (max-width: 820px) {
  .cart-row {
    display: grid !important;
    grid-template-columns: 3fr 5fr 3fr !important;
    grid-template-rows: auto auto;
    grid-template-areas:
      "del content amt"
      "subtotal subtotal subtotal";
    gap: 0.5em !important;
    padding: 1em 0 !important;
    border-bottom: 1px solid #d5daed !important;
  }
}

/* カートSP版適応 */
@media screen and (max-width: 840px) {
  .cart-header {
    display: none;
  }

  .cart-row {
    display: grid !important;
    grid-template-columns: 80px 1fr 60px;
    grid-template-rows: auto auto;
    grid-template-areas:
      "img info qty"
      "subtotal subtotal subtotal";
    gap: 0.5em !important;
    padding: 1em 0 !important;
    border-bottom: 1px solid #d5daed !important;
  }

  .cart-column-img {
    grid-area: img;
  }

  .cart-column-content {
    grid-area: info;
    display: flex;
    flex-direction: column;
  }

  .cart-column-amountColumn {
    grid-area: qty;
  }

  .cart-column-subtotalColumn {
    grid-area: subtotal;
    display: flex;
    align-items: center;
  }

  .cart-column-img img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  .cart-column-subtotalColumn::before {
    content: "小計：";
    font-weight: bold;
    margin-right: 0.25em;
  }

  .cart-column-deleteIc {
    /* position: absolute; */
    top: 0.5em;
    left: 0.5em;
    padding: 4px 6px;
  }

  .cart-column-amountUpDown a,
  .ec-cartRow__amountDownButtonDisabled {
    padding: 8px;
    border-radius: 50%;
  }

  .ec-blockBtn--action,
  .ec-blockBtn--cancel {
    width: 100%;
    max-width: none;
    font-size: 14px;
  }
}

/* ▼ カートのタブ説明文 ▼ */
.cart-tab-notice {
  margin: 16px 0 20px;
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
}

.cart-tab-notice p {
  margin: 0;
}

.cart-tab-notice-main {
  color: #E12382;
  font-weight: bold;
}

.cart-tab-notice-sub {
  color: #333;
}

.cart-tab-notice-sub img {
  vertical-align: middle;
  margin-right: 4px;
}

.cart-tab-notice-sub .shop-separator {
  margin: 0 6px;
}