/* SAMURAI Launch — フロント側スタイル
   テーマ（hemp-samurai）のカラー変数があればそれを使い、
   無ければ同じ色をそのまま使うので、別テーマでも崩れません。 */

.sl-gate {
	margin: 24px 0;
	padding: 22px;
	border: 1px solid var(--hs-border, #2b2b2b);
	border-left: 3px solid var(--hs-orange, #ff6b1a);
	border-radius: var(--hs-radius, 10px);
	background: var(--hs-surface, #141414);
	color: var(--hs-text, #f5f5f5);
}

.sl-gate__title {
	margin: 0 0 8px;
	font-size: 1.25rem;
	font-weight: 800;
	letter-spacing: .06em;
	line-height: 1.3;
	color: var(--hs-orange, #ff6b1a);
}

.sl-gate--presale .sl-gate__title {
	letter-spacing: .02em;
}

.sl-gate__message {
	margin: 0;
	font-size: .95rem;
	line-height: 1.8;
	color: var(--hs-text-muted, #a3a3a3);
}

.sl-gate__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 18px;
}

.sl-gate__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 12px 24px;
	border: 1px solid transparent;
	border-radius: 999px;
	font-size: .95rem;
	font-weight: 700;
	text-align: center;
	text-decoration: none;
	transition: background .25s, color .25s, border-color .25s;
}

.sl-gate__btn--primary {
	background: var(--hs-orange, #ff6b1a);
	color: #0a0a0a;
}
.sl-gate__btn--primary:hover,
.sl-gate__btn--primary:focus {
	background: var(--hs-orange-bright, #ff8c42);
	color: #0a0a0a;
}

.sl-gate__btn--ghost {
	background: transparent;
	color: var(--hs-text, #f5f5f5);
	border-color: var(--hs-border, #2b2b2b);
}
.sl-gate__btn--ghost:hover,
.sl-gate__btn--ghost:focus {
	border-color: var(--hs-orange, #ff6b1a);
	color: var(--hs-orange, #ff6b1a);
}

/* 商品一覧のボタン差し替え */
.sl-loop-button {
	opacity: .85;
}

/* ショップ上部の帯 */
.sl-phase-banner {
	margin: 0 0 24px;
	padding: 12px 18px;
	border-radius: var(--hs-radius-sm, 6px);
	background: rgba(255, 107, 26, .12);
	border: 1px solid rgba(255, 107, 26, .35);
	color: var(--hs-text, #f5f5f5);
	font-size: .9rem;
	line-height: 1.7;
}

@media (max-width: 599px) {
	.sl-gate { padding: 18px; }
	.sl-gate__actions { flex-direction: column; }
	.sl-gate__btn { width: 100%; }
}

/* ---------- 先行販売コードの入力フォーム ---------- */
.sl-code {
	max-width: 560px;
	margin: 0 auto;
}

.sl-code__lead {
	color: var(--hs-text-muted, #a3a3a3);
	font-size: .95rem;
	line-height: 1.9;
}

.sl-code__form {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 20px 0 0;
}

.sl-code__input {
	flex: 1 1 220px;
	min-height: 48px;
	padding: 12px 16px;
	background: var(--hs-surface-2, #1e1e1e);
	border: 1px solid var(--hs-border, #2b2b2b);
	border-radius: 999px;
	color: var(--hs-text, #f5f5f5);
	font-size: 1rem;
	letter-spacing: .12em;
	text-transform: uppercase;
}

.sl-code__input:focus {
	outline: 2px solid var(--hs-orange, #ff6b1a);
	outline-offset: 2px;
	border-color: var(--hs-orange, #ff6b1a);
}

.sl-code__form .sl-gate__btn {
	flex: 0 0 auto;
}

.sl-code__message {
	margin: 0 0 20px;
	padding: 14px 18px;
	border-radius: var(--hs-radius-sm, 6px);
	border: 1px solid var(--hs-border, #2b2b2b);
	background: var(--hs-surface, #141414);
	font-size: .95rem;
	line-height: 1.8;
}

.sl-code__message--success { border-left: 3px solid var(--hs-success, #3ecf8e); }
.sl-code__message--info    { border-left: 3px solid var(--hs-orange, #ff6b1a); }
.sl-code__message--error   { border-left: 3px solid var(--hs-error, #ff5a5a); }

.sl-code__done-title {
	margin: 0 0 8px;
	font-size: 1.2rem;
	font-weight: 800;
	color: var(--hs-success, #3ecf8e);
}

.sl-code__hint {
	margin-top: 24px;
	padding-top: 20px;
	border-top: 1px solid var(--hs-border, #2b2b2b);
	color: var(--hs-text-muted, #a3a3a3);
	font-size: .875rem;
	line-height: 1.9;
}

@media (max-width: 599px) {
	.sl-code__form { flex-direction: column; }
	.sl-code__form .sl-gate__btn { width: 100%; }
}

/* ---------- セット割の案内 ---------- */
.sl-bundle-notice {
	margin: 0 0 20px;
	padding: 12px 18px;
	border-radius: var(--hs-radius-sm, 6px);
	background: rgba(255, 107, 26, .12);
	border: 1px solid rgba(255, 107, 26, .35);
	color: var(--hs-text, #f5f5f5);
	font-size: .9rem;
	font-weight: 600;
	line-height: 1.7;
}

/* ---------- 事前登録フォーム ---------- */
.sl-register {
	max-width: 560px;
	margin: 0 auto;
}

.sl-register__form {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-top: 20px;
}

.sl-register__form .sl-code__input {
	letter-spacing: normal;
	text-transform: none;
}

/* ボット対策の隠し欄。画面には出さない */
.sl-register__trap {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.sl-register__consent {
	margin: 0;
	font-size: .875rem;
	line-height: 1.8;
	color: var(--hs-text-muted, #a3a3a3);
}

.sl-register__consent input { margin-right: 6px; }

/* ---------- 年齢確認ゲート ---------- */
body.sl-age-gate-active {
	overflow: hidden;
}

.sl-age-gate {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px 16px;
	background: rgba(6, 6, 6, .96);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	overflow-y: auto;
}

.sl-age-gate__inner {
	width: 100%;
	max-width: 480px;
	padding: 36px 28px;
	border: 1px solid var(--hs-border, #2b2b2b);
	border-radius: var(--hs-radius, 10px);
	background: var(--hs-surface, #141414);
	text-align: center;
	color: var(--hs-text, #f5f5f5);
}

.sl-age-gate__brand {
	margin: 0 0 20px;
	font-size: .8rem;
	font-weight: 800;
	letter-spacing: .18em;
	color: var(--hs-orange, #ff6b1a);
}

.sl-age-gate__title {
	margin: 0 0 14px;
	font-size: clamp(1.25rem, 5vw, 1.6rem);
	font-weight: 800;
	line-height: 1.4;
}

.sl-age-gate__message {
	margin: 0;
	font-size: .9rem;
	line-height: 1.9;
	color: var(--hs-text-muted, #a3a3a3);
}

.sl-age-gate__actions {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 28px;
}

.sl-age-gate__actions .sl-gate__btn {
	width: 100%;
}

.sl-age-gate__note {
	margin: 20px 0 0;
	font-size: .75rem;
	line-height: 1.8;
	color: var(--hs-text-dim, #737373);
}

@media (min-width: 480px) {
	.sl-age-gate__actions { flex-direction: row; }
	.sl-age-gate__actions .sl-gate__btn { flex: 1 1 0; }
}

/* ---------- 法定表示のテーブル（特商法） ---------- */
.sl-legal-table {
	width: 100%;
	border-collapse: collapse;
	margin: 24px 0;
	font-size: .95rem;
}

.sl-legal-table th,
.sl-legal-table td {
	border: 1px solid var(--hs-border, #2b2b2b);
	padding: 14px 16px;
	text-align: left;
	vertical-align: top;
	line-height: 1.9;
}

.sl-legal-table th {
	width: 30%;
	min-width: 140px;
	background: var(--hs-surface-2, #1e1e1e);
	font-weight: 700;
	white-space: nowrap;
}

@media (max-width: 599px) {
	.sl-legal-table th,
	.sl-legal-table td { display: block; width: 100%; }
	.sl-legal-table th { border-bottom: 0; white-space: normal; }
}

/* ---------- 最終確認画面（改正特商法） ---------- */
.sl-final-confirm {
	margin: 24px 0;
	padding: 20px;
	border: 2px solid var(--hs-orange, #ff6b1a);
	border-radius: var(--hs-radius, 10px);
	background: var(--hs-surface, #141414);
}

.sl-final-confirm__title {
	margin: 0 0 16px;
	font-size: 1.05rem;
	font-weight: 800;
	color: var(--hs-orange, #ff6b1a);
}

.sl-final-confirm__list {
	margin: 0;
}

.sl-final-confirm__row {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2px;
	padding: 10px 0;
	border-top: 1px solid var(--hs-border, #2b2b2b);
}

.sl-final-confirm__row:first-child { border-top: 0; }

.sl-final-confirm__row dt {
	font-size: .8rem;
	font-weight: 700;
	color: var(--hs-text-muted, #a3a3a3);
}

.sl-final-confirm__row dd {
	margin: 0;
	font-size: .9rem;
	line-height: 1.8;
}

.sl-final-confirm__note {
	margin: 16px 0 0;
	padding-top: 14px;
	border-top: 1px solid var(--hs-border, #2b2b2b);
	font-size: .8rem;
	line-height: 1.8;
	color: var(--hs-text-muted, #a3a3a3);
}

@media (min-width: 600px) {
	.sl-final-confirm__row {
		grid-template-columns: 190px 1fr;
		gap: 16px;
	}
}

/* ---------- 商品ページの注意書き ---------- */
.sl-product-notice {
	margin: 20px 0;
	padding: 16px 18px;
	border: 1px solid var(--hs-border, #2b2b2b);
	border-radius: var(--hs-radius-sm, 6px);
	background: var(--hs-surface-2, #1e1e1e);
}

.sl-product-notice__item {
	margin: 0;
	font-size: .82rem;
	line-height: 1.9;
	color: var(--hs-text-muted, #a3a3a3);
}

.sl-product-notice__item + .sl-product-notice__item {
	margin-top: 10px;
	padding-top: 10px;
	border-top: 1px dashed var(--hs-border, #2b2b2b);
}

.sl-product-notice__badge {
	display: inline-block;
	margin-right: 8px;
	padding: 2px 10px;
	border-radius: 999px;
	background: var(--hs-orange, #ff6b1a);
	color: #0a0a0a;
	font-size: .7rem;
	font-weight: 800;
	letter-spacing: .04em;
	white-space: nowrap;
}

/* ---------- 成分分析書（COA） ---------- */
.sl-coa__image img {
	width: 100%;
	height: auto;
	border: 1px solid var(--hs-border, #2b2b2b);
	border-radius: var(--hs-radius-sm, 6px);
	background: #fff;
}

.sl-coa__pdf {
	display: block;
	width: 100%;
	height: min(80vh, 760px);
	border: 1px solid var(--hs-border, #2b2b2b);
	border-radius: var(--hs-radius-sm, 6px);
	background: #fff;
}

.sl-coa__placeholder {
	display: grid;
	place-items: center;
	min-height: 220px;
	padding: 24px;
	border: 1px dashed var(--hs-border, #2b2b2b);
	border-radius: var(--hs-radius-sm, 6px);
	background:
		repeating-linear-gradient(45deg,
			var(--hs-surface-2, #1e1e1e) 0 12px,
			var(--hs-surface, #141414) 12px 24px);
	color: var(--hs-text-dim, #737373);
	font-size: .85rem;
	text-align: center;
}

.sl-coa__meta {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 4px 16px;
	margin: 20px 0 0;
	font-size: .85rem;
}

.sl-coa__meta dt {
	font-weight: 700;
	color: var(--hs-text-muted, #a3a3a3);
}

.sl-coa__meta dd { margin: 0; }

.sl-coa__note {
	margin: 20px 0 0;
	font-size: .78rem;
	line-height: 1.8;
	color: var(--hs-text-dim, #737373);
}

/* ---------- 銀行振込の支払期限（注文完了画面） ---------- */
.sl-bacs-notice {
	margin: 0 0 24px;
	padding: 18px 20px;
	border: 2px solid var(--hs-orange, #ff6b1a);
	border-radius: var(--hs-radius, 10px);
	background: var(--hs-surface, #141414);
}

.sl-bacs-notice__title {
	margin: 0 0 8px;
	font-size: 1rem;
	font-weight: 800;
	color: var(--hs-orange, #ff6b1a);
}

.sl-bacs-notice__body {
	margin: 0;
	font-size: .85rem;
	line-height: 1.9;
	color: var(--hs-text-muted, #a3a3a3);
}

/* --------------------------------------------------------------
   予約受付中の案内（商品ページ・カート）
   -------------------------------------------------------------- */

.sl-preorder {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	margin: 0 0 18px;
	padding: 12px 16px;
	border-radius: 14px;
	background: rgba(255, 107, 26, .08);
	border: 1px solid rgba(255, 107, 26, .28);
}

.sl-preorder__badge {
	flex: none;
	padding: 5px 12px;
	border-radius: 999px;
	background: var(--hs-orange, #ff6b1a);
	color: #fff;
	font-size: .72rem;
	font-weight: 800;
	letter-spacing: .06em;
	white-space: nowrap;
}

.sl-preorder__text {
	font-size: .85rem;
	font-weight: 700;
	line-height: 1.8;
	color: var(--hs-text, #1a1a1a);
}

/* カートページでは横幅いっぱいに置く */
.woocommerce-cart .sl-preorder {
	margin-bottom: 24px;
}
