/*
Mansurge Cookie Consent v1.0
Luxury / Bilingual / Compact Mobile
*/

#ms-cookie-consent{
	--ms-c-bg:#0b1111;
	--ms-c-panel:#101717;
	--ms-c-gold:#c5a572;
	--ms-c-white:#f5f3ee;
	--ms-c-text:#c8cece;
	--ms-c-muted:#848d8d;
	--ms-c-line:rgba(197,165,114,.24);
	--ms-c-softline:rgba(255,255,255,.08);
	position:relative;
	z-index:2147482000;
}

#ms-cookie-consent[hidden],
#ms-cookie-consent [hidden]{
	display:none !important;
}

#ms-cookie-consent *,
#ms-cookie-consent *::before,
#ms-cookie-consent *::after{
	box-sizing:border-box;
}

#ms-cookie-consent button,
#ms-cookie-consent input{
	font:inherit;
}

#ms-cookie-consent button{
	appearance:none !important;
	-webkit-appearance:none !important;
	box-shadow:none !important;
	outline:0;
}

/* ---------------------------------------------------------
   Banner
---------------------------------------------------------- */
#ms-cookie-consent .ms-cookie-banner{
	position:fixed;
	z-index:2147482001;
	left:50%;
	bottom:16px;
	display:grid;
	grid-template-columns:minmax(0,1fr) auto;
	align-items:center;
	gap:28px;
	width:min(1100px,calc(100% - 32px));
	padding:17px 18px 17px 20px;
	border:1px solid var(--ms-c-line);
	border-radius:17px;
	background:rgba(10,16,16,.975);
	-webkit-backdrop-filter:blur(18px);
	backdrop-filter:blur(18px);
	box-shadow:0 20px 60px rgba(0,0,0,.42);
	transform:translateX(-50%);
	color:var(--ms-c-white);
}

#ms-cookie-consent .ms-cookie-banner-copy{
	min-width:0;
}

#ms-cookie-consent .ms-cookie-title{
	margin:0 0 4px;
	color:var(--ms-c-white);
	font-size:13px;
	font-weight:700;
	letter-spacing:.01em;
}

#ms-cookie-consent .ms-cookie-summary{
	margin:0;
	color:var(--ms-c-text);
	font-size:11.5px;
	line-height:1.55;
}

#ms-cookie-consent .ms-cookie-read-more{
	display:inline;
	margin-inline-start:5px;
	padding:0 !important;
	border:0 !important;
	background:transparent !important;
	color:var(--ms-c-gold) !important;
	font-size:11.5px;
	font-weight:700;
	cursor:pointer;
	text-decoration:underline;
	text-underline-offset:2px;
}

#ms-cookie-consent .ms-cookie-more{
	margin-top:8px;
	color:var(--ms-c-muted);
	font-size:11px;
	line-height:1.6;
}

#ms-cookie-consent .ms-cookie-more p{
	display:inline;
	margin:0;
}

#ms-cookie-consent .ms-cookie-more a{
	margin-inline-start:7px;
	color:var(--ms-c-gold);
	font-weight:700;
	text-decoration:none;
}

#ms-cookie-consent .ms-cookie-banner-actions{
	display:grid;
	grid-template-columns:repeat(2,minmax(126px,1fr));
	gap:8px;
	align-items:center;
}

#ms-cookie-consent .ms-cookie-action{
	min-height:40px;
	padding:0 15px !important;
	border:1px solid var(--ms-c-gold) !important;
	border-radius:999px !important;
	background:transparent !important;
	color:var(--ms-c-white) !important;
	font-size:11px;
	font-weight:700;
	white-space:nowrap;
	cursor:pointer;
	transition:
		background .18s ease,
		color .18s ease,
		transform .18s ease;
}

/*
 * Accept and Reject intentionally use the same visual prominence.
 */
#ms-cookie-consent .ms-cookie-accept,
#ms-cookie-consent .ms-cookie-reject{
	border-color:var(--ms-c-gold) !important;
	background:transparent !important;
	color:var(--ms-c-white) !important;
}

#ms-cookie-consent .ms-cookie-action:hover,
#ms-cookie-consent .ms-cookie-action:focus-visible{
	background:var(--ms-c-gold) !important;
	color:#090d0d !important;
	transform:translateY(-1px);
}

