/**
 HOTFIX file dedicated to the coe-2014 theme for DXP
 */


/** 11/10/2023 - Hide switch language message popup **/
body > .alert-container #ToastAlertContainer .alert.alert-dismissible.alert-info {
  display: none;
}

/* hidden live */
.hidden-live {
	display: none;
}

.has-control-menu.controls-visible #wrapper .portlet-boundary.hidden-live {
	display: block;
	opacity: 0.5;
	position: relative;
}

.has-control-menu.controls-visible #wrapper .portlet-boundary.hidden-live:after {
	font-family: Fontawesome, 'fontawesome-alloy', 'Open Sans',sans-serif;
	display: block;
	font-size: 14px;
	position: absolute;
	bottom: -18px;
	right: 5px;

	content: "\f070";
   font-family: Fontawesome, 'fontawesome-alloy';
   margin-left: 2px;
}
/* external scope link on asset-publisher */
.has-control-menu.controls-visible .external-scope:after {
   font-family: Fontawesome, 'fontawesome-alloy', 'Open Sans',sans-serif;
   display: block;
   font-size: 14px;
   position: absolute;
   bottom: 10px;
   right: 5px;
   content: "\f08e";
   font-family: Fontawesome, 'fontawesome-alloy';
}


/* message don't delete portlet custom filter */
.portlet-custom-filter.lfr-configurator-visibility .portlet-content-editable:after,
.has-control-menu.controls-visible .portlet-boundary.do-not-delete .portlet-content-editable:after,
.has-control-menu.controls-visible .portlet-boundary.do-not-delete .portlet-content-editable:before,
.has-control-menu.controls-visible .portlet-search-options .portlet-content-editable:after {
	content: "";
	display: block;
	position: absolute;
	width: 100%;
	opacity: 0;
	transform: translateY(-100%);  
	transition: transform 300ms ease, opacity 800ms ease;
}

.portlet-custom-filter.lfr-configurator-visibility:hover .portlet-content-editable:after,
.has-control-menu.controls-visible .portlet-boundary.do-not-delete:hover .portlet-content-editable:after,
.has-control-menu.controls-visible .portlet-boundary.do-not-delete:hover .portlet-content-editable:before,
.has-control-menu.controls-visible .portlet-search-options:hover .portlet-content-editable:after {
	content: "Do not delete this portlet";
	padding: 0 5px;
	transform: translateY(0);  
	margin-top: 1px;
	margin: 0;
	opacity: 1;
	border: 1px solid;
	border-radius: 0.25rem;
	color: #856404;
	background-color: #fff3cd;
	border-color: #ffeeba;
	left: 0;
	z-index: 1;
}

/* Ajax links opening as overlay */
#container-overlay {

}

#container-overlay .header-back-to{
	display: none;
}

#container-overlay #content-container {
	position: fixed;
	top: 50%;
	left: 50%;
	z-index: 10;
	transform: translate(-50%, -50%);
	background-color: #fff;
	max-height: 85vh;
	overflow-y: auto;
	overflow-x: hidden;
	padding: 15px;
	z-index: 201;
}

#container-overlay .content-veil {
	position: fixed;
	display: block;
	z-index: 200;
	top: 0;
	width: 100vw;
	height: 100vh;
	background-color: rgba(0,0,0,.8);
	cursor: pointer;
}


#container-overlay .close-overlay{
	font-family: 'fontawesome-alloy';
	font-size: 35px;
	position: absolute;
	right: 10px;
	top: 10px;
	z-index: 1;
	cursor: pointer;
	color: #333;
	transition: color 200ms ease;
}

#container-overlay .close-overlay:after{
	content: "\f00d";
}

#container-overlay .close-overlay:hover{
	color: #ff4900
}

