/* HTMLine Cookie Consent – banner. Colors/sizes come from CSS variables set in the plugin settings. */
.hcc{
	--hcc-primary:#c0796d;
	--hcc-primary-h:#a9655a;
	--hcc-dark:#433645;
	--hcc-bg:#fff;
	--hcc-text:#5c5c5c;
	--hcc-radius:14px;
	--hcc-btn-radius:50px;
	--hcc-max:1100px;
	--hcc-line:rgba(0,0,0,.09);
	position:fixed;
	inset:auto 0 0 0;
	z-index:99999;
	padding:0 16px 16px;
	pointer-events:none;
	direction:rtl;
	font-family:inherit;
	opacity:0;
	transform:translateY(20px);
	transition:opacity .3s ease, transform .3s ease;
}
.hcc.hcc-is-visible{ opacity:1; transform:none; }
.hcc[hidden]{ display:none; }

.hcc-panel{
	pointer-events:auto;
	box-sizing:border-box;
	max-width:var(--hcc-max);
	margin:0 auto;
	padding:20px 24px;
	background:var(--hcc-bg);
	border-top:4px solid var(--hcc-primary);
	border-radius:var(--hcc-radius);
	box-shadow:0 12px 40px rgba(67,54,69,.22);
	text-align:right;
	max-height:calc(100vh - 32px);
	overflow-y:auto;
}

.hcc-main{ display:flex; align-items:center; gap:24px; }
.hcc-copy{ flex:1 1 auto; min-width:0; }
.hcc-title{ margin:0 0 4px !important; font-size:18px !important; font-weight:700; color:var(--hcc-dark); line-height:1.35; }
.hcc-text{ margin:0 !important; font-size:15px; line-height:1.6; color:var(--hcc-text); }
.hcc-text a{ color:var(--hcc-primary) !important; text-decoration:underline; }

.hcc-actions{ display:flex; align-items:center; gap:10px; flex-shrink:0; }

