:root{
	--pin-width:26px;
	--pin-height:36px;
}


.wp-block-floorplans-element{
	padding:0;
	width:0;
	height:0;
	margin:0;
	visibility: visible;
	outline:none;
}

.wp-block-floorplans-element:after{
	content: none!important;
}

.fp-element{
	pointer-events:none;
	visibility: visible;
	position:absolute;
	display:inline-block;
	top:0px;
	left:0px;
	min-height:0px!important;

}

/*shapes*/
.fp-element .avatar{
	pointer-events:auto;
	border:solid 1px rgb(238, 17, 71);
	background-color: rgba(247, 141, 167);
	box-sizing:border-box!important;
	position: relative;
	transform-origin: top left;
	height:100%;
	width:100%;
}

.wp-block[data-type="floorplans/container"] .wp-block:not(.is-selected) .avatar{
	cursor:default;
}

.wp-block[data-type="floorplans/container"][data-action="drag"] .fp-element .avatar{
	cursor:grabbing;
}

.fp-element .avatar.stand{
	border:double 4px rgb(238, 17, 71);
	border-top-style:dashed;
	border-top-width:1px;
}

.fp-element .avatar.stand,
.fp-element .avatar.area{
	background-color: rgba(247, 141, 167, 0.5);
}

.fp-element .avatar.area{
	border-style:dashed;
}

.fp-element .avatar.circle{
	border-radius:50%;
}

.fp-element .avatar.seat{
	border:solid 1px;
	border-radius:10%;
	border-bottom-left-radius:30%;
	border-bottom-right-radius:30%;
}

.fp-element .avatar.seat .rendition{
	display: block;
	box-sizing: border-box;
	border: solid 1px;
	border-top: 0;
	border-color: inherit;
	height: 86%;
	margin: 0 14%;
	border-bottom-left-radius: 25%;
	border-bottom-right-radius: 25%;
}

.wp-block-floorplans-element:not(.is-selected) .fp-element .avatar.area.transparent{/*:not(:hover)*/
	background-color: rgba(123, 220, 181, 0)!important;
	background-size: 8px 8px;
    background-image: repeating-linear-gradient(45deg, rgb(68, 76, 247) 0px, rgb(68, 76, 247) 1px, rgba(229, 229, 247, 0) 0px, rgba(229, 229, 247, 0) 51%);
}

.fp-element.pin{
	width:var(--pin-width);
	height:var(--pin-height);
	transform: translate(-50%, -100%);
	transform-origin: bottom center;
}

.fp-element.pin .avatar{
	background-color:transparent;
	border:none;
}

.fp-element.pin .avatar svg{
	overflow: visible;
}

/*labels*/
.fp-element .label{
	padding: 0 4px 4px 4px;
	box-sizing:border-box;
	display:table;
	position:absolute;
	z-index:9;
	height:100%;
	width:100%;
	user-select: none;
	pointer-events:none;
}

.fp-element .label p{
	text-align:center;
	vertical-align: middle;
	white-space: nowrap;
	display: table-cell;
	cursor:default;
	line-height: 0;
}

.fp-element.pin p{
	vertical-align: top;
	padding: 0px 0 0 26px;
	line-height: normal;
}

/*outline
.fp-element .avatar:before,*/
.fp-element .avatar:after{
	content: "";
	position: absolute;
	outline:none;
	transition: outline .1s linear;
	pointer-events: none;
	right: -9px;
	left: -9px;
	top: -9px;
	bottom: -9px;
	border-radius: 3px;
}

.fp-element .avatar.stand:before,
.fp-element .avatar.stand:after{
	right: -11px;
	left: -11px;
	bottom: -11px;
}

/*is-focused*/
.wp-block-floorplans-element.is-focused .fp-element .avatar:after{
	border:solid 1px pink;
}

