/* =========================================================
   AtWell Welcart Cart
   ========================================================= */

/* ---------- カートページ全体 ---------- */

#content.cart-page {
	max-width: 1120px;
	margin: 0 auto;
	padding: 40px 24px 80px;
}

#content.cart-page .post {
	margin: 0;
}

#content.cart-page .cart_page_title {
	margin: 0 0 32px;
	font-size: 28px;
	font-weight: 700;
	line-height: 1.4;
	color: #222;
}


/* =========================================================
   STEP NAVIGATION
   ========================================================= */

#content.cart-page .cart_navi {
	margin: 0 0 48px;
}

#content.cart-page .cart_navi ul {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	margin: 0;
	padding: 0;
	list-style: none;
	border-bottom: 1px solid #dfe4e7;
}

#content.cart-page .cart_navi li {
	position: relative;
	margin: 0;
	padding: 0 10px 16px;
	text-align: center;
	font-size: 14px;
	font-weight: 500;
	color: #8a9298;
}

#content.cart-page .cart_navi li.current {
	color: #222;
	font-weight: 700;
}

#content.cart-page .cart_navi li.current::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -1px;
	height: 3px;
	background: #9dcc27;
}


/* =========================================================
   UPDATE BUTTON
   後で数量自動更新にするため一旦非表示
   ========================================================= */

#content.cart-page #cart .upbutton {
	display: none;
}


/* =========================================================
   CART TABLE
   ========================================================= */

#content.cart-page #cart_table {
	width: 100%;
	margin: 0;
	border: 0;
	border-collapse: collapse;
	table-layout: auto;
}

#content.cart-page #cart_table thead {
	border-bottom: 1px solid #dfe4e7;
}

#content.cart-page #cart_table thead th {
	padding: 0 10px 14px;
	border: 0;
	background: transparent;
	font-size: 13px;
	font-weight: 600;
	color: #687078;
	white-space: nowrap;
}

#content.cart-page #cart_table tbody tr {
	border-bottom: 1px solid #e5e9eb;
}

#content.cart-page #cart_table tbody td {
	padding: 24px 10px;
	border: 0;
	background: transparent;
	vertical-align: middle;
}


/* No. */

#content.cart-page #cart_table .num {
	width: 42px;
	text-align: center;
}


/* ---------- 商品画像 ---------- */

#content.cart-page #cart_table .thumbnail {
	width: 100px;
}

#content.cart-page #cart_table .thumbnail img {
	display: block;
	width: 84px;
	height: 84px;
	max-width: none;
	object-fit: cover;
	border-radius: 4px;
}


/* ---------- 商品名 ---------- */

#content.cart-page #cart_table .productname {
	min-width: 280px;
	text-align: left;
}

#content.cart-page #cart_table tbody .productname {
	font-size: 15px;
	font-weight: 600;
	line-height: 1.7;
	color: #222;
}

#content.cart-page #cart_table .productname a {
	color: #222;
	text-decoration: none;
}

#content.cart-page #cart_table .productname a:hover {
	color: #79a900;
}


/* ---------- 単価・小計 ---------- */

#content.cart-page #cart_table .unitprice,
#content.cart-page #cart_table .subtotal {
	min-width: 105px;
	text-align: right;
	white-space: nowrap;
	font-size: 15px;
}

#content.cart-page #cart_table tbody .subtotal {
	font-weight: 700;
}


/* =========================================================
   QUANTITY
   現段階では入力欄を整える
   次STEPで − / ＋ を追加
   ========================================================= */

#content.cart-page #cart_table td.quantity {
	width: 130px;
	text-align: center;
}

#content.cart-page #cart_table input.quantity {
	width: 54px !important;
	height: 44px;
	margin: 0;
	padding: 0 6px;
	border: 1px solid #cfd5d8;
	border-radius: 4px;
	background: #fff;
	box-sizing: border-box;
	text-align: center;
	font-size: 16px;
	line-height: 44px;
}


/* ---------- 在庫 ---------- */

#content.cart-page #cart_table .stock {
	width: 75px;
	text-align: center;
	font-size: 14px;
}


/* ---------- 削除 ---------- */

#content.cart-page #cart_table .action {
	width: 80px;
	text-align: right;
}

#content.cart-page #cart_table .delButton {
	min-width: 0;
	margin: 0;
	padding: 8px 12px;
	border: 1px solid #d9dee1;
	border-radius: 4px;
	background: #fff;
	color: #687078;
	font-size: 13px;
	cursor: pointer;
}