.loading:after {
	content: "";
	position: fixed;
	height: 60px;
	width: 60px;
	z-index: 10;
	background-image: url(https://static.coe.int/pics/loading2.gif);
	background-size: contain;
	background-position: 50% 50%;
	top: 50%;
	left: 50%;
	transform: translate(-50%,-50%);
}

/*az-4602 Fixed scrolling up on accrodion when logged in*/
.control-menu-container {
	height: 0;
}
body.has-control-menu > #coe,
body.has-control-menu > #wrapper {
	margin-top: 56px;
}

/*Guestbook - Asset-publisher*/
.guestbook.portlet-asset-publisher .taglib-header h3.header-title {
    margin-bottom: 10px;
    white-space: normal;
}
.guestbook .taglib-page-iterator {
    position: static;
    padding-bottom: 0;
}

.guestbook .lfr-pagination-buttons.pager .first + li:not(.disabled) > a:before,
.guestbook .lfr-pagination-buttons.pager .first + li + li:not(.disabled) > a:before {
    content: "";
    position: absolute;
    top: 0;
    width: 50px;
    height: 100%;
	opacity: 0;
	transition: all 300ms ease;
}

.guestbook .lfr-pagination-buttons.pager .first + li:not(.disabled) > a:before {
    left: 0;
	background: linear-gradient(90deg, rgb(200 200 200) 0%, rgba(255, 255, 255, 0.1) 90%);
}

.guestbook .lfr-pagination-buttons.pager .first + li + li:not(.disabled) > a:before {
    right: 0;
	background: linear-gradient(270deg, rgb(200 200 200) 0%, rgba(255, 255, 255, 0.1) 90%);
}

.guestbook .lfr-pagination-buttons.pager .first + li:not(.disabled) > a:hover:before,
.guestbook .lfr-pagination-buttons.pager .first + li + li:not(.disabled) > a:hover:before {
	opacity: 1;
}

.guestbook .content:after {
    clear: both;
    content: "";
    display: block;
}

.guestbook .lfr-pagination .lfr-pagination-config,
.guestbook .lfr-pagination .pager li.last {
    position: relative;
    /*z-index: 10;*/
}

/*hidden webform*/
.web-form-portlet {
    display: none;
}

/* accordion portlet - az-14431 */
[class*=accordion-h] .toggle-title{
    display: block;
    cursor: pointer;
    position: relative;
}

[class*=accordion-h] .toggle-title:after {
    content:"▾";
    font-size: 1.5em;
    position: absolute;
    right: 0;
    transition: transform 200ms;
    top: 50%;
    transform: translateY(-50%);
}
[class*=accordion-h] .toggle-title.active:after {
    transform: rotate(180deg) translateY(50%);
}

/**TEST EDIT LAYOUT**/
.aui body.controls-visible.has-control-menu .portlet-column .portlet-dropzone {
    outline: 2px dashed transparent;
    border-radius: 8px;
    transition: background 300ms ease;
}


.aui body.controls-visible.has-control-menu.hlayout.hedit .portlet-column .portlet-dropzone {
	outline-color: #186da9;
	fill: #186da9;
	margin-top: 10px;
    margin-bottom: 10px;
    background-color: #61d5f710;
}

.aui body.controls-visible.has-control-menu .portlet-column .portlet-dropzone {
    transition: margin 500ms ease, background 300ms ease;
}

.aui body.controls-visible.has-control-menu .portlet-column .portlet-dropzone .portlet-dropzone {
    outline-color: transparent;
}

.aui body.controls-visible.has-control-menu.hnested.hedit .portlet-column .portlet-dropzone .portlet-dropzone {
    outline-color: yellowgreen;
}

.aui body.controls-visible.has-control-menu.hlayout.hedit .portlet-column .portlet-dropzone:hover {
    background-color: #007bff20;
}


.aui body.controls-visible.has-control-menu.hnested.hedit #wrapper .portlet-boundary.portlet-nested-portlets:hover {
	outline: 3px solid #c610d5;  
    background-color: rgba(130,255,24,0.17);
}

.aui body.controls-visible.has-control-menu.hportlet.hedit #wrapper .portlet-boundary:not(.portlet-nested-portlets) {
    outline: 4px dotted #ff00b6;
}

