
.cp-hidden		{position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0, 0, 0, 0); border:0;}
.rtl-cp			{direction:rtl; text-align:right;}
.ltr-cp			{direction:ltr; text-align:left;}
.cookie-popup-wrapper button	{font-size:100%; line-height:100%; margin:0; vertical-align:top; cursor:pointer; -webkit-appearance:none; -moz-appearance:none; appearance:none; font-family:'Arimo', Arial, Helvetica, sans-serif;}

#cookie-popup-handle {
	position: fixed;
	bottom: 0;
	right: 15px;
	display: none;
	padding: 10px 15px;
	border: #bbb 1px solid;
	border-bottom: 0;
	border-radius: 15px 15px 0 0;
	background-color: #f2f2f2;
	box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
	white-space: nowrap;
	z-index: 999999;
}
.ltr-cp #cookie-popup-handle {
	left: 15px;
	right: auto;
}

.cookie-popup {
	display: flex;
	flex-direction: column;
	position: fixed;
	bottom: 0;
	right: 15px;
	width:600px;
	max-width: calc(100% - 30px);
	max-height: calc(100vh - 20px);
	background: #f2f2f2;
	color: #000;
	padding: 15px 20px 20px 20px;
	font-size:1.5rem;
	line-height: 125%;
	border: #bbb 1px solid;
	border-bottom: 0;
	border-radius: 20px 20px 0 0;
	box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
	transform: translateY(120%);
	z-index: 999999;
	transition: transform 0.6s ease;
	box-sizing: border-box;
}
.ltr-cp .cookie-popup {
	left: 15px;
	right: auto;
}
.cookie-popup.show {
	transform: translateY(0);
}
.cookie-popup.hide {
	display: none;
}
#cookie-popup-close {
	position: absolute;
	top: 15px;
	left: 20px;
	display: table;
	padding: 0;
	border: 0;
	background-color: transparent;
}
.ltr-cp #cookie-popup-close {
	right: 15px;
	left: auto;
}
#cookie-popup-close img {
	width: 24px;
	height: 24px;
	display: block;
}

#cookie-title {
	display: block;
	margin-bottom: 15px;
	font-size:115%;
	line-height: 115%;
}
.cookie-desc {
	margin-bottom: 20px;
}
.cookie-desc p {
	padding: 0;
	margin: 0 0 10px 0;
	font-size: 90%;
	line-height: 145%;
}

#cookie-preferences { /* תופס את כל הגובה שנשאר */
	flex: 1;			 
	overflow-y: auto;
	overflow-x: hidden;
	padding: 0 0 0 10px;
}
.ltr-cp #cookie-preferences {
	padding: 0 10px 0 0;
}
.cookie-preferences-wrap {
	max-height: 0;
	overflow: hidden;
	transition: max-height 2s ease;
}
.preferences-open .cookie-preferences-wrap {
  max-height: 800px; /* או גובה מספיק גדול */
}

.preferences-title {
	margin-bottom: 10px;
	outline-offset: -2px;
}
.category {
	margin-bottom: 12px;
	background-color: #fff;
	border-radius: 5px;
}
.category-toggle {
	display:flex;
	justify-content: flex-end;
	align-items: center;
	padding: 5px 10px;
	margin-bottom: 0;
}
button.category-title {
	margin: 0 0 0 auto;
	border: 0;
	background-color: transparent;
}
.ltr-cp button.category-title {
	margin: 0 auto 0 0;
}
.category-toggle img {
	width: 24px;
	height: 24px;
	display: block;
	margin: 0 10px 0 0;
}
.ltr-cp .category-toggle img {
	margin: 0 0 0 10px;
}
.category-state {
	color: #333;
	text-align: left;
}
.ltr-cp .category-state {
	text-align: right;
}

.category-content {
	width: 100%;
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.2s ease;
}
.category-open .category-content {
	max-height: 800px; /* או גובה מספיק גדול */
	transition: max-height 2s ease;
}
.category-open .category-toggle img {
	transform: rotate(180deg);
}
.category-content p {
	padding: 0 20px 10px 15px;
	margin: 0;
	font-size: 90%;
	line-height: 145%;
}

/* קונטיינר המתג */
.slider {
	position: relative;
	display: inline-block;
	width: 40px;
	height: 22px;
	background-color: #ccc;
	border: 0;
	border-radius: 22px;
	cursor: pointer;
	transition: background-color 0.4s;
	vertical-align: middle;
}