#content.cart-page #cart_table .delButton:hover {
	border-color: #aeb6bb;
	color: #222;
}


/* =========================================================
   TOTAL
   ========================================================= */

#content.cart-page #cart_table tfoot th {
	padding: 22px 10px;
	border: 0;
	background: #f7f9f9;
	font-size: 15px;
}

#content.cart-page #cart_table tfoot .amount {
	font-size: 20px;
	font-weight: 700;
	color: #222;
	white-space: nowrap;
}


/* ---------- 通貨表示 ---------- */

#content.cart-page .currency_code {
	margin-top: 10px;
	text-align: right;
	font-size: 12px;
	color: #8a9298;
}


/* =========================================================
   BOTTOM BUTTONS
   ========================================================= */

#content.cart-page .send {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 20px;
	margin-top: 36px;
}

#content.cart-page .send input,
#content.cart-page .send button {
	min-height: 52px;
	padding: 0 30px;
	border-radius: 4px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
}

/* 買い物を続ける */

#content.cart-page .send input[name="backButton"] {
	border: 1px solid #cfd5d8;
	background: #fff;
	color: #333;
}

/* 次へ */

#content.cart-page .send input[name="customerinfo"] {
	margin-left: auto;
	border: 1px solid #8fbd20;
	background: #9dcc27;
	color: #fff;
}


/* =========================================================
   MOBILE
   ========================================================= */

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

	#content.cart-page {
		padding: 28px 16px 60px;
	}

	#content.cart-page .cart_page_title {
		margin-bottom: 24px;
		font-size: 24px;
	}


	/* ステップ */

	#content.cart-page .cart_navi {
		margin-bottom: 32px;
	}

	#content.cart-page .cart_navi li {
		padding: 0 3px 12px;
		font-size: 11px;
	}


	/* テーブルをカード化 */

	#content.cart-page #cart_table,
	#content.cart-page #cart_table tbody,
	#content.cart-page #cart_table tr,
	#content.cart-page #cart_table td {
		display: block;
		width: 100%;
		box-sizing: border-box;
	}

	#content.cart-page #cart_table thead {
		display: none;
	}

	#content.cart-page #cart_table tbody tr {
		position: relative;
		display: grid;
		grid-template-columns: 92px 1fr;
		column-gap: 16px;
		padding: 20px 0;
	}

	#content.cart-page #cart_table tbody td {
		padding: 0;
		border: 0;
	}


	/* No.は非表示 */

	#content.cart-page #cart_table tbody .num {
		display: none;
	}


	/* 商品画像 */

	#content.cart-page #cart_table tbody .thumbnail {
		grid-column: 1;
		grid-row: 1 / span 5;
		width: 92px;
	}

	#content.cart-page #cart_table .thumbnail img {
		width: 92px;
		height: 92px;
	}


	/* 商品名 */

	#content.cart-page #cart_table tbody .productname {
		grid-column: 2;
		min-width: 0;
		margin-bottom: 10px;
		font-size: 15px;
	}


	/* 単価 */

	#content.cart-page #cart_table tbody .unitprice {
		grid-column: 2;
		width: auto;
		min-width: 0;
		margin-bottom: 12px;
		text-align: left;
	}

	#content.cart-page #cart_table tbody .unitprice::before {
		content: "単価 ";
		margin-right: 5px;
		font-size: 12px;
		font-weight: 400;
		color: #8a9298;
	}


	/* 数量 */

	#content.cart-page #cart_table tbody td.quantity {
		grid-column: 2;
		width: auto;
		margin-bottom: 12px;
		text-align: left;
	}

	#content.cart-page #cart_table tbody td.quantity::before {
		content: "数量";
		margin-right: 10px;
		font-size: 13px;
		color: #687078;
	}


	/* 小計 */

	#content.cart-page #cart_table tbody .subtotal {
		grid-column: 2;
		width: auto;
		min-width: 0;
		text-align: left;
		font-size: 17px;
	}

	#content.cart-page #cart_table tbody .subtotal::before {
		content: "小計 ";
		margin-right: 5px;
		font-size: 12px;
		font-weight: 400;
		color: #8a9298;
	}


	/* 在庫表示は省略 */

	#content.cart-page #cart_table tbody .stock {
		display: none;
	}


	/* 削除 */

	#content.cart-page #cart_table tbody .action {
		grid-column: 2;
		width: auto;
		margin-top: 12px;
		text-align: left;
	}


	/* 合計 */

	#content.cart-page #cart_table tfoot {
		display: table;
		width: 100%;
		margin-top: 8px;
	}

	#content.cart-page #cart_table tfoot tr {
		display: table-row;
	}

	#content.cart-page #cart_table tfoot th {
		display: table-cell;
		padding: 18px 8px;
	}


	/* ボタン */

	#content.cart-page .send {
		flex-direction: column-reverse;
		gap: 10px;
		margin-top: 28px;
	}

	#content.cart-page .send input,
	#content.cart-page .send button {
		width: 100%;
		min-height: 52px;
		margin: 0 !important;
	}

}

