/* Lavprisfolie only: checkout and add-to-basket dialog. */

/* Cart confirmation */
.basket-notifier-container {
  inset: 0;
  top: 0;
  width: 100%;
  height: 100dvh;
  padding: 16px;
  overflow: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .65);
  pointer-events: all;
}

.basket-notifier-container .basket-notifier,
.basket-notifier-container .basket-notifier.no-related-products {
  display: flex !important;
  flex-direction: column;
  gap: 0;
  width: min(100%, 960px);
  max-width: 960px;
  height: auto;
  min-height: 0;
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 20px;
  overflow-x: hidden;
  overflow-y: auto;
  border: 1px solid #dedede;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(0, 0, 0, .25);
}

.basket-notifier-container .basket-notifier > div:nth-child(2),
.basket-notifier-container .basket-notifier.no-related-products > div:nth-child(2) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  flex: 0 0 auto;
  height: auto;
  min-height: 0;
  margin: 0;
  padding: 0 0 16px;
}

.basket-notifier-container .basket-notifier > div:nth-child(2) > div:first-child {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  height: auto;
}

.basket-notifier-container .basket-notifier > div:nth-child(2) > div:first-child > i,
.basket-notifier-container .basket-notifier > div:nth-child(2) > div:first-child > img,
.basket-notifier-container .basket-notifier > div:nth-child(2) > div:first-child > span {
  margin: 0;
}

.basket-notifier-container .basket-notifier-image {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.basket-notifier-container .basket-product-name {
  min-width: 0;
  max-width: 100%;
  font-size: 13px;
  line-height: 1.4;
  color: #222;
}

.basket-notifier-container .basket-notifier > div:nth-child(2) > div:last-child {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  height: auto;
  min-width: 0;
}

.basket-notifier-container .basket-notifier > div:nth-child(2) > div:last-child > div {
  flex: 0 1 auto;
  width: auto;
  height: auto;
  min-width: 0;
  margin: 0;
}

.basket-notifier-container .basket-notifier > div:nth-child(2) > div:last-child > div:last-child {
  display: flex;
  align-items: center;
  gap: 6px;
}

.basket-notifier-container .basket-notifier-basket-price {
  display: block;
  margin: 3px 0 0;
  color: #1f1f1f;
  font-size: 17px;
}

.basket-notifier-container .notifier-close,
.basket-notifier-container .notifier-basket {
  width: auto;
  min-height: 40px;
  margin: 0 !important;
  padding: 9px 14px;
  border-radius: 6px;
  box-shadow: none;
  white-space: normal;
  line-height: 1.25;
  text-align: center;
}

.basket-notifier-container .notifier-close {
  background: #231f20;
  color: #fff;
}

.basket-notifier-container .notifier-basket {
  background: #ffc30e;
  color: #1f1f1f;
  border: 1px solid #1f1f1f;
}

.basket-notifier-container .basket-notifier > div:nth-child(3) {
  flex: 0 0 auto;
  height: auto;
  padding: 12px 0 8px;
  border-bottom: 1px solid #ddd;
}

.basket-notifier-container .basket-notifier > div:nth-child(3) h3 {
  margin: 0 auto;
  font-size: 18px;
  line-height: 1.3;
  text-align: center;
}

.basket-notifier-container .basket-notifier:not(.no-related-products) > .basket-notifier-related-products {
  display: block;
  flex: 0 0 auto;
  height: auto;
  min-height: 0;
  margin: 0;
  padding: 14px;
  background: #f4f4f4;
}

.basket-notifier-related-products .slick-track {
  display: flex;
  align-items: stretch;
  height: auto;
}

.basket-notifier-container .basket-notifier-related-product {
  display: flex;
  flex-direction: column;
  height: auto;
  min-height: 300px;
  margin: 0 5px;
  padding: 14px;
  border: 1px solid #ddd;
  background: #fff;
  box-shadow: none;
}

.basket-notifier-container .basket-notifier-related-product > div:first-child {
  height: 3em;
  min-height: 3em;
  overflow: hidden;
}

.basket-notifier-container .basket-notifier-related-product > div:first-child > span,
.basket-notifier-container .basket-notifier-related-product > div:first-child a {
  font-size: 14px;
  line-height: 1.4;
}

.basket-notifier-container .basket-notifier-related-product > div:first-child a {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  overflow-wrap: anywhere;
}

.basket-notifier-container .basket-notifier-related-product > a:nth-child(2) {
  display: block;
  flex: 0 0 auto;
  height: 154px;
  overflow: hidden;
  border: 1px solid #e1e1e1;
}

.basket-notifier-container .basket-notifier-related-product > a:nth-child(2) > img {
  width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: contain;
}

.basket-notifier-container .basket-notifier-related-product > div:last-child,
.basket-notifier-container .basket-notifier-related-product.showquantityfield > div:last-child {
  height: auto;
  min-height: 0;
  margin-top: auto;
  padding-top: 12px;
}

.basket-notifier-container .basket-notifier-related-product > div:last-child > div:last-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.basket-notifier-container .basket-notifier-related-product > div:last-child > div:last-child > div,
.basket-notifier-container .basket-notifier-related-product > div:last-child > div:last-child > a:last-child {
  flex: 0 1 auto;
  margin: 0 !important;
}

.basket-notifier-container .basket-notifier-related-product > div:last-child > div:last-child > a:last-child {
  min-width: 110px;
  padding: 8px 12px;
  text-align: center;
  white-space: normal;
}

.basket-notifier-related-products .slick-dots {
  position: static;
  display: flex !important;
  justify-content: center;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 12px;
  margin: 12px 0 0;
  padding: 0;
}

.basket-notifier-related-products .slick-dots li {
  position: static;
  display: block;
  flex: 0 0 10px;
  width: 10px;
  height: 10px;
  margin: 0;
}

.basket-notifier-related-products .slick-dots li button {
  display: block;
  width: 10px;
  height: 10px;
  margin: 0;
  padding: 0;
  font-size: 0;
  line-height: 0;
  border: 0;
  border-radius: 50%;
  background: #bbb;
}

.basket-notifier-related-products .slick-dots li.slick-active button { background: #1f1f1f; }
.basket-notifier-related-products .slick-dots li button::before,
.basket-notifier-related-products .slick-dots li button::after {
  display: none !important;
  content: none !important;
}

/* Checkout */
#checkoutView {
  width: 100%;
  max-width: none;
  padding: 0;
  color: #1f1f1f;
}

#checkoutView h2.text-center {
  margin: 20px 0 16px;
  font-size: 23px;
  line-height: 1.35;
}