#ms-cookie-consent .ms-cookie-preferences-link{
	grid-column:1 / -1;
	justify-self:center;
	padding:2px 5px !important;
	border:0 !important;
	background:transparent !important;
	color:var(--ms-c-muted) !important;
	font-size:10.5px;
	font-weight:650;
	cursor:pointer;
	text-decoration:underline;
	text-underline-offset:2px;
}

#ms-cookie-consent .ms-cookie-preferences-link:hover,
#ms-cookie-consent .ms-cookie-preferences-link:focus-visible{
	color:var(--ms-c-gold) !important;
}

/* ---------------------------------------------------------
   Preferences Modal
---------------------------------------------------------- */
#ms-cookie-consent .ms-cookie-preferences{
	position:fixed;
	z-index:2147482010;
	inset:0;
	display:flex;
	align-items:center;
	justify-content:center;
	padding:22px;
}

#ms-cookie-consent .ms-cookie-modal-backdrop{
	position:absolute;
	z-index:0;
	inset:0;
	width:100%;
	height:100%;
	padding:0 !important;
	border:0 !important;
	border-radius:0 !important;
	background:rgba(0,0,0,.72) !important;
	cursor:default;
}

#ms-cookie-consent .ms-cookie-preferences-card{
	position:relative;
	z-index:1;
	width:min(680px,100%);
	max-height:min(760px,calc(100vh - 44px));
	overflow:auto;
	padding:30px;
	border:1px solid var(--ms-c-line);
	border-radius:20px;
	background:var(--ms-c-bg);
	box-shadow:0 28px 90px rgba(0,0,0,.52);
	color:var(--ms-c-white);
}

#ms-cookie-consent .ms-cookie-preferences-head{
	display:flex;
	align-items:flex-start;
	justify-content:space-between;
	gap:20px;
}

#ms-cookie-consent .ms-cookie-kicker{
	margin:0 0 8px;
	color:var(--ms-c-gold);
	font-size:9px;
	font-weight:750;
	letter-spacing:.15em;
	text-transform:uppercase;
}

#ms-cookie-consent .ms-cookie-preferences-head h2{
	margin:0;
	color:var(--ms-c-white);
	font-size:clamp(27px,4vw,40px);
	line-height:1.05;
	letter-spacing:-.035em;
}

#ms-cookie-consent .ms-cookie-close{
	display:flex;
	align-items:center;
	justify-content:center;
	flex:0 0 36px;
	width:36px;
	height:36px;
	padding:0 !important;
	border:1px solid var(--ms-c-softline) !important;
	border-radius:999px !important;
	background:transparent !important;
	color:var(--ms-c-text) !important;
	font-size:23px;
	line-height:1;
	cursor:pointer;
}

#ms-cookie-consent .ms-cookie-close:hover,
#ms-cookie-consent .ms-cookie-close:focus-visible{
	border-color:var(--ms-c-line) !important;
	color:var(--ms-c-gold) !important;
}

#ms-cookie-consent .ms-cookie-preferences-intro{
	max-width:600px;
	margin:18px 0 26px;
	color:var(--ms-c-muted);
	font-size:12px;
	line-height:1.7;
}

#ms-cookie-consent .ms-cookie-categories{
	display:grid;
	gap:10px;
}

#ms-cookie-consent .ms-cookie-category{
	display:grid;
	grid-template-columns:minmax(0,1fr) auto;
	align-items:center;
	gap:22px;
	padding:18px;
	border:1px solid var(--ms-c-softline);
	border-radius:14px;
	background:rgba(255,255,255,.015);
}

#ms-cookie-consent .ms-cookie-category h3{
	margin:0 0 5px;
	color:var(--ms-c-white);
	font-size:13px;
}

#ms-cookie-consent .ms-cookie-category p{
	max-width:520px;
	margin:0;
	color:var(--ms-c-muted);
	font-size:11px;
	line-height:1.55;
}

#ms-cookie-consent .ms-cookie-always-on{
	color:var(--ms-c-gold);
	font-size:9.5px;
	font-weight:750;
	white-space:nowrap;
	text-transform:uppercase;
	letter-spacing:.07em;
}

#ms-cookie-consent .ms-cookie-category-switch{
	cursor:pointer;
}

#ms-cookie-consent .ms-cookie-switch{
	position:relative;
	display:block;
	width:44px;
	height:25px;
	flex:0 0 auto;
}

#ms-cookie-consent .ms-cookie-switch input{
	position:absolute;
	opacity:0;
	pointer-events:none;
}

