/* ============================================================
   WB Cookie Consent —— 多语言 Cookie 弹窗样式
   桌面右下角卡片，移动端底部通栏；支持 RTL
   ============================================================ */

.wbc-wrap,
.wbc-wrap *,
.wbc-wrap *:before,
.wbc-wrap *:after {
	box-sizing: border-box;
}

.wbc-wrap {
	position: fixed;
	left: 24px;
	right: auto;
	bottom: 24px;
	z-index: 99998;
	width: 520px;
	max-width: -webkit-calc(100% - 32px);
	max-width: calc(100% - 32px);
	font-family: "Segoe UI", Arial, Helvetica, sans-serif;
	font-size: 14px;
	line-height: 1.6;
	color: #333;
	opacity: 0;
	-webkit-transform: translateY(16px);
	-ms-transform: translateY(16px);
	transform: translateY(16px);
	-webkit-transition: opacity .22s ease, -webkit-transform .22s ease;
	transition: opacity .22s ease, transform .22s ease;
}

.wbc-wrap.wbc-in {
	opacity: 1;
	-webkit-transform: translateY(0);
	-ms-transform: translateY(0);
	transform: translateY(0);
}

.wbc-wrap.wbc-hide {
	opacity: 0;
	-webkit-transform: translateY(12px);
	-ms-transform: translateY(12px);
	transform: translateY(12px);
}

.wbc-wrap [hidden] {
	display: none !important;
}

.wbc-card {
	position: relative;
	background: #fff;
	border-radius: 6px;
	padding: 22px 24px 20px;
	box-shadow: 0 10px 34px rgba(0, 0, 0, .16), 0 2px 8px rgba(0, 0, 0, .06);
}

/* ---------- 头部 ---------- */
.wbc-head {
	position: relative;
	margin: 0 0 14px;
}

.wbc-title {
	margin: 0;
	padding: 0 26px;
	font-size: 18px;
	font-weight: 400;
	line-height: 1.4;
	color: #2b2b2b;
	text-align: center;
}

.wbc-x {
	position: absolute;
	top: -9px;
	right: -12px;
	width: 30px;
	height: 30px;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: #2b2b2b;
	cursor: pointer;
	line-height: 1;
	border-radius: 50%;
}

.wbc-x svg {
	display: block;
	width: 13px;
	height: 13px;
	margin: 0 auto;
}

.wbc-x:hover {
	background: #f1f2f4;
	color: #000;
}

/* ---------- 正文 ---------- */
.wbc-body {
	margin: 0;
}

.wbc-msg {
	margin: 0 0 18px;
	font-size: 14px;
	line-height: 1.75;
	color: #444;
	text-align: left;
}

.wbc-policy {
	color: #1a6bb5;
	text-decoration: underline;
	white-space: nowrap;
}

.wbc-policy:hover,
.wbc-policy:focus {
	color: #155a9a;
}

/* ---------- 政策页正文（the_content 里用） ---------- */
.wbc-open {
	display: inline-block;
	height: 44px;
	padding: 0 26px;
	border: 0;
	border-radius: 4px;
	background: #1a6bb5;
	color: #fff;
	font-family: inherit;
	font-size: 15px;
	line-height: 44px;
	cursor: pointer;
	-webkit-transition: background .18s ease;
	transition: background .18s ease;
}

.wbc-open:hover,
.wbc-open:focus {
	background: #155a9a;
}

.policy-list {
	margin: 0 0 20px;
	padding-left: 24px;
	list-style: disc outside;
}

.policy-list li {
	margin: 0 0 10px;
	line-height: 1.8;
	list-style: disc outside;
}

/* ---------- 偏好面板 ---------- */
.wbc-prefs {
	margin: 0 0 16px;
	border-top: 1px solid #ececec;
}

.wbc-row {
	display: -webkit-box;
	display: -webkit-flex;
	display: -ms-flexbox;
	display: flex;
	-webkit-align-items: center;
	-ms-flex-align: center;
	align-items: center;
	-webkit-justify-content: space-between;
	-ms-flex-pack: justify;
	justify-content: space-between;
	padding: 11px 0;
	border-bottom: 1px solid #f1f1f1;
}

