/* BS23 Cookie Consent */
#bs23cc {
	--bs23cc-primary: #1174a8;
	--bs23cc-dark: #0a2540;
	--bs23cc-text: #3d4f63;
	--bs23cc-line: #dfe6ee;
	--bs23cc-soft: #f5f8fb;
	position: fixed;
	inset: 0;
	z-index: 2147483000;
	font-family: Manrope, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	color: var(--bs23cc-text);
	-webkit-font-smoothing: antialiased;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	box-sizing: border-box;
}
#bs23cc *, #bs23cc *::before, #bs23cc *::after { box-sizing: border-box; }
#bs23cc [hidden] { display: none !important; }

.bs23cc__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(10, 21, 40, .55);
	backdrop-filter: blur(2px);
	-webkit-backdrop-filter: blur(2px);
	animation: bs23cc-fade .2s ease-out;
}

.bs23cc__box {
	position: relative;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 24px 60px rgba(10, 37, 64, .28);
	animation: bs23cc-pop .22s ease-out;
	max-height: calc(100vh - 32px);
	max-height: calc(100dvh - 32px);
}

/* ---------- notice (step 1) ---------- */
.bs23cc__notice { width: 100%; max-width: 620px; padding: 28px 30px 26px; overflow: auto; }
.bs23cc__logo { display: block; height: 28px; width: auto; max-width: 180px; margin: 0 0 18px; }
.bs23cc__logo--text { height: auto; font-weight: 800; font-size: 18px; color: var(--bs23cc-dark); }
#bs23cc .bs23cc__title {
	margin: 0 0 10px;
	padding: 0;
	font-weight: 700; font-size: 18px; line-height: 1.35;
	font-family: inherit;
	letter-spacing: -.2px;
	color: var(--bs23cc-dark);
	text-transform: none;
}
#bs23cc .bs23cc__text { margin: 0; font-size: 14px; line-height: 1.6; color: var(--bs23cc-text); }
#bs23cc a { color: var(--bs23cc-primary); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
#bs23cc a:hover { color: var(--bs23cc-dark); }

.bs23cc__actions { display: flex; gap: 12px; justify-content: flex-end; flex-wrap: wrap; margin-top: 22px; }

#bs23cc .bs23cc-btn {
	appearance: none;
	margin: 0;
	min-height: 44px;
	padding: 10px 22px;
	border-radius: 8px;
	border: 1.5px solid var(--bs23cc-primary);
	font-weight: 700; font-size: 14px; line-height: 1.2;
	font-family: inherit;
	letter-spacing: -.1px;
	cursor: pointer;
	transition: background-color .15s, color .15s, border-color .15s, box-shadow .15s;
	text-transform: none;
	box-shadow: none;
}
#bs23cc .bs23cc-btn--primary { background: var(--bs23cc-primary); color: #fff; }
#bs23cc .bs23cc-btn--primary:hover { background: var(--bs23cc-dark); border-color: var(--bs23cc-dark); }
#bs23cc .bs23cc-btn--ghost { background: #fff; color: var(--bs23cc-dark); border-color: #c5d2df; }
#bs23cc .bs23cc-btn--ghost:hover { border-color: var(--bs23cc-dark); }
#bs23cc .bs23cc-btn:focus-visible,
#bs23cc button:focus-visible,
#bs23cc a:focus-visible,
#bs23cc summary:focus-visible { outline: 3px solid var(--bs23cc-primary); outline-offset: 2px; }

/* wall mode: the bar-only pieces stay hidden */
.bs23cc--wall .bs23cc__icon,
.bs23cc--wall .bs23cc__expand,
.bs23cc--wall .bs23cc__customize { display: none !important; }

