/* Cookie Consent Banner Styles */
.cookie-consent-banner {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 9999;
	background: linear-gradient(to bottom, #ffffff, #f8fafc);
	border-top: 3px solid #3b82f6;
	box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.15);
	padding: 1.5rem 1rem;
	transform: translateY(100%);
	transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cookie-consent-banner.visible {
	transform: translateY(0);
}

.cookie-consent-container {
	max-width: 1100px;
	margin: 0 auto;
}

/* Header Section */
.cookie-consent-header {
	display: flex;
	align-items: flex-start;
	gap: 1rem;
	margin-bottom: 1.25rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid #e5e7eb;
}

.cookie-consent-header > i {
	font-size: 2rem;
	color: #f59e0b;
	flex-shrink: 0;
}

.cookie-consent-header > div {
	flex: 1;
}

.cookie-consent-header h5 {
	margin: 0 0 0.5rem 0;
	font-size: 1.25rem;
	font-weight: 700;
	color: #1e3a8a;
}

.cookie-consent-header p {
	margin: 0;
	font-size: 0.9rem;
	color: #4b5563;
	line-height: 1.6;
}

.cookie-consent-header p a {
	color: #3b82f6;
	text-decoration: none;
	font-weight: 500;
}

.cookie-consent-header p a:hover {
	text-decoration: underline;
}

/* Cookie Categories - Horizontal Layout */
.cookie-categories {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1rem;
	margin-bottom: 1.25rem;
}

.cookie-category {
	padding: 1rem;
	background: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 0.75rem;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
	transition: border-color 0.2s, box-shadow 0.2s;
}

.cookie-category:hover {
	border-color: #3b82f6;
	box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
}

.cookie-category-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	margin-bottom: 0.5rem;
}

.cookie-category-header .form-check {
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	min-height: auto;
}

.cookie-category-header .form-check-input {
	width: 1.25rem;
	height: 1.25rem;
	margin: 0;
	cursor: pointer;
	border: 2px solid #d1d5db;
	border-radius: 0.25rem;
}

.cookie-category-header .form-check-input:checked {
	background-color: #3b82f6;
	border-color: #3b82f6;
}

.cookie-category-header .form-check-input:disabled {
	background-color: #9ca3af;
	border-color: #9ca3af;
	opacity: 1;
	cursor: not-allowed;
}

.cookie-category-header .form-check-label {
	font-weight: 600;
	color: #1f2937;
	cursor: pointer;
	font-size: 0.95rem;
	margin: 0;
}

.cookie-category-header .badge {
	font-size: 0.7rem;
	font-weight: 600;
	padding: 0.25rem 0.5rem;
	border-radius: 9999px;
	background-color: #6b7280 !important;
}

.cookie-category > p {
	margin: 0;
	font-size: 0.8rem;
	color: #6b7280;
	line-height: 1.5;
}

/* Action Buttons */
.cookie-consent-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	align-items: center;
	justify-content: flex-end;
	padding-top: 1rem;
	border-top: 1px solid #e5e7eb;
}

.cookie-consent-actions .btn {
	padding: 0.625rem 1.25rem;
	font-size: 0.9rem;
	font-weight: 600;
	border-radius: 0.5rem;
	transition: all 0.2s;
}

.cookie-consent-actions .btn-link {
	color: #6b7280;
	text-decoration: none;
	background: none;
	border: none;
}

.cookie-consent-actions .btn-link:hover {
	color: #1f2937;
	text-decoration: underline;
}

.cookie-consent-actions .btn-outline-primary {
	color: #3b82f6;
	border: 2px solid #3b82f6;
	background: transparent;
}

.cookie-consent-actions .btn-outline-primary:hover {
	background: #3b82f6;
	color: white;
}

.cookie-consent-actions .btn-primary {
	background: linear-gradient(135deg, #3b82f6, #2563eb);
	border: none;
	color: white;
	box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.cookie-consent-actions .btn-primary:hover {
	background: linear-gradient(135deg, #2563eb, #1d4ed8);
	box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

/* Cookie Settings Link (footer) */
.cookie-settings-link {
	cursor: pointer;
	color: rgba(255, 255, 255, 0.8);
	transition: all 0.3s ease;
}

.cookie-settings-link:hover {
	color: white;
}

/* Tablet */
@media (max-width: 992px) {
	.cookie-categories {
		grid-template-columns: repeat(3, 1fr);
	}
}

/* Mobile */
@media (max-width: 768px) {
	.cookie-consent-banner {
		padding: 1.25rem 1rem;
	}

	.cookie-consent-header {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.75rem;
	}

	.cookie-consent-header > i {
		font-size: 1.5rem;
	}

	.cookie-consent-header h5 {
		font-size: 1.1rem;
	}

	.cookie-categories {
		grid-template-columns: 1fr;
		gap: 0.75rem;
	}

	.cookie-category {
		padding: 0.875rem;
	}

	.cookie-consent-actions {
		flex-direction: column;
		align-items: stretch;
		gap: 0.5rem;
	}

	.cookie-consent-actions .btn {
		width: 100%;
		text-align: center;
		justify-content: center;
	}

	.cookie-consent-actions .btn-link {
		order: 3;
	}

	.cookie-consent-actions .btn-primary {
		order: 1;
	}

	.cookie-consent-actions .btn-outline-primary {
		order: 2;
	}
}

/* Small Mobile */
@media (max-width: 480px) {
	.cookie-consent-banner {
		padding: 1rem 0.75rem;
	}

	.cookie-consent-header p {
		font-size: 0.85rem;
	}

	.cookie-category-header .form-check-label {
		font-size: 0.9rem;
	}

	.cookie-category > p {
		font-size: 0.75rem;
	}
}
