/**
 * BDcrafty Cookie Consent Banner Styles
 *
 * @package BDcrafty
 */

/* -----------------------------------------------------------------------
   Banner container
----------------------------------------------------------------------- */
#bdcrafty-cookie-banner {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 99999;
	background: #1a2a1e;
	color: #f0ede8;
	box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.25);
	transform: translateY( 100% );
	transition: transform 0.35s cubic-bezier(0.34, 1.04, 0.64, 1);
	will-change: transform;
}

#bdcrafty-cookie-banner.bdcb--visible {
	transform: translateY( 0 );
}

#bdcrafty-cookie-banner.bdcb--hiding {
	transform: translateY( 100% );
	transition: transform 0.25s ease-in;
}

/* -----------------------------------------------------------------------
   Inner layout
----------------------------------------------------------------------- */
.bdcb__inner {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	max-width: 1200px;
	margin: 0 auto;
	padding: 1rem 1.5rem;
	flex-wrap: wrap;
}

/* -----------------------------------------------------------------------
   Text block
----------------------------------------------------------------------- */
.bdcb__text {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	flex: 1 1 300px;
	min-width: 0;
}

.bdcb__icon {
	flex-shrink: 0;
	margin-top: 0.15em;
	color: #8fcba0;
}

.bdcb__text p {
	margin: 0;
	font-size: 0.875rem;
	line-height: 1.55;
	color: #d8d5d0;
}

.bdcb__link {
	color: #a8d8b5;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.bdcb__link:hover,
.bdcb__link:focus {
	color: #c8f0d4;
}

/* -----------------------------------------------------------------------
   Action buttons
----------------------------------------------------------------------- */
.bdcb__actions {
	display: flex;
	gap: 0.75rem;
	flex-shrink: 0;
	align-items: center;
	flex-wrap: wrap;
}

.bdcb__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.55rem 1.25rem;
	font-family: inherit;
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1;
	border-radius: 6px;
	border: 2px solid transparent;
	cursor: pointer;
	white-space: nowrap;
	transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.bdcb__btn:focus-visible {
	outline: 2px solid #a8d8b5;
	outline-offset: 3px;
}

/* Primary — Accept */
.bdcb__btn--primary {
	background: #2d5a3d;
	border-color: #2d5a3d;
	color: #ffffff;
}

.bdcb__btn--primary:hover {
	background: #3a7051;
	border-color: #3a7051;
}

/* Secondary — Decline */
.bdcb__btn--secondary {
	background: transparent;
	border-color: rgba(255, 255, 255, 0.3);
	color: #c8c4bf;
}

.bdcb__btn--secondary:hover {
	border-color: rgba(255, 255, 255, 0.6);
	color: #f0ede8;
}

/* -----------------------------------------------------------------------
   Mobile: stack vertically
----------------------------------------------------------------------- */
@media ( max-width: 600px ) {
	.bdcb__inner {
		flex-direction: column;
		align-items: stretch;
		gap: 1rem;
		padding: 1rem;
	}

	.bdcb__actions {
		justify-content: stretch;
	}

	.bdcb__btn {
		flex: 1;
		padding: 0.65rem 1rem;
	}
}

/* -----------------------------------------------------------------------
   Reduced motion
----------------------------------------------------------------------- */
@media ( prefers-reduced-motion: reduce ) {
	#bdcrafty-cookie-banner,
	#bdcrafty-cookie-banner.bdcb--hiding {
		transition: none;
	}
}

/* -----------------------------------------------------------------------
   Print: never show
----------------------------------------------------------------------- */
@media print {
	#bdcrafty-cookie-banner {
		display: none !important;
	}
}
