/* CSS styly užitečných publis funkcí které jsou dostupné VŽDY na frontendu */
/* je to zde v common.css.d, kdyby se v budoucnu chtělo používat nahrzování barev atd */

/* loading overlay */
#publis-loading-overlay {
  display: none;
  opacity: 0;
  position: fixed;
  overflow: hidden;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000000;
  background-color: #222;
  background-color: rgba(0,0,0,0.8);
  transition: opacity 0.5s ease;
}

#publis-loading-overlay.active {
  display: block !important;
  opacity: 0.7 !important;
}

/* shinebox */
.shine {
  background: #f6f7f8;
  background-image: linear-gradient(to right, #f6f7f8 0%, #edeef1 20%, #f6f7f8 40%, #f6f7f8 100%);
  background-repeat: no-repeat;
  background-size: 100% 226px; 
  display: inline-block;
  position: relative; 
  
  -webkit-animation-duration: 1s;
  -webkit-animation-fill-mode: forwards; 
  -webkit-animation-iteration-count: infinite;
  -webkit-animation-name: placeholderShimmer;
  -webkit-animation-timing-function: linear;
}

.shineboxwrapper {
	width: 100%;
	height: 226px;
	margin-bottom: 15px;
}

box.shine {
	height: 226px;
	width: 28%;
	margin-left: 2%;
}

.shinelineswrapper {
  display: inline-flex;
  flex-direction: column; 
  margin-left: 3%;
  margin-top: 15px;
	vertical-align: top;
	width: 60%;
}

lines.shine {
  height: 10px;
  margin-top: 10px;
  width: 100%; 
}

photo.shine {
  display: block!important;
  width: 100%; 
  height: 226px; 
  margin-top: 15px;
}

tr .shine {
  background-size: 100% 50px; 
}

tr.shineboxwrapper {
	height: 50px;
}

tr box.shine {
	height: 50px;
	width: 100%;
	margin-left: 0;
}

tr .shinelineswrapper {
	width: 97%;
  margin-top: 0;
}

tr photo.shine {
  height: 50px; 
}

@-webkit-keyframes placeholderShimmer {
  0% {
    background-position: -468px 0;
  }
  
  100% {
    background-position: 468px 0; 
  }
}


/*tiny info box*/
#publis-tiny-info-wrapper {
	background: #fff;
	position: fixed;
	top: 80px;
	right: -350px;
	transition: right 0.5s ease 0s;
	width: 350px;
	min-height: 80px;
	box-shadow: 0 6px 12px rgba(0,0,0,.05),0 1px 4px rgba(0,0,0,.15);
	z-index: 20000;
}

#publis-tiny-info-wrapper.open {
	right: 0;
}

.publis-tiny-info-message {
	position: relative;
	height: 100%;
}

	.publis-tiny-info-message:before {
		position: absolute;
		width: 4px;
		left: 0;
		background-color: #ffd012;
		content: "";
		height: 100%;
		min-height: 80px;
		display: block;
  }

  .publis-tiny-info-message.error:before {
		background-color: #ff484c;
  }
  
  .publis-tiny-info-message.success:before {
		background-color: #7ad835;
	}

.publis-tiny-info-message-inner {
	padding: 15px 25px;
}

/*publis modal panel*/
#publis-modal-panel-wrapper .publis-modal-panel-content {
	background: #fff;
	position: fixed;
	top: 0;
	right: -100vw;
	transition: right 0.5s ease 0s;
	width: 750px;
  max-width: 100%;
	min-height: 100vh;
  height: 100%;
	box-shadow: 0 6px 12px rgba(0,0,0,.05),0 1px 4px rgba(0,0,0,.15);
	z-index: 20000;
  overflow: auto;
}

#publis-modal-panel-wrapper.open .publis-modal-panel-content {
	right: 0;
}
	
.publis-modal-panel-inner {
	padding: 45px 25px 15px;
}

.publis-modal-panel-close {
  position: absolute;
  right: 10px;
  top: 5px;
  font-size: 25px;
  cursor: pointer;
}


/* select2 kvuli modal panel */
.select2-container--open {
  z-index: 20001;
}


/* cookies policy */
.cookieopt-holder {
  width: 100%;
  padding: 20px 15px;
  background: #3D4951;
  color: #fff;
  font-size: 12px !important;
  float: left;
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: 20000;
}

