/* ショッピングカート */

.cart-container {
  max-width: 800px;
  margin: auto;
  background-color: #fff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
}

.cart-items {
  /* display: flex;
  flex-direction: column;
  gap: 20px; */
  display: inline-block;
  width: 67%;
  margin-right: 2%;
  vertical-align: top;
}

.cart-item {
  position: relative; /* 相対位置に設定 */
  display: flex;
  align-items: center;
  background-color: #fafafa;
  border-radius: 10px;
  padding: 15px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  margin-bottom: 20px;
}


.delete-btn {
  position: absolute; /* 絶対位置 */
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 20px;
  color: #888;
  cursor: pointer;
  padding: 5px 10px !important;
  width: 30px !important;
}

.delete-btn:hover {
  background-color: transparent !important;; /* ホバー時の背景色 */
  color: #f00; /* ホバー時に赤く変わる */
}


.cart-item img {
  width: 100px;
  height: 100px;
  border-radius: 8px;
  object-fit: cover;
  margin-right: 20px;
}

.item-info {
  flex: 1;
}

.item-info h2 {
  margin: 0 0 8px;
  font-size: 18px;
}

.item-info .price {
  color: #888;
  font-size: 15px;
  margin-bottom: 10px;
}

.item-stock {
  text-align: right;
  min-width: 100px;
}

.item-stock p {
  margin-bottom: 8px;
}

.stock-group select {
  width: 80px;
}

.item-total{
  padding-top: 20px;
}

.cart-summary {
  text-align: right;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #ddd;
}

.checkout-btn {
  background-color: #3498db;
  color: white;
  border: none;
  padding: 12px 25px;
  font-size: 16px;
  border-radius: 6px;
  cursor: pointer;
  margin-top: 10px;
}

.checkout-btn:hover {
  background-color: #2980b9;
}

/* 詳細 */
/* アコーディオンコンテナのスタイル */
.accordion-container {
  width: 500px;
}

/* 各アコーディオンのスタイル */
.accordion {
  width: 100%;
  max-width: 550px;
  border: 1px solid #ccc;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.accordion-label {
  display: block;
  padding: 15px;
  background: #f0f0f0;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
}

.accordion-label:hover {
  background: #ddd;
}

/* チェックボックスを非表示 */
.accordion input[type="checkbox"] {
  display: none;
}

/* アコーディオンのコンテンツ */
.accordion-content {
  max-height: 0;
  overflow: hidden;
  background: #fafafa;
  padding: 0 15px;
  transition: max-height 0.3s ease;
}

/* チェックボックスがオンのときのスタイル */
.accordion input[type="checkbox"]:checked ~ .accordion-content {
  max-height: 1500px; /* 任意の高さに調整 */
  padding: 15px;
}

.accordion-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  padding: 8px 12px;
  background-color: #f0f0f0;
  font-weight: bold;
  user-select: none;
}

.accordion-icon {
  transition: transform 0.3s ease;
}

/* チェックされてるときに矢印を上に向ける */
.accordion input[type="checkbox"]:checked + .accordion-label .accordion-icon {
  transform: rotate(180deg);
}


/* アコーディオン内のテーブル */

.material-fabric{
  text-align: center;
}

.order-cart-list,
.order_cart_detail{
  width: 100%;
}

.radio-group{
  text-align: center;
  margin-top: 20px;
  margin-bottom: 20px;
}

table.order_cart_detail th {
  width: 30%;
}

table.order_cart_detail td {
  text-align: center;
  width: 65%;
  border: 0;
  border-bottom: 1px solid #aaaa99;
  vertical-align: middle;
  padding: 6px 8px;
}


.stock-group{
  display: flex;
}

/* 合計(右側ブロック) */
.tyot-cart-total{
  display: inline-block;
  width: 30%;
  background: transparent;
  max-width: 375px;
  position: relative;
}

.tyot-cart-total-list{
  padding: 17px 20px;
  border: 1px solid #fff;
  background-color: #dfdfdf;
}

.tyot-cart-list,
.tyot-cart-title,
.tyot-cart-value{
  padding-top: 10px;
  padding-bottom: 10px;
}

.count-list,
.discount-list{
  border-bottom: 1px solid #5a5959;
}

.tyot-cart-title{
    width: 160px;
    text-align: left;
    color: #5b5b5b;
    position: relative;
    float: left;
}

.tyot-cart-value {
  position: relative;
  display: inline-block;
  width: 140px;
  text-align: right;
}

/* オプション */

.tyot-option-item {
  border-top: 1px solid #dadada;
}

.tyot-option-item:last-child {
  border-bottom: 1px solid #dadada;
}

.tyot-btn-coupon,
.tyot-btn-giftoption{
  align-items: center;
  background-color: initial;
  border: none;
  display: flex;
  justify-content: space-between;
  margin: 0;
  max-width: 800px;
  outline: 0;
  overflow: visible;
  padding: 0 2px;
  position: relative;
  text-align: left;
  text-decoration: none;
  width: 100%;
  min-height: 70px;
}

.tyot-btn-coupon:hover {
  background-color: transparent !important; /* ホバー時の背景色 */
  color: #000;
}

.tyot-coupon-wrapper,
.tyot-giftoption-wrapper{
  align-items: center;
  display: flex;
  width: calc(100% - 48px);
  justify-content: space-between;
}

.tyot-primary,
.tyot-shopping-contiue{
  text-align: center;
}

.tyot-btn-primary{
  background-color: #000;
  color: #fff;
}

.tyot-btn-shopping-contiue{
  background-color: #fff;
  color: #000;
}

/* スマホレスポンシブ対応 */
@media screen and (max-width: 480px) {
  .cart-items {
    display: block;
    width: 100%;
  }
  .cart-item {
    display: block;
  }
  .accordion-container {
    width: 100%;
  }
  .tyot-cart-total{
    display:  block;
    width: 100%;
  }
  .tyot-option{
    padding: 10px;
  }
}