#ms-cookie-consent .ms-cookie-switch span{
	position:absolute;
	inset:0;
	border:1px solid var(--ms-c-softline);
	border-radius:999px;
	background:#161e1e;
	transition:
		background .18s ease,
		border-color .18s ease;
}

#ms-cookie-consent .ms-cookie-switch span::after{
	content:"";
	position:absolute;
	top:3px;
	left:3px;
	width:17px;
	height:17px;
	border-radius:50%;
	background:var(--ms-c-muted);
	transition:
		transform .18s ease,
		background .18s ease;
}

#ms-cookie-consent[dir="rtl"] .ms-cookie-switch span::after{
	left:auto;
	right:3px;
}

#ms-cookie-consent .ms-cookie-switch input:checked + span{
	border-color:var(--ms-c-gold);
	background:rgba(197,165,114,.14);
}

#ms-cookie-consent .ms-cookie-switch input:checked + span::after{
	background:var(--ms-c-gold);
	transform:translateX(19px);
}

#ms-cookie-consent[dir="rtl"] .ms-cookie-switch input:checked + span::after{
	transform:translateX(-19px);
}

#ms-cookie-consent .ms-cookie-switch input:focus-visible + span{
	box-shadow:0 0 0 3px rgba(197,165,114,.16);
}

#ms-cookie-consent .ms-cookie-preferences-actions{
	display:grid;
	grid-template-columns:repeat(3,minmax(0,1fr));
	gap:9px;
	margin-top:22px;
}

#ms-cookie-consent .ms-cookie-save{
	background:var(--ms-c-gold) !important;
	color:#090d0d !important;
}

/* ---------------------------------------------------------
   Reopen Control
---------------------------------------------------------- */
#ms-cookie-consent .ms-cookie-reopen{
	position:fixed;
	z-index:2147482000;
	left:14px;
	bottom:14px;
	display:flex;
	align-items:center;
	gap:7px;
	min-height:34px;
	padding:0 11px !important;
	border:1px solid var(--ms-c-softline) !important;
	border-radius:999px !important;
	background:rgba(10,16,16,.92) !important;
	color:var(--ms-c-muted) !important;
	box-shadow:0 10px 30px rgba(0,0,0,.2);
	cursor:pointer;
	-webkit-backdrop-filter:blur(12px);
	backdrop-filter:blur(12px);
}

#ms-cookie-consent[dir="rtl"] .ms-cookie-reopen{
	left:auto;
	right:14px;
}

#ms-cookie-consent .ms-cookie-reopen svg{
	width:15px;
	height:15px;
}

#ms-cookie-consent .ms-cookie-reopen span{
	font-size:9.5px;
	font-weight:700;
}

#ms-cookie-consent .ms-cookie-reopen:hover,
#ms-cookie-consent .ms-cookie-reopen:focus-visible{
	border-color:var(--ms-c-line) !important;
	color:var(--ms-c-gold) !important;
}

