/* WorkFlow Suite — Cookie banner + PDPA modal */

/* ===== BOTTOM BANNER ===== */
.wf-cookie-banner {
	position: fixed; bottom: 0; left: 0; right: 0;
	z-index: 9997;
	background: white;
	border-top: 3px solid #00a1ff;
	box-shadow: 0 -8px 30px -8px rgba(15,39,70,0.18);
	padding: 18px 0;
	transform: translateY(100%);
	transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	font-family: inherit;
}
.wf-cookie-banner.show {
	transform: translateY(0);
}
.wf-cookie-banner-inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px;
	display: flex; align-items: center; gap: 24px;
}
.wf-cookie-banner-text { flex: 1; min-width: 0; }
.wf-cookie-banner-title {
	font-size: 16px; font-weight: 800;
	color: #0f2746;
	margin-bottom: 4px;
}
.wf-cookie-banner-text p {
	font-size: 13.5px; color: #4b5b75;
	line-height: 1.55; margin: 0;
}
.wf-cookie-banner-link {
	color: #0086d6 !important;
	font-weight: 700;
	text-decoration: none;
	margin-left: 4px;
	white-space: nowrap;
}
.wf-cookie-banner-link:hover { text-decoration: underline; }

.wf-cookie-banner-actions {
	display: flex; gap: 8px;
	align-items: center;
	flex-shrink: 0;
}

