/**
 * BeePossible Cookie Consent banner styles.
 *
 * Colors are customizable via dashboard or CSS custom properties:
 * --bpcc-bg, --bpcc-text, --bpcc-link, --bpcc-btn-accept-bg,
 * --bpcc-btn-accept-text, --bpcc-btn-decline-bg, --bpcc-btn-decline-text
 */

.bpcc {
	--bpcc-bg: #f3ede1;
	--bpcc-text: #2a2a2a;
	--bpcc-link: #d97703;
	--bpcc-btn-accept-bg: #d97703;
	--bpcc-btn-accept-text: #ffffff;
	--bpcc-btn-decline-bg: #e5e7eb;
	--bpcc-btn-decline-text: #2a2a2a;
}

.bpcc {
	all: revert;
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 999999;
	background: var(--bpcc-bg);
	color: var(--bpcc-text);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 16px;
	line-height: 1.5;
	box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
	padding: 0;
	margin: 0;
	border: 0;
}

.bpcc[hidden] {
	display: none;
}

.bpcc--bottom-left {
	right: auto;
	max-width: 500px;
}

.bpcc--bottom-right {
	left: auto;
	max-width: 500px;
}

@media (max-width: 640px) {
	.bpcc--bottom-left,
	.bpcc--bottom-right {
		left: 0;
		right: 0;
		max-width: 100%;
	}
}

.bpcc__inner {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	align-items: flex-start;
	padding: 24px;
	max-width: 100%;
}

@media (max-width: 640px) {
	.bpcc__inner {
		flex-direction: column;
		gap: 16px;
		padding: 16px;
	}
}

.bpcc__text {
	flex: 1;
	min-width: 0;
}

.bpcc__actions {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	align-items: center;
}

@media (max-width: 640px) {
	.bpcc__actions {
		width: 100%;
		flex-direction: row;
	}
}

/* Title */
.bpcc__title {
	margin: 0 0 8px 0;
	font-weight: 700;
	font-size: 18px;
	line-height: 1.3;
	color: var(--bpcc-text);
}

/* Message and link */
.bpcc__message {
	margin: 0;
	font-size: 15px;
	color: var(--bpcc-text);
}

.bpcc__link {
	color: var(--bpcc-link);
	text-decoration: underline;
	font-weight: 500;
	cursor: pointer;
	transition: opacity 0.2s ease;
}

.bpcc__link:hover {
	opacity: 0.8;
}

/* Services / cookies disclosure */
.bpcc__services {
	margin: 12px 0 0 0;
	padding: 0;
}

.bpcc__services-toggle {
	color: var(--bpcc-link);
	text-decoration: underline;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	margin: 0;
	padding: 0;
	background: none;
	border: none;
}

.bpcc__services-toggle:hover {
	opacity: 0.8;
}

.bpcc__services-list {
	margin: 12px 0 0 0;
	padding: 0 0 0 20px;
	list-style: none;
	font-size: 14px;
}

.bpcc__services-list li {
	margin: 8px 0;
	padding: 0;
}

.bpcc__services-name {
	color: var(--bpcc-link);
	text-decoration: underline;
	font-weight: 500;
}

.bpcc__services-name:hover {
	opacity: 0.8;
}

.bpcc__services-purpose {
	display: block;
	margin-top: 2px;
	font-size: 13px;
	color: var(--bpcc-text);
	opacity: 0.85;
}

/* Buttons */
.bpcc__btn {
	all: revert;
	padding: 10px 20px;
	border-radius: 4px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	border: none;
	transition: all 0.2s ease;
	white-space: nowrap;
	min-height: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-family: inherit;
	text-transform: none;
	letter-spacing: normal;
}

.bpcc__btn--accept {
	background-color: var(--bpcc-btn-accept-bg);
	color: var(--bpcc-btn-accept-text);
}

.bpcc__btn--accept:hover {
	opacity: 0.9;
	transform: translateY(-1px);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.bpcc__btn--decline {
	background-color: var(--bpcc-btn-decline-bg);
	color: var(--bpcc-btn-decline-text);
}

.bpcc__btn--decline:hover {
	opacity: 0.9;
	transform: translateY(-1px);
}

@media (max-width: 640px) {
	.bpcc__btn {
		flex: 1;
		min-width: 120px;
	}
}

/* Accessibility */
.bpcc__btn:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.bpcc__link:focus-visible {
	outline: 2px solid var(--bpcc-link);
	outline-offset: 2px;
	border-radius: 2px;
}

/* Responsive */
@media (max-width: 768px) {
	.bpcc__inner {
		gap: 16px;
		padding: 16px;
	}

	.bpcc__title {
		font-size: 16px;
	}

	.bpcc__message {
		font-size: 14px;
	}

	.bpcc__actions {
		width: 100%;
	}
}
