/*
 * ベルのボタンと通知の枠（2026-10-09・docs/指示_PWAと通知の実装.md）
 * 並びを変えるのは、ベルを置いた黒い検索の帯（.bxp-has-bell）の中だけ。ベルが無いページの見た目は変えない。
 * 文字は14px以上。重なり順はヘッダーの吹き出しの層（--bxz-header-popup）。
 */

/* ---------- 帯の中の並び ---------- */
.bxp-has-bell { display: flex; align-items: center; gap: 12px; }
.bxp-has-bell > form { flex: 1 1 auto; min-width: 0; }
.bxp-bell-wrap { flex: 0 0 auto; display: flex; }

/* ---------- ベル ---------- */
.bxp-bell {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 50px;
	height: 50px;
	padding: 0;
	margin: 0;
	border: 1px solid rgba(255, 255, 255, .55);
	border-radius: 8px;
	background: transparent;
	color: #fff;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	-webkit-tap-highlight-color: transparent;
}
.bxp-bell:hover { background: rgba(255, 255, 255, .08); }
.bxp-bell:focus-visible { outline: 2px solid #d9b56a; outline-offset: 2px; }
.bxp-bell svg { display: block; }
.bxp-bell .bxp-dot { display: none; position: absolute; top: 9px; right: 10px; width: 8px; height: 8px; border-radius: 50%; background: #d9b56a; }
.bxp-bell.is-on { color: #d9b56a; border-color: rgba(217, 181, 106, .8); }
.bxp-bell.is-on .bxp-dot { display: block; }

/* スマホ（帯の中は検索の枠とベルの横並び。検索の枠を少し短くする） */
@media screen and (max-width: 1024px) {
	.bxp-has-bell { gap: 8px; }
	.bxp-has-bell > .bxs-bar { flex: 1 1 auto; min-width: 0; width: auto; }
	.bxp-bell { width: 42px; height: 42px; }
	.bxp-bell .bxp-dot { top: 8px; right: 8px; }
}

/* ---------- 枠 ---------- */
.bxp-panel {
	position: fixed;
	z-index: var(--bxz-header-popup, 900);
	box-sizing: border-box;
	max-width: calc(100vw - 24px);
	padding: 14px 16px 16px;
	border: 1px solid #e6dfd2;
	border-radius: 12px;
	background: #fff;
	color: #2b2b2b;
	box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
	overflow-y: auto;
	overscroll-behavior: contain;
	font-size: 15px;
	line-height: 1.7;
	text-align: left;
}
.bxp-panel[hidden] { display: none; }
.bxp-panel p { margin: 0; }
.bxp-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 -6px 8px 0; }
.bxp-ttl { font-size: 16px; font-weight: 700; line-height: 1.5; }
.bxp-x {
	flex: 0 0 auto;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #6b6b6b;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}
.bxp-x:hover { background: #f3efe6; }
.bxp-lead { font-size: 15px; margin-bottom: 12px !important; }
.bxp-note { font-size: 14px; color: #6b6458; margin-top: 10px !important; }
.bxp-err { font-size: 14px; color: #b32d2e; margin-top: 10px !important; }
.bxp-main,
.bxp-sub-btn,
.bxp-stop {
	display: block;
	width: 100%;
	min-height: 46px;
	padding: 10px 14px;
	border-radius: 8px;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.4;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}
.bxp-main { border: 0; background: #2f474a; color: #fff; }
.bxp-main:disabled { opacity: .6; cursor: default; }
.bxp-sub-btn { margin-top: 10px; border: 1px solid #2f474a; background: #fff; color: #2f474a; }
.bxp-stop { margin-top: 14px; border: 1px solid #d6cfc2; background: #fff; color: #6b6458; font-weight: 400; }
.bxp-install { margin-top: 14px; padding-top: 12px; border-top: 1px solid #eee7da; }

/* スイッチ */
.bxp-sw { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid #f0ebe1; cursor: pointer; }
.bxp-sw-txt { display: flex; flex-direction: column; min-width: 0; }
.bxp-sw-name { font-size: 15px; font-weight: 700; }
.bxp-sw-sub { font-size: 14px; color: #6b6458; line-height: 1.5; }
.bxp-sw input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.bxp-knob { flex: 0 0 auto; position: relative; width: 46px; height: 28px; border-radius: 14px; background: #cfc8bb; transition: background .15s; }
.bxp-knob::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .25); transition: transform .15s; }
.bxp-sw input:checked + .bxp-knob { background: #2f474a; }
.bxp-sw input:checked + .bxp-knob::after { transform: translateX(18px); }
.bxp-sw input:focus-visible + .bxp-knob { outline: 2px solid #d9b56a; outline-offset: 2px; }

/* iPhone の手順 */
.bxp-steps { list-style: none; margin: 0; padding: 0; }
.bxp-step { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid #f0ebe1; }
.bxp-pic { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 10px; background: #f3efe6; color: #2f6fd6; }
.bxp-add-word { font-size: 15px; font-weight: 700; color: #2f6fd6; }
.bxp-step-txt { display: flex; flex-direction: column; min-width: 0; font-size: 15px; line-height: 1.6; }
.bxp-step-no { display: none; }
.bxp-step-sub { font-size: 14px; color: #6b6458; }
.bxp-help { margin: 0; padding-left: 1.2em; font-size: 14px; }
.bxp-help li { margin: 4px 0; }

@media (prefers-reduced-motion: reduce) {
	.bxp-knob, .bxp-knob::after { transition: none; }
}
