/**
 * Cookie consent bar styling
 *
 * Displays a dismissible cookie consent banner at the bottom of the page.
 * Accepts/rejects to store preference in localStorage and cookies.
 *
 * @package DEXA
 */

.cookie-bar {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	background: #1a1a1a;
	border-top: 1px solid #333;
	padding: 1.5rem;
	z-index: 999;
	box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.2);
	display: none;
	font-size: 0.95rem;
	line-height: 1.6;
}

.cookie-bar.is-visible {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
	flex-wrap: wrap;
}

.cookie-bar-content {
	flex: 1;
	min-width: 200px;
	color: #fff;
}

.cookie-bar-content a {
	color: #bb0d12;
	text-decoration: none;
	font-weight: 500;
	transition: color 0.2s ease;
}

.cookie-bar-content a:hover {
	color: #ff0f1a;
	text-decoration: underline;
}

.cookie-bar-actions {
	display: flex;
	gap: 0.75rem;
	flex-wrap: wrap;
	align-items: center;
	min-width: 200px;
	justify-content: flex-end;
}

.cookie-bar-btn {
	padding: 0.625rem 1.25rem;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	font-size: 0.9rem;
	font-weight: 500;
	transition: all 0.2s ease;
	white-space: nowrap;
}

.cookie-bar-btn-accept {
	background: #bb0d12;
	color: white;
}

.cookie-bar-btn-accept:hover {
	background: #8b0a0f;
	box-shadow: 0 2px 6px rgba(187, 13, 18, 0.3);
}

.cookie-bar-btn-reject {
	background: transparent;
	color: #fff;
	border: 1px solid #666;
}

.cookie-bar-btn-reject:hover {
	background: #333;
	border-color: #999;
}

/* Adjust page bottom padding when cookie bar is visible */
body.has-cookie-bar-visible {
	padding-bottom: 0;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
	.cookie-bar {
		padding: 1rem;
		font-size: 0.9rem;
	}

	.cookie-bar.is-visible {
		flex-direction: column;
		align-items: stretch;
		gap: 1rem;
	}

	.cookie-bar-content {
		flex: 1;
		min-width: auto;
	}

	.cookie-bar-actions {
		justify-content: stretch;
		min-width: auto;
	}

	.cookie-bar-btn {
		flex: 1;
		min-width: 100px;
	}
}

@media (max-width: 480px) {
	.cookie-bar {
		padding: 0.75rem;
		font-size: 0.85rem;
	}

	.cookie-bar-btn {
		padding: 0.5rem 0.75rem;
		font-size: 0.85rem;
	}
}