/* Reusable consent buttons */
.wf-c-btn {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 10px 16px;
	border-radius: 8px;
	font-family: inherit; font-weight: 700; font-size: 13px;
	border: 1.5px solid transparent;
	cursor: pointer;
	transition: all 0.18s;
	white-space: nowrap;
	text-decoration: none;
}
.wf-c-btn-primary {
	background: linear-gradient(135deg, #00c4ff, #00a1ff);
	color: white;
	box-shadow: 0 6px 14px -4px rgba(0,161,255,0.5);
}
.wf-c-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 20px -6px rgba(0,161,255,0.65); }
.wf-c-btn-ghost {
	background: white;
	color: #4b5b75;
	border-color: #e3edf5;
}
.wf-c-btn-ghost:hover { background: #f3faff; border-color: #00a1ff; color: #0086d6; }

@media (max-width: 880px) {
	.wf-cookie-banner-inner { flex-direction: column; gap: 14px; align-items: stretch; }
	.wf-cookie-banner-actions { flex-wrap: wrap; }
	.wf-cookie-banner-actions .wf-c-btn { flex: 1; justify-content: center; }
}

/* ===== PDPA MODAL ===== */
.wf-pdpa-overlay {
	position: fixed; inset: 0;
	z-index: 10000;
	background: rgba(15, 39, 70, 0.55);
display: none;
	align-items: center; justify-content: center;
	padding: 20px;
	opacity: 0;
	transition: opacity 0.25s;
}
.wf-pdpa-overlay.show {
	display: flex;
	opacity: 1;
}
.wf-pdpa-modal {
	background: white;
	border-radius: 18px;
	max-width: 560px;
	width: 100%;
	max-height: 90vh;
	display: flex; flex-direction: column;
	box-shadow: 0 30px 80px -20px rgba(15,39,70,0.45);
	animation: pdpaIn 0.3s ease;
	font-family: inherit;
}
@keyframes pdpaIn {
	from { transform: translateY(20px) scale(0.97); opacity: 0; }
	to { transform: translateY(0) scale(1); opacity: 1; }
}

.wf-pdpa-head {
	padding: 22px 26px;
	border-bottom: 1px solid #e3edf5;
	display: flex; align-items: center; justify-content: space-between;
}
.wf-pdpa-head h3 {
	font-size: 18px; font-weight: 800;
	color: #0f2746;
	display: flex; align-items: center; gap: 10px;
}
.wf-pdpa-head h3 i { color: #00a1ff; }
.wf-pdpa-close {
	background: transparent;
	border: none; cursor: pointer;
	width: 32px; height: 32px;
	border-radius: 8px;
	color: #8a9bb1; font-size: 16px;
	display: flex; align-items: center; justify-content: center;
	transition: all 0.15s;
}
.wf-pdpa-close:hover { background: #f3faff; color: #0086d6; }

.wf-pdpa-body {
	padding: 22px 26px;
	overflow-y: auto;
	flex: 1;
}
.wf-pdpa-intro {
	font-size: 13.5px; color: #4b5b75;
	line-height: 1.6;
	margin-bottom: 22px;
	padding: 14px 16px;
	background: #f3faff;
	border-left: 3px solid #00a1ff;
	border-radius: 0 8px 8px 0;
}

/* Category card */
.wf-pdpa-category {
	border: 1px solid #e3edf5;
	border-radius: 12px;
	padding: 16px 18px;
	margin-bottom: 12px;
	transition: border-color 0.15s;
}
.wf-pdpa-category:hover { border-color: #cfe4f2; }
.wf-pdpa-cat-head {
	display: flex; align-items: center; justify-content: space-between;
	gap: 14px;
}
.wf-pdpa-cat-info { flex: 1; min-width: 0; }
.wf-pdpa-cat-title {
	font-size: 14.5px; font-weight: 800;
	color: #0f2746;
	display: flex; align-items: center; gap: 8px;
}
.wf-pdpa-cat-title i {
	width: 18px; text-align: center;
	color: #0086d6; font-size: 13px;
}
.wf-pdpa-cat-tag {
	display: inline-block;
	font-size: 11px; font-weight: 700;
	background: #e7faf2; color: #00875a;
	padding: 2px 9px; border-radius: 4px;
	margin-top: 5px;
}
.wf-pdpa-cat-desc {
	font-size: 12.5px; color: #4b5b75;
	line-height: 1.55;
	margin-top: 10px;
	padding-top: 10px;
	border-top: 1px dashed #e3edf5;
}

/* Toggle switch */
.wf-toggle {
	position: relative;
	width: 44px; height: 24px;
	flex-shrink: 0;
	cursor: pointer;
}
.wf-toggle input { opacity: 0; width: 0; height: 0; }
.wf-toggle-slider {
	position: absolute; inset: 0;
	background: #d4dde8;
	border-radius: 24px;
	transition: background 0.2s;
}
.wf-toggle-slider::before {
	content: '';
	position: absolute;
	left: 3px; top: 3px;
	width: 18px; height: 18px;
	background: white;
	border-radius: 50%;
	transition: transform 0.2s;
	box-shadow: 0 2px 6px -1px rgba(0,0,0,0.15);
}
.wf-toggle input:checked + .wf-toggle-slider {
	background: linear-gradient(135deg, #00c4ff, #00a1ff);
}
.wf-toggle input:checked + .wf-toggle-slider::before {
	transform: translateX(20px);
}
.wf-toggle.disabled {
	cursor: not-allowed;
	opacity: 0.85;
}
.wf-toggle.disabled .wf-toggle-slider {
	background: linear-gradient(135deg, #1be0a8, #00b07a);
}

/* Footer */
.wf-pdpa-foot {
	padding: 18px 26px;
	border-top: 1px solid #e3edf5;
	display: flex; align-items: center; justify-content: space-between;
	gap: 14px;
	flex-wrap: wrap;
}
.wf-pdpa-link {
	font-size: 12.5px; color: #4b5b75;
	text-decoration: none;
	font-weight: 600;
	display: inline-flex; align-items: center; gap: 6px;
}
.wf-pdpa-link:hover { color: #0086d6; }
.wf-pdpa-foot-actions {
	display: flex; gap: 8px;
}

@media (max-width: 520px) {
	.wf-pdpa-head { padding: 16px 18px; }
	.wf-pdpa-body { padding: 16px 18px; }
	.wf-pdpa-foot { padding: 14px 18px; }
	.wf-pdpa-foot { flex-direction: column-reverse; align-items: stretch; }
	.wf-pdpa-foot-actions { flex-wrap: wrap; }
	.wf-pdpa-foot-actions .wf-c-btn { flex: 1; justify-content: center; }
}
