.wpcc-hidden { display: none !important; }

#wpcc-banner, #wpcc-modal, #wpcc-modal-overlay {
	box-sizing: border-box;
}
#wpcc-banner *, #wpcc-modal *, #wpcc-modal-overlay * {
	box-sizing: border-box;
}

/* ---------- Banner ---------- */
.wpcc-banner {
	position: fixed;
	left: 0;
	right: 0;
	z-index: 999999;
	background: var(--wpcc-bg, #1d2327);
	color: var(--wpcc-text, #ffffff);
	padding: 18px 24px;
	font-size: 14px;
	line-height: 1.5;
	box-shadow: 0 0 24px rgba(0,0,0,.25);
}
.wpcc-banner.wpcc-pos-bottom { bottom: 0; }
.wpcc-banner.wpcc-pos-top { top: 0; }
.wpcc-banner.wpcc-pos-center {
	bottom: 24px;
	left: 50%;
	right: auto;
	transform: translateX(-50%);
	max-width: 640px;
	border-radius: 12px;
}

.wpcc-banner-inner {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	align-items: center;
	justify-content: space-between;
	max-width: 1200px;
	margin: 0 auto;
}
.wpcc-banner-text { flex: 1 1 320px; }
.wpcc-banner-title { display: block; margin-bottom: 4px; font-size: 15px; }
.wpcc-banner-text p { margin: 0; opacity: .92; }
.wpcc-banner-text a {
	color: inherit;
	text-decoration: underline;
	margin-left: 4px;
	white-space: nowrap;
}

.wpcc-banner-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	flex: 0 0 auto;
}

.wpcc-btn {
	border: 1px solid transparent;
	border-radius: 6px;
	padding: 9px 16px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	white-space: nowrap;
	line-height: 1.2;
}
.wpcc-btn-outline {
	background: transparent;
	border-color: rgba(255,255,255,.5);
	color: inherit;
}
.wpcc-btn-outline:hover { border-color: #fff; }
.wpcc-btn-solid {
	background: var(--wpcc-accent, #2271b1);
	color: #fff;
}
.wpcc-btn-solid:hover { filter: brightness(1.08); }

/* ---------- Modal ---------- */
.wpcc-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,.55);
	z-index: 999998;
}
.wpcc-modal {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background: #fff;
	color: #1d2327;
	width: min(520px, 92vw);
	max-height: 86vh;
	overflow-y: auto;
	border-radius: 12px;
	z-index: 999999;
	padding: 28px;
	box-shadow: 0 10px 40px rgba(0,0,0,.35);
}
.wpcc-modal h2 { margin-top: 0; font-size: 20px; }
.wpcc-modal > .wpcc-modal-inner > p { color: #444; }

.wpcc-category {
	border-top: 1px solid #e2e4e7;
	padding: 14px 0;
}
.wpcc-category-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-weight: 600;
}
.wpcc-category p { margin: 6px 0 0; font-size: 13px; color: #555; }

.wpcc-switch {
	position: relative;
	display: inline-block;
	width: 42px;
	height: 24px;
	flex-shrink: 0;
}
.wpcc-switch input { opacity: 0; width: 0; height: 0; }
.wpcc-slider {
	position: absolute;
	cursor: pointer;
	inset: 0;
	background-color: #ccc;
	border-radius: 24px;
	transition: .2s;
}
.wpcc-slider::before {
	content: "";
	position: absolute;
	height: 18px;
	width: 18px;
	left: 3px;
	bottom: 3px;
	background-color: #fff;
	border-radius: 50%;
	transition: .2s;
}
.wpcc-switch input:checked + .wpcc-slider {
	background-color: var(--wpcc-accent, #2271b1);
}
.wpcc-switch input:checked + .wpcc-slider::before {
	transform: translateX(18px);
}
.wpcc-switch-disabled .wpcc-slider { cursor: not-allowed; opacity: .6; }

.wpcc-modal-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: flex-end;
	margin-top: 20px;
}
.wpcc-modal-actions .wpcc-btn { border-color: #ccd0d4; color: #1d2327; }
.wpcc-modal-actions .wpcc-btn-solid { color: #fff; border-color: transparent; }

@media (max-width: 600px) {
	.wpcc-banner-actions { width: 100%; justify-content: stretch; }
	.wpcc-banner-actions .wpcc-btn { flex: 1 1 auto; }
}
