.entry-content .select2 li, .entry-content .select2 ul {
    margin:0;
}

.entry-content .select2 input {
    height: auto;
}

.order-form__right {
    text-align: right;
    float:right;
}
.order-form__field {
    clear:both;
    max-width: 80ch;
}

.order-form__products [readonly],
.order-form__rebates [readonly]{
    border:0;
    box-shadow:none;
    background-color: inherit;
    
}

.order-form__products th, 
.order-form__products td {
    vertical-align: middle;
    
}

.order-form__row {
  display: flex;
  gap: 5px;
  width: 100%;
  align-items: center;
}

.order-form__row .order-form__field{
    width: 50%;
}

@media(min-width: 800px) {
    .order-form__field {
        display: flex;
        margin: 0.5rem 0;
    }
    .order-form__field label {
        width: 33.3%;
    }
}

.fancybox__content {
    min-width: 50%;
    min-height: 300px;
}

.order-form__canvas {
    width: calc(100% - 40px);
    height: 400px;
    touch-action: none;
    border: 1px dashed var(--wp--preset--color--accent-1);
    margin: 20px;
    border-radius: 10px;
}

#signature-image img {
    border: 1px dashed var(--wp--preset--color--accent-1);
    border-radius: 10px;
}

@media (max-width: 800px) {

  .order-form__responsive caption {
    font-size: 1.3em;
  }
  
  .order-form__responsive thead {
    border: none;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
  }
  
  .order-form__responsive tr {
    border-bottom: 3px solid #ddd;
    display: block;
    margin-bottom: .625em;
  }
  
  .order-form__responsive td {
    border-bottom: 1px solid #ddd;
    display: block;
    overflow: hidden;
    text-align: right;
  }
   .order-form__responsive .full {
       width: 100%;
   }
  
  .order-form__responsive td::before {
    /*
    * aria-label has no advantage, it won't be read inside a table
    content: attr(aria-label);
    */
    content: attr(data-label);
    float: left;
    font-weight: bold;
    text-transform: uppercase;
  }
  
  .order-form__responsive td:last-child {
    border-bottom: 0;
  }
  
  .order-form__responsive tfoot tr {
      display: flex;
  }
  
  .order-form__responsive tfoot th[colspan] {
      width:0;
      padding:0;
  }
  .order-form__responsive tfoot th:not([colspan]) {
      width: 50%;
  }
}

.order-form span.select2-container, .order-search span.select2-container {
    z-index: 9;
}

@media(min-width: 801px) {
    .order-form__products td:first-child {
        width: 15%;
    }
    
    .order-form__products td:last-child {
        width: 22%;
    }
    
    .order-form__rebates td:nth-child(3) {
        width: 40%;
    }
    
    .order-form__products th{
        text-align: center;
    }
    
    .order-form__products tfoot th {
        text-align: right;
    }
    
    .order-search {
        display: flex;
        gap: 5px;
        align-items: flex-end;
    }
    
    .order-search__field {
        flex-grow:1;
    }
}

.error {
    background-color: rgba(255,0,0,0.1);
    padding: 2em;
    border-radius: 10px;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.success {
    background-color: rgba(0,255,0,0.1);
    padding: 2em;
    border-radius: 10px;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.required {
    color: red;
}
.text-right {
    text-align: right;
}

.symbol {
    width: 1em;
}
.unit {
    width: 3em;
}

button.destructive {
    background-color: #D10000 !important;
    margin-left: 1em;
}

.fancybox__content > .f-button.is-close-btn {
    background-color: transparent !important;
}
div.fancybox__content {
   min-width: 90%; 
}
.spinner {
  /* change color here */
  color: var(--wp--preset--color--accent-1);
  height: 1.5rem;
}
.spinner,
.spinner div {
  box-sizing: border-box;
}
.spinner {
  display: inline-block;
  position: relative;

}
.spinner div {
  box-sizing: border-box;
  display: none;
  position: absolute;
  width: 2rem;
  height: 2rem;
  margin: 4px;
  border: 4px solid currentColor;
  border-radius: 50%;
  animation: spinner 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
  border-color: currentColor transparent transparent transparent;
}
.spinner div:nth-child(1) {
  animation-delay: -0.45s;
}
.spinner div:nth-child(2) {
  animation-delay: -0.3s;
}
.spinner div:nth-child(3) {
  animation-delay: -0.15s;
}
@keyframes spinner {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.order__client_row {
    display: flex;
    background-color: #FAFAFA;
    margin: 0;
    padding: 1em;
}
.order__client .order__client_row:nth-child(odd) {
    background-color: #F2F2F2;
}

.order__label {
    width: 40%;
}

.order h3 {
    margin-top: 2em;
}

.order-list td.completed {
    background-color:rgba(0,255,0,0.1);
}

.order-list td.draft {
    background-color:rgba(255,255,0,0.1);
}

.order-list td.processing {
    background-color:rgba(255, 0,0,0.1);
}