/*is-selected*/
.wp-block-floorplans-element .fp-element.css-selected  .avatar:after,
.wp-block-floorplans-element[data-role="groupselect"] .avatar:after,
.wp-block-floorplans-element.is-selected .fp-element .avatar:after,
.wp-block-floorplans-element.is-multi-selected .fp-element .avatar:after{
	box-shadow: 0 0 0 2px var( --selection-color );
	box-shadow: var( --selection-hightlight );
}
.wp-block-floorplans-element[data-role="groupselect"] .avatar.redoutline:after,
.wp-block-floorplans-element.is-selected .fp-element .avatar.redoutline:after{
	box-shadow: 0 0 0 2px rgba(255, 0, 0, 0.5);
}

.wp-block-floorplans-element.is-selected .ui-icon-gripsmall-diagonal-se,
.wp-block-floorplans-element.is-selected .ui-rotatable-handle{
	display:block!important;
}


/*is-hovered*/
.wp-block .wp-block.is-hovered .fp-element .avatar:after{
}

/*is-groups-selected*/
.wp-block[data-type="floorplans/container"].hasgroup .avatar:after{
	opacity:0.2;
}

.wp-block[data-type="floorplans/container"].hasgroup .wp-block[data-role="groupselect"] .avatar:after{
	opacity:1;
}

.wp-block[data-type="floorplans/container"].hasgroup .wp-block[data-role="groupselect"] .label{
	display:none;
}

body.post-type-floorplan .block-editor-multi-selection-inspector__card-description{
	display:none;
}

/*number inputs*/
/* Chrome, Safari, Edge, Opera */
body.post-type-floorplan .components-base-control:not(.fp-spinners) input[type=number]::-webkit-outer-spin-button,
body.post-type-floorplan .components-base-control:not(.fp-spinners) input[type=number]::-webkit-inner-spin-button {
	-webkit-appearance: none;
}

/* Firefox */
body.post-type-floorplan .components-base-control:not(.fp-spinners) input[type=Number] {
	-moz-appearance: textfield;
}

/*transform handlers*/
body.post-type-floorplan .avatar .resizehndl{
	position:absolute;
	right:-5px;
	bottom:-5px;
	width: 10px;
	height: 10px;
	padding:0px;
	border:solid transparent;
	border-width:5px 0 0 5px;
	background:transparent;
	user-select:none;
	cursor: se-resize;
	display:none;
	pointer-events:all;
}

body.post-type-floorplan .avatar .resizehndl:before{
	content:"";
	position:absolute;
	right:0px;
	bottom:0px;
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 0 0 10px 10px;
	border-color: transparent transparent red transparent;
	pointer-events:none;
}

body.post-type-floorplan .avatar .rotatehndl{
	position:absolute;
	width: 11px;
	height: 11px;
	cursor:url("data:image/svg+xml,%0A%3Csvg width='24' height='24' version='1.1' viewBox='-.5 -.5 20 20' fill='fff' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m9.4998 10.333-4.9998 3.75 5 3.75v-2.5c3.2217 0 5.8333-2.6117 5.8333-5.8333 0-3.2217-2.6117-5.8333-5.8333-5.8333-3.2217 0-5.8333 2.6117-5.8333 5.8333h2.5c-2e-7-1.8409 1.4924-3.3333 3.3333-3.3333 1.8409 3e-7 3.3333 1.4924 3.3333 3.3333s-1.4924 3.3333-3.3332 3.3333z' fill='white' stroke='%23000' stroke-width='1' style='paint-order:stroke fill markers'/%3E%3C/svg%3E") 16 16, auto;
	background:transparent;
	border:solid 2px red;
	border-top-color:transparent;
	border-radius: 50%;
	user-select:none;
	top: -7px;
	left: -8px;
	display:none;
	pointer-events:all;
}

body.post-type-floorplan .avatar .rotatehndl:after {
	content: "";
	position: absolute;
	border: 5px solid transparent;
	top: -7px;
	left: -1px;
	border-bottom-color: red;
	border-left-width: 3px;
	border-right-width: 3px;
	transform: rotate(37deg);
}

body.post-type-floorplan .wp-block-floorplans-element[data-role="groupselect"]{
	z-index:99999;
}

body.post-type-floorplan .wp-block-floorplans-element[data-role="groupselect"] .avatar{
	border:none;
	background:gold;
}