/* ---------------------------------------------------------
   Mobile — intentionally compact
---------------------------------------------------------- */
@media(max-width:767px){

	#ms-cookie-consent .ms-cookie-banner{
		bottom:9px;
		grid-template-columns:1fr;
		gap:10px;
		width:calc(100% - 18px);
		padding:11px 11px 10px;
		border-radius:14px;
	}

	#ms-cookie-consent .ms-cookie-title{
		display:none;
	}

	#ms-cookie-consent .ms-cookie-summary{
		display:-webkit-box;
		overflow:hidden;
		font-size:10.5px;
		line-height:1.45;
		-webkit-line-clamp:2;
		-webkit-box-orient:vertical;
	}

	#ms-cookie-consent .ms-cookie-banner.is-expanded .ms-cookie-summary{
		display:block;
		overflow:visible;
		-webkit-line-clamp:unset;
	}

	#ms-cookie-consent .ms-cookie-read-more{
		font-size:10.5px;
	}

	#ms-cookie-consent .ms-cookie-more{
		margin-top:6px;
		font-size:10px;
		line-height:1.5;
	}

	#ms-cookie-consent .ms-cookie-banner-actions{
		grid-template-columns:repeat(2,minmax(0,1fr));
		gap:7px;
	}

	#ms-cookie-consent .ms-cookie-action{
		min-height:36px;
		padding:0 8px !important;
		font-size:10px;
	}

	#ms-cookie-consent .ms-cookie-preferences-link{
		grid-column:1 / -1;
		font-size:9.5px;
	}

	#ms-cookie-consent .ms-cookie-preferences{
		align-items:flex-end;
		padding:0;
	}

	#ms-cookie-consent .ms-cookie-preferences-card{
		width:100%;
		max-height:min(82vh,720px);
		padding:22px 15px 18px;
		border-radius:20px 20px 0 0;
		border-bottom:0;
	}

	#ms-cookie-consent .ms-cookie-preferences-head h2{
		font-size:28px;
	}

	#ms-cookie-consent .ms-cookie-preferences-intro{
		margin:14px 0 20px;
	}

	#ms-cookie-consent .ms-cookie-category{
		gap:12px;
		padding:14px 12px;
	}

	#ms-cookie-consent .ms-cookie-category p{
		font-size:10.5px;
	}

	#ms-cookie-consent .ms-cookie-preferences-actions{
		position:sticky;
		bottom:-18px;
		grid-template-columns:1fr 1fr;
		gap:7px;
		margin:18px -15px -18px;
		padding:10px 15px 14px;
		border-top:1px solid var(--ms-c-softline);
		background:rgba(11,17,17,.97);
	}

	#ms-cookie-consent .ms-cookie-preferences-actions .ms-cookie-save{
		grid-column:1 / -1;
		grid-row:1;
	}

	#ms-cookie-consent .ms-cookie-preferences-actions .ms-cookie-reject{
		grid-column:1;
		grid-row:2;
	}

	#ms-cookie-consent .ms-cookie-preferences-actions .ms-cookie-accept{
		grid-column:2;
		grid-row:2;
	}

	/*
	 * After consent, use a tiny icon-only control on mobile so it does
	 * not occupy meaningful screen space.
	 */
	#ms-cookie-consent .ms-cookie-reopen{
		left:9px;
		bottom:9px;
		justify-content:center;
		width:32px;
		min-width:32px;
		height:32px;
		min-height:32px;
		padding:0 !important;
		border-radius:50% !important;
	}

	#ms-cookie-consent[dir="rtl"] .ms-cookie-reopen{
		left:auto;
		right:9px;
	}

	#ms-cookie-consent .ms-cookie-reopen span{
		position:absolute !important;
		width:1px !important;
		height:1px !important;
		margin:-1px !important;
		overflow:hidden !important;
		clip:rect(0,0,0,0) !important;
		white-space:nowrap !important;
	}

}

/* Admin bar avoidance while testing logged-in. */
body.admin-bar #ms-cookie-consent .ms-cookie-preferences{
	padding-top:32px;
}

@media(max-width:782px){
	body.admin-bar #ms-cookie-consent .ms-cookie-preferences{
		padding-top:46px;
	}
}

@media(prefers-reduced-motion:reduce){
	#ms-cookie-consent *,
	#ms-cookie-consent *::before,
	#ms-cookie-consent *::after{
		transition:none !important;
	}
}


/* Arabic localization refinements */
#ms-cookie-consent[lang="ar"]{font-family:var(--ms-font-arabic,"Segoe UI",Tahoma,Arial,sans-serif);}
#ms-cookie-consent[lang="ar"] .ms-cookie-title,
#ms-cookie-consent[lang="ar"] .ms-cookie-summary,
#ms-cookie-consent[lang="ar"] .ms-cookie-more,
#ms-cookie-consent[lang="ar"] .ms-cookie-kicker,
#ms-cookie-consent[lang="ar"] .ms-cookie-preferences-head h2,
#ms-cookie-consent[lang="ar"] .ms-cookie-preferences-intro,
#ms-cookie-consent[lang="ar"] .ms-cookie-category,
#ms-cookie-consent[lang="ar"] .ms-cookie-action{letter-spacing:0;text-transform:none;}
#ms-cookie-consent[lang="ar"] .ms-cookie-action{white-space:normal;line-height:1.35;padding-block:6px !important;}
#ms-cookie-consent[lang="ar"] .ms-cookie-banner-actions{grid-template-columns:repeat(2,minmax(150px,1fr));}
@media(max-width:767px){
  #ms-cookie-consent[lang="ar"] .ms-cookie-banner-actions{grid-template-columns:1fr 1fr;}
  #ms-cookie-consent[lang="ar"] .ms-cookie-action{min-height:40px;font-size:10.5px;}
}