.cookieopt-holder.cookies-floating-middle {
  /*--CenteredBox: 100%;*/
  padding: 20px 15px;
  background: #3D4951;
  color: #fff;
  font-size: 12px !important;
  float: none;
  position: fixed;
  bottom: 42%;
  left: calc(50% - 200px);
  width: 400px;
  max-width: 100%;
  text-align: center;
}

#cookies-modal .modal-title {
  font-size: 25px;
  font-weight: bold;
}

#cookies-modal .form-switch{
  font-size: 14px;
  font-weight: bold;
}

@media (max-width:450px) {
  .cookieopt-holder.cookies-floating-middle {
    /*--CenteredBox: 100%;*/
    padding: 20px 15px;
    background: #3D4951;
    color: #fff;
    font-size: 12px !important;
    float: none;
    position: fixed;
    bottom: 20px;
    left: 0;
    width: 100%;
    max-width: 100%;
    text-align: center;
  }
}

.cookieopt-holder i {
  font-size: 22px;
  margin: 0 25px;
  float: left;
}

.cookie-text {
  float: left;
  width: 55%;
}

.cookieopt-holder.cookies-floating-middle .cookie-text {
  float: none;
  width: 100%;
}

.cookieopt-holder.cookies-floating-middle i {
  float: none;
  width: 100%;
  margin: 0;
}

.cookie-text a {
  color: #fff;
}

.cookie-text p {
  margin: 0;
  color: #fff;
}

.cookieopt-holder .button {
  float: left;
  cursor: pointer;
  padding: 10px 25px;
  border: 1px solid #fff;
  margin: 0 10px 0 30px;
}

.cookieopt-morelink {
  float: left;
  cursor: pointer;
  padding: 10px 25px;
  margin: 0 11px 0 30px;
}

.cookieopt-morelink a {
  color: #fff;
}

.cookieopt-holder.cookies-floating-middle .cookieopt-morelink,
.cookieopt-holder.cookies-floating-middle .button {
  float: none;
  cursor: pointer;
  padding: 7px;
  margin: 0 auto;
  width: 100%;
  clear: both;
  display: block;
}

a.publis-consent-detail-button,
.publis-consent-detail-button {
  cursor: pointer;
}

.fancybox-slide #cookies-modal.fancybox-content {
  width: 700px !important;
  max-width: 100% !important;
}

#cookies-modal .consent-modal-switches {
  margin: 30px 0 15px;
}

/*publis specific - tyhle veci bud zustanou v common, nebo se na ne udela specialni sobor*/
/*jedna se o věci, ktere nemusi byt vždy na frontendu, ale bez nich dana vec v podstate nefunguje - dynamicke js formy a pod.*/
/* form2 button select */
.form_editor2  .buttons-select-wrapper ul {
  padding-left: 0;
}

.form_editor2  .buttons-select-wrapper label {
	display: block;
}

.form_editor2  .buttons-select-wrapper .select-button {
  float: left;
  text-align: center;
  padding: 10px 15px;
  margin: 5px 10px;
  background: #ccc;
}

.form_editor2  .buttons-select-wrapper .select-button.active {
  background: #21b384;
}

.ai-assistant-popup {
  display: inline-block;
  padding: 2px 12px;
  font-size: 21px;
  color: #9972d3;
  cursor: pointer;
  font-weight: bold;
}

.info-popup {
    display: inline-block;
    position: relative;
    top: 5px;
    margin-left: 3px;
}

.info-popup .infopopup-text {
    position: absolute;
    left: calc(100% - 4px);
    bottom: calc(100% - 4px);
    background: #fff;
    border: 1px solid #FD5D3B;
    height: auto;
    width: 200px;
    display: none;
    padding: 15px;
    z-index: 88;
    white-space: normal;
    word-wrap: break-word;
}

.info-popup:hover .infopopup-text {
    display: block;
}

.info-popup .info-popup-ico {
    color: #FD5D3B;
    position: relative;
    border: 1px solid #FD5D3B;
    border-radius: 50%;
    font-weight: 300;
    width: 22px;
    text-align: center;
    height: 22px;
    font-size: 12px;
}