/* =========================================================
   QUANTITY CONTROL
   ========================================================= */

#content.cart-page .atwell-quantity-control {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 44px;
	border: 1px solid #cfd5d8;
	border-radius: 4px;
	overflow: hidden;
	background: #fff;
}

#content.cart-page .atwell-quantity-control input.quantity {
	width: 48px !important;
	height: 42px;
	margin: 0;
	padding: 0;
	border: 0 !important;
	border-left: 1px solid #e1e5e7 !important;
	border-right: 1px solid #e1e5e7 !important;
	border-radius: 0;
	box-shadow: none;
	text-align: center;
	font-size: 16px;
	background: #fff;
}

#content.cart-page .atwell-quantity-button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	margin: 0;
	padding: 0;
	border: 0;
	background: #fff;
	color: #333;
	font-size: 20px;
	font-weight: 400;
	line-height: 1;
	cursor: pointer;
}

#content.cart-page .atwell-quantity-button:hover {
	background: #f4f6f6;
}

#content.cart-page .atwell-quantity-button:active {
	background: #e9edef;
}

/* =========================================================
   SHIPPING NOTE
   ========================================================= */

#content.cart-page .atwell-cart-shipping-note {
	margin-top: 16px;
	text-align: right;
	line-height: 1.7;
}

#content.cart-page .atwell-cart-shipping-note__main {
	display: block;
	font-size: 14px;
	font-weight: 700;
	color: #333;
}

#content.cart-page .atwell-cart-shipping-note__sub {
	display: block;
	margin-top: 2px;
	font-size: 12px;
	font-weight: 400;
	color: #7b8388;
}

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

	#content.cart-page .atwell-cart-shipping-note {
		margin-top: 14px;
		text-align: left;
	}

	#content.cart-page .atwell-cart-shipping-note__main {
		font-size: 14px;
	}

	#content.cart-page .atwell-cart-shipping-note__sub {
		font-size: 12px;
	}

}

/* 「通貨：円」を非表示 */
#content.cart-page .currency_code {
	display: none;
}


/* =========================================================
   CART FINAL ADJUSTMENTS
   ========================================================= */

/* 在庫状態は購入者向けカートでは非表示 */
#content.cart-page #cart_table th.stock,
#content.cart-page #cart_table td.stock {
	display: none;
}

/* 在庫欄を消した分、商品名に余裕を持たせる */
#content.cart-page #cart_table .productname {
	min-width: 320px;
}

/* =========================================================
   CUSTOMER INFORMATION
   ========================================================= */

/* ---------- 全体 ---------- */

#customer-info {
	max-width: 100%;
}

#customer-info h5 {
	margin: 42px 0 24px;
	padding: 0 0 12px;
	border-bottom: 2px solid #9dcc27;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.5;
	color: #222;
}

#customer-info h5:first-of-type {
	margin-top: 36px;
}


/* =========================================================
   会員ログイン
   ========================================================= */

#customer-info form[name="customer_loginform"] {
	max-width: 640px;
	margin-bottom: 52px;
	padding: 28px 32px;
	border: 1px solid #e1e5e7;
	border-radius: 6px;
	background: #fafbfb;
}

#customer-info form[name="customer_loginform"] .customer_form {
	width: 100%;
	margin: 0;
	border: 0;
	border-collapse: collapse;
}

#customer-info form[name="customer_loginform"] .customer_form tr,
#customer-info form[name="customer_loginform"] .customer_form th,
#customer-info form[name="customer_loginform"] .customer_form td {
	display: block;
	width: 100%;
	box-sizing: border-box;
	border: 0;
	background: transparent;
}

#customer-info form[name="customer_loginform"] .customer_form th {
	padding: 0 0 7px;
	text-align: left;
	font-size: 14px;
	font-weight: 600;
	color: #333;
}

