/* 花嶋 注文項目 */
:root {
	--hns-accent: #b0263a;
	--hns-accent-bg: #fff6f6;
	--hns-border: #d9d9d9;
	--hns-muted: #666;
}

/* ---------- 共通：説明文・必須 ---------- */
.hns-field .description,
.hns-card-text-row .description,
.payment_box .hns-invoice-address .description {
	display: block;
	margin-top: 4px;
	font-size: 0.85em;
	color: var(--hns-muted);
	line-height: 1.6;
}
.hns-section-heading {
	margin-top: 24px;
}

/* ---------- 立札・メッセージカード ---------- */
.hns-card-block {
	margin: 0 0 20px;
	padding: 14px 16px;
	border: 1px solid var(--hns-border);
	border-radius: 6px;
	background: #fff;
}
.hns-card-block--product {
	border-color: var(--hns-accent);
}
.hns-card-block__product {
	margin: 0 0 8px;
	font-weight: bold;
}
.hns-card-block__qty {
	font-weight: normal;
	color: var(--hns-muted);
}
.hns-card-fieldset {
	margin: 0;
	padding: 0;
	border: 0;
	min-width: 0;
}
.hns-card-legend {
	padding: 0;
	margin-bottom: 8px;
	font-weight: bold;
}
.hns-card-types {
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.hns-card-type {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: 0;
	padding: 8px 10px;
	border: 1px solid var(--hns-border);
	border-radius: 4px;
	cursor: pointer;
	line-height: 1.5;
}
.hns-card-type input {
	margin-top: 0.25em;
	flex: none;
}
.hns-card-type.is-selected {
	border-color: var(--hns-accent);
	background: var(--hns-accent-bg);
}
.hns-card-text-row {
	margin-top: 10px;
}
.hns-card-text-row[hidden] {
	display: none;
}
.hns-card-text-label {
	display: block;
	font-weight: bold;
	margin-bottom: 4px;
}
.hns-card-textarea {
	width: 100%;
	min-height: 5em;
	box-sizing: border-box;
}
.hns-counter {
	display: block;
	text-align: right;
	font-size: 0.85em;
	color: var(--hns-muted);
	margin-top: 2px;
}
.hns-counter.is-over {
	color: var(--hns-accent);
	font-weight: bold;
}
.hns-card-hint {
	margin: 8px 0 0;
	font-size: 0.85em;
	color: var(--hns-muted);
}
.hns-card-section__lead {
	margin: 0 0 12px;
}

/* カート */
.hns-cart-card-notice {
	margin: 0 0 16px;
	padding: 12px 14px;
	border-left: 4px solid var(--hns-accent);
	background: var(--hns-accent-bg);
	line-height: 1.7;
}

/* ---------- お届け希望日：当日・翌日 ---------- */
.hns-rush {
	margin: 0 0 16px;
	padding: 12px 14px;
	border: 2px solid #dba617;
	border-radius: 4px;
	background: #fcf9e8;
	line-height: 1.7;
}
.hns-rush[hidden] {
	display: none;
}
.hns-rush__text {
	margin: 0 0 8px;
}
.hns-rush__confirm {
	font-weight: bold;
}

/* ---------- お届け希望日：定休日（提携花店） ---------- */
.hns-closed {
	margin: 0 0 16px;
	padding: 12px 14px;
	border-left: 4px solid #2271b1;
	background: #f0f6fc;
	line-height: 1.7;
}
.hns-closed[hidden] {
	display: none;
}
.hns-closed__text {
	margin: 0;
}

/* ---------- 請求書払い：送付先・法人確認 ---------- */
.payment_box .hns-invoice-corp {
	margin: 12px 0 0;
	font-weight: bold;
}
.payment_box .hns-invoice-address {
	margin: 12px 0 0;
	padding: 0;
}
.payment_box .hns-invoice-address label {
	display: block;
	font-weight: bold;
	margin-bottom: 4px;
}
.payment_box .hns-invoice-address textarea {
	width: 100%;
	box-sizing: border-box;
}

/* ---------- お知らせ確認 ---------- */
.hns-notice-agree {
	margin-top: 16px;
	padding: 12px 14px;
	border: 2px solid var(--hns-accent);
	border-radius: 4px;
	background: var(--hns-accent-bg);
}
.hns-notice-agree label.checkbox {
	font-weight: bold;
	line-height: 1.6;
}

/* ---------- 送料・クーポンの案内 ---------- */
.hns-shipping-note td {
	font-size: 0.85em;
	color: var(--hns-muted);
	line-height: 1.6;
}
.hns-coupon-note {
	margin: 8px 0 16px;
	font-size: 0.85em;
	color: var(--hns-muted);
}

/* ---------- 商品ページ ---------- */
.hns-product-notice {
	margin: 0 0 16px;
	padding: 12px 14px;
	border-left: 4px solid var(--hns-accent);
	background: var(--hns-accent-bg);
	font-size: 0.9em;
	line-height: 1.7;
}
.hns-stem-count {
	margin: 0 0 16px;
}
.hns-stem-count label {
	display: block;
	font-weight: bold;
	margin-bottom: 4px;
}
.hns-stem-count input[type="number"] {
	width: 7em;
}
.hns-stem-count__desc {
	margin: 4px 0 0;
	font-size: 0.85em;
	color: var(--hns-muted);
}
.hns-lang-notice {
	margin: 0 0 16px;
	padding: 10px 14px;
	border: 2px solid var(--hns-accent);
	font-size: 0.9em;
	line-height: 1.6;
}

/* ---------- サンクスページ・マイアカウント ---------- */
.hns-order-fields {
	margin-top: 24px;
}
.hns-order-fields__table th {
	width: 30%;
	white-space: nowrap;
}

/* ---------- 確認画面 ---------- */
html.hns-cf-open,
html.hns-cf-open body {
	overflow: hidden;
}
.hns-cf[hidden] {
	display: none;
}
.hns-cf {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
}
.hns-cf-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
}
.hns-cf-panel {
	position: relative;
	width: min(720px, 100%);
	max-height: 92vh;
	overflow-y: auto;
	background: #fff;
	color: #222;
	border-radius: 8px;
	padding: 24px 24px 0;
	box-sizing: border-box;
	-webkit-overflow-scrolling: touch;
}
.hns-cf-title {
	margin: 0 0 6px;
	font-size: 1.4em;
	outline: none;
}
.hns-cf-lead {
	margin: 0 0 16px;
	color: var(--hns-muted);
	font-size: 0.9em;
}
.hns-cf-section {
	margin: 0 0 18px;
}
.hns-cf-section h3 {
	margin: 0 0 6px;
	padding-bottom: 4px;
	font-size: 1.05em;
	border-bottom: 1px solid var(--hns-border);
}
.hns-cf-section dl {
	margin: 0;
}
.hns-cf-row {
	display: grid;
	grid-template-columns: 9em 1fr;
	gap: 4px 12px;
	padding: 6px 0;
	border-bottom: 1px dotted #e5e5e5;
}
.hns-cf-row dt {
	margin: 0;
	font-weight: bold;
	color: #444;
}
.hns-cf-row dd {
	margin: 0;
	white-space: pre-wrap;
	word-break: break-word;
}
.hns-cf-row--item {
	grid-template-columns: 1fr auto;
}
.hns-cf-row--item dt {
	font-weight: normal;
}
.hns-cf-row--total dd,
.hns-cf-row--total dt {
	font-size: 1.1em;
	color: #000;
}
.hns-cf-row--card dd {
	padding: 6px 8px;
	background: var(--hns-accent-bg);
	border-radius: 4px;
	font-size: 1.05em;
}
.hns-cf-warn {
	margin: 8px 0 0;
	color: var(--hns-accent);
	font-weight: bold;
	font-size: 0.9em;
}
.hns-cf-note {
	margin: 6px 0 0;
	font-size: 0.85em;
	color: var(--hns-muted);
}
.hns-cf-actions {
	position: sticky;
	bottom: 0;
	display: flex;
	gap: 12px;
	justify-content: flex-end;
	margin: 0 -24px;
	padding: 14px 24px;
	background: #fff;
	border-top: 1px solid var(--hns-border);
}
.hns-cf-actions .button {
	min-height: 48px;
	padding: 0 20px;
	font-size: 1em;
}
.hns-cf-submit {
	font-weight: bold;
}

