.scx-blocks {
	margin: 0 auto;
	position: relative;
}

.scx-blocks .ux-hide {
	display: none;
}

.scx-blocks > .items {
	position: relative;
}

.scx-blocks.ux-edit .widget a:not([href^="#"]) {
	cursor: move;
}

.scx-blocks > .items > .item {
	position: relative;
	box-sizing: border-box;
	width: 100%;
}

.scx-blocks > .items > .item:has(.command-button.active) {
	z-index: 1;
}

.graphite-app.edit .scx-blocks.ux-tools-on > .items > .item[data-idx="0"] > .widget > .widget-content > div {
	padding-top: max(160px, calc(var(--margin-top) * 2));
}

.graphite-app.edit .scx-blocks.ux-tools-on > .items > .item[data-idx="0"] > .widget > .widget-content > div.vcx-block-header {
	padding-top: var(--margin-top);
}

.scx-blocks > .items > .item > .widget > .widget-content > [data-visible="off"] {
	display: none;
}

.graphite-app.edit .scx-blocks > .items > .item > .widget > .widget-content > [data-visible="off"] {
	--margin-top: 0 !important;
	--margin-bottom: 0 !important;
	min-height: 42px !important;
	background: url(../../css/images/icon-bars.png) no-repeat center var(--background-color);
	border-top: 1px solid var(--divider-color);	
	display: block;
}

.scx-blocks .command-buttons {
	position: absolute;
	top: 10px;
	right: 10px;
	display: flex;
	gap: 6px;
	z-index: 1;
}

.scx-blocks[data-freeze-mode=on] .command-buttons .command-button {
	width: 24px !important;
	height: 24px !important;
}

.scx-blocks .command-buttons > .command-button {
	position: static;
}

.scx-blocks > .items > .item > a.sapi.remove {
	visibility: hidden;
	display: block;
	width: 32px;
	height: 32px;
	position: absolute;
	top: 10px;
	left: 10px;
}

.scx-blocks > .items > .item[draggable] {
	cursor: move;
}

.graphite-app .scx-blocks .command-button.for-widget:not([draggable=true]) {
	border-radius: 50%;
}

.graphite-app .scx-blocks .command-button.for-widget:not([draggable=true])::before {
	background: url(../../css/images/icon-gear.png) no-repeat center;
	background-size: 60%;
}

.graphite-app .scx-blocks .command-button.for-background {
	cursor: pointer;
}

.scx-blocks .item.block:hover .command-button {
	opacity: 1;
	transform: scale(1);
}

.graphite-app .scx-blocks .command-button.for-admin {
	opacity: 1;
	transform: scale(1);
	background: #09BC09;
	top: 10px !important;
	right: -40px !important;
	left: auto !important;
}

.xgraphite-app .scx-blocks[data-freeze-mode="on"] .command-button.for-admin {
	top: 10px !important;
	left: 10px !important;
	right: auto !important;
}

.graphite-app .scx-blocks .command-button.for-background {
	width: 24px;
	height: 24px;
	background: url('../../css/images/icon-bg-color.png');
	top: 48px;
	box-shadow: none;
}

.graphite-app .scx-blocks .command-button.for-background::before {
	display: none;
}

._graphite-app .scx-blocks .command-button.settings {
	background: url(../../css/images/graphite_btn_config.png);
	width: 21px;
	height: 21px;
	background-attachment: scroll;
	box-shadow: none;
	transform-origin: center;
}

._graphite-app .scx-blocks .command-button.settings::before {
	display: none;
}

.scx-blocks .over {
	outline: var(--item-outline);
}

.scx-blocks .ux-overlay {
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	bottom: 0;
	display: none;
	z-index: 1;
}

.scx-blocks .ux-background-image,
.scx-blocks .ux-background,
.scx-blocks .ux-texture {
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	bottom: 0;
}

.scx-blocks .ux-background.color-solid {
	background-color: var(--background-color);
}

.scx-blocks .ux-background.color-gradient {
	background: radial-gradient(circle, var(--background-color-a) 0%, var(--background-color-b) 100%); 
}

.scx-blocks .ux-texture {
	background-repeat: repeat;
	background-position: center;
	background-image: var(--texture-url);
	background-size: auto;
	background-attachment: fixed;
	mix-blend-mode: var(--blend-mode);
}

.scx-blocks .ux-background-image {
	background-image: var(--background-image);
	background-position: center center;
	background-repeat: no-repeat;
	background-size: cover;
	opacity: var(--background-opacity);
	background-attachment: fixed;
}

.scx-blocks .ux-off {
	display: none;
}

._scx-blocks > .items > .item > .widget > .widget-content > div.with-top-border {
	border-top: 1px solid var(--outline-color);
}

.scx-blocks > .items > .item > .widget > .widget-content > div.with-top-border::after {
	content: '';
	display: block;
	width: 100%;
	height: 1px;
	position: absolute;
	left: 0;
	top: 0;
	background-color: var(--outline-color);
}