#customer-info form[name="customer_loginform"] .customer_form td {
	padding: 0 0 20px;
}

#customer-info form[name="customer_loginform"] input[type="text"],
#customer-info form[name="customer_loginform"] input[type="password"] {
	width: 100%;
	height: 48px;
	padding: 0 14px;
	border: 1px solid #cfd5d8;
	border-radius: 4px;
	background: #fff;
	box-sizing: border-box;
	font-size: 16px;
}

#customer-info form[name="customer_loginform"] #nav {
	margin: -4px 0 22px;
	font-size: 13px;
}

#customer-info form[name="customer_loginform"] #nav a {
	color: #657078;
	text-decoration: underline;
}

#customer-info form[name="customer_loginform"] .send {
	justify-content: flex-end;
	margin-top: 0;
}

#customer-info .to_memberlogin_button {
	min-width: 220px;
	border: 1px solid #8fbd20 !important;
	background: #9dcc27 !important;
	color: #fff !important;
}


/* =========================================================
   非会員・お客様情報入力
   ========================================================= */

#customer-info form[name="customer_form"] {
	width: 100%;
}

#customer-info form[name="customer_form"] .customer_form {
	width: 100%;
	margin: 0;
	border: 0;
	border-collapse: separate;
	border-spacing: 0 14px;
}

#customer-info form[name="customer_form"] .customer_form th {
	width: 190px;
	padding: 11px 24px 11px 0;
	border: 0;
	background: transparent;
	text-align: left;
	vertical-align: top;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.5;
	color: #333;
}

#customer-info form[name="customer_form"] .customer_form td {
	padding: 0 10px 0 0;
	border: 0;
	background: transparent;
	vertical-align: top;
}


/* ---------- 必須マーク ---------- */

#customer-info .customer_form th em {
	margin-right: 4px;
	color: #d9534f;
	font-style: normal;
	font-weight: 700;
}


/* ---------- 入力欄 ---------- */

#customer-info form[name="customer_form"] input[type="text"],
#customer-info form[name="customer_form"] input[type="email"],
#customer-info form[name="customer_form"] input[type="tel"],
#customer-info form[name="customer_form"] input[type="password"],
#customer-info form[name="customer_form"] select {
	height: 46px;
	padding: 0 12px;
	border: 1px solid #cfd5d8;
	border-radius: 4px;
	background: #fff;
	box-sizing: border-box;
	font-size: 15px;
}

#customer-info form[name="customer_form"] input[type="text"],
#customer-info form[name="customer_form"] input[type="email"],
#customer-info form[name="customer_form"] input[type="tel"],
#customer-info form[name="customer_form"] input[type="password"] {
	width: min(100%, 420px);
}

#customer-info form[name="customer_form"] select {
	min-width: 180px;
}


/* ---------- 姓・名など横並び ---------- */

#customer-info form[name="customer_form"] .customer_form td input + input {
	margin-left: 10px;
}


/* ---------- 郵便番号検索など ---------- */

#customer-info form[name="customer_form"] input[type="button"],
#customer-info form[name="customer_form"] button {
	min-height: 46px;
	padding: 0 18px;
	border: 1px solid #cfd5d8;
	border-radius: 4px;
	background: #f5f6f6;
	color: #333;
	cursor: pointer;
}


/* ---------- 補足テキスト ---------- */

#customer-info form[name="customer_form"] .customer_form td {
	font-size: 13px;
	line-height: 1.7;
	color: #687078;
}


/* =========================================================
   下部ボタン
   ========================================================= */

#customer-info form[name="customer_form"] > .send {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 14px;
	margin-top: 38px;
	padding-top: 28px;
	border-top: 1px solid #e1e5e7;
}

#customer-info form[name="customer_form"] > .send input,
#customer-info form[name="customer_form"] > .send button {
	min-height: 52px;
	padding: 0 26px;
	border-radius: 4px;
	font-size: 14px;
	font-weight: 600;
}


