#allegro-widget{
  max-width: 452px;
}

#allegro-widget table {
  width: 100%;
  font-size: 12px;
}

#allegro-widget table thead td {
  font-weight: bold;
}

#allegro-widget-overall {
  background-color: #009b00 !important;
  color: #fff;
  padding: 3px;
  text-align: center;
}

#allegro-widget-overall a {
  text-decoration: none;
  color: #fff;
  font-weight: bold;
}

#allegro-widget-overall a:hover {
  color: #ececec;
}

#allegro-widget-history td {
  text-align: center;
  padding: 3px;
}

#allegro-widget-history td:nth-child(1) {
  text-align: left;
}

.pos td.rowName {
  color: #009b00 !important;
}

.neu td.rowName {
  color: #646464 !important;
}

.neg td.rowName {
  color: #ee3e2b !important;
}

.allegro-widget-stars {
  background: url(../img/stars_bg.png);
  background-repeat: no-repeat;
  height: 24px;
  width: 121px;
}

.allegro-widget-stars div {
  background: url(../img/stars.png);
  background-repeat: no-repeat;
  height: 24px;
}

/* old */

.allegro-toleft.closed {
  left: -440px !important;
}

.allegro-toright.closed {
  right: -440px !important;
}

#allegro-widget.allegro-totop {
  top: 50px;
}

#allegro-widget.allegro-tomiddle {
  top: calc(50% - 160px);
}

#allegro-widget.allegro-tobottom {
  bottom: 50px;
}

#allegro-widget.allegro-toleft {
  left: 0;
}

#allegro-widget.allegro-toright {
  right: 0;
}

.allegro-toleft #allegro-widget-form {
  float: left;
}

.allegro-toright #allegro-widget-form {
  float: right;
}

#allegro-widget.dark h3,
#allegro-widget.dark p {
  color: #000 !important;
}

#allegro-widget {
  position: fixed;
  min-height: 250px;
  z-index: 99999;
  transition: all 0.4s ease;
}

#allegro-widget-form {
  width: 440px;
  height: 100%;
  z-index: 1000;
  padding: 20px;
  background-color: white;
  background-clip: padding-box;
  border: 0px solid rgba(0, 0, 0, 0.2);
  border-radius: 0px;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

#allegro-widget-form .linkButtons {
  text-align: center;
  margin-top: 10px;
}

#allegro-widget-form .linkButtons a {
  display: inline-block;
  background-color: #ff5a00;
  border: 1px solid #ff5a00;
  color: #fff;
  text-decoration: none;
  padding: 5px 10px;
  text-align: center;
  transition: all 0.3s ease;
}

#allegro-widget-form .linkButtons a:hover {
  background-color: #df4f00;
}

#allegro-widget-tab {
  float: right;
  font-size: 20px;
  cursor: pointer;
  text-align: center;
  background-color: #ff5a00;
  opacity: 1;
  border-radius: 0px;
  width: 30px;
  overflow: hidden;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif !important;
  padding: 25px 5px;
}

#allegro-widget-tab img {
  width: 100%;
}

#allegro-widget-tab.light {
  color: #fff !important;
}

#allegro-widget-tab.dark {
  color: #000 !important;
}

.allegro-toright #allegro-widget-tab {
  position: absolute;
  right: 440px;
}

.allegro-toleft #allegro-widget-tab {
  position: absolute;
  left: 440px;
}

#allegro-widget-tab:hover {
  background-color: #df4f00;
}

@media (max-width: 480px) {
  #allegro-widget-form {
    width: 260px;
  }

  #allegro-widget-history tr td:nth-child(2),
  #allegro-widget-history tr td:nth-child(3),
  #allegro-widget-history tr td:nth-child(4) {
    display: none;
  }

  #allegro-widget-summary tr td:nth-child(2) {
    display: none;
  }

  #allegro-widget-form .linkButtons a {
    font-size: 10px;
    padding: 2px 5px;
  }

  .allegro-toleft.closed {
    left: -260px !important;
  }

  .allegro-toright.closed {
    right: -260px !important;
  }

  #allegro-widget-tab {
    font-size: 16px;
    width: 30px;
  }

  #allegro-widget-tab span {
    height: 30px;
    line-height: 29px;
    margin-top: -30px;
  }

  .allegro-toright #allegro-widget-tab {
    right: 260px;
  }

  .allegro-toleft #allegro-widget-tab {
    left: 260px;
  }

  #allegro-widget.mobile_hidden {
    display: none;
  }
}

@media all and (max-height: 400px) and (orientation: landscape) {
  #allegro-widget.allegro-totop,
  #allegro-widget.allegro-tomiddle,
  #allegro-widget.allegro-tobottom {
    top: 5px;
  }
}

#allegro-widget-form {
  max-width: 100% !important;
}