/* הכפתור הפנימי (העיגול שנע) */
.slider::before {
	content: "";
	position: absolute;
	height: 16px;
	width: 16px;
	left: 3px;
	bottom: 3px;
	background-color: #fff;
	border-radius: 50%;
	transition: transform 0.4s;
}

/* מצב מופעל (aria-checked="true") */
.slider[aria-checked="true"] {
	background-color: #2196F3;
}
.slider[aria-checked="true"]::before {
	transform: translateX(17px);
}

.cookie-buttons {
	display: flex;
	align-items: flex-end;
	flex-wrap: wrap;
	margin: 0 -5px 0 -5px;
	padding: 0 0 0 10px;
}
.ltr-cp .cookie-buttons {
	padding: 0 10px 0 0;
}
.preferences-open .cookie-buttons {
	margin-top: 20px;
}

.cookie-buttons button {
	padding: 8px 20px;
	margin: 0 5px;
	background-color: #fff;
	border: #333 1px solid;
	border-radius: 5px;
	white-space: nowrap;
	transition: transform 0.4s;
}
.cookie-buttons button.accept-btn {
	background-color: #2196F3;
	color: #fff;
}
.rtl-cp .save-prefs-btn {
	margin-left: 20px;
}
.ltr-cp .save-prefs-btn {
	margin-right: 20px;
}
.cookie-buttons button:hover,
.cookie-buttons button:focus {
	transform: scale(1.05);
}
a.policy {
	display: table;
	margin: 0 auto 0 0;
	white-space: nowrap;
}
.ltr-cp a.policy {
	margin: 0 0 0 auto;
}
.ltr-cp.rus-cp a.policy {
	margin: 15px auto 0 5px;
}


@media screen and (max-width: 600px) {
	.cookie-popup				{display:block; max-width:calc(100% - 20px); max-height:calc(100vh - 10px); overflow:auto;}
	#cookie-title				{margin-bottom:10px;}
	.cookie-desc				{margin-bottom:15px; line-height:140%;}
	.category-toggle			{padding:5px 0 5px 10px;}
	.ltr-cp .category-toggle	{padding:5px 10px 5px 0;}
	.category-content p			{padding:0 10px 10px 10px; line-height:140%;}
	.cookie-buttons				{justify-content: space-between; margin:0; padding:0 10%;}
	.cookie-buttons button		{width:45%; order:2; margin:0 0 10px 0;}
	.prefs-btn, .save-prefs-btn	{width:100% !important; order:1 !important; margin: 0 auto 10px auto !important;}
	a.policy					{width:60%; order:4; margin: 0px auto 0 auto !important; text-align:center;}
}

@media screen and (max-width: 480px) {
	#cookie-popup-close			{top:8px; left:8px;}
	.ltr-cp #cookie-popup-close	{right:8px; left:auto;}
	.rus-cp #cookie-title		{margin-top:17px;}
	.cookie-buttons				{padding:0 5%;}
}

@media screen and (max-width: 360px) {
	.cookie-buttons			{padding:0;}
}

/*******************************/
/* width */
#cookie-preferences::-webkit-scrollbar {
  width: 6px;
}

/* Track */
#cookie-preferences::-webkit-scrollbar-track {
  background: #f1f1f1;
}

/* Handle */
#cookie-preferences::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 3px;
}

/* Handle on hover */
#cookie-preferences::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/*************** Accessibility ****************/
.Medium-View .cookie-popup			{display:block; overflow:auto;}
.Large-View .cookie-popup			{display:block; overflow:auto;}

.Light-Contrast .cookie-popup	 		{background:#c2d3fc !important; border:#333 1px solid;}

.High-Contrast #cookie-popup-handle		{background-color:#003399;}
.High-Contrast .cookie-popup	 		{background:#000 !important;}
.High-Contrast #cookie-popup-close img	{background:#fff;}
.High-Contrast .category-toggle img		{background:#fff;}
.High-Contrast .category-state			{color:#fff;}
.High-Contrast .slider::before			{border:#000 1px solid; box-sizing:border-box;}
.High-Contrast .cookie-buttons button	{background-color:#003399; border:#bbb 2px solid; font-weight:bold;}
.High-Contrast .cookie-buttons button.accept-btn	{background-color:#002264;}