/* =========================================================
   MOBILE
   ========================================================= */

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

	#customer-info h5 {
		margin: 32px 0 18px;
		font-size: 16px;
	}

	/* 会員ログイン */

	#customer-info form[name="customer_loginform"] {
		max-width: none;
		margin-bottom: 40px;
		padding: 22px 18px;
	}

	#customer-info form[name="customer_loginform"] .send {
		display: block;
	}

	#customer-info .to_memberlogin_button {
		width: 100%;
		min-width: 0;
	}


	/* 非会員フォームを完全縦並び */

	#customer-info form[name="customer_form"] .customer_form,
	#customer-info form[name="customer_form"] .customer_form tbody,
	#customer-info form[name="customer_form"] .customer_form tr,
	#customer-info form[name="customer_form"] .customer_form th,
	#customer-info form[name="customer_form"] .customer_form td {
		display: block;
		width: 100%;
		box-sizing: border-box;
	}

	#customer-info form[name="customer_form"] .customer_form tr {
		margin: 0 0 20px;
	}

	#customer-info form[name="customer_form"] .customer_form th {
		padding: 0 0 7px;
	}

	#customer-info form[name="customer_form"] .customer_form td {
		padding: 0 0 8px;
	}

	#customer-info form[name="customer_form"] input[type="text"],
	#customer-info form[name="customer_form"] input[type="email"],
	#customer-info form[name="customer_form"] input[type="tel"],
	#customer-info form[name="customer_form"] input[type="password"],
	#customer-info form[name="customer_form"] select {
		width: 100%;
		max-width: none;
	}


	/* 下部ボタン */

	#customer-info form[name="customer_form"] > .send {
		flex-direction: column;
		padding-top: 24px;
	}

	#customer-info form[name="customer_form"] > .send input,
	#customer-info form[name="customer_form"] > .send button {
		width: 100%;
		margin: 0 !important;
	}

}
/* =========================================================
   MEMBER BENEFIT
   ========================================================= */

#customer-info .atwell-member-benefit {
	margin: -4px 0 28px;
	padding: 18px 22px;
	border: 1px solid #dfe5e7;
	border-left: 3px solid #9dcc27;
	border-radius: 4px;
	background: #f8faf9;
}

#customer-info .atwell-member-benefit p {
	margin: 0;
}

#customer-info .atwell-member-benefit__lead {
	margin-bottom: 6px !important;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.7;
	color: #222;
}

#customer-info .atwell-member-benefit__text {
	font-size: 13px;
	font-weight: 400;
	line-height: 1.8;
	color: #5f686d;
}

#customer-info .atwell-member-benefit__text strong {
	font-weight: 700;
	color: #333;
}


/* ---------- Mobile ---------- */

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

	#customer-info .atwell-member-benefit {
		margin: -2px 0 26px;
		padding: 16px 17px;
	}

	#customer-info .atwell-member-benefit__lead {
		font-size: 14px;
	}

	#customer-info .atwell-member-benefit__text {
		font-size: 13px;
		line-height: 1.75;
	}

}

/* =========================================================
   DELIVERY / PAYMENT PAGE
   ========================================================= */

/* ---------- 全体 ---------- */

#delivery-info form {
	width: 100%;
	margin-top: 38px;
}

#delivery-info .customer_form {
	width: 100%;
	margin: 0 0 28px;
	border: 1px solid #e1e5e7;
	border-radius: 6px;
	border-collapse: separate;
	border-spacing: 0;
	background: #fafbfb;
	overflow: hidden;
}

#delivery-info .customer_form th,
#delivery-info .customer_form td {
	border: 0;
	background: transparent;
	box-sizing: border-box;
}


/* =========================================================
   配送先
   ========================================================= */

#delivery-info #delivery_flag {
	padding: 22px 26px;
}

#delivery-info #delivery_flag th {
	width: 190px;
	padding: 24px 20px 24px 26px;
	text-align: left;
	vertical-align: top;
	font-size: 15px;
	font-weight: 700;
	color: #222;
}

#delivery-info #delivery_flag td {
	padding: 12px 26px 12px 0;
	font-size: 15px;
	line-height: 1.7;
}

#delivery-info #delivery_flag input[type="radio"] {
	width: 18px;
	height: 18px;
	margin: 0 8px 0 0;
	vertical-align: -3px;
}


/* =========================================================
   別の配送先
   ========================================================= */

#delivery-info #delivery_table {
	padding: 24px;
}

#delivery-info #delivery_table th {
	width: 190px;
	padding: 10px 24px;
	text-align: left;
	vertical-align: top;
	font-size: 14px;
	font-weight: 600;
}

#delivery-info #delivery_table td {
	padding: 7px 24px 7px 0;
}


/* =========================================================
   配送方法・日時・支払方法
   ========================================================= */

#delivery-info #time th {
	width: 190px;
	padding: 20px 24px 20px 26px;
	text-align: left;
	vertical-align: top;
	font-size: 15px;
	font-weight: 700;
	color: #222;
}

