
/*-----------------------------------------
* Side panel
-------------------------------------------*/
html.no-scroll,
html.no-scroll.lenis,
html.no-scroll.lenis-scrolling,
html.no-scroll.lenis-smooth {
    /*overflow: hidden !important;*/
    height: 100vh!important;
    pointer-events: none !important;
}

/* Base container */
.sf-sidepanel {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 100%;
    pointer-events: none;
    z-index: 999999;
	overscroll-behavior: none;
}

/* Overlay */
.sf-sidepanel-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    opacity: 0;
    transition: opacity .4s ease-out;
    pointer-events: none;
}

/* Slide container */
.sf-sidepanel-inner {
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
	min-width:480px;
    max-width: 100%;
    height: 100vh;
    background: #fff;
    transform: translateX(100%);
	opacity:1;
    transition: transform .4s ease-out, opacity .4s ease-out;
	z-index:1000;
	padding:30px;
	padding-top:0;
	overflow-y:auto;
	overscroll-behavior: none;
	scrollbar-width: thin;
	scrollbar-color: #fff transparent; /* Firefox */
}
@media (max-width:834px) {
	.sf-sidepanel-inner {
		width: 100vw!important;
		max-width:90vw!important;
		min-width:100vw;
	}
}
.sf-sidepanel.active .sf-sidepanel-inner {
	opacity:1;
}
/* Chrome / Safari / Edge */
.sf-sidepanel-inner::-webkit-scrollbar {
  width: 6px;
  background: transparent; /* brez tracka */
}

.sf-sidepanel-inner::-webkit-scrollbar-thumb {
  background-color: #fff; /* accent barva */
  border-radius: 3px;
}

.sf-sidepanel-inner::-webkit-scrollbar-thumb:hover {
  background-color: #fff; /* malo svetlejši ob hoverju */
}

.sf-sidepanel-inner::-webkit-scrollbar-track {
  background: transparent; /* odstrani siv trak */
}


/* Header */
.sf-sidepanel-header {

	background-color: white;
    position:sticky;
    top:0px;
    left:0;
    width:100%;
    z-index:10;
    border-bottom:1px solid #e5e5e5;
    height:100px;

    display: flex;
    justify-content: space-between;
    align-items: center;
	margin-bottom:15px;
}

h2.sf-sidepanel-title {
	font-size: 24px;
	font-weight: 500;
	margin: 0;
}	

.sf-sidepanel-close {
    font-size: 28px;
    line-height: 1;
    background: none;
    border: none;
    cursor: pointer;
	transition: transform 0.3s ease, opacity 0.3s ease;
	position:absolute;
	top:30px;
	right:0px;
	opacity:0.5;
}
.sf-sidepanel-close:hover {
	transform:rotate(90deg);
	opacity:1;
}

/* Active state */
.sf-sidepanel.active {
    pointer-events: auto;
}

.sf-sidepanel.active .sf-sidepanel-overlay {
    opacity: 1;
    pointer-events: auto;
}

.sf-sidepanel.active .sf-sidepanel-inner {
    transform: translateX(0);
}



/* SIDE PANEL CONTENT STYLES
---------------------------------------*/

.sf-sidepanel h1:first-of-type,
.sf-sidepanel div.wp-block-spacer:nth-of-type(1),
.sf-sidepanel div.wp-block-spacer {
    display:none;
}
.sf-sidepanel h1:nth-of-type(2),
.sf-sidepanel h2:not(.sf-sidepanel-title),
.sf-sidepanel .has-bigger-font-size {
    text-align:left;
    font-size:18px!important;
    font-weight:300!important;
}

.sf-sidepanel div.wp-block-spacer[style="height:100px"] {
    display:block;
    height:auto;
    height:30px!important;
}
.sf-sidepanel div.wp-block-spacer[style="height:50px"],
.sf-sidepanel div.wp-block-spacer[style="height:30px"],
.sf-sidepanel div.wp-block-spacer[style="height:30px"] {
    height:15px!important;
}
.sf-sidepanel div.wp-block-spacer[style="height:20px"] {
    height:5px!important;
}

.sf-sidepanel ul.wp-block-list {
    margin-left:15px!important;
}
.sf-sidepanel .wp-block-table {
    margin-bottom:30px;
}