@media (max-width: 600px) {
	.hns-order-fields__table th {
		white-space: normal;
	}
	.hns-cf {
		align-items: stretch;
	}
	.hns-cf-panel {
		max-height: 100%;
		height: 100%;
		border-radius: 0;
		padding: 16px 16px 0;
	}
	.hns-cf-row {
		grid-template-columns: 1fr;
	}
	.hns-cf-row--item {
		grid-template-columns: 1fr auto;
	}
	.hns-cf-actions {
		margin: 0 -16px;
		padding: 12px 16px;
	}
	.hns-cf-actions .button {
		flex: 1;
		padding: 0 8px;
	}
}

/* テーマ側の fieldset / legend の装飾を打ち消す */
.hns-card-block .hns-card-fieldset,
.hns-card-block .hns-card-legend {
	background: none;
	border: 0;
	padding: 0;
	margin-left: 0;
	margin-right: 0;
}

/* 商品ページ：入力欄の「後からでも入力できます」案内 */
.hns-card-later {
	margin: 0 0 8px;
	padding: 8px 10px;
	border-left: 3px solid var(--hns-accent);
	background: var(--hns-accent-bg);
	font-size: 0.85em;
	line-height: 1.6;
}
.hns-card-block.has-text .hns-card-hint--product {
	display: none;
}

/* ---------- 送料・お支払いの案内（決済画面） ---------- */
.hns-ship-notice {
	margin: 0 0 16px;
	padding: 12px 14px;
	border: 2px solid #dba617;
	border-radius: 4px;
	background: #fcf9e8;
	line-height: 1.7;
}
.hns-ship-notice p {
	margin: 0 0 6px;
}
.hns-ship-notice ul {
	margin: 0;
	padding-left: 1.2em;
}
.hns-ship-notice--error {
	border-color: #d63638;
	background: #fcf0f1;
}