#delivery-info #time td {
	padding: 14px 26px 14px 0;
	font-size: 14px;
	line-height: 1.8;
	color: #444;
}

/* 行ごとの区切り */
#delivery-info #time tr:not(:last-child) th,
#delivery-info #time tr:not(:last-child) td {
	border-bottom: 1px solid #e5e8ea;
}


/* ---------- セレクト ---------- */

#delivery-info #time select {
	min-width: 260px;
	height: 46px;
	padding: 0 38px 0 12px;
	border: 1px solid #cfd5d8;
	border-radius: 4px;
	background-color: #fff;
	font-size: 15px;
	color: #222;
}


/* =========================================================
   支払方法
   ========================================================= */

#delivery-info #time input[type="radio"] {
	width: 18px;
	height: 18px;
	margin: 5px 8px 5px 0;
	vertical-align: -4px;
}

#delivery-info #time label {
	font-size: 15px;
	font-weight: 600;
	color: #222;
}

/* Welcartが出す支払方法の説明 */
#delivery-info #time td br {
	line-height: 2;
}


/* =========================================================
   備考
   ========================================================= */

#delivery-info #notes_table th {
	width: 190px;
	padding: 24px 24px 24px 26px;
	text-align: left;
	vertical-align: top;
	font-size: 15px;
	font-weight: 700;
	color: #222;
}

#delivery-info #notes_table td {
	padding: 20px 26px 20px 0;
}

#delivery-info #notes_table textarea {
	display: block;
	width: 100%;
	max-width: 720px;
	min-height: 130px;
	padding: 12px 14px;
	border: 1px solid #cfd5d8;
	border-radius: 4px;
	background: #fff;
	box-sizing: border-box;
	font-size: 15px;
	line-height: 1.7;
	resize: vertical;
}


/* =========================================================
   戻る / 次へ
   ========================================================= */

#delivery-info .send {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	margin-top: 36px;
	padding-top: 28px;
	border-top: 1px solid #e1e5e7;
}

#delivery-info .back_to_customer_button,
#delivery-info .to_confirm_button {
	min-width: 180px;
	min-height: 58px;
	padding: 0 28px;
	border: 0;
	border-radius: 4px;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
}

#delivery-info .back_to_customer_button {
	background: #f0f1f1;
	color: #222;
}

#delivery-info .to_confirm_button {
	background: #9dcc27;
	color: #fff;
}


/* =========================================================
   MOBILE
   ========================================================= */

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

	#delivery-info form {
		margin-top: 28px;
	}

	#delivery-info .customer_form,
	#delivery-info .customer_form tbody,
	#delivery-info .customer_form tr,
	#delivery-info .customer_form th,
	#delivery-info .customer_form td {
		display: block;
		width: 100%;
		box-sizing: border-box;
	}

	#delivery-info .customer_form {
		margin-bottom: 22px;
	}

	/* 配送先 */

	#delivery-info #delivery_flag th {
		padding: 20px 18px 10px;
	}

	#delivery-info #delivery_flag td {
		padding: 7px 18px 12px;
	}

	#delivery-info #delivery_flag tr:last-child td {
		padding-bottom: 20px;
	}


	/* 配送方法・日時・支払い */

	#delivery-info #time th {
		padding: 18px 18px 7px;
	}

	#delivery-info #time td {
		padding: 0 18px 18px;
	}

	#delivery-info #time tr:not(:last-child) th {
		border-bottom: 0;
	}

	#delivery-info #time tr:not(:last-child) td {
		border-bottom: 1px solid #e5e8ea;
	}

	#delivery-info #time select {
		width: 100%;
		min-width: 0;
		height: 50px;
	}


	/* 備考 */

	#delivery-info #notes_table th {
		padding: 18px 18px 8px;
	}

	#delivery-info #notes_table td {
		padding: 0 18px 18px;
	}

	#delivery-info #notes_table textarea {
		max-width: none;
		min-height: 120px;
	}


	/* ボタン */

	#delivery-info .send {
		flex-direction: column-reverse;
		gap: 14px;
		margin-top: 28px;
		padding-top: 24px;
	}

	#delivery-info .back_to_customer_button,
	#delivery-info .to_confirm_button {
		width: 100%;
		min-width: 0;
		min-height: 58px;
		margin: 0 !important;
	}

}

/* =========================================================
   CONFIRM PAGE
   ========================================================= */

/* ---------- ポイント ---------- */

