#intermediate-step-modal.modal {
  z-index: 200030;
}

#intermediate-step-modal.modal.show {
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

#intermediate-step-modal .modal-dialog {
  width: 100%;
  max-width: 440px;
  margin: 0;
  height: auto;
  max-height: calc(100% - 32px);
  transform: none !important;
  pointer-events: none;
}

#intermediate-step-modal .modal-content {
  display: flex;
  flex-direction: column;
  max-height: 100%;
  border: 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0, 43, 92, 0.22);
  font-family: Montserrat, "Open Sans", sans-serif;
  color: #1c2b46;
  pointer-events: auto;
}

#intermediate-step-modal .modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 16px 14px 20px;
  border: 0;
  border-bottom: 1px solid #e3ebf3;
}

#intermediate-step-modal .modal-title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  color: #1c2b46;
}

#intermediate-step-modal .modal-header .close {
  position: static;
  float: none;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: #f4f8fc;
  color: #1c2b46;
  opacity: 1;
  font-size: 26px;
  line-height: 40px;
  text-shadow: none;
  cursor: pointer;
}

#intermediate-step-modal .modal-header .close:hover,
#intermediate-step-modal .modal-header .close:focus {
  background: #e7f0f8;
  color: #1c2b46;
  opacity: 1;
}

#intermediate-step-modal .modal-body {
  overflow: auto;
  padding: 16px 20px 8px;
  -webkit-overflow-scrolling: touch;
}

#intermediate-step-modal .table.basketTable,
#intermediate-step-modal .table.basketTable tbody,
#intermediate-step-modal .table.basketTable tfoot {
  display: block !important;
  width: 100% !important;
  margin: 0;
  border: 0 !important;
  background: transparent;
}

#intermediate-step-modal .table.basketTable thead {
  display: none !important;
}

#intermediate-step-modal .table.basketTable tr {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

#intermediate-step-modal .table.basketTable td {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100% !important;
  margin: 0;
  padding: 11px 0 !important;
  border: 0 !important;
  border-bottom: 1px solid #e6eef6 !important;
  background: transparent !important;
  text-align: left !important;
  font-size: 15px;
  line-height: 1.4;
  color: #1c2b46;
  vertical-align: middle;
}

#intermediate-step-modal .table.basketTable td::before {
  content: none !important;
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background: none !important;
  text-transform: none !important;
}

#intermediate-step-modal .table.basketTable td[data-label]:not(#name)::before {
  content: attr(data-label) !important;
  display: block !important;
  width: auto !important;
  margin: 0 !important;
  background: none !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
  text-transform: none !important;
  color: #64758a !important;
}

#intermediate-step-modal .table.basketTable td.img {
  display: block !important;
  width: auto !important;
  padding: 0 0 12px !important;
  border: 0 !important;
  text-align: center !important;
}

#intermediate-step-modal .table.basketTable td.img img {
  display: inline-block;
  width: 96px;
  height: 96px;
  object-fit: contain;
  padding: 8px;
  background: #f4f8fc;
  border-radius: 10px;
}

#intermediate-step-modal .table.basketTable #name {
  display: block !important;
  padding: 0 0 12px !important;
  border: 0 !important;
  text-align: center !important;
  font-weight: 700;
}

#intermediate-step-modal .table.basketTable #name strong {
  display: block;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  color: #1c2b46;
}

#intermediate-step-modal .table.basketTable #name span {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  font-weight: 500;
  color: #64758a;
}

#intermediate-step-modal .table.basketTable #name span:empty {
  display: none;
}

#intermediate-step-modal .table.basketTable #price-one,
#intermediate-step-modal .table.basketTable td.price {
  font-weight: 700;
  color: #005bb7;
  white-space: nowrap;
}

#intermediate-step-modal .table.basketTable tfoot td {
  display: block !important;
  padding: 12px 0 0 !important;
  border: 0 !important;
}

#intermediate-step-modal .table.basketTable tfoot td:first-child,
#intermediate-step-modal .table.basketTable tfoot td:empty {
  display: none !important;
}

#intermediate-step-modal .basket-footer,
#intermediate-step-modal .totalpriceinter,
#intermediate-step-modal #price-total {
  float: none !important;
  width: 100%;
  margin: 0;
  text-align: left;
}

#intermediate-step-modal #price-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 15px;
  font-weight: 500;
  color: #64758a;
}

#intermediate-step-modal #price-total span {
  float: none !important;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  color: #005bb7;
  white-space: nowrap;
}

#intermediate-step-modal .modal-footer {
  display: flex !important;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 8px 20px 20px;
  border: 0;
  background: #fff;
}

#intermediate-step-modal .modal-footer .buttonB,
#intermediate-step-modal .modal-footer .btn.btn-primary {
  float: none !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 48px;
  margin: 0 !important;
  padding: 0 16px;
  border-radius: 8px;
  font-family: Montserrat, "Open Sans", sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
  text-align: center;
  text-decoration: none;
  text-transform: none !important;
  box-shadow: none !important;
}

#intermediate-step-modal .modal-footer .btn.btn-primary {
  order: 1;
  background: #3d9e2a !important;
  border: 0 !important;
  color: #fff !important;
}

#intermediate-step-modal .modal-footer .btn.btn-primary:hover,
#intermediate-step-modal .modal-footer .btn.btn-primary:focus {
  background: #317e21 !important;
  border: 0 !important;
  color: #fff !important;
}

#intermediate-step-modal .modal-footer .buttonB {
  order: 2;
  background: #fff !important;
  border: 1px solid #d5deea !important;
  color: #1c2b46 !important;
}

#intermediate-step-modal .modal-footer .buttonB:hover,
#intermediate-step-modal .modal-footer .buttonB:focus {
  border-color: #005bb7 !important;
  color: #005bb7 !important;
  background: #fff !important;
}

@media (max-width: 700px) {
  #intermediate-step-modal.modal.show {
    padding: 12px;
  }

  #intermediate-step-modal .modal-dialog {
    max-width: none;
    max-height: calc(100% - 24px);
  }
}
