#ph-cookie-banner,
#ph-cookie-modal {
	font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: #d8d8d8;
	font-size: 14px;
	line-height: 1.55;
	box-sizing: border-box;
}

#ph-cookie-banner *,
#ph-cookie-modal * {
	box-sizing: border-box;
}

#ph-cookie-banner {
	position: fixed;
	left: 50%;
	bottom: 1.25rem;
	transform: translateX(-50%);
	width: calc(100% - 2rem);
	max-width: 1120px;
	background: #201d1e;
	background: var(--bg-light, #201d1e);
	border: 1px solid rgba(81, 174, 89, 0.35);
	border-radius: 15px;
	box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(0, 0, 0, 0.25);
	padding: 22px 28px;
	z-index: 2147483600;
	animation: phSlideIn .35s ease-out;
}

#ph-cookie-banner.ph-hidden { display: none; }

@keyframes phSlideIn {
	from { opacity: 0; transform: translate(-50%, 20px); }
	to   { opacity: 1; transform: translate(-50%, 0); }
}

.ph-cookie-inner {
	display: flex;
	align-items: center;
	gap: 24px;
	flex-wrap: wrap;
}

.ph-cookie-copy { flex: 1 1 440px; min-width: 260px; }

.ph-cookie-title {
	margin: 0 0 8px;
	font-family: "Montserrat", "Open Sans", sans-serif;
	font-size: 18px;
	font-weight: 700;
	color: #ffffff;
	letter-spacing: 0.2px;
}

.ph-cookie-text {
	margin: 0;
	color: #d0d0d0;
	font-size: 13.5px;
}

.ph-cookie-text a {
	color: #51ae59;
	text-decoration: none;
	font-weight: 600;
	border-bottom: 1px solid rgba(81, 174, 89, 0.5);
	transition: color .18s ease, border-color .18s ease;
}

.ph-cookie-text a:hover {
	color: #68c571;
	border-bottom-color: #68c571;
}

.ph-cookie-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	justify-content: flex-end;
	flex-shrink: 0;
}

.ph-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 11px 22px;
	border-radius: 50px;
	font-size: 13px;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
	border: 1px solid transparent;
	transition: background-color .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
	font-family: inherit;
	letter-spacing: 0.2px;
	min-height: 40px;
	text-transform: none;
}

.ph-btn:focus-visible {
	outline: 2px solid #51ae59;
	outline-offset: 2px;
}

.ph-btn-primary {
	background: #51ae59;
	color: #ffffff;
	border-color: #51ae59;
}

.ph-btn-primary:hover {
	background: #459e50;
	border-color: #459e50;
}

.ph-btn-ghost {
	background: transparent;
	color: #e5e7eb;
	border-color: rgba(255, 255, 255, 0.18);
}

.ph-btn-ghost:hover {
	background: rgba(81, 174, 89, 0.12);
	border-color: #51ae59;
	color: #ffffff;
}

#ph-cookie-modal {
	position: fixed;
	inset: 0;
	z-index: 2147483601;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.25rem;
	animation: phFadeIn .2s ease-out;
}

@keyframes phFadeIn { from { opacity: 0; } to { opacity: 1; } }

.ph-cookie-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(10, 12, 14, 0.72);
	-webkit-backdrop-filter: blur(3px);
	backdrop-filter: blur(3px);
}