/* ---------- bottom bar (BairesDev style; mode=banner and policy pages) ---------- */
#bs23cc.bs23cc--banner:not(.is-prefs) { inset: auto 0 0 0; padding: 0 24px; pointer-events: none; align-items: flex-end; }
.bs23cc--banner:not(.is-prefs) .bs23cc__backdrop { display: none; }
.bs23cc--banner .bs23cc__notice {
	pointer-events: auto;
	max-width: 1320px;
	display: flex;
	align-items: center;
	gap: 40px;
	padding: 24px;
	border: 1px solid rgba(17, 116, 168, .45);
	border-bottom: 0;
	border-radius: 24px 24px 0 0;
	box-shadow: 0 32px 64px -12px rgba(16, 24, 40, .9), 0 -2px 24px rgba(10, 37, 64, .08);
	animation-name: bs23cc-up;
}
.bs23cc--banner .bs23cc__notice-main { flex: 1; min-width: 0; display: flex; align-items: flex-start; gap: 16px; }
.bs23cc--banner .bs23cc__notice .bs23cc__logo { display: none; }
.bs23cc--banner .bs23cc__notice-body { flex: 1; min-width: 0; }
.bs23cc__icon {
	flex: 0 0 auto;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: #e6eff5;
	color: var(--bs23cc-primary);
}
#bs23cc.bs23cc--banner .bs23cc__title { font-size: 18px; font-weight: 600; line-height: 28px; margin: 0 0 2px; letter-spacing: 0; color: #111; }
.bs23cc--banner .bs23cc__textrow { display: flex; align-items: baseline; gap: 4px; min-width: 0; }
#bs23cc.bs23cc--banner .bs23cc__notice .bs23cc__text { flex: 1; min-width: 0; font-size: 14px; line-height: 20px; color: #52606d; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#bs23cc.bs23cc--banner .bs23cc__notice .bs23cc__text a { color: #111; font-weight: 600; }
.bs23cc--banner .is-expanded .bs23cc__textrow { display: block; }
#bs23cc.bs23cc--banner .is-expanded .bs23cc__text { white-space: normal; overflow: visible; }
.bs23cc--banner .is-expanded .bs23cc__expand { display: none; }
#bs23cc .bs23cc__linkbtn {
	appearance: none;
	flex: 0 0 auto;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	font: inherit;
	font-size: 14px;
	line-height: 20px;
	font-weight: 600;
	color: #111;
	text-decoration: underline;
	text-underline-offset: 2px;
	cursor: pointer;
	white-space: nowrap;
}
#bs23cc .bs23cc__linkbtn:hover { color: var(--bs23cc-primary); }
#bs23cc .bs23cc__customize { display: none; margin-top: 6px; }
#bs23cc.bs23cc--banner .bs23cc__notice .bs23cc-btn--ghost { background: #fff; color: var(--bs23cc-primary); border-color: var(--bs23cc-primary); }
#bs23cc.bs23cc--banner .bs23cc__notice .bs23cc-btn--ghost:hover { background: #e6eff5; color: var(--bs23cc-dark); border-color: var(--bs23cc-dark); }
.bs23cc--banner .bs23cc__actions { margin-top: 0; flex-wrap: nowrap; gap: 12px; }
#bs23cc.bs23cc--banner .bs23cc__notice .bs23cc-btn { min-height: 44px; padding: 10px 18px; font-size: 15px; font-weight: 600; border-radius: 8px; white-space: nowrap; }

/* ---------- preference center (step 2) ---------- */
.bs23cc__pc {
	width: 100%;
	max-width: 720px;
	height: 640px;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}
.bs23cc__pc-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 18px 24px;
	border-bottom: 1px solid var(--bs23cc-line);
}
.bs23cc__pc-head .bs23cc__logo { margin: 0; }
#bs23cc .bs23cc__close {
	appearance: none;
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--bs23cc-dark);
	cursor: pointer;
}
#bs23cc .bs23cc__close:hover { background: var(--bs23cc-soft); }

.bs23cc__pc-body { flex: 1; overflow-y: auto; padding: 24px; overscroll-behavior: contain; }
.bs23cc__links { display: flex; gap: 18px; margin: 12px 0 18px; font-size: 14px; }
#bs23cc .bs23cc__subtitle { margin: 28px 0 14px; padding: 0; font-weight: 700; font-size: 16px; line-height: 1.4; font-family: inherit; color: var(--bs23cc-dark); }

.bs23cc__cats { border: 1px solid var(--bs23cc-line); border-radius: 10px; overflow: hidden; }
.bs23cc-cat + .bs23cc-cat { border-top: 1px solid var(--bs23cc-line); }
.bs23cc-cat__head { display: flex; align-items: center; gap: 12px; padding: 4px 16px 4px 4px; background: var(--bs23cc-soft); }
#bs23cc .bs23cc-cat__toggle {
	appearance: none;
	flex: 1;
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0;
	padding: 14px 12px;
	border: 0;
	background: transparent;
	color: var(--bs23cc-dark);
	font-weight: 700; font-size: 15px; line-height: 1.35;
	font-family: inherit;
	text-align: left;
	cursor: pointer;
	text-transform: none;
}
.bs23cc-cat__icon { position: relative; flex: 0 0 14px; width: 14px; height: 14px; }
.bs23cc-cat__icon::before,
.bs23cc-cat__icon::after { content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .2s; }
.bs23cc-cat__icon::after { transform: rotate(90deg); }
[aria-expanded="true"] > .bs23cc-cat__icon::after { transform: rotate(0deg); }
.bs23cc-cat__always { font-size: 13px; font-weight: 700; color: var(--bs23cc-primary); white-space: nowrap; }
.bs23cc-cat__body { padding: 4px 20px 18px 42px; background: var(--bs23cc-soft); font-size: 13.5px; line-height: 1.6; }
.bs23cc-cat__body p { margin: 0 0 10px; }

