/* WPFarm Cookie Consent Banner */
.wpfarm-cc-banner {
	position: fixed;
	z-index: 999999;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: 14px;
	line-height: 1.5;
	background: var(--wpfarm-cc-bg, #1a1a2e);
	color: var(--wpfarm-cc-text, #fff);
	box-shadow: 0 -4px 24px rgba(0, 0, 0, .15);
	transition: transform .4s ease, opacity .4s ease;
}

.wpfarm-cc-banner[hidden] {
	display: none !important;
}

/* Positions */
.wpfarm-cc-bottom {
	bottom: 0; left: 0; right: 0;
}
.wpfarm-cc-top {
	top: 0; left: 0; right: 0;
}
.wpfarm-cc-bottom-left {
	bottom: 20px; left: 20px;
	max-width: 420px;
	border-radius: 12px;
}
.wpfarm-cc-bottom-right {
	bottom: 20px; right: 20px;
	max-width: 420px;
	border-radius: 12px;
}
.wpfarm-cc-center {
	top: 50%; left: 50%;
	transform: translate(-50%, -50%);
	max-width: 540px;
	border-radius: 16px;
	width: calc(100% - 40px);
}

.wpfarm-cc-inner {
	padding: 20px 28px;
	display: flex;
	align-items: center;
	gap: 24px;
	flex-wrap: wrap;
}

.wpfarm-cc-bottom-left .wpfarm-cc-inner,
.wpfarm-cc-bottom-right .wpfarm-cc-inner,
.wpfarm-cc-center .wpfarm-cc-inner {
	flex-direction: column;
	align-items: stretch;
}

.wpfarm-cc-content {
	flex: 1;
	min-width: 280px;
}

.wpfarm-cc-title {
	font-size: 16px;
	font-weight: 700;
	margin: 0 0 6px;
	color: inherit;
}

.wpfarm-cc-message {
	margin: 0;
	opacity: .9;
	font-size: 13px;
}

.wpfarm-cc-policy-link {
	color: inherit;
	opacity: .7;
	font-size: 12px;
	text-decoration: underline;
	display: inline-block;
	margin-top: 6px;
}
.wpfarm-cc-policy-link:hover {
	opacity: 1;
}

/* Buttons */
.wpfarm-cc-actions {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	flex-shrink: 0;
}

.wpfarm-cc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 22px;
	border: none;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	white-space: nowrap;
	transition: opacity .2s, transform .1s;
	line-height: 1.2;
}
.wpfarm-cc-btn:hover {
	opacity: .9;
	transform: translateY(-1px);
}
.wpfarm-cc-btn:active {
	transform: translateY(0);
}

.wpfarm-cc-btn-accept {
	background: var(--wpfarm-cc-accept-bg, #255F38);
	color: var(--wpfarm-cc-accept-text, #fff);
}

.wpfarm-cc-btn-reject {
	background: var(--wpfarm-cc-reject-bg, transparent);
	color: var(--wpfarm-cc-reject-text, #fff);
	border: 1px solid var(--wpfarm-cc-reject-border, rgba(255,255,255,.3));
}

.wpfarm-cc-btn-settings {
	background: transparent;
	color: var(--wpfarm-cc-text, #fff);
	text-decoration: underline;
	padding: 10px 12px;
	font-size: 12px;
	opacity: .8;
}
.wpfarm-cc-btn-settings:hover {
	opacity: 1;
}

/* Settings panel */
.wpfarm-cc-settings-panel {
	padding: 0 28px 20px;
	border-top: 1px solid rgba(255, 255, 255, .1);
	margin-top: 0;
}
.wpfarm-cc-settings-panel[hidden] {
	display: none;
}

.wpfarm-cc-categories {
	padding: 16px 0;
}

.wpfarm-cc-category {
	padding: 10px 0;
	border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.wpfarm-cc-category:last-child {
	border-bottom: none;
}

.wpfarm-cc-category-label {
	display: flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
	font-weight: 600;
	font-size: 13px;
}

.wpfarm-cc-checkbox {
	width: 18px;
	height: 18px;
	accent-color: var(--wpfarm-cc-accept-bg, #255F38);
	cursor: pointer;
}
.wpfarm-cc-checkbox:disabled {
	opacity: .6;
	cursor: default;
}

.wpfarm-cc-category-name {
	flex: 1;
}

.wpfarm-cc-required {
	font-size: 11px;
	opacity: .6;
	font-weight: 400;
}

.wpfarm-cc-category-desc {
	font-size: 12px;
	opacity: .7;
	margin: 4px 0 0 28px;
}

/* Re-open button */
.wpfarm-cc-reopen {
	position: fixed;
	bottom: 20px;
	left: 20px;
	z-index: 999998;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: none;
	background: var(--wpfarm-cc-bg, #1a1a2e);
	color: var(--wpfarm-cc-text, #fff);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 12px rgba(0, 0, 0, .2);
	transition: transform .2s;
}
.wpfarm-cc-reopen:hover {
	transform: scale(1.1);
}
.wpfarm-cc-reopen[hidden] {
	display: none !important;
}

/* Cookie policy table */
.wpfarm-cc-table {
	width: 100%;
	border-collapse: collapse;
	margin: 12px 0 24px;
	font-size: 14px;
}
.wpfarm-cc-table th,
.wpfarm-cc-table td {
	padding: 10px 14px;
	text-align: left;
	border: 1px solid #e0e0e0;
}
.wpfarm-cc-table th {
	background: #f5f5f5;
	font-weight: 600;
}
.wpfarm-cc-table code {
	background: #f0f0f0;
	padding: 2px 6px;
	border-radius: 3px;
	font-size: 12px;
}

/* Mobile */
@media (max-width: 768px) {
	.wpfarm-cc-inner {
		flex-direction: column;
		padding: 16px 20px;
		gap: 14px;
	}
	.wpfarm-cc-actions {
		width: 100%;
	}
	.wpfarm-cc-btn {
		flex: 1;
		text-align: center;
	}
	.wpfarm-cc-bottom-left,
	.wpfarm-cc-bottom-right {
		left: 10px; right: 10px;
		max-width: none;
		bottom: 10px;
	}
	.wpfarm-cc-settings-panel {
		padding: 0 20px 16px;
	}
}