.scx-blocks.ux-drag-mode .ux-overlay {
	display: block;
}

.scx-blocks a.edit {
	width: 20px;
	height: 20px;
	background: url('../../css/images/icon-pencil-24x24.png');
	background-size: cover;
}

.scx-blocks a.api[data-action] {
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
	z-index: 1;
}

.scx-blocks a.api[data-action="edit"] {
	position: absolute;
	top: 18px;
	right: 10px;
	width: 20px;
	height: 20px;
	background-image: url(../../css/images/icon-pencil-24x24.png);
}

.scx-blocks a.api[data-action="remove-item"] {
	position: absolute;
	width: 20px;
	height: 20px;
	background-image: url(../../css/images/icon-bin-24x24.png);
	top: 5px;
	right: 29px;
}

.scx-blocks a.api[data-action="move-up"] {
	width: 24px;
	height: 24px;
	background-image: url(../../css/images/icon-up-24x24.png);
}

.scx-blocks a.api[data-action="move-down"] {
	width: 24px;
	height: 24px;
	background-image: url(../../css/images/icon-down-24x24.png);
}

.scx-blocks .ux-light-theme {
	--background-color: #fff;
}

.scx-blocks .ux-dark-theme {
	--background-color: #333;
}

/*scx-block*/

.scx-block {
	position: relative;
}

.scx-block .ux-background-image,
.scx-block .ux-background,
.scx-block .ux-texture {
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	bottom: 0;
}

.scx-block .ux-background.color-solid {
	background-color: var(--background-color);
}

.scx-block .ux-background.color-gradient {
	background: radial-gradient(circle, var(--background-color-a) 0%, var(--background-color-b) 100%); 
}

.scx-block .ux-texture {
	background-repeat: repeat;
	background-position: center;
	background-image: var(--texture-url);
	background-size: auto;
	background-attachment: fixed;
	mix-blend-mode: var(--blend-mode);
}

.scx-block .ux-background-image {
	background-image: var(--background-image);
	background-position: center center;
	background-repeat: no-repeat;
	background-size: cover;
	opacity: var(--background-opacity);
	background-attachment: fixed;
}

.scx-block .ux-off {
	display: none;
}

.scx-block a.edit {
	width: 20px;
	height: 20px;
	background: url('../../css/images/graphite_btn_edit.png');
	background-size: cover;
}

.scx-block a.api[data-action] {
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
}

.scx-block a.api[data-action="edit"] {
	position: absolute;
	top: 10px;
	right: 8px;
	width: 20px;
	height: 20px;
	background-image: url(../../css/images/icon-pencil-24x24.png);
}

.scx-block a.api[data-action="remove-item"] {
	position: absolute;
	width: 20px;
	height: 20px;
	background-image: url(../../css/images/icon-bin-24x24.png);
	top: 5px;
	right: 29px;
}

.scx-block a.api[data-action="move-up"] {
	width: 24px;
	height: 24px;
	background-image: url(../../css/images/icon-up-24x24.png);
}

.scx-block a.api[data-action="move-down"] {
	width: 24px;
	height: 24px;
	background-image: url(../../css/images/icon-down-24x24.png);
}

.scx-block .command-buttons {
	position: absolute;
	top: 10px;
	right: 10px;
	display: flex;
	gap: 6px;
}

.graphite-app .scx-block .command-button.for-widget:not([draggable=true]) {
	border-radius: 50%;
}

.graphite-app .scx-block .command-button.for-widget:not([draggable=true])::before {
	background: url(../../css/images/icon-gear.png) no-repeat center;
	background-size: 60%;
}

.graphite-app .scx-block .command-button.for-background {
	cursor: pointer;
	position: static;
}

.graphite-app .scx-block .command-button.for-widget {
	position: static;
}

._scx-block:hover .command-button {
	opacity: 1;
	transform: scale(1);
}

.scx-block:hover .vcx-block-wall > .command-buttons > .command-button {
	opacity: 1;
	transform: scale(1);
}

.scx-block .scx-wall-1140 > .items > .item:hover .command-button {
	opacity: 1;
	transform: scale(1);
	z-index: 2;
}

.graphite-app .scx-block .command-button.for-admin {
	opacity: 1;
	transform: scale(1);
	background: #09BC09;
	top: 10px !important;
	right: -40px !important;
	left: auto !important;
}

.graphite-app .scx-block .command-button.for-background {
	width: 24px;
	height: 24px;
	background: url('../../css/images/icon-bg-color.png');
	top: 5px;
	box-shadow: none;
}

.graphite-app .scx-block .command-button.for-background::before {
	display: none;
}

.graphite-app .scx-block .command-button.settings {
	background: url(../../css/images/icon-gear-24x24.png);
	width: 21px;
	height: 21px;
	background-attachment: scroll;
	box-shadow: none;
	transform-origin: center;
	background-repeat: no-repeat;
	z-index: 1;
}

.graphite-app .scx-block .command-button.settings::before {
	display: none;
}
