/* Public BS5 shell — ported from layouts/compat-named-bs5 + main.css */

body.layout-compat-named-public {
  margin: 0;
  min-width: 0;
  min-height: 100vh;
  height: auto !important;
}

body.layout-compat-named-public #wraper {
  min-width: 0 !important;
  overflow-x: hidden;
  overflow-y: visible !important;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
  margin: 0 auto;
  background-color: #f3f3f3;
  background-image: url("/static/brand/background.svg");
  background-attachment: fixed;
  background-size: 100%;
  background-repeat: no-repeat;
  background-position: top center;
  color: #555;
}

body.layout-compat-named-public main.compat-named-bs5-main {
  flex: 1 0 auto;
  width: 100%;
}

.compat-named-page-shell {
  width: 100%;
}

#wraper header {
  background: #3a499c;
  min-height: 50px;
  position: relative;
  z-index: 100;
}

#wraper header .content {
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  min-height: 50px;
  box-sizing: border-box;
  padding-left: 12px;
  padding-right: 12px;
}

#wraper header .left img {
  height: 50px;
  width: 150px;
  max-width: min(150px, 42vw);
  max-height: 34px;
  object-fit: contain;
}

#wraper header .content .left {
  float: left;
  height: 50px;
  display: flex;
  align-items: center;
}

#wraper header .content .right {
  float: right;
  line-height: 50px;
  font-size: 13px;
  font-family: sans-serif;
}

#wraper header .content .right a {
  color: #fff;
  text-decoration: none;
}

#wraper header .content .right a:hover {
  color: #8692ce;
}

#wraper header .content .right div {
  height: 50px;
  float: right;
}

#wraper header .content .right .language {
  width: 140px;
  line-height: 50px;
}

#wraper header .content .right .sign_up {
  width: 120px;
  text-align: center;
}

#wraper header .content .right .login {
  width: 70px;
  text-align: center;
}

.language-select,
.language-select form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tm-lang-globe {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  width: 22px;
  color: #fff;
  font-size: 20px;
}

#wraper header .content .right .language select {
  height: 32px;
  width: 100px;
  max-width: 100%;
  border-radius: 5px;
  margin: 0;
  position: static !important;
  background-color: #fff;
  color: #8d8d8d;
}

footer {
  background: #2e3234;
  min-height: 79px;
  font-family: "Open Sans", sans-serif;
  clear: both;
  padding: 10px 0;
}

body.layout-compat-named-public.page-public-scroll-footer footer {
  position: relative !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  margin-top: 1.5rem !important;
  flex-shrink: 0;
}

footer #content {
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  box-sizing: border-box;
  padding-left: 12px;
  padding-right: 12px;
}

footer #content a {
  text-decoration: none;
  color: #fff;
}

footer #content a:hover {
  color: rgb(228, 207, 64);
}

footer #content .menu {
  font-size: 11px;
  padding: 10px 20px;
  vertical-align: middle;
  width: 30%;
  display: table-cell;
}

footer #content .menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

footer #content .menu li {
  padding: 3px 0;
}

footer #content .copy {
  vertical-align: bottom;
  width: 25%;
  padding: 10px 20px;
  text-align: right;
  display: table-cell;
}

footer #content .logo img {
  height: 31px;
}

footer #content .logo img:last-child {
  width: 140px;
  margin-right: -6px;
  margin-left: -8px;
}

footer #content .text {
  text-align: right;
  padding-right: 4px;
  color: #fff;
  font-size: 11px;
  line-height: 15px;
}

footer #content .abboom-app-release {
  display: inline-block;
  margin-top: 6px;
  font-size: 10px;
  line-height: 1.3;
  opacity: 0.82;
}

@media (max-width: 768px) {
  body.layout-compat-named-public #wraper {
    background-size: auto;
    background-repeat: repeat;
  }

  #wraper header .content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    height: auto !important;
    min-height: 50px;
    padding-top: 8px;
    padding-bottom: 8px;
    gap: 6px 10px;
  }

  #wraper header .content .left {
    float: none !important;
    flex: 1 1 auto;
    min-width: 0;
  }

  #wraper header .content .right {
    display: none !important;
  }

  .tm-mobile-menu-toggle {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 20px;
  }

  #wraper header .tm-mobile-menu {
    width: 100%;
    padding: 6px 0 0;
  }

  #wraper header .tm-mobile-menu .tm-mobile-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px 10px;
    padding: 10px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid #5563ae;
  }

  #wraper header .tm-mobile-menu .tm-mobile-links a {
    color: #5563ae;
    text-decoration: none;
    font-size: 14px;
    padding: 6px 10px;
    border-radius: 10px;
    border: 1px solid rgba(85, 99, 174, 0.22);
  }

  #wraper header .tm-mobile-menu .tm-mobile-language {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1 1 180px;
  }

  footer #content table,
  footer #content tbody,
  footer #content tr,
  footer #content td {
    display: block;
    width: 100% !important;
  }

  footer #content .menu,
  footer #content .copy {
    width: 100% !important;
    text-align: center !important;
    padding: 8px 0 !important;
  }

  footer #content .text {
    text-align: center !important;
    padding-right: 0 !important;
  }
}