body.post-type-floorplan .wp-block-floorplans-element[data-role="groupselect"] .avatar div,
body.post-type-floorplan .wp-block-floorplans-element.is-selected .avatar div{
	display:block;
}

body.post-type-floorplan .wp-block-floorplans-element[data-role="groupselect"] .rendition{
	position: relative;
	transform-origin:0 0;
}

body.post-type-floorplan .wp-block-floorplans-element[data-role="groupselect"] .rendition div{
	position:absolute;
}


body.post-type-floorplan .wp-block-floorplans-container.hasgroup .wp-block-floorplans-element:not([data-role="groupselect"]) .avatar:not(.grouped){
	opacity:0.3;
}

body.post-type-floorplan .wp-block-floorplans-container.hasgroup .wp-block-floorplans-element:not([data-role="groupselect"]) .avatar:not(.grouped):before{
	content: "";
	position:absolute;
	top:0;
	bottom:0;
	left:0;
	right:0;
	background:#000;
	opacity:0.3;
}


/*SIDEBAR*/

body.post-type-floorplan .components-select-control__input{
	margin:0!important;
	border-color:rgb(117, 117, 117)!important;
	height: 31px!important;
	line-height:normal!important;
}

body.post-type-floorplan .fp-identity .editor-post-visibility__dialog-choice>div{
	margin-top:12px;
	margin-bottom: -6px;
}

body.post-type-floorplan .fp-element-status-panel .components-base-control{
	margin-bottom:12px;
}

body.post-type-floorplan .fp-element-image{
	position:relative;
}

/*diffwarning*/
body.post-type-floorplan .components-dropdown.diffwarning{
	float:left;
	margin-bottom: -10px;
	margin-left: -2px;
}

body.post-type-floorplan .components-dropdown.diffwarning button{
	text-decoration:none;
}

body.post-type-floorplan .components-dropdown.diffwarning button:before{
	font-size:20px;
	line-height: 19px;
	color:orange;
}
body.post-type-floorplan .components-dropdown.diffwarning button:focus{
	box-shadow:none;
}

body.post-type-floorplan .fp-diffwarning__dialog .content{
	min-width:230px;
	max-width:320px;
}

body.post-type-floorplan .fp-diffwarning__dialog p{
	font-weight:600;
	margin:5px 0 0 0;
}

body.post-type-floorplan .fp-diffwarning__dialog .buttons{
	text-align:right;
	margin-top:20px;
}


/*label row*/
body.post-type-floorplan .fp-row-label{
	width:100%;
	gap:10px;
}

body.post-type-floorplan .fp-row-label button{
	height: 31px;
	margin-top: 21px;
}

body.post-type-floorplan .fp-row-label label{
	display:block;
}

body.post-type-floorplan .fp-row-label input{
	margin:0;
}

/*price row*/
body.post-type-floorplan .fp-row-shop:not(.fp-identity){
	gap:10px;
}


body.post-type-floorplan .fp-element-status-panel input,
body.post-type-floorplan .fp-element-status-panel .components-form-toggle__track{
	box-shadow:none!important;
}

body.post-type-floorplan input#fp-description-a{
	float: left;
	margin-top: 3px;
}

body.post-type-floorplan label.fp-description-label .diffwarning{
	position: relative;
	top: 2px;
}


body.post-type-floorplan input:disabled,
body.post-type-floorplan input:disabled+label{
	color:#bbb;
	border-color:#bbb;
}

body.post-type-floorplan .fp-identity .fp-display,
body.post-type-floorplan .fp-display input{
	color: inherit;
	background: #f4f4f4;
}

body.post-type-floorplan .fp-display input{
	margin-left:-1px;
}

body.post-type-floorplan .fp-identity .fp-display{
	padding:6px 8px 6px 5px;
	border: 1px solid #bbb;
	border-radius: 2px;
}

body.post-type-floorplan .education{
	color:#bbb;
	background:#f9f9f9;
}



/*dimensions*/
body.post-type-floorplan .fp-dimensions .components-panel__row{
	margin:0;
	justify-content:flex-start;
	gap: 0px;
}

