.overlay-button { cursor: pointer; display: flex; align-items: center; }
.overlay-container { position: fixed; top: 0; height: 100vh; z-index: 200; width: 0; overflow: hidden; }
.overlay-container_visible { width: 100vw; }
.overlay-close { position: absolute; cursor: pointer; z-index: 100; }
.overlay-container_side_left .overlay-body, .overlay-container_side_left.overlay-container_visible.overlay-container_leaving .overlay-body { transform: translateX(-100%); }
.overlay-container_side_right .overlay-body, .overlay-container_side_right.overlay-container_visible.overlay-container_leaving .overlay-body { transform: translateX(100%); }
.overlay-container:not(.overlay-container_visible) .overlay-background, .overlay-container_visible.overlay-container_leaving .overlay-background { opacity: 0 !important; }
.overlay-container_visible .overlay-body { transform: translateX(0); opacity: 1; }
.overlay-container_visible.overlay-container_leaving .overlay-body { opacity: 0; }
.overlay-background { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; transition: opacity 0.3s ease; }
.overlay-body, .overlay-body > .nc-area, .overlay-body > .nc-area > .tpl-block-list { height: 100%; }
.overlay-body > .nc-area { overflow: auto; }
.overlay-body { position: absolute; z-index: 2; transition: all 0.4s ease; opacity: 0; }
.overlay-container_side_left .overlay-body { left: 0; }
.overlay-container_side_right .overlay-body { right: 0; }
.overlay-body > .nc-area > .tpl-block-list > .tpl-container:first-child:last-child:not(.nc--empty) { overflow: auto; }
.overlay-body > .nc-area > .tpl-block-list > .tpl-container:first-child > .nc-infoblock-toolbar { top: 0; }
.tpl-icon { height: 1em; width: 1em; display: inline-flex; flex-shrink: 0; align-items: center; justify-content: center; overflow: hidden; margin: 0 var(--tpl-object--icon-space-text, 0px) 0 0; line-height: 1; }
.tpl-icon.tpl-text-inherit { width: 2em; height: 2em; min-height: 2em; line-height: 1; }
.tpl-icon * { max-width: 100%; max-height: 100%; }
.tpl-icon svg, .tpl-icon img { width: 100%; height: 100%; max-width: 100%; max-height: 100%; }
.tpl-icon img { object-fit: contain; }
.tpl-icon svg path { fill: var(--tpl-object--icon-color); }
.tpl-icon[class*='icon-decor-'] svg, .tpl-icon[class*='icon-decor-'] img { max-width: 50%; max-height: 50%; }
.tpl-icon[class*='icon-decor-circle'] { border-radius: 50%; }
.tpl-icon[class*='icon-decor-circle'] svg, .tpl-icon[class*='icon-decor-circle'] img { max-width: 40%; max-height: 40%; }
.tpl-icon[class*='icon-decor-'] { border: 1px solid var(--tpl-object--icon-decor-color); }
.tpl-icon[class*='icon-decor-'][class*='-fill'] { background-color: var(--tpl-object--icon-decor-color); }
