/* 複数お届け先ギフト：入口バナー＋お届け先指定ページ */

/* ---- カートページの入口バナー ---- */
.taishima-gift-entry {
	border: 1px solid #c8a96a;
	background: #fbf7ef;
	border-radius: 8px;
	padding: 16px 18px;
	margin: 0 0 24px;
}
.taishima-gift-entry__lead {
	margin: 0 0 12px;
	font-size: 14px;
	line-height: 1.7;
	color: #4a3f2e;
}
.taishima-gift-entry__btn {
	display: inline-block;
	background: #7a5c2e;
	color: #fff;
	text-decoration: none;
	padding: 10px 22px;
	border-radius: 4px;
	font-weight: 700;
	font-size: 14px;
}
.taishima-gift-entry__btn:hover {
	background: #63491f;
}

/* ---- ページ全体 ---- */
.gift-page {
	padding: 40px 16px 80px;
}
.gift-page__inner {
	max-width: 880px;
	margin: 0 auto;
}
.gift-page__title {
	font-size: 24px;
	font-weight: 700;
	margin: 0 0 16px;
	color: #2b2b2b;
}
.gift-page__lead {
	font-size: 14px;
	line-height: 1.8;
	color: #555;
	margin: 0 0 24px;
}
.gift-page__empty {
	font-size: 15px;
	color: #555;
	padding: 24px 0;
}
.gift-page__link {
	color: #7a5c2e;
	font-weight: 700;
}

/* ---- 割り当てサマリー ---- */
.gift-summary {
	background: #f7f7f7;
	border-radius: 8px;
	padding: 14px 16px;
	margin: 0 0 20px;
}
.gift-summary__title {
	font-size: 15px;
	font-weight: 700;
	margin: 0 0 8px;
}
.gift-summary__row {
	font-size: 13px;
	padding: 3px 0;
	color: #a66;
}
.gift-summary__row.is-done {
	color: #2e7d32;
}
.gift-summary__row.is-over {
	color: #c62828;
	font-weight: 700;
}

/* ---- お届け先カード ---- */
.gift-card {
	border: 1px solid #ddd;
	border-radius: 8px;
	padding: 18px 20px;
	margin: 0 0 18px;
	background: #fff;
}
.gift-card__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin: 0 0 14px;
	border-bottom: 2px solid #7a5c2e;
	padding-bottom: 8px;
}
.gift-card__title {
	font-size: 17px;
	font-weight: 700;
	margin: 0;
	color: #7a5c2e;
}
.gift-card__del {
	border: 1px solid #c33;
	color: #c33;
	background: #fff;
	border-radius: 4px;
	padding: 4px 12px;
	font-size: 12px;
	cursor: pointer;
}
.gift-card__del:hover {
	background: #c33;
	color: #fff;
}
.gift-card__fee {
	margin-top: 12px;
	text-align: right;
	font-size: 14px;
	color: #333;
}
.gift-card__fee strong {
	font-size: 16px;
	color: #7a5c2e;
}

/* ---- フィールド ---- */
.gift-fields {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px 16px;
}
.gift-field {
	display: flex;
	flex-direction: column;
}
.gift-field__label {
	font-size: 12px;
	font-weight: 700;
	color: #555;
	margin: 0 0 4px;
}
.gift-input {
	width: 100%;
	padding: 9px 10px;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 14px;
	box-sizing: border-box;
}
.gift-input:focus {
	outline: none;
	border-color: #7a5c2e;
}

/* ---- 商品の割り当て ---- */
.gift-alloc {
	margin: 16px 0 0;
	padding: 12px 14px;
	background: #faf8f4;
	border-radius: 6px;
}
.gift-alloc__title {
	font-size: 14px;
	font-weight: 700;
	margin: 0 0 8px;
}
.gift-alloc__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 5px 0;
	border-bottom: 1px dashed #e2ddd2;
}
.gift-alloc__row:last-child {
	border-bottom: none;
}
.gift-alloc__name {
	font-size: 13px;
	color: #333;
}
.gift-alloc__check {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	flex: 1 1 auto;
}
.gift-alloc__check input[type="checkbox"] {
	width: 18px;
	height: 18px;
	flex: 0 0 auto;
}
.gift-alloc__check input[type="checkbox"]:disabled + .gift-alloc__name {
	color: #bbb;
}
.gift-alloc__numwrap {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	flex: 0 0 auto;
}
.gift-alloc__x {
	font-size: 12px;
	color: #777;
}
.gift-alloc__qty {
	width: 72px;
	padding: 6px 8px;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 14px;
	text-align: right;
}

/* ---- 購入画面などのお届け先明細 ---- */
.gift-sum {
	margin: 10px 0 14px;
}
.gift-sum__card {
	border: 1px solid #d8cfbe;
	border-radius: 6px;
	background: #fff;
	padding: 10px 12px;
	margin: 0 0 8px;
}
.gift-sum__name {
	font-weight: 700;
	color: #7a5c2e;
	margin-bottom: 4px;
}
.gift-sum__row {
	font-size: 13px;
	color: #444;
	line-height: 1.7;
}

/* ---- のし・希望日 ---- */
.gift-opt {
	margin: 16px 0 0;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px 16px;
}
.gift-opt__check {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 14px;
	cursor: pointer;
}
.gift-opt__omote {
	margin-top: 8px;
}
.gift-opt__date {
	padding: 9px 10px;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 14px;
}

/* ---- 合計・ボタン・エラー ---- */
.gift-total {
	text-align: right;
	font-size: 15px;
	margin: 18px 0;
	color: #333;
}
.gift-total strong {
	font-size: 20px;
	color: #7a5c2e;
}
.gift-btn {
	cursor: pointer;
	border: none;
	border-radius: 4px;
	font-size: 14px;
	font-weight: 700;
	padding: 12px 24px;
}
.gift-btn--add {
	background: #fff;
	border: 1px dashed #7a5c2e;
	color: #7a5c2e;
	width: 100%;
	padding: 14px;
	margin: 4px 0 8px;
}
.gift-btn--add:hover {
	background: #faf5ec;
}
.gift-actions {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	margin-top: 8px;
}
.gift-btn--primary {
	background: #7a5c2e;
	color: #fff;
	flex: 1 1 auto;
}
.gift-btn--primary:hover {
	background: #63491f;
}
.gift-btn--ghost {
	background: #f1f1f1;
	color: #555;
}
.gift-btn--ghost:hover {
	background: #e4e4e4;
}
.gift-error {
	margin: 12px 0;
}
.gift-error ul {
	margin: 6px 0 0;
	padding-left: 20px;
}
.gift-error p,
.gift-error li {
	color: #c62828;
	font-size: 13px;
	line-height: 1.7;
}

/* ---- レスポンシブ ---- */
@media ( max-width: 600px ) {
	.gift-fields,
	.gift-opt {
		grid-template-columns: 1fr;
	}
	.gift-page__title {
		font-size: 20px;
	}
}
