﻿@import url("/css/color.css");

.template-builder-button {

	display: none;

	z-index: 1;
	position: fixed;
	top: 50%;
	right: 0;

    font-weight: 800;
    line-height: 1.5;
    color: #212529;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    background-color: transparent;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
	border: 0;
    border-radius: 0.25rem;
    transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;

	box-shadow: 0 .5rem 1rem rgba(0,0,0,.15)!important;

	background-color: #fff;

	color: var(--bs-gray-800);

	transform: rotate(90deg) translate(50%);
    transform-origin: right top;
}

.template-builder-container { 

	display: flex;
	flex-direction: column;

    background-color: #eeeeee;
	overflow: hidden;
	background-color: #fff;
	transition: transform .3s ease-in-out;
	margin-top: 2rem;
	max-height: 544px;
}


.template-builder-header {
	border-bottom: 1px solid var(--bs-gray-300);
}

.template-builder-body {
	margin-top: 1rem;
	overflow: auto;
}

.template-builder-button-close{
	display: none;
}


@media (max-width: 1200px){

	.template-builder-button {
		display: inline-block;
	}
	
	.template-builder-button-close{
		display: block;
	}

	.template-builder-container { 
		padding: 1rem;
		z-index: 1;
		position: fixed;
		top: 0;
		bottom: 0;
		width: 25%;
		min-width: 20rem;
		right: 0;
		transform: translateX(100%);
		margin-top: 47px;
		max-height: 100%;
	}

	.template-builder-container.show {
		box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15) !important;
		transform: translateX(0);
	}
}


@media (max-width: 576px) {
	.template-builder-container {
		min-width: 100%;
	}
}