#info-confirm #point_table {
	width: 100%;
	max-width: 680px;
	margin: 32px 0 48px;
	padding: 24px 28px;
	border: 1px solid #e1e5e7;
	border-radius: 6px;
	border-collapse: separate;
	background: #fafbfb;
}

#info-confirm #point_table td {
	padding: 8px 12px;
	border: 0;
	font-size: 15px;
	vertical-align: middle;
}

#info-confirm #point_table .c-point,
#info-confirm #point_table .u-point {
	width: 180px;
	font-weight: 700;
	color: #222;
}

#info-confirm #point_table .point {
	font-size: 17px;
	font-weight: 700;
}

#info-confirm #point_table .used_point {
	width: 160px;
	height: 44px;
	padding: 0 12px;
	margin-right: 7px;
	border: 1px solid #cfd5d8;
	border-radius: 4px;
	background: #fff;
	box-sizing: border-box;
	font-size: 16px;
}

#info-confirm #point_table .point-btn {
	padding-top: 14px;
	text-align: left;
}

#info-confirm #point_table .use_point_button {
	min-height: 46px;
	padding: 0 24px;
	border: 0;
	border-radius: 4px;
	background: #f0f1f1;
	color: #222;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
}


/* =========================================================
   CUSTOMER / ORDER INFORMATION
   ========================================================= */

#info-confirm #confirm_table {
	width: 100%;
	margin: 30px 0 38px;
	border: 1px solid #e1e5e7;
	border-radius: 6px;
	border-collapse: separate;
	border-spacing: 0;
	background: #fff;
	overflow: hidden;
}

#info-confirm #confirm_table th,
#info-confirm #confirm_table td {
	box-sizing: border-box;
	border: 0;
	border-bottom: 1px solid #edf0f2;
}


/* ---------- セクション見出し ---------- */

#info-confirm #confirm_table tr.ttl td {
	padding: 0;
	border-bottom: 0;
	background: #fff;
}

#info-confirm #confirm_table tr.ttl h3 {
	margin: 0;
	padding: 22px 26px 14px;
	border-bottom: 2px solid #9dcc27;
	font-size: 19px;
	font-weight: 700;
	color: #222;
}


/* ---------- 通常項目 ---------- */

#info-confirm #confirm_table th {
	width: 220px;
	padding: 13px 20px 13px 26px;
	background: #fafbfb;
	text-align: left;
	vertical-align: top;
	font-size: 14px;
	font-weight: 600;
	color: #444;
}

#info-confirm #confirm_table td {
	padding: 13px 26px;
	background: #fff;
	font-size: 15px;
	line-height: 1.7;
	color: #222;
}

#info-confirm #confirm_table tr:last-child th,
#info-confirm #confirm_table tr:last-child td {
	border-bottom: 0;
}


/* =========================================================
   MOBILE
   ========================================================= */

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

	/* ポイント */

	#info-confirm #point_table {
		display: block;
		width: 100%;
		max-width: none;
		margin: 24px 0 36px;
		padding: 18px;
		box-sizing: border-box;
	}

	#info-confirm #point_table tbody,
	#info-confirm #point_table tr,
	#info-confirm #point_table td {
		display: block;
		width: 100%;
		box-sizing: border-box;
	}

	#info-confirm #point_table .c-point,
	#info-confirm #point_table .u-point {
		width: 100%;
		padding: 7px 0 3px;
	}

	#info-confirm #point_table td:not(.c-point):not(.u-point) {
		padding: 3px 0 12px;
	}

	#info-confirm #point_table .used_point {
		width: calc(100% - 35px);
		height: 48px;
	}

	#info-confirm #point_table .point-btn {
		padding-top: 8px !important;
	}

	#info-confirm #point_table .use_point_button {
		width: 100%;
		min-height: 52px;
	}


	/* お客様情報・注文内容 */

	#info-confirm #confirm_table,
	#info-confirm #confirm_table tbody,
	#info-confirm #confirm_table tr,
	#info-confirm #confirm_table th,
	#info-confirm #confirm_table td {
		display: block;
		width: 100%;
		box-sizing: border-box;
	}

	#info-confirm #confirm_table tr.ttl h3 {
		padding: 20px 18px 12px;
		font-size: 18px;
	}

	#info-confirm #confirm_table th {
		padding: 14px 18px 3px;
		border-bottom: 0;
		background: #fff;
		font-size: 13px;
		color: #777;
	}

	#info-confirm #confirm_table td {
		padding: 2px 18px 14px;
		border-bottom: 1px solid #edf0f2;
		font-size: 15px;
	}

	#info-confirm #confirm_table tr.ttl td {
		padding: 0;
	}

}