.ph-cookie-modal-dialog {
	position: relative;
	background: #201d1e;
	background: var(--bg-light, #201d1e);
	width: 100%;
	max-width: 580px;
	max-height: calc(100vh - 2.5rem);
	display: flex;
	flex-direction: column;
	border-radius: 15px;
	border: 1px solid rgba(81, 174, 89, 0.35);
	box-shadow: 0 28px 70px rgba(0, 0, 0, 0.65);
	overflow: hidden;
}

.ph-cookie-modal-header {
	padding: 20px 24px;
	border-bottom: 1px solid rgba(81, 174, 89, 0.25);
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.ph-cookie-modal-header h2 {
	margin: 0;
	font-family: "Montserrat", "Open Sans", sans-serif;
	font-size: 18px;
	font-weight: 700;
	color: #ffffff;
	letter-spacing: 0.3px;
}

.ph-cookie-close {
	background: transparent;
	border: 0;
	font-size: 26px;
	line-height: 1;
	color: #bdbdbd;
	cursor: pointer;
	padding: 2px 10px;
	border-radius: 50px;
	transition: color .18s ease, background-color .18s ease;
}

.ph-cookie-close:hover {
	color: #ffffff;
	background: rgba(255, 255, 255, 0.06);
}

.ph-cookie-modal-body {
	padding: 18px 24px 6px;
	overflow-y: auto;
	scrollbar-width: thin;
	scrollbar-color: #51ae59 #201d1e;
}
.ph-cookie-modal-body::-webkit-scrollbar { width: 8px; }
.ph-cookie-modal-body::-webkit-scrollbar-track { background: transparent; }
.ph-cookie-modal-body::-webkit-scrollbar-thumb {
	background: rgba(81, 174, 89, 0.5);
	border-radius: 4px;
}

.ph-cookie-lead {
	margin: 4px 0 16px;
	color: #d0d0d0;
	font-size: 13.5px;
}

.ph-cookie-cat {
	background: #292929;
	border: 1px solid rgba(81, 174, 89, 0.35);
	border-radius: 10px;
	padding: 14px 16px;
	margin-bottom: 10px;
	transition: border-color .18s ease, background-color .18s ease;
}

.ph-cookie-cat header {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 6px;
}

.ph-cookie-cat header h3 {
	margin: 0;
	font-family: "Montserrat", "Open Sans", sans-serif;
	font-size: 14px;
	font-weight: 700;
	color: #ffffff;
	letter-spacing: 0.2px;
}

.ph-cookie-meta {
	display: block;
	font-size: 11.5px;
	color: #9aa0a6;
	margin-top: 2px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.ph-cookie-cat p {
	margin: 6px 0 0 54px;
	color: #bfbfbf;
	font-size: 13px;
}

.ph-cookie-switch {
	position: relative;
	display: inline-block;
	width: 42px;
	height: 22px;
	flex-shrink: 0;
}

.ph-cookie-switch input {
	opacity: 0;
	width: 0;
	height: 0;
}

.ph-slider {
	position: absolute;
	cursor: pointer;
	inset: 0;
	background-color: #3a3536;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 999px;
	transition: background-color .2s ease, border-color .2s ease;
}

.ph-slider::before {
	content: "";
	position: absolute;
	width: 16px;
	height: 16px;
	left: 2px;
	top: 2px;
	background-color: #ffffff;
	border-radius: 50%;
	transition: transform .2s ease;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.ph-cookie-switch input:checked + .ph-slider {
	background-color: #51ae59;
	border-color: #51ae59;
}

.ph-cookie-switch input:checked + .ph-slider::before {
	transform: translateX(20px);
}

.ph-cookie-switch input:focus-visible + .ph-slider {
	box-shadow: 0 0 0 3px rgba(81, 174, 89, 0.4);
}

.ph-cookie-switch--locked .ph-slider { cursor: not-allowed; opacity: 0.85; }

.ph-cookie-modal-footer {
	padding: 16px 24px 20px;
	border-top: 1px solid rgba(81, 174, 89, 0.25);
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	justify-content: flex-end;
	background: #191516;
	background: var(--bg-dark, #191516);
}

@media (max-width: 720px) {
	#ph-cookie-banner {
		padding: 18px 18px 16px;
		bottom: 0.75rem;
		border-radius: 12px;
	}
	.ph-cookie-inner { gap: 14px; }
	.ph-cookie-actions {
		width: 100%;
		justify-content: stretch;
	}
	.ph-cookie-actions .ph-btn {
		flex: 1 1 auto;
		padding: 10px 14px;
	}
	.ph-cookie-modal-footer {
		justify-content: stretch;
	}
	.ph-cookie-modal-footer .ph-btn { flex: 1 1 auto; }
	.ph-cookie-cat p { margin-left: 0; margin-top: 8px; }
}

@media (max-width: 420px) {
	.ph-btn { font-size: 13px; padding: 10px 14px; }
	.ph-cookie-title { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
	#ph-cookie-banner, #ph-cookie-modal,
	.ph-btn, .ph-slider, .ph-slider::before { animation: none !important; transition: none !important; }
}