#checkoutView h2 ._orderStep {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  width: 36px;
  height: 36px;
  margin: 6px 8px 6px 0;
  padding: 0;
  border-radius: 50%;
  background: #ffc30e;
  color: #1f1f1f;
  font-size: 17px;
  line-height: 1;
}

#checkoutView .margin-container { margin: 0; }
#checkoutView #levering,
#checkoutView #betaling {
  display: block;
  height: auto;
  min-height: 0;
  padding: 16px 0 24px;
}

#checkoutView #levering > p,
#checkoutView #betaling > p { margin: 0; color: #666; }
#checkoutView .step4Container { padding-top: 14px; }

#checkoutView #levering {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

#checkoutView #levering > .radio {
  display: block;
  float: none;
  width: 100%;
  min-width: 0;
  height: auto;
  min-height: 0;
  margin: 0;
  padding: 0;
  text-align: left;
}

#checkoutView #levering > .radio > div {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto 52px;
  align-items: center;
  gap: 12px;
  width: 100%;
  height: 100%;
  min-height: 132px;
  padding: 18px;
  border: 1px solid #dedede;
  border-radius: 8px;
  background: #fff;
}

#checkoutView #levering > .radio:has(input:checked) > div {
  border-color: #e5ab00;
  box-shadow: 0 0 0 1px #e5ab00;
  background: #fffdf5;
}

#checkoutView #levering > .radio > div > div {
  width: auto;
  min-width: 0;
  height: auto;
  margin: 0;
  padding: 0;
  text-align: left;
}

#checkoutView #levering .delivery-option { margin: 0; }
#checkoutView #levering label {
  display: block;
  width: auto;
  height: auto;
  margin: 0;
  color: #555;
  font-size: 13px;
  line-height: 1.45;
  text-align: left;
}
#checkoutView #levering label b {
  display: block;
  margin-bottom: 5px;
  color: #1f1f1f;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
}
#checkoutView #levering label br { display: none; }
#checkoutView #levering > .radio > div > div:nth-child(3) {
  color: #1f1f1f;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}
#checkoutView #levering .freight-logo {
  display: block;
  width: 48px;
  height: 48px;
  max-width: 100%;
  object-fit: contain;
}

#checkoutView table:has(#checkoutHeaders) {
  width: 100%;
  max-width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
}

#checkoutView #checkoutHeaders .productMiniature,
#checkoutView #checkoutLines .productMiniature { display: none; }

#checkoutView #checkoutHeaders .productNumberHeader,
#checkoutView #checkoutLines .productNumberContainer { width: 22%; }
#checkoutView #checkoutHeaders .headlineHeader,
#checkoutView #checkoutLines .headlineContainer { width: 48%; }
#checkoutView #checkoutHeaders .quantityHeader,
#checkoutView #checkoutLines .quantityContainer { width: 14%; }
#checkoutView #checkoutHeaders .itemPriceHeader,
#checkoutView #checkoutLines .itemPriceContainer { width: 8%; }
#checkoutView #checkoutHeaders .linePriceHeader,
#checkoutView #checkoutLines .linePriceContainer { width: 8%; }

#checkoutView #checkoutHeaders th,
#checkoutView #checkoutLines td {
  padding: 10px 8px;
  vertical-align: middle;
  overflow-wrap: anywhere;
  word-break: normal;
  font-size: 13px;
}

#checkoutView #checkoutLines .productNumberContainer,
#checkoutView #checkoutLines .headlineContainer { text-align: left; }
#checkoutView #checkoutLines .headlineContainer a {
  display: block;
  max-width: min(100%, 340px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#checkoutView #checkoutLines .itemPriceContainer,
#checkoutView #checkoutLines .linePriceContainer { text-align: right; white-space: nowrap; }

#checkoutView .quantity-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  gap: 2px;
}

#checkoutView .quantity-box .quantity-adj {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  min-height: 34px;
}

#checkoutView .quantity-box input {
  width: 38px;
  max-width: 38px;
  height: 34px;
  padding: 0;
  text-align: center;
}

#checkoutView table:has(#checkoutHeaders) .basketFooter { display: table-footer-group; width: auto; }
#checkoutView table:has(#checkoutHeaders) .basketFooter tr { display: table-row; width: auto; }
#checkoutView table:has(#checkoutHeaders) .basketFooter td {
  display: table-cell;
  width: auto;
  padding: 16px 8px;
  text-align: right;
}
#checkoutView .basketFooter td > span { display: block; margin: 4px 0; }
#checkoutView .basketFooter .basketTotalAmountCaption { white-space: nowrap; }

#checkoutView .step2Container .control-label,
#checkoutView .step2Container .form-group {
  text-align: left;
}

#checkoutView .step2Container .control-label {
  display: block;
  margin: 0 0 6px;
}

#checkoutView .step2Container input.form-control,
#checkoutView .step2Container select.form-control { width: 100%; }

#checkoutView #_getDataFromPreviousBox {
  display: flex;
  align-items: stretch;
  width: 100%;
  height: 40px;
  margin: 0;
}

#checkoutView #_getDataFromPreviousBox input {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  height: 40px;
}

#checkoutView #_getDataFromPreviousBox .input-group-btn {
  display: flex;
  flex: 0 0 auto;
}

#checkoutView #_getDataFromPreviousBox button {
  width: auto;
  min-width: 155px;
  height: 40px;
  margin: 0;
  padding: 0 14px;
  border: 1px solid #1f1f1f;
  border-radius: 0 5px 5px 0;
  background: #ffc30e;
  color: #1f1f1f;
  white-space: nowrap;
  font-weight: 700;
}

#checkoutView .form-group.terms,
#checkoutView .form-group.newsletter {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 10px;
  text-align: left;
}

#checkoutView .form-group.terms input,
#checkoutView .form-group.newsletter input {
  flex: 0 0 auto;
  margin: 4px 0 0;
}

#checkoutView .form-group.terms label,
#checkoutView .form-group.newsletter label {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  text-align: left;
}