.aui body.controls-visible.has-control-menu.hportlet.hedit #wrapper .portlet-boundary:not(.portlet-nested-portlets):nth-child(2n) {
    outline: 4px dotted #9100f5;
}

.aui body.controls-visible.has-control-menu.hportlet.hedit #wrapper .portlet-boundary:not(.portlet-nested-portlets):nth-child(n):hover {
	outline: 6px dotted #d51010;  
}

.aui body.controls-visible.has-control-menu #wrapper .portlet-boundary {
    /transition: outline-color 800ms ease;
    /outline-color: transparent;
}
.aui body.controls-visible.has-control-menu.hportlet.hedit #wrapper .portlet-boundary:hover {
    z-index: 900;
    position: relative;
}

.aui body.controls-visible.has-control-menu.hportlet.hedit #wrapper .portlet-boundary:hover > .portlet-content {
    opacity: 0.8;
    
    /filter: brightness(150%);
    /z-index: 1000;
    position: relative;
}
.aui body.controls-visible.has-control-menu.hportlet.hedit #wrapper .portlet-boundary:hover {
    background-color: rgba(255,0,0,0.26);
    transition: background 300ms ease;
}

/*.aui body.controls-visible.has-control-menu.hedit .portlet.open>.portlet-topper,*/
.aui body.controls-visible.has-control-menu.hedit div:not(.portlet-nested-portlets)>.portlet:hover>.portlet-topper,
.aui body.controls-visible.has-control-menu.hedit .portlet.focus>.portlet-topper {
	opacity: 0.7;
	z-index: 10;
}
.aui body.controls-visible.has-control-menu.hedit .portlet>.portlet-topper:hover {
    opacity: 1 !important;
	background-color: #dedbf5;
}


/*****/

.portlet-column {
    display: flex;
    flex-direction: column;
}

.portlet-column-content {
    flex-shrink: 0;
    flex-grow: 1;
    max-width: 100%;
}

/*****/

.portlet-column {
    display: flex;
    flex-direction: column;
}

.portlet-column-content {
    flex-shrink: 0;
    flex-grow: 1;
    max-width: 100%;
}
/**********/
.hedit.controls-visible .lfr-icon-item .icon-medkit {
    color: #d9ba19;
}

.layout-helper {
    padding: 5px 10px;
    
}

.layout-helper ul {
    list-style: none;
    padding: 0;
}

.layout-helper li {
    text-align: left;
    padding: 6px 0;
	display: flex;
    justify-content: space-between;
	align-items: center;
	line-height: 1em;
	border-bottom: 1px solid #333;
}
.layout-helper li:last-child {
	border-bottom: none;
}

.layout-helper li.heading {
	background-color: #fff;
    color: #000;
    border-radius: 8px;
    margin: 0 -10px;
    padding-left: 10px;
    padding-right: 10px;
    font-weight: 500;
}

.switch {
  position: relative;
  display: inline-block;
  width: 35px;
  min-width: 35px;
  height: 18px;
  margin: 0;
}

.switch input { 
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: .4s;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 70%;
  aspect-ratio: 1 / 1;
  left: 7%;
  top: 50%;
  transform: translate(0, -50%);
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}

input:checked + .slider {
  background-color: #2196F3;
}

input:focus + .slider {
  box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider:before {
  transform: translate(-100%, -50%);
    left: calc(100% - 7%);
    
}

/* Rounded sliders */
.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

.tooltip:not(.show) {
    visibility: hidden
}

/*label new*/
.label-new {
	visibility: hidden;
	opacity: 0;
	position: absolute;
	top: 38px;
	background: #d70d0d;
	padding: 0 5px;
	color: #fff;
	border-radius: 5px;
	font-size: 11px;
	transition: all 300ms ease;
}

body.controls-visible.has-control-menu .label-new {
	visibility: visible;
	opacity: 0.9;
}
/****--- END TEST EDIT LAYOUT ---****/