/* =========================================================
   COMPLETION PAGE
   ========================================================= */

#cart_completion {
	max-width: 760px;
	margin: 45px auto 80px;
	text-align: center;
}

#cart_completion .atwell-completion-message {
	padding: 45px 35px 38px;
	border: 1px solid #e1e5e7;
	border-radius: 6px;
	background: #fafbfb;
}

#cart_completion .atwell-completion-check {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 58px;
	height: 58px;
	margin: 0 auto 24px;
	border-radius: 50%;
	background: #9dcc27;
	color: #fff;
	font-size: 30px;
	font-weight: 700;
	line-height: 1;
}

#cart_completion .atwell-completion-message h2 {
	margin: 0 0 24px;
	font-size: 24px;
	font-weight: 700;
	line-height: 1.5;
	color: #222;
}

#cart_completion .atwell-completion-message p {
	margin: 0;
	font-size: 15px;
	line-height: 2;
	color: #444;
}

#cart_completion .atwell-completion-note {
	margin-top: 18px !important;
	color: #666 !important;
}

#cart_completion .header_explanation:empty,
#cart_completion .footer_explanation:empty {
	display: none;
}


/* トップページへ戻る */

#cart_completion .send {
	margin-top: 32px;
	text-align: center;
}

#cart_completion .back_to_top_button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 240px;
	min-height: 56px;
	padding: 0 28px;
	border-radius: 4px;
	background: #9dcc27;
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
	box-sizing: border-box;
}

#cart_completion .back_to_top_button:hover {
	opacity: .88;
}


/* ---------- Mobile ---------- */

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

	#cart_completion {
		margin: 30px auto 55px;
	}

	#cart_completion .atwell-completion-message {
		padding: 35px 20px 30px;
	}

	#cart_completion .atwell-completion-check {
		width: 52px;
		height: 52px;
		margin-bottom: 20px;
		font-size: 27px;
	}

	#cart_completion .atwell-completion-message h2 {
		margin-bottom: 20px;
		font-size: 21px;
	}

	#cart_completion .atwell-completion-message p {
		font-size: 14px;
		line-height: 1.9;
	}

	#cart_completion .back_to_top_button {
		width: 100%;
		min-width: 0;
		min-height: 58px;
	}

}

/* =========================================================
   CONFIRM PAGE - MOBILE ORDER SUMMARY
   確認画面の合計欄だけを2列表示にする
   ========================================================= */
@media screen and (max-width: 768px) {

	#info-confirm #cart_table tfoot {
		display: block;
		width: 100%;
		margin-top: 8px;
	}

	#info-confirm #cart_table tfoot .atwell-summary-row {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		align-items: center;
		width: 100%;
		padding: 12px 14px;
		box-sizing: border-box;
		border-bottom: 1px solid #e5e9eb;
		background: #fff;
	}

	#info-confirm #cart_table tfoot .atwell-summary-row > .num,
	#info-confirm #cart_table tfoot .atwell-summary-row > .thumbnail,
	#info-confirm #cart_table tfoot .atwell-summary-row > .action {
		display: none;
	}

	#info-confirm #cart_table tfoot .atwell-summary-row > .aright {
		display: block;
		width: auto;
		min-width: 0;
		padding: 0;
		border: 0;
		background: transparent;
		box-sizing: border-box;
		white-space: normal;
		text-align: left;
		font-size: 14px;
		line-height: 1.5;
	}

	#info-confirm #cart_table tfoot .atwell-summary-row > .aright + .aright {
		padding-left: 18px;
		text-align: right;
		white-space: nowrap;
	}

	#info-confirm #cart_table tfoot .atwell-shipping > .aright {
		font-weight: 700;
		color: #222;
	}

	#info-confirm #cart_table tfoot .atwell-grand-total {
		margin-top: 4px;
		padding-top: 16px;
		padding-bottom: 16px;
		border-top: 2px solid #9dcc27;
		border-bottom: 0;
		background: #f7f9f9;
	}

	#info-confirm #cart_table tfoot .atwell-grand-total > .aright {
		font-size: 16px;
		font-weight: 700;
		color: #222;
	}

	#info-confirm #cart_table tfoot .atwell-grand-total > .amount {
		font-size: 20px;
	}
}