.wbc-label {
	font-size: 14px;
	color: #333;
	padding-right: 12px;
}

.wbc-on {
	font-size: 12px;
	color: #8a8a8a;
	white-space: nowrap;
}

.wbc-switch {
	position: relative;
	display: inline-block;
	width: 42px;
	height: 22px;
	-webkit-flex: 0 0 auto;
	-ms-flex: 0 0 auto;
	flex: 0 0 auto;
}

.wbc-switch input {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: pointer;
	z-index: 2;
}

.wbc-switch i {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background: #ccd1d6;
	border-radius: 99px;
	-webkit-transition: background .18s ease;
	transition: background .18s ease;
}

.wbc-switch i:before {
	content: "";
	position: absolute;
	top: 2px;
	left: 2px;
	width: 18px;
	height: 18px;
	background: #fff;
	border-radius: 50%;
	box-shadow: 0 1px 2px rgba(0, 0, 0, .2);
	-webkit-transition: -webkit-transform .18s ease;
	transition: transform .18s ease;
}

.wbc-switch input:checked + i {
	background: #1a6bb5;
}

.wbc-switch input:checked + i:before {
	-webkit-transform: translateX(20px);
	-ms-transform: translateX(20px);
	transform: translateX(20px);
}

/* ---------- 按钮 ---------- */
.wbc-btns {
	display: -webkit-box;
	display: -webkit-flex;
	display: -ms-flexbox;
	display: flex;
	margin: 0 -5px;
}

.wbc-btn {
	-webkit-box-flex: 1;
	-webkit-flex: 1 1 0;
	-ms-flex: 1 1 0;
	flex: 1 1 0;
	margin: 0 5px;
	height: 46px;
	padding: 0 8px;
	border: 0;
	border-radius: 4px;
	font-family: inherit;
	font-size: 15px;
	line-height: 46px;
	text-align: center;
	cursor: pointer;
	-webkit-transition: background .18s ease;
	transition: background .18s ease;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.wbc-primary {
	background: #1a6bb5;
	color: #fff;
}

.wbc-primary:hover,
.wbc-primary:focus {
	background: #155a9a;
}

.wbc-ghost {
	background: #f3f4f6;
	color: #2f2f2f;
}

.wbc-ghost:hover,
.wbc-ghost:focus {
	background: #e8eaee;
}

/* ---------- RTL（阿语 / 希伯来语） ---------- */
.wbc-rtl {
	left: auto;
	right: 24px;
}

.wbc-rtl .wbc-x {
	right: auto;
	left: -12px;
}

.wbc-rtl .wbc-btns {
	direction: rtl;
}

.wbc-rtl .wbc-title,
.wbc-rtl .wbc-msg {
	text-align: right;
}

/* 政策页在阿语/希伯来语下的列表缩进 */
.wb-rtl .policy-list {
	padding-left: 0;
	padding-right: 24px;
}

.wbc-rtl .wbc-title {
	text-align: center;
}

.wbc-rtl .wbc-label {
	padding-right: 0;
	padding-left: 12px;
}

.wbc-rtl .wbc-switch input:checked + i:before {
	-webkit-transform: translateX(-20px);
	-ms-transform: translateX(-20px);
	transform: translateX(-20px);
}

/* ---------- 移动端 ---------- */
@media (max-width: 600px) {
	.wbc-wrap {
		right: 10px;
		left: 10px;
		bottom: 10px;
		width: auto;
		max-width: none;
	}

	.wbc-rtl {
		right: 10px;
		left: 10px;
	}

	.wbc-card {
		padding: 18px 16px 16px;
	}

	.wbc-head {
		margin-bottom: 12px;
	}

	.wbc-title {
		padding: 0 22px;
		font-size: 16px;
	}

	.wbc-msg {
		font-size: 13px;
		line-height: 1.7;
		max-height: 42vh;
		overflow-y: auto;
	}

	.wbc-btn {
		height: 43px;
		line-height: 43px;
		font-size: 14px;
		margin: 0 3px;
	}

	.wbc-btns {
		margin: 0 -3px;
	}
}
