/* Front-end styles for Cookie Consent Manager */

.ccm-hidden {
	display: none !important;
}

.ccm-root {
	position: relative;
	z-index: 999990;
}

/* Banner */
.ccm-banner {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	background: #1e1e2e;
	color: #f5f5f7;
	padding: 1.25rem 1.5rem;
	box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.2);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
}

.ccm-banner__inner {
	max-width: 1100px;
	margin: 0 auto;
	position: relative;
	padding-right: 2rem;
}

.ccm-banner__close {
	position: absolute;
	top: 0;
	right: 0;
	background: transparent;
	border: 0;
	color: #aaa;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
	padding: 0.25rem;
}

.ccm-banner__close:hover {
	color: #fff;
}

.ccm-banner__title {
	margin: 0 0 0.5rem;
	font-size: 1.125rem;
	font-weight: 600;
}

.ccm-banner__description {
	margin: 0 0 1rem;
	font-size: 0.9375rem;
	line-height: 1.5;
	color: #d0d0d8;
	max-width: 800px;
}

.ccm-banner__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

/* Buttons */
.ccm-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.625rem 1.25rem;
	border-radius: 6px;
	font-size: 0.875rem;
	font-weight: 600;
	cursor: pointer;
	border: 1px solid transparent;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.ccm-btn--primary {
	background: #4f46e5;
	color: #fff;
	border-color: #4f46e5;
}

.ccm-btn--primary:hover {
	background: #4338ca;
	border-color: #4338ca;
}

.ccm-btn--secondary {
	background: transparent;
	color: #f5f5f7;
	border-color: #666;
}

.ccm-btn--secondary:hover {
	border-color: #aaa;
	background: rgba(255, 255, 255, 0.05);
}

/* Floating icon */
.ccm-floating-icon {
	position: fixed;
	bottom: 1.25rem;
	left: 1.25rem;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: #4f46e5;
	color: #fff;
	border: 0;
	box-shadow: 0 4px 16px rgba(79, 70, 229, 0.4);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 999991;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.ccm-floating-icon:hover {
	transform: scale(1.05);
	box-shadow: 0 6px 20px rgba(79, 70, 229, 0.5);
}

.ccm-floating-icon svg {
	width: 24px;
	height: 24px;
}

/* Modal */
.ccm-modal {
	position: fixed;
	inset: 0;
	z-index: 999992;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
}

.ccm-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
}

.ccm-modal__dialog {
	position: relative;
	background: #fff;
	color: #1a1a1a;
	border-radius: 12px;
	max-width: 640px;
	width: 100%;
	max-height: 90vh;
	overflow-y: auto;
	padding: 1.5rem 1.75rem;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
}

.ccm-modal__close {
	position: absolute;
	top: 0.75rem;
	right: 0.75rem;
	background: transparent;
	border: 0;
	font-size: 1.5rem;
	line-height: 1;
	color: #666;
	cursor: pointer;
}

.ccm-modal__close:hover {
	color: #111;
}

.ccm-modal__title {
	margin: 0 0 0.5rem;
	font-size: 1.25rem;
	font-weight: 600;
}

.ccm-modal__description {
	margin: 0 0 1.25rem;
	color: #555;
	line-height: 1.5;
	font-size: 0.9375rem;
}

.ccm-modal__section {
	margin-bottom: 1.25rem;
}

.ccm-modal__section h3 {
	margin: 0 0 0.75rem;
	font-size: 1rem;
	font-weight: 600;
}

.ccm-modal__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 1rem;
	padding-top: 1rem;
	border-top: 1px solid #eee;
}

body.ccm-modal-open {
	overflow: hidden;
}

/* Cookie list */
.ccm-cookie-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ccm-cookie-item {
	padding: 0.875rem;
	border: 1px solid #e5e5e5;
	border-radius: 8px;
	margin-bottom: 0.5rem;
	background: #fafafa;
}

.ccm-cookie-item strong {
	display: block;
	font-size: 0.9375rem;
}

.ccm-cookie-provider {
	display: inline-block;
	margin-left: 0.5rem;
	font-size: 0.75rem;
	color: #666;
	background: #eee;
	padding: 0.125rem 0.5rem;
	border-radius: 4px;
}

.ccm-cookie-item p {
	margin: 0.375rem 0;
	font-size: 0.875rem;
	color: #444;
	line-height: 1.45;
}

.ccm-cookie-item small {
	color: #777;
	font-size: 0.8125rem;
}

.ccm-cookie-badge {
	display: inline-block;
	margin-top: 0.375rem;
	font-size: 0.75rem;
	font-weight: 600;
	color: #166534;
	background: #dcfce7;
	padding: 0.125rem 0.5rem;
	border-radius: 4px;
}

.ccm-cookie-empty {
	color: #777;
	font-size: 0.875rem;
}

/* Blocked embed placeholder */
.ccm-blocked-widget,
.ccm-blocked-embed {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 200px;
	background: #f3f4f6;
	border: 2px dashed #d1d5db;
	border-radius: 8px;
	padding: 1.5rem;
	text-align: center;
	margin: 1rem 0;
}

.ccm-blocked-embed__text {
	margin: 0 0 1rem;
	color: #4b5563;
	font-size: 0.9375rem;
	max-width: 400px;
}

@media (max-width: 600px) {
	.ccm-banner {
		padding: 1rem;
	}

	.ccm-banner__actions {
		flex-direction: column;
	}

	.ccm-banner__actions .ccm-btn {
		width: 100%;
	}

	.ccm-floating-icon {
		bottom: 1rem;
		left: 1rem;
		width: 44px;
		height: 44px;
	}

	.ccm-modal__dialog {
		padding: 1.25rem;
	}

	.ccm-modal__actions {
		flex-direction: column;
	}

	.ccm-modal__actions .ccm-btn {
		width: 100%;
	}
}
