/**
 * Cookie consent banner styles.
 *
 * @package Lithops_Cookie
 */

/* CSS Variables */
.lck-banner {
	--lck-bg-color: #1a1a2e;
	--lck-text-color: #ffffff;
	--lck-btn-accept-bg: #00d68f;
	--lck-btn-accept-text: #1a1a2e;
	--lck-btn-reject-bg: transparent;
	--lck-btn-reject-text: #ffffff;
	--lck-btn-reject-border: rgba(255, 255, 255, 0.3);
}

/* Base banner styles */
.lck-banner {
	position: fixed;
	left: 0;
	right: 0;
	z-index: 99998;
	background-color: var(--lck-bg-color);
	color: var(--lck-text-color);
	box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
	font-family:
		-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu,
		Cantarell, 'Helvetica Neue', sans-serif;
	font-size: 14px;
	line-height: 1.5;
}

/* Position variants */
.lck-banner--bottom {
	bottom: 0;
}

.lck-banner--top {
	top: 0;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.lck-banner--bottom-left,
.lck-banner--bottom-right {
	bottom: 20px;
	left: auto;
	right: auto;
	max-width: 400px;
	border-radius: 12px;
	margin: 0 20px;
}

.lck-banner--bottom-left {
	left: 0;
}

.lck-banner--bottom-right {
	right: 0;
	left: auto;
}

/* Container */
.lck-banner-container {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	max-width: 1200px;
	margin: 0 auto;
	padding: 20px 30px;
}

.lck-banner--bottom-left .lck-banner-container,
.lck-banner--bottom-right .lck-banner-container {
	flex-direction: column;
	align-items: stretch;
}

/* Content */
.lck-banner-content {
	flex: 1;
	min-width: 300px;
}

.lck-banner-title {
	margin: 0 0 8px;
	font-size: 18px;
	font-weight: 600;
	color: var(--lck-text-color);
}

.lck-banner-text {
	margin: 0;
	opacity: 0.9;
}

.lck-banner-text a {
	color: var(--lck-text-color);
	text-decoration: underline;
}

.lck-banner-text a:hover {
	opacity: 0.8;
}

/* Actions */
.lck-banner-actions {
	display: flex;
	gap: 12px;
	flex-shrink: 0;
}

.lck-banner--bottom-left .lck-banner-actions,
.lck-banner--bottom-right .lck-banner-actions {
	justify-content: stretch;
}

.lck-banner--bottom-left .lck-banner-actions .lck-btn,
.lck-banner--bottom-right .lck-banner-actions .lck-btn {
	flex: 1;
}

/* Buttons */
.lck-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 24px;
	border: none;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
	text-decoration: none;
	white-space: nowrap;
}

.lck-btn:focus {
	outline: 2px solid var(--lck-btn-accept-bg);
	outline-offset: 2px;
}

.lck-btn-accept {
	background-color: var(--lck-btn-accept-bg);
	color: var(--lck-btn-accept-text);
}

.lck-btn-accept:hover {
	opacity: 0.9;
	transform: translateY(-1px);
}

.lck-btn-reject {
	background-color: var(--lck-btn-reject-bg);
	color: var(--lck-btn-reject-text);
	border: 1px solid var(--lck-btn-reject-border);
}

.lck-btn-reject:hover {
	background-color: rgba(255, 255, 255, 0.1);
}

/* Animation */
.lck-banner {
	animation: lckSlideIn 0.3s ease-out;
}

.lck-banner--bottom {
	animation-name: lckSlideInBottom;
}

.lck-banner--top {
	animation-name: lckSlideInTop;
}

.lck-banner--bottom-left,
.lck-banner--bottom-right {
	animation-name: lckFadeIn;
}

@keyframes lckSlideInBottom {
	from {
		transform: translateY(100%);
		opacity: 0;
	}
	to {
		transform: translateY(0);
		opacity: 1;
	}
}

@keyframes lckSlideInTop {
	from {
		transform: translateY(-100%);
		opacity: 0;
	}
	to {
		transform: translateY(0);
		opacity: 1;
	}
}

@keyframes lckFadeIn {
	from {
		transform: scale(0.95);
		opacity: 0;
	}
	to {
		transform: scale(1);
		opacity: 1;
	}
}

/* Hide animation */
.lck-banner.lck-hiding {
	animation: lckSlideOut 0.3s ease-in forwards;
}

.lck-banner--bottom.lck-hiding {
	animation-name: lckSlideOutBottom;
}

.lck-banner--top.lck-hiding {
	animation-name: lckSlideOutTop;
}

.lck-banner--bottom-left.lck-hiding,
.lck-banner--bottom-right.lck-hiding {
	animation-name: lckFadeOut;
}

@keyframes lckSlideOutBottom {
	from {
		transform: translateY(0);
		opacity: 1;
	}
	to {
		transform: translateY(100%);
		opacity: 0;
	}
}

@keyframes lckSlideOutTop {
	from {
		transform: translateY(0);
		opacity: 1;
	}
	to {
		transform: translateY(-100%);
		opacity: 0;
	}
}

@keyframes lckFadeOut {
	from {
		transform: scale(1);
		opacity: 1;
	}
	to {
		transform: scale(0.95);
		opacity: 0;
	}
}

/* Responsive */
@media (max-width: 768px) {
	.lck-banner-container {
		flex-direction: column;
		padding: 16px 20px;
		gap: 16px;
	}

	.lck-banner-content {
		min-width: 100%;
		text-align: center;
	}

	.lck-banner-actions {
		width: 100%;
		justify-content: center;
	}

	.lck-btn {
		flex: 1;
		padding: 12px 16px;
	}

	.lck-banner--bottom-left,
	.lck-banner--bottom-right {
		left: 10px;
		right: 10px;
		max-width: none;
		margin: 0;
	}
}