.info-popup .info-popup-ico i {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.success_message {
  background: #1cbd47;
  color: #fff;
  padding: 30px 20px;
}

.error_message {
  background: #E43439;
  color: #fff;
  padding: 30px 20px;
}

.warning_message {
  background: #ff820d;
  color: #fff;
  padding: 30px 20px;
}

.info_message {
  background: #0db2ff;
  color: #fff;
  padding: 30px 20px;
}

.success_message p,
.error_message p,
.success_message ul,
.error_message ul,
.info_message p,
.warning_message p,
.info_message ul,
.warning_message ul {
  text-align: center;
  margin: 15px 0;
}

.success_message ul li,
.error_message ul li,
.info_message ul li,
.warning_message ul li {
  list-style-type: none;
  text-align: center;
}

.success_message a,
.error_message a,
.info_message a,
.warning_message a {
  color: #fff;
  font-weight: bold;
  text-decoration: underline;
}

/*fixed message*/

#publis-fixed-notice {
  width: 100%;
}

#publis-fixed-notice .item {
  color: #fff;
  padding: 15px 20px;
}

#publis-fixed-notice .item.error {
  background-color: #dc3545;
}

#publis-fixed-notice .item.success {
  background-color: #28a745;
}

#publis-fixed-notice .item.info {
  background-color: #6c757d;
}

#publis-fixed-notice .item.warning {
  background-color: #ffc107;
}

.dynamic_field_group {
  position: relative;
}

.dynamic_field_group .d-close {
  position: absolute;
  right: 0;
  top: -10px;
  font-size: 28px;
  cursor: pointer;
}

.dynamic_field_wrapper .addButt {
  border: 1px solid #fe5d3c;
  padding: 5px 15px;
  color: #fe5d3c;
  cursor: pointer;
  margin-bottom: 15px;
  text-align: center;
}

/* ui naseptavac hlavne aby fungoval v modal a side panelu*/
.ui-widget.ui-autocomplete {
  z-index: 100000;
}
.pac-container {
  z-index: 100000;
}

/*konec publis specific */

@media (max-width:950px) {
  .cookieopt-holder.cookies-bottom-fixed .cookieopt-morelink {
    padding: 10px 0;
  }
}

@media (max-width:768px) {

	.cookieopt-holder i {
	  font-size: 22px;
	  margin: 5px 12px;
	  padding: 0;
	  float: left;
	}
	
	.cookie-text {
	  float: none;
	  width: 100%;
	  display: block;
	}
	
	.cookieopt-holder .button,
  .cookieopt-holder .cookieopt-morelink {
    position: relative !important;
    display: block !important;
    clear: both !important;
    float: none !important;
    margin: 5px auto !important;
    bottom: 0 !important;
    text-align: center !important;
	}
}

/* spinnner */
.reverse-spinner {
  position: relative;
  height: 100px;
  width: 100px;
  border: 4px solid transparent;
  border-top-color: #1976d2;
  border-left-color: #1976d2;
  border-radius: 50%;
  -webkit-animation: spin 1.5s linear infinite;
  animation: spin 1.5s linear infinite;
}

.reverse-spinner::before {
  position: absolute;
  top: 15px;
  left: 15px;
  right: 15px;
  bottom: 15px;
  content: "";
  border: 4px solid transparent;
  border-top-color: #03a9f4;
  border-left-color: #03a9f4;
  border-radius: 50%;
  -webkit-animation: spinBack 1s linear infinite;
  animation: spinBack 1s linear infinite;
}

.preloader-holder {
  margin: 30px auto;
  width: 100px;
  height: 100px;
}

@-webkit-keyframes spin {
    from {
      -webkit-transform: rotate(0deg);
      transform: rotate(0deg);
    }
    to {
      -webkit-transform: rotate(360deg);
      transform: rotate(360deg);
    }
}

@keyframes spin {
    from {
      -webkit-transform: rotate(0deg);
      transform: rotate(0deg);
    }
    to {
      -webkit-transform: rotate(360deg);
      transform: rotate(360deg);
    }
}


@-webkit-keyframes spinBack {
    from {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
  }
  to {
        -webkit-transform: rotate(-720deg);
        transform: rotate(-720deg);
  }
}

@keyframes spinBack {
  from {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
  }
  to {
        -webkit-transform: rotate(-720deg);
        transform: rotate(-720deg);
  }
}

/* spinner end */