body.post-type-floorplan .fp-ontopbttn{
	min-height:26px;
	text-align:right;
}


body.post-type-floorplan .components-base-control__label,
body.post-type-floorplan .components-input-control__label,
body.post-type-floorplan .fp-dimensions .components-panel__row.fp-label{
	min-height:18px!important;
	max-width:none!important;
	margin:0 10px 0 0!important;
	padding:0!important;
	display:block;
	font-size: 11px;
    font-weight: 500;
    line-height: 1.4;
    text-transform: uppercase;
}

body.post-type-floorplan .components-select-control{
	gap: 0;
}

body.post-type-floorplan .availabilityselect .components-base-control__label{
	margin-right:0;
	max-width:none;
}

body.post-type-floorplan .components-base-control.labelshold input,
body.post-type-floorplan .components-base-control.isoheight input,
body.post-type-floorplan .fp-dimensions input{
	text-align:right;
	padding-right: 26px;
}

body.post-type-floorplan .components-checkbox-control__label{
	user-select: none;
}

body.post-type-floorplan .components-checkbox-control.tristate:before{
	content:"x";
	position: absolute;
    z-index: 9;
    width: 16px;
    text-align: center;
    opacity: 0.5;
    line-height: 1;
	pointer-events:none;
}

body.post-type-floorplan .components-checkbox-control.disabled label{
	opacity:0.5;
}

.fp-element-status-panel>div,
.fp-dimensions>div{
	margin-bottom: 12px;
}

.fp-labelshold .components-base-control__label,
.fp-dimensions .components-base-control__label{
	display: block;
}

.fps-input-unit{
	position: relative;
	display: block;
	display: inline-block;
	margin-right: 15px;
	max-width: 100px;
}

.fps-unit:after{
	content: attr(unit);
}

.fps-input-unit .components-text-control__input[type=number]{
	padding-right:26px;
}

.fps-input-unit:after{
	content: attr(unit);
	position: absolute;
	bottom:-1px;
	right: 6px;
	color: #888;
	line-height: 40px;
}

.fps-unit,
.fps-input-unit{
	white-space: nowrap;
}

/*price input*/
body.post-type-floorplan .fp-price-input input{
	text-align:right;
	padding-left:15px;
}

body.post-type-floorplan .fp-price-input label{
	position: absolute;
	padding-left: 7px !important;
	color: #888;
	font-size: 13px;
	font-weight: normal;
	line-height: 40px;
}

.block-editor-block-inspector .components-base-control.fp-transparent{
	margin-bottom:0;
}

body.post-type-floorplan .wp-block .fp-element .avatar.masked,
body.post-type-floorplan .wp-block .fp-element .avatar.clipped{
	background-color:unset!important;
}

body.post-type-floorplan .wp-block .fp-element .avatar .rendition{
	display:block;
	pointer-events:none;
	height:100%;
	background-size:contain;
	background-position:center;
	background-repeat:no-repeat;
	mask-size: 100% 100%;
	mask-repeat: no-repeat;
}

body.post-type-floorplan .wp-block .fp-element .avatar.masked .rendition,
body.post-type-floorplan .wp-block .fp-element .avatar.clipped .rendition{
	opacity:0.5;
}

body.post-type-floorplan.showids .wp-block .fp-element .label{
	color:rgba(0,0,0,0);
}

body.post-type-floorplan.showids .wp-block .fp-element:before{
	content: "#"attr(data-id);
	display: flex;
	position:absolute;
	top:0;
	bottom:0;
	left:0;
	right:0;
	align-items : center;
	justify-content: center;
	margin-top: -2px;
	color:blue;
	white-space: nowrap;
	z-index: 9;
}


body.post-type-floorplan.showids .wp-block .fp-element.pin:before{
	left:45px;
}

body.post-type-floorplan .block-editor-block-inspector .fp-element-image .fp-clipped input:placeholder-shown,
body.post-type-floorplan .block-editor-block-inspector .fp-element-image .fp-clipped input:focus{
	background:none!important;
}

