/* ==========================================================================
   Mega Menu
   ========================================================================== */

.open > .tws-top-menu--mega-menu {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  column-gap: 20px;
  row-gap: 40px;
  box-sizing: border-box;
}

.tws-top-menu--mega-menu > li.tws-top-menu--sub-item {
  width: auto !important;
  min-width: 0 !important;
  float: none !important;
  box-sizing: border-box;
}


/* ==========================================================================
   Header
   ========================================================================== */

@media only screen and (min-width: 992px) {
  .nordic--header .nordic--header-wrapper {
    padding: 30px 30px 20px;
  }

  .slot--header-horizontal-menu .navbar .container-fluid {
    border-top: 2px solid #c9cfcd;
    border-bottom: none;
  }
}


/* ==========================================================================
   Main Content
   ========================================================================== */

.nordic--body
  .nordic--body-wrapper
  .nordic--main
  .nordic--main-wrapper {
  background: #e5e9e8;
  box-shadow: none;
}

.tws-article-list--list
  .tws-list--type-grid
  .tws-list--grid-item {
  background: #fff;
}


/* ==========================================================================
   Hidden Elements
   ========================================================================== */

.tws-article-social,
.tws-cart-summary--row-vat,
.tws-cart-summary--sum-row,
.tws-checkout--pay-total,
button.btn.btn-default.tws-login--register-button {
  display: none;
}

.tws-article-price.tws-article--price-is-zero.tws-article--price-all-valid {
    display: none;
}

body:not(.user-logged-in) a[href*="/documents"] {
  display: none !important;
}

/* ==========================================================================
   Checkout Button
   ========================================================================== */

.tws-checkout--pay-button .ladda-label {
  font-size: 0;
}

.tws-checkout--pay-button .ladda-label::after {
  content: "Send request";
  font-size: 18px;
}


/* ==========================================================================
   Checkout Validation
   ========================================================================== */

.custom-checkout-required-message {
  display: none;
  margin-top: 6px;
  color: #ff3333;
  font-style: italic;
}

.custom-checkout-invalid .custom-checkout-required-message {
  display: block;
}

.custom-checkout-invalid .tws-checkout--field-control {
  border-color: #ff3333 !important;
}


/* ==========================================================================
   Registration Button
   ========================================================================== */

.tws-custom-register-btn {
  display: inline-block;
  margin-right: 8px;
  padding: 6px 16px;

  box-sizing: border-box;
  border: 1px solid #33393c;
  border-radius: 3px;

  background-color: #fff;
  color: #33393c;

  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.42857143;

  text-decoration: none;
  vertical-align: middle;
  cursor: pointer;
}

.tws-custom-register-btn:hover,
.tws-custom-register-btn:focus {
  background-color: #33393c;
  color: #fff;
  text-decoration: none;
}


/* ==========================================================================
   Registration Popup Overlay
   ========================================================================== */

@media (max-width:448px){
  .custom-form-row{
    display: flex;
    flex-direction: column;
  
}
}
.tws-register-overlay {
  position: fixed;
  z-index: 2000;

  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(0, 0, 0, 0.5);
}


/* ==========================================================================
   Registration Popup
   ========================================================================== */

.tws-register-popup {
  width: 90%;
  max-width: 640px;
  height: 100%;
  max-height: 90vh;

  display: flex;
  flex-direction: column;
  overflow-y: auto;

  background: #fff;
  border-top: 4px solid #ff6600;
  border-radius: 4px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}


/* ==========================================================================
   Registration Popup Header
   ========================================================================== */

.tws-register-popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 16px 20px;

  border-bottom: 1px solid #e8eaea;
  font-family: inherit;
}

.tws-register-popup-header h4 {
  margin: 0;

  color: #33393c;

  font-size: 18px;
  font-weight: 700;
}


/* ==========================================================================
   Registration Popup Close Button
   ========================================================================== */

.tws-register-popup-close {
  padding: 4px 8px;

  background: none;
  border: none;
  color: #5a6266;

  font-size: 22px;
  line-height: 1;

  cursor: pointer;
}

.tws-register-popup-close:hover {
  color: #33393c;
}


/* ==========================================================================
   Registration Popup Iframe
   ========================================================================== */

.tws-register-popup iframe {
  flex: 1;

  width: 100%;
  overflow-y: auto;

  border: none;

  -webkit-overflow-scrolling: touch;
}

/* ==========================================================================
   Checkout - Change text "Article no." to "Article no:"
   ========================================================================== */

.tws-opc-cart--item-info-artno-label {
  font-size: 0;
}

.tws-opc-cart--item-info-artno-label::after {
  content: "Artcle no:";
  font-size: 14px;
}