/****************************
カゴの中、精算画面用CSS
****************************/
.cart-item,
.cart-item * {
  float: none;
}
.cart-item {
  display: flex;
}
.cart-items li {
  float: none;
  display: block;
}
.cart-items ul {
  margin: 0;
  padding: 0;
}

.cart-img img {
  display: block;
  max-width: 100%;
}
/* ulリセット */
.cart-wrapper ul {
  margin: 0;
  padding: 0;
}

/* 進捗バー */
.stepbar {
	display: flex;
	justify-content: space-between;
	list-style: none;
	padding: 0;
	margin-bottom: 10px;
	counter-reset: step;
}
.stepbar li {
	flex: 1;
	text-align: center;
	color: #aaa;
	font-size: 14px;
	position: relative;
}
.stepbar li::before {
	counter-increment: step;
	content: counter(step);
	display: inline-block;
	width: 28px;
	height: 28px;
	line-height: 28px;
	border-radius: 50%;
	background: #ddd;
	margin-bottom: 8px;
}
/* step-1～4 */
.step-1 li:nth-child(-n+1),
.step-2 li:nth-child(-n+2),
.step-3 li:nth-child(-n+3),
.step-4 li:nth-child(-n+4) {
	color: #b13a3a;
	font-weight: 600;
}
.step-1 li:nth-child(-n+1)::before,
.step-2 li:nth-child(-n+2)::before,
.step-3 li:nth-child(-n+3)::before,
.step-4 li:nth-child(-n+4)::before {
	background: #b13a3a;
	color: #fff;
}


/* 全体レイアウト */
.cart-wrapper {
  display: flex;
  gap: 30px;
  margin-top: 20px;
  border-bottom: 1px solid #eee;

}

.cart-items {
  flex: 2;
}

.cart-summary {
  flex: 1;
}

/* 商品カード */
.cart-item {
  display: flex;
  align-items: center;
  border-bottom: 1px solid #eee;
  padding: 15px 0;
  gap: 15px;
}

.cart-img img {
  width: 90px;
  border-radius: 8px;
}

.cart-info {
  flex: 1;
}

.cart-top {
  display: flex;
  justify-content: space-between;
  font-weight: bold;
}

.cart-delete {
  color: #999;
  font-size: 12px;
}

.cart-meta {
  margin-top: 8px;
  font-size: 13px;
  color: #555;
}

.cart-count {
  width: 60px;
  padding: 3px;
}

/* 価格 */
.cart-price {
  font-weight: bold;
  font-size: 16px;
}

/* 合計 */
.cart-total-line {
  display: flex;
  justify-content: space-between;
  padding: 15px 0;
  font-size: 18px;
  border-top: 2px solid #333;
}

.total-price {
  font-weight: bold;
  color: #d60000;
}
.cart-line {
  display: flex;
  justify-content: space-between;
  padding: 7px 0;
  font-size: 18px;
}
.cart-line-price {
  font-size: 15px;
}

/* サマリー */
.summary-box {
  border: 1px solid #eee;
  padding: 20px;
  border-radius: 10px;
  position: sticky;
  top: 20px;
}

.summary-title {
  font-weight: bold;
  margin-bottom: 10px;
}

.summary-total {
  display: flex;
  justify-content: space-between;
  font-size: 18px;
  margin-bottom: 15px;
}

/* ボタン */

.submitBT{
  width: 100%;
  padding: 12px;
  background: #ff6600;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;


}

.main-btn {
  width: 100%;
  padding: 12px;
  background: #ff6600;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
}

/* ログイン */
.login-area {
  margin-top: 20px;
}

.login-area input {
  width: 100%;
  padding: 8px;
  margin-bottom: 8px;
}

/* 戻る */
.back-link {
  display: block;
  margin-top: 15px;
  text-align: center;
  color: #666;
}
/* 削除 */
.cart-delete {
  display: inline-flex;
  align-items: center;   /* 縦中央揃え */
  gap: 6px;              /* アイコンと文字の間 */
  text-decoration: none; /* 下線消す */
  color: #666;
  font-size: 13px;
}

.delete-icon {
  width: 22px;   /* ←ここで大きさ調整 */
  height: 22px;
  fill: #999;
  flex-shrink: 0;
}
/* hover */
.cart-delete:hover {
  color: #d60000;
}

.cart-delete:hover .delete-icon {
  fill: #d60000;
}
.delete-text {
  font-size: 11px;
  margin-left: 4px;
  color: #999;
}
/* 右側エリア */
.cart-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end; /* 右揃え */
  gap: 6px;
  min-width: 100px; /* ←重要：幅固定でズレ防止 */
}

/* 価格 */
.cart-price {
  font-weight: bold;
  font-size: 16px;
  text-align: right;
}
/* スマホ対応 */
@media (max-width: 768px) {
  .cart-wrapper {
    flex-direction: column;
  }
  .cart-summary {
    order: -1;
  }
  .cart-delete {
    width: 40px;
    height: 40px;
  }
}

.input_form input[name="deliveryyy"],
.input_form select[name="deliverymm"],
.input_form select[name="deliverydd"] {
  display: inline-block;
  width: auto;
  margin-right: 6px;
}

