/**
 * Cookie consent bar (CookieYes-style markup).
 */

#barber-cookie-consent.cky-consent-container {
	position: fixed;
	left: 0;
	bottom: 0;
	width: 100%;
	box-sizing: border-box;
	z-index: 9999999;
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

#barber-cookie-consent .cky-consent-bar {
	box-shadow: 0 -1px 10px 0 rgba(172, 171, 171, 0.3);
}

#barber-cookie-consent .cky-notice-group {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	flex-wrap: wrap;
}

#barber-cookie-consent .cky-notice-des {
	font-size: 14px;
	line-height: 1.5;
	max-width: 52rem;
}

#barber-cookie-consent .cky-notice-btn-wrapper {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 0.5rem;
	margin-left: auto;
}

#barber-cookie-consent .cky-btn {
	font-size: 14px;
	line-height: 24px;
	padding: 8px 20px;
	font-weight: 500;
	margin: 0;
	border-radius: 2px;
	cursor: pointer;
	border: 2px solid transparent;
	font-family: inherit;
}

#barber-cookie-consent .cky-btn-customize,
#barber-cookie-consent .cky-btn-reject {
	background: transparent;
}

#barber-cookie-consent .cky-btn-accept {
	border-style: solid;
}

html.barber-cookie-dismissed #barber-cookie-consent {
	display: none !important;
}

/* Customise modal */
#barber-cookie-settings {
	position: fixed;
	inset: 0;
	z-index: 100000000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
	box-sizing: border-box;
}

#barber-cookie-settings[hidden] {
	display: none !important;
}

.barber-cookie-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.45);
}

.barber-cookie-modal__panel {
	position: relative;
	z-index: 1;
	max-width: 32rem;
	width: 100%;
	background: #121212;
	color: #fff;
	border: 1px solid #2a2a2a;
	border-radius: 6px;
	padding: 1.5rem 1.5rem 1.25rem;
	box-shadow: 0 32px 68px rgba(0, 0, 0, 0.35);
}

.barber-cookie-modal__panel h2 {
	margin: 0 0 0.75rem;
	font-size: 1.125rem;
	line-height: 1.35;
	color: #fff;
}

.barber-cookie-modal__panel p {
	margin: 0 0 1rem;
	font-size: 14px;
	line-height: 1.55;
	color: #e0e0e0;
}

.barber-cookie-modal__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	justify-content: flex-end;
	margin-top: 0.25rem;
}

.barber-cookie-modal__actions .cky-btn {
	font-size: 14px;
	padding: 8px 18px;
	border-radius: 2px;
	cursor: pointer;
	font-family: inherit;
	font-weight: 500;
	border: 2px solid #d0d0d0;
	background: transparent;
	color: #fff;
}

.barber-cookie-modal__actions .cky-btn-accept {
	border-color: #e56d37;
	background: #e56d37;
	color: #fff;
}

.barber-cookie-modal__actions .cky-btn-text {
	border: none;
	background: none;
	color: #ccc;
	text-decoration: underline;
	padding: 8px 12px;
	cursor: pointer;
	font-family: inherit;
	font-size: 14px;
}

@media (max-width: 768px) {
	#barber-cookie-consent .cky-notice-group {
		flex-direction: column;
		align-items: stretch;
	}

	#barber-cookie-consent .cky-notice-btn-wrapper {
		margin-left: 0;
		flex-direction: column;
	}

	#barber-cookie-consent .cky-notice-btn-wrapper .cky-btn {
		width: 100%;
	}
}
