/* alerts */
.alert {
    margin: 1rem 0;
    padding: 0.75rem 1.25rem;
    border: 1px solid transparent;
    border-radius: 0.25rem;
    font-size: 14px;
    line-height: 1.5;
}
.alert.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}
.alert.alert-info {
    color: #0c5460;
    background-color: #d1ecf1;
    border-color: #bee5eb;
}
.alert.alert-warning {
    color: #856404;
    background-color: #fff3cd;
    border-color: #ffeeba;
}
.alert.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

/* forms */
.special-field {
    display: none !important;
    visibility: hidden !important;
}

.field .error {
    display: none;
}
.field.error-field .error {
    display: inline-block;
}

.submit-message::before {
    content: '';
    display: block;
    margin: 0 auto 10px;
    background-repeat: no-repeat;
    background-position: center;
}
.submit-message.ok-message::before {
    width: 80px;
    height: 27px;
    background-image: url('../i/ok-message.svg');
    background-size: 80px 27px;
}
.submit-message.error-message::before {
    width: 58px;
    height: 29px;
    background-image: url('../i/error-message.svg');
    background-size: 58px 29px;
}

/* other */

#page-banner .bg {
    background-color: #44553c;
}

#map a {
    border-bottom: 0;
}

.center > img,
.center > figure {
    display: inline-block;
}

.product-item {
    display: none;
}

.gridder-show .gridder-nav.disabled {
    display: none !important;
}
.products-nav{
  padding-right: 20px;
}
.products-nav li ul{
  margin: 5px 0 10px;
}
.products-nav li li{
  padding-left: 10px
}
.products-nav li .current{
  background-position: -10px 10px;
}
#nav ul{
  align-items: center;
}
@media screen and (max-width: 1164px) {
  #nav > ul{
    width: 100% !important;
  }
}
@media screen and (min-width: 1165px) {
  #nav > ul > li > a{
    vertical-align: middle;
  }
}
#nav a:after, #nav li ul::before{
  content: none !important;
}
#nav .trigger{
  width: 40px;
  height: 40px;
  background-color: inherit;
}
#nav .trigger:after{
  font-family: "fontello";
  content: "\f107";
  color: #8fb716;
}
#nav .trigger.open:after{
  content: "\f106";
}
#nav .trigger.open + .dropdown{
  display: block!important;
}
@media screen and (min-width: 1165px) {
  #nav > ul > li > ul{
    max-height: calc(100vh - 135px);
    overflow: auto;
  }
  #nav .dropdown .dropdown{
    position: relative;
    top: auto;
    left: auto;
    width: auto;
    background-color: inherit;
    padding: 0;
  }
  #nav .has-child .has-child li{
    padding: 0 8px;
    margin: 0;
    min-height: 40px;
    font-size: 90%;
  }
  #nav .has-child .has-child li:not(.has-child){
    display: flex;
    align-items: center;
  }
  #nav .has-child .has-child > a{
    width: calc(100% - 45px);
    vertical-align: middle;
    display: inline-block;
  }
  #nav .trigger:after{
    color:white
  }
}
/* add additional pricelists */
@media screen and (max-width: 549px) {
  .price-btn.active .price-box {
      overflow: auto;
      max-height: calc(100vh - 55px - 10px);
  }
}
@media screen and (min-width: 550px) and (max-width: 969px) {
  .price-btn.active .price-box {
      overflow: auto;
      max-height: calc(100vh - 128px + 26px - 10px);
  }
}
@media screen and (min-width: 970px) {
  .price-btn.active .price-box {
      display: grid;
      grid-template-columns: 1fr 1fr;
  }
}
/* always show popup form on contact page */
html.contacts-page:not(.opened-popup) body {
  display: flex;
  flex-direction: column;
} 
html.contacts-page:not(.opened-popup) #all {
  overflow: initial;
  overflow-x: initial;
  overflow-y: initial;
  height: initial;
  min-height: initial;
  max-height: initial;
}
html.contacts-page:not(.opened-popup) footer {
  order: 1;
  margin-top: 0!important;
} 
html.contacts-page:not(.opened-popup) #popup-box, 
html.contacts-page:not(.opened-popup) #popup-box .container {
  visibility: visible;
  opacity: 1;
  background: transparent;
  position: relative;
  z-index: 0;
  overflow: initial;
  overflow-x: initial;
  overflow-y: initial;
  pointer-events: all;
}
html.contacts-page:not(.opened-popup) #feedback-popup {
  display: block;
}
html.contacts-page:not(.opened-popup) #feedback-popup .js-close-popup {
  display: none;
}
html.contacts-page:not(.opened-popup) #indent {
  padding: 0!important;
}

.active .price-box {
   display: grid;
   grid-template-columns: repeat(2, 1fr);
   grid-template-rows: repeat(2, 0fr);
}

.active .price-box .col:nth-child(3) {
  grid-column: 2;
  grid-row: 2;
}