.bs23cc-cat__cookies summary { cursor: pointer; font-weight: 700; color: var(--bs23cc-primary); font-size: 13px; }
.bs23cc-cat__cookies ul { list-style: none; margin: 10px 0 0; padding: 0; }
.bs23cc-cat__cookies li { padding: 10px 12px; margin: 0 0 6px; background: #fff; border: 1px solid var(--bs23cc-line); border-radius: 8px; font-size: 13px; }
.bs23cc-cat__cookies li strong { color: var(--bs23cc-dark); font-family: ui-monospace, Consolas, monospace; font-size: 12.5px; }
.bs23cc-cat__cookies li span { float: right; color: #6b7d90; font-size: 12px; }

.bs23cc-switch { position: relative; display: inline-flex; flex: 0 0 auto; cursor: pointer; margin: 0; }
.bs23cc-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.bs23cc-switch__track { width: 44px; height: 24px; border-radius: 24px; background: #b5c1cd; transition: background-color .2s; position: relative; }
.bs23cc-switch__track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s; }
.bs23cc-switch input:checked + .bs23cc-switch__track { background: var(--bs23cc-primary); }
.bs23cc-switch input:checked + .bs23cc-switch__track::after { transform: translateX(20px); }
.bs23cc-switch input:focus-visible + .bs23cc-switch__track { outline: 3px solid var(--bs23cc-primary); outline-offset: 2px; }

.bs23cc__pc-foot {
	display: flex;
	justify-content: flex-end;
	gap: 12px;
	padding: 16px 24px;
	border-top: 1px solid var(--bs23cc-line);
	background: #fff;
}

/* ---------- floating + shortcode buttons ---------- */
.bs23cc-floating {
	position: fixed;
	left: 18px;
	bottom: 18px;
	z-index: 2147482000;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	border: 0;
	display: grid;
	place-items: center;
	background: var(--bs23cc-dark, #0a2540);
	color: #fff;
	cursor: pointer;
	box-shadow: 0 6px 20px rgba(10, 37, 64, .3);
}
.bs23cc-floating[hidden] { display: none; }
.bs23cc-settings-btn {
	appearance: none;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 22px;
	border-radius: 8px;
	border: 0;
	background: var(--bs23cc-primary, #1174a8);
	color: #fff;
	font: 700 15px/1.2 Manrope, system-ui, sans-serif;
	cursor: pointer;
}
.bs23cc-settings-btn:hover { background: var(--bs23cc-dark, #0a2540); }

/* ---------- cookie table block ---------- */
.bs23cc-table-wrap { overflow-x: auto; margin: 0 0 1.5em; border: 1px solid #dfe6ee; border-radius: 10px; }
.bs23cc-table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; min-width: 560px; }
.bs23cc-table th, .bs23cc-table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid #dfe6ee; vertical-align: top; }
.bs23cc-table thead th { background: var(--bs23cc-dark, #0a2540); color: #fff; font-weight: 700; font-size: 14px; }
.bs23cc-table tbody tr:nth-child(even) td { background: #f5f8fb; }
.bs23cc-table tbody tr:last-child td { border-bottom: 0; }
.bs23cc-table code { font-family: ui-monospace, Consolas, monospace; font-size: 13px; background: #e6eff5; padding: 2px 6px; border-radius: 4px; color: #0a2540; }

/* ---------- motion ---------- */
@keyframes bs23cc-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes bs23cc-pop { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes bs23cc-up { from { transform: translateY(100%); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) {
	.bs23cc__backdrop, .bs23cc__box { animation: none; }
}

/* ---------- small screens ---------- */
@media (max-width: 767px) {
	#bs23cc { padding: 12px; align-items: flex-end; }
	.bs23cc__notice { padding: 22px 20px 20px; }
	.bs23cc__actions { flex-direction: column-reverse; }
	#bs23cc .bs23cc-btn { width: 100%; }
	#bs23cc.bs23cc--banner .bs23cc__notice { flex-direction: column; align-items: stretch; gap: 16px; padding: 18px 16px 16px; border-radius: 20px 20px 0 0; max-height: 70vh; max-height: 70dvh; }
	#bs23cc.bs23cc--banner:not(.is-prefs) { padding: 0 8px; }
	.bs23cc--banner .bs23cc__notice-main { gap: 12px; }
	.bs23cc--banner .bs23cc__icon { width: 34px; height: 34px; }
	.bs23cc--banner .bs23cc__textrow { display: block; }
	#bs23cc.bs23cc--banner .bs23cc__notice .bs23cc__text { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
	#bs23cc.bs23cc--banner .is-expanded .bs23cc__text { display: block; -webkit-line-clamp: unset; }
	.bs23cc--banner .bs23cc__actions { flex-direction: row; flex-wrap: nowrap; }
	#bs23cc.bs23cc--banner .bs23cc__actions .bs23cc-btn { flex: 1; width: auto; }
	.bs23cc__pc { height: calc(100vh - 24px); height: calc(100dvh - 24px); }
	.bs23cc__pc-body { padding: 18px 16px; }
	.bs23cc__pc-foot { flex-direction: column-reverse; padding: 12px 16px; }
	.bs23cc-cat__body { padding-left: 20px; }
	.bs23cc-cat__cookies li span { float: none; display: block; }
}