.hcc-btn{
	font:inherit;
	font-size:15px;
	font-weight:600;
	line-height:1.2;
	padding:11px 22px;
	border-radius:var(--hcc-btn-radius);
	border:1px solid transparent;
	cursor:pointer;
	white-space:nowrap;
	transition:background .2s, color .2s, border-color .2s;
}
.hcc-btn:focus-visible{ outline:2px solid var(--hcc-primary); outline-offset:2px; }
.hcc-btn-primary{ background:var(--hcc-primary); color:#fff; }
.hcc-btn-primary:hover{ background:var(--hcc-primary-h); }
.hcc-btn-outline{ background:transparent; color:var(--hcc-dark); border-color:var(--hcc-dark); }
.hcc-btn-outline:hover{ background:var(--hcc-dark); color:#fff; }
.hcc-btn-link{ background:none; color:var(--hcc-dark); padding-inline:8px; text-decoration:underline; text-underline-offset:3px; }
.hcc-btn-link:hover{ color:var(--hcc-primary); }

/* Preferences */
.hcc-prefs{ margin-top:18px; padding-top:16px; border-top:1px solid var(--hcc-line); }
.hcc-prefs[hidden]{ display:none; }
.hcc-cat{
	display:flex;
	align-items:center;
	justify-content:space-between;
	gap:16px;
	padding:12px 0;
	border-bottom:1px solid var(--hcc-line);
	cursor:pointer;
}
.hcc-cat-copy{ display:flex; flex-direction:column; gap:2px; }
.hcc-cat-copy strong{ font-size:15px; color:var(--hcc-dark); }
.hcc-cat-copy span{ font-size:14px; color:var(--hcc-text); line-height:1.5; }

/* Switch */
.hcc-switch{
	-webkit-appearance:none;
	appearance:none;
	flex:0 0 44px;
	width:44px;
	height:24px;
	margin:0;
	border-radius:24px;
	background:#d9d1d4;
	position:relative;
	cursor:pointer;
	transition:background .2s;
}
.hcc-switch::after{
	content:"";
	position:absolute;
	top:3px;
	right:3px;
	width:18px;
	height:18px;
	border-radius:50%;
	background:#fff;
	box-shadow:0 1px 3px rgba(0,0,0,.2);
	transition:transform .2s;
}
.hcc-switch:checked{ background:var(--hcc-primary); }
.hcc-switch:checked::after{ transform:translateX(-20px); }
.hcc-switch:disabled{ opacity:.55; cursor:not-allowed; }
.hcc-switch:focus-visible{ outline:2px solid var(--hcc-primary); outline-offset:2px; }

.hcc-prefs-actions{ display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:16px; flex-wrap:wrap; }
.hcc-id{ font-size:12px; color:#8a7f86; }
.hcc-id[hidden]{ display:none; }
.hcc-prefs-actions .hcc-btn{ margin-inline-start:auto; }

/* Corner box positions */
.hcc.hcc-pos-right,
.hcc.hcc-pos-left{ inset:auto auto 0 auto; padding:0 20px 20px; }
.hcc.hcc-pos-right{ right:0; }
.hcc.hcc-pos-left{ left:0; }
.hcc.hcc-pos-right .hcc-panel,
.hcc.hcc-pos-left .hcc-panel{ width:420px; max-width:calc(100vw - 40px); }
.hcc.hcc-pos-right .hcc-main,
.hcc.hcc-pos-left .hcc-main{ flex-direction:column; align-items:stretch; gap:14px; }
.hcc.hcc-pos-right .hcc-actions,
.hcc.hcc-pos-left .hcc-actions{ flex-wrap:wrap; }
.hcc.hcc-pos-right .hcc-actions .hcc-btn-primary,
.hcc.hcc-pos-right .hcc-actions .hcc-btn-outline,
.hcc.hcc-pos-left .hcc-actions .hcc-btn-primary,
.hcc.hcc-pos-left .hcc-actions .hcc-btn-outline{ flex:1 1 0; }
.hcc.hcc-pos-right .hcc-actions .hcc-btn-link,
.hcc.hcc-pos-left .hcc-actions .hcc-btn-link{ order:3; flex:1 0 100%; }

/* Mobile */
@media (max-width:900px){
	.hcc-main{ flex-direction:column; align-items:stretch; gap:14px; }
	.hcc-actions{ flex-wrap:wrap; }
	.hcc-actions .hcc-btn-primary,
	.hcc-actions .hcc-btn-outline{ flex:1 1 0; }
	.hcc-actions .hcc-btn-link{ order:3; flex:1 0 100%; }
}
@media (max-width:767px){
	.hcc,
	.hcc.hcc-pos-right,
	.hcc.hcc-pos-left{ inset:auto 0 0 0; padding:0 8px 8px; }
	.hcc.hcc-pos-right .hcc-panel,
	.hcc.hcc-pos-left .hcc-panel{ width:auto; max-width:none; }
	.hcc-panel{ padding:16px; border-radius:12px; }
	.hcc-title{ font-size:17px !important; }
	.hcc-text{ font-size:14px; }
}

/* Floating reopen button */
.hcc-float{
	--hcc-float-bg:#433645;
	--hcc-float-size:56px;
	--hcc-float-x:24px;
	--hcc-float-y:24px;
	position:fixed;
	bottom:var(--hcc-float-y);
	z-index:99998;
	display:flex;
	align-items:center;
	justify-content:center;
	width:var(--hcc-float-size);
	height:var(--hcc-float-size);
	margin:0;
	padding:0;
	border:0;
	border-radius:50%;
	background:var(--hcc-float-bg);
	color:#fff;
	cursor:pointer;
	box-shadow:0 6px 18px rgba(0,0,0,.22);
	opacity:0;
	transform:scale(.6);
	transition:opacity .25s ease, transform .25s ease, box-shadow .2s ease;
}
.hcc-float[hidden]{ display:none; }
.hcc-float.hcc-float-in{ opacity:1; transform:none; }
.hcc-float:hover{ box-shadow:0 8px 24px rgba(0,0,0,.3); transform:scale(1.06); }
.hcc-float:focus-visible{ outline:3px solid var(--hcc-float-bg); outline-offset:3px; }
.hcc-float-right{ right:var(--hcc-float-x); }
.hcc-float-left{ left:var(--hcc-float-x); }
.hcc-float svg{ width:46%; height:46%; fill:currentColor; }
@media (max-width:767px){
	.hcc-float{ width:calc(var(--hcc-float-size) * .82); height:calc(var(--hcc-float-size) * .82); bottom:calc(var(--hcc-float-y) * .7); }
	.hcc-float-right{ right:calc(var(--hcc-float-x) * .6); }
	.hcc-float-left{ left:calc(var(--hcc-float-x) * .6); }
	.hcc-float.hcc-float-no-mobile{ display:none !important; }
}

@media (prefers-reduced-motion:reduce){
	.hcc-float{ transition:none; }
	.hcc{ transition:none; }
}
