/* Victra Cookie Consent — banner + preferences page styling */

#vcc-banner-backdrop {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
	z-index: 999998;
}

#vcc-banner {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 92%;
	max-width: 640px;
	max-height: 90vh;
	overflow-y: auto;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
	padding: 28px 32px 24px;
	font-family: Arial, Helvetica, sans-serif;
	color: #111;
	z-index: 999999;
	box-sizing: border-box;
}

#vcc-banner[hidden] {
	display: none;
}

.vcc-banner-title {
	font-size: 22px;
	font-weight: 700;
	margin: 0 0 14px;
	text-align: center;
}

.vcc-banner-body {
	font-size: 14px;
	line-height: 1.5;
	color: #333;
	margin: 0 0 16px;
	text-align: center;
}

.vcc-banner-buttons {
	display: flex;
	gap: 14px;
	margin-bottom: 18px;
}

/*
 * !important throughout: these buttons are injected into an arbitrary
 * page (banner in wp_footer, form on the policy page) and must render
 * the same regardless of the host theme's own global button/element
 * resets (e.g. Elementor's global Buttons style, which otherwise wins
 * over a plain class selector on <button> elements by source order).
 */
.vcc-btn {
	flex: 1 !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	min-height: 44px !important;
	padding: 0 24px !important;
	margin: 0 !important;
	border-radius: 20px !important;
	font-weight: bold !important;
	font-size: 15px !important;
	line-height: normal !important;
	cursor: pointer !important;
	text-align: center !important;
	text-decoration: none !important;
	box-shadow: none !important;
	transition: opacity 0.2s ease !important;
}

.vcc-btn-primary {
	background: #000 !important;
	color: #fff !important;
	border: none !important;
}

.vcc-btn-primary:hover {
	background: #000 !important;
	color: #fff !important;
	opacity: 0.85 !important;
}

.vcc-btn-secondary {
	background: #fff !important;
	color: #000 !important;
	border: 1px solid #000 !important;
}

.vcc-btn-secondary:hover {
	background: #fff !important;
	color: #000 !important;
}

.vcc-banner-footer-links {
	display: flex;
	justify-content: center;
	gap: 18px;
	font-size: 13px;
}

.vcc-banner-footer-links a {
	color: #666;
	text-decoration: underline;
}

@media (max-width: 480px) {
	#vcc-banner {
		padding: 22px 18px 18px;
		width: 92%;
	}
	.vcc-banner-buttons {
		flex-direction: column;
	}
}

/* Preferences page (shortcode) */

.vcc-prefs {
	max-width: 760px;
}

.vcc-prefs-category {
	border: 1px solid #e2e2e2;
	border-radius: 6px;
	padding: 16px 18px;
	margin-bottom: 12px;
}

.vcc-prefs-category-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.vcc-prefs-category-label {
	font-weight: 700;
	font-size: 16px;
}

.vcc-prefs-category-desc {
	margin: 8px 0 0;
	font-size: 14px;
	color: #444;
}

.vcc-toggle {
	position: relative;
	display: inline-block;
	width: 44px;
	height: 24px;
	flex-shrink: 0;
}

.vcc-toggle input {
	opacity: 0;
	width: 0;
	height: 0;
}

.vcc-toggle-slider {
	position: absolute;
	inset: 0;
	background: #ccc;
	border-radius: 24px;
	transition: background 0.15s;
}

.vcc-toggle-slider::before {
	content: "";
	position: absolute;
	width: 18px;
	height: 18px;
	left: 3px;
	top: 3px;
	background: #fff;
	border-radius: 50%;
	transition: transform 0.15s;
}

.vcc-toggle input:checked + .vcc-toggle-slider {
	background: #111;
}

.vcc-toggle input:checked + .vcc-toggle-slider::before {
	transform: translateX(20px);
}

.vcc-toggle input:disabled + .vcc-toggle-slider {
	background: #111;
	opacity: 0.5;
	cursor: not-allowed;
}

.vcc-save-confirmation {
	color: #146c2e;
	font-size: 14px;
	margin-top: 10px;
}

.vcc-cookie-table {
	width: 100%;
	border-collapse: collapse;
	margin-top: 14px;
	font-size: 14px;
}

.vcc-cookie-table th,
.vcc-cookie-table td {
	text-align: left;
	padding: 10px 12px;
	border-bottom: 1px solid #eee;
	vertical-align: top;
}

.vcc-cookie-table th {
	background: #f6f6f6;
	font-weight: 700;
}

@media (max-width: 480px) {
	.vcc-cookie-table {
		display: block;
		overflow-x: auto;
	}
}
