/* 
* Toggle functionality
* Used in accordions and custom tables, etc.
* Depentds on @link /assets/js/apuri/scripts.js Toggle functionality section
*/

.site .click,
.editor-styles-wrapper .click {
	cursor: pointer;
	user-select: none;
}

.click + * {
	opacity: 0;
	height: 0;
	overflow: hidden;
	margin-bottom: 0 !important;
}

.click + .open{
	opacity: 1;
}



/* the following code is just stylistic */

.accordion {
	border-bottom: 1px solid var(--secondary-dark); 
}

.accordion .gb-button-wrapper {
	border-top: 1px solid var(--secondary-dark);
	margin-left: 0;
	padding-top: 0;
	padding-left: .5em;
	align-items: center;
}
	
.gb-button-wrapper:hover,
.gb-button-wrapper.toggled,
.gb-button-wrapper:focus {
	color: var(--accent);
}

.site .accordion .gb-button-wrapper .gb-button,
.editor-styles-wrapper .accordion .gb-button-wrapper .gb-button {
	padding-left: .5em;
}

.site .accordion .gb-button-wrapper .gb-button,
.editor-styles-wrapper .accordion .gb-button-wrapper .block-editor-inner-blocks,
.editor-styles-wrapper .accordion .gb-button-wrapper .wp-block,
.editor-styles-wrapper .accordion .gb-button-wrapper .gb-button {
	/* flex: 1; */
	line-height: unset;
	text-transform: unset;
	margin: 0;
	border-radius: unset;
	border: none;
	justify-content: left;
}


/* the icon */

/* TODO: dodati has submenu opciju i di god bude jos trebalo */
.site .icon-plus::before,
.editor-styles-wrapper .icon-plus::before {
	transform-origin: center;
	padding-right: 0 !important;
	transition: all 0.5s ease;
	content: "";
	width: 17px;
	height: 17px;
	display: inline-block;
	background-repeat: no-repeat;
	background-image: url("data:image/svg+xml,%3Csvg fill='none' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 17 17'%3E%3Cpath stroke='%23FF5E5E' d='M8.5 0v17M0 8.5h17'/%3E%3C/svg%3E");
}

/* TODO: dodati has submenu opciju i di god bude jos trebalo */
.site .icon-plus:hover::before,
.editor-styles-wrapper .icon-plus:hover::before,
.site .icon-plus:focus::before,
.editor-styles-wrapper .icon-plus:focus::before,
.site .icon-plus.toggled::before,
.editor-styles-wrapper .icon-plus.toggled::before {
	transform: rotate(45deg);
}