@media (max-width: 767px) {
  .basket-notifier-container { padding: 10px; }
  .basket-notifier-container .basket-notifier,
  .basket-notifier-container .basket-notifier.no-related-products {
    width: 100%;
    max-height: calc(100dvh - 20px);
    padding: 10px 16px;
  }

  .basket-notifier-container .basket-notifier > div:nth-child(2),
  .basket-notifier-container .basket-notifier.no-related-products > div:nth-child(2) {
    grid-template-columns: 1fr;
    gap: 12px;
    padding-bottom: 12px;
  }

  .basket-notifier-container .basket-notifier > div:nth-child(2) > div:first-child {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    text-align: left;
  }
  .basket-notifier-container .basket-notifier > div:nth-child(2) > div:first-child > i {
    flex: 0 0 auto;
    font-size: 20px;
  }
  .basket-notifier-container .basket-notifier-image {
    flex-basis: 52px;
    width: 52px;
    height: 52px;
  }
  .basket-notifier-container .basket-product-name {
    flex: 1 1 auto;
    font-size: 12px;
    line-height: 1.35;
  }
  .basket-notifier-container .basket-notifier > div:nth-child(2) > div:last-child {
    justify-content: center;
    gap: 10px;
  }
  .basket-notifier-container .basket-notifier > div:nth-child(2) > div:last-child > div {
    flex: 1 1 100%;
    text-align: center;
  }
  .basket-notifier-container .basket-notifier > div:nth-child(2) > div:last-child > div:last-child {
    justify-content: center;
    flex-direction: row;
  }
  .basket-notifier-container .notifier-close,
  .basket-notifier-container .notifier-basket {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
  }
  .basket-notifier-container .basket-notifier:not(.no-related-products) > .basket-notifier-related-products {
    padding: 12px 7px;
  }
  .basket-notifier-container .basket-notifier-related-product {
    min-height: 0;
    margin: 0 5px;
    padding: 12px;
  }
  .basket-notifier-container .basket-notifier-related-product > div:last-child > div:last-child {
    flex-wrap: wrap;
  }
  .basket-notifier-container .basket-notifier-related-product > div:last-child > div:last-child > a:last-child {
    flex: 1 1 100%;
    min-width: 0;
  }

  #checkoutView {
    width: calc(100% + 60px);
    max-width: none;
    margin-left: -30px;
    padding: 0 !important;
  }
  #checkoutView .row,
  #checkoutView .col { margin-left: 0; margin-right: 0; }
  #checkoutView h2.text-center { font-size: 20px; }
  #checkoutView h2 ._orderStep { width: 30px; height: 30px; font-size: 14px; }

  #checkoutView #levering { grid-template-columns: 1fr; gap: 10px; padding: 12px 0 20px; }
  #checkoutView #levering > .radio > div {
    grid-template-columns: 20px minmax(0, 1fr) 42px;
    gap: 7px 10px;
    min-height: 0;
    padding: 14px;
  }
  #checkoutView #levering > .radio > div > div:nth-child(3) {
    grid-column: 2;
    grid-row: 2;
    font-size: 14px;
  }
  #checkoutView #levering > .radio > div > div:nth-child(4) {
    grid-column: 3;
    grid-row: 1 / span 2;
  }
  #checkoutView #levering .freight-logo { width: 40px; height: 40px; }
  #checkoutView #levering label b { font-size: 16px; }

  #checkoutView table:has(#checkoutHeaders),
  #checkoutView #checkoutLines,
  #checkoutView .basketFooter { display: block; width: 100%; }
  #checkoutView #checkoutHeaders { display: none; }
  #checkoutView #checkoutLines tr {
    display: grid;
    grid-template-columns: minmax(105px, 1fr) auto auto;
    gap: 8px 10px;
    align-items: end;
    margin-bottom: 8px;
    padding: 12px;
    border: 1px solid #dedede;
    border-radius: 8px;
    background: #f8f8f6;
  }
  #checkoutView #checkoutLines td {
    display: block;
    width: auto;
    min-width: 0;
    padding: 0;
    border: 0;
    font-size: 12px;
    white-space: nowrap;
  }
  #checkoutView #checkoutLines .productMiniature,
  #checkoutView #checkoutLines .productNumberContainer { display: none; }
  #checkoutView #checkoutLines .headlineContainer {
    grid-column: 1 / -1;
    overflow: hidden;
  }
  #checkoutView #checkoutLines .headlineContainer a {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 700;
  }
  #checkoutView #checkoutLines .variantName {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 11px;
    color: #666;
  }
  #checkoutView #checkoutLines .itemPriceContainer::before,
  #checkoutView #checkoutLines .linePriceContainer::before {
    display: block;
    margin-bottom: 2px;
    color: #666;
    font-size: 10px;
  }
  #checkoutView #checkoutLines .itemPriceContainer::before { content: "Pris/stk."; }
  #checkoutView #checkoutLines .linePriceContainer::before { content: "Total"; }
  #checkoutView .quantity-box { justify-content: flex-start; }
  #checkoutView table:has(#checkoutHeaders) .basketFooter,
  #checkoutView table:has(#checkoutHeaders) .basketFooter tr,
  #checkoutView table:has(#checkoutHeaders) .basketFooter td { display: block; width: 100%; }
  #checkoutView .basketFooter td { padding: 10px 0; }

  #checkoutView .step2Container .margin-container > .row > [class*="col-"] {
    width: 100%;
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
  }
  #checkoutView .step2Container .form-group,
  #checkoutView .step2Container .control-label { text-align: left; }
  #checkoutView .step2Container input.form-control,
  #checkoutView .step2Container select.form-control { width: 100%; max-width: 100%; }
  #checkoutView #_getDataFromPreviousBox { width: 100%; }
  #checkoutView #_getDataFromPreviousBox .input-group-btn { flex: 0 0 44px; width: 44px; }
  #checkoutView #_getDataFromPreviousBox button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    width: 44px;
    min-width: 44px;
    padding: 0;
    font-size: 0;
  }
  #checkoutView #_getDataFromPreviousBox button::before {
    content: "\f002";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 17px;
    line-height: 1;
  }
}
