﻿.btn.btn-primary,
.btn.btn-secondary {
  padding: 14px 25px;
  line-height: 1;
}
.btn.btn-primary.btn-sm,
.btn.btn-secondary.btn-sm {
  padding: 10px 20px;
}

.form-label {
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 5px;
}

.form-control {
  padding: 5px 15px !important;
  border-color: #1A1A1A !important;
  border-radius: 5px !important;
  height: 45px !important;
}

select.form-control {
  --bs-form-select-bg-img: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  background-color: var(--bs-body-bg) !important;
  background-image: var(--bs-form-select-bg-img), var(--bs-form-select-bg-icon, none) !important;
  background-repeat: no-repeat !important;
  background-position: right 0.75rem center !important;
  background-size: 16px 12px !important;
}

.text-red {
  color: #d2232a !important;
}

.row--big-gap {
  margin-right: -30px;
  margin-left: -30px;
}
.row--big-gap > [class*=col] {
  padding-right: 30px;
  padding-left: 30px;
}

.sr-cart-product-list {
  display: grid;
  grid-template-columns: repeat(2, auto);
  margin-bottom: 30px;
}
.sr-cart-product-list.product-list-tariff-hidden {
  grid-template-columns: repeat(1, auto);
}
.sr-cart-product-list.product-list-tariff-hidden .cart-line-tariff-cell,
.sr-cart-product-list.product-list-tariff-hidden #cartTariffColumnHeader {
  display: none;
}
.sr-cart-product-list.product-list-tariff-hidden .sr-cart-product-list__row.cart-empty > div {
  grid-column-end: 2;
}

.cart-lines-loading-spinner {
  grid-column-start: 1;
  grid-column-end: -1;
}

.sr-cart-product-list {
  position: relative;
}
.sr-cart-product-list.is-reloading .sr-cart-product-list__row > * {
  opacity: 0.4;
  pointer-events: none;
}
.sr-cart-product-list.is-reloading .cart-lines-loading-spinner {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.sr-cart-product-list__header > *,
.sr-cart-product-list__row > * {
  padding: 20px 15px;
}

.sr-cart-product-list__header {
  display: none;
}

.sr-cart-product-list__header > p {
  background: #f2f2f2;
  font-weight: bold;
  text-align: right;
  margin: 0;
}
.sr-cart-product-list__header > p:first-child {
  border-top-left-radius: 5px;
  border-bottom-left-radius: 5px;
  text-align: left;
}
.sr-cart-product-list__header > p:last-child {
  border-top-right-radius: 5px;
  border-bottom-right-radius: 5px;
}

.sr-cart-product-list__row {
  display: contents;
  border-bottom: 1px solid #ccc;
}
.sr-cart-product-list__row > * {
  border-bottom: 1px solid #ccc;
}
.sr-cart-product-list__row > *:nth-child(2), .sr-cart-product-list__row > *:nth-child(3) {
  display: none;
}
.sr-cart-product-list__row > div {
  display: flex;
  gap: 15px;
}
.sr-cart-product-list__row > div img {
  padding: 5px;
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: 5px;
  border: 1px solid #ccc;
}
.sr-cart-product-list__row .form-control {
  width: 100px;
}
@media screen and (min-width: 768px) {
  .sr-cart-product-list__row .form-control {
    width: 120px;
  }
}
.sr-cart-product-list__row.cart-empty > div {
  grid-column-start: 1;
  grid-column-end: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 40px 15px;
}

.sr-cart-product-list__row > p {
  text-align: right;
  margin: 0;
  font-weight: bold;
}

@media screen and (min-width: 768px) {
  .sr-cart-product-list {
    display: grid;
    grid-template-columns: repeat(4, auto);
    margin-bottom: 30px;
  }
  .sr-cart-product-list.product-list-tariff-hidden {
    grid-template-columns: repeat(3, auto);
  }
  .sr-cart-product-list.product-list-tariff-hidden .cart-line-tariff-cell,
  .sr-cart-product-list.product-list-tariff-hidden #cartTariffColumnHeader {
    display: none;
  }
  .sr-cart-product-list.product-list-tariff-hidden .sr-cart-product-list__row.cart-empty > div {
    grid-column-end: 4;
  }
  .sr-cart-product-list__header,
  .sr-cart-product-list__row {
    display: contents;
  }
  .sr-cart-product-list__header > p {
    background: #f2f2f2;
    font-weight: bold;
    text-align: right;
    margin: 0;
  }
  .sr-cart-product-list__header > p:first-child {
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
    text-align: left;
  }
  .sr-cart-product-list__header > p:last-child {
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
  }
  .sr-cart-product-list__row > *:nth-child(2), .sr-cart-product-list__row > *:nth-child(3) {
    display: block;
  }
  .sr-cart-product-list__row > div img {
    width: 90px;
    height: 90px;
  }
}
.bg-gray {
  background: #F2F2F2;
}

.rounded {
  border-radius: 5px;
}

.p-4 {
  padding: 1.5rem;
}

.sr-description-list {
  border-top: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
  padding: 0;
  margin: 1rem 0;
}
.sr-description-list li {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
}
.sr-description-list li:first-child {
  padding-top: 16px;
}
.sr-description-list li.sr-description-list__total-row {
  margin-top: 4px;
  padding: 1rem 0;
  font-weight: bold;
  border-top: 1px solid #ccc;
}

.sr-products-card {
  border: 1px solid #ccc;
  border-radius: 5px;
}
.sr-products-card__header {
  padding: 15px 20px;
  background: #f2f2f2;
}
.sr-products-card__body {
  padding: 20px;
}
