/* ESPA banners: fixed bar at the bottom of the screen (like elvial.gr) */
#sp-top-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  margin: 0;
  padding: 6px 10px;
  background: rgba(0, 0, 0, .8) !important;
}
#sp-top-bar > .row,
#sp-top-bar #sp-espa-header,
#sp-top-bar .sp-module,
#sp-top-bar .sppb-section,
#sp-top-bar .sppb-container-inner {
  margin: 0 !important;
  padding: 0 !important;
  background: none !important;
}
#sp-top-bar .sppb-row {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: 1em;
  margin: 0;
}
#sp-top-bar .sppb-row > [class*="sppb-col-"] {
  flex: 0 0 auto;
  width: auto;
  max-width: none;
  padding: 0;
}
#sp-top-bar .sppb-addon-wrapper {
  margin: 0 !important;
}
#sp-top-bar .sppb-row > [class*="sppb-col-"] * {
  max-width: 100%;
}
#sp-top-bar img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 60px;
}
/* keep the page footer and the scroll-up button above the bar */
body { padding-bottom: 85px; }
.sp-scroll-up { bottom: 95px !important; }

@media (max-width: 767px) {
  #sp-top-bar { padding: 4px 8px; }
  #sp-top-bar .sppb-row { gap: .5em; }
  #sp-top-bar .sppb-row > [class*="sppb-col-"] { flex: 1 1 0; min-width: 0; }
  #sp-top-bar img { width: 100%; max-height: none; height: auto; }
  body { padding-bottom: 36px; }
  .sp-scroll-up { bottom: 50px !important; }
}

/* Logo centered inside the header bar */
#sp-header #sp-logo,
#sp-header #sp-logo .sp-column {
  position: static;
}
#sp-header #sp-logo .logo {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  align-items: center;
  height: 60px;
  margin: 0;
  padding: 0;
}
#sp-header #sp-logo .logo a {
  display: flex;
  align-items: center;
  width: auto;
}
#sp-header #sp-logo .logo img {
  max-height: 44px;
  width: auto;
  margin: 0 !important; /* template custom CSS adds margin-left: 30rem */
}
@media (max-width: 991px) {
  #sp-header #sp-logo .logo img { max-height: 30px; }
}

/* Accessibility (UserWay) button: middle of the right edge */
html body .uwy.userway_p1 .userway_buttons_wrapper,
html body .uwy .userway_buttons_wrapper {
  top: 50% !important;
  bottom: auto !important;
  left: auto !important;
  right: 13px !important;
  transform: translateY(-50%) !important;
}

/* Light-background pages whose header is transparent with white icons:
   give the normal header the same background as the sticky one
   (248 ELVIAL W89, 257 ELVIAL W59, 258 ELVIAL W60BS) */
html body.itemid-248 #sp-header:not(.header-sticky),
html body.itemid-257 #sp-header:not(.header-sticky),
html body.itemid-258 #sp-header:not(.header-sticky) {
  background-color: rgba(11, 25, 58, .71) !important;
}
