.counter-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr);
  gap: 24px;
  align-items: start;
}
.counter-products .list-toolbar {
  display: flex;
  gap: 10px;
}
.counter-products .list-toolbar input {
  width: 100%;
  min-width: 0;
  border: 1px solid #dce4ed;
  border-radius: 8px;
  padding: 10px;
  font: inherit;
  font-size: 12px;
}
.counter-product-grid {
  display: grid;
  gap: 12px;
  padding: 0 22px 22px;
}
.counter-product-grid article {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 18px;
  border: 1px solid #e2e9f1;
  border-radius: 11px;
}
.counter-product-grid h3 {
  font-size: 14px;
  margin: 10px 0;
}
.counter-product-grid p {
  font-size: 11px;
  color: #64758a;
  line-height: 1.8;
  margin: 3px 0;
}
.counter-product-grid strong {
  font-size: 14px;
  white-space: nowrap;
}
.counter-cart .panel-body {
  display: grid;
  gap: 18px;
}
.counter-cart label {
  display: grid;
  gap: 7px;
  font-size: 11px;
  color: #52667d;
}
.counter-cart input,
.counter-cart select {
  padding: 10px;
  border: 1px solid #dce4ed;
  border-radius: 8px;
  background: white;
  color: #0a1a2f;
  font: inherit;
  font-size: 12px;
  width: 100%;
  min-width: 0;
}
.cart-lines {
  display: grid;
  gap: 13px;
}
.cart-lines > div {
  display: flex;
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid #e3eaf1;
  padding-bottom: 12px;
}
.cart-lines > div > span {
  flex: 1;
}
.cart-lines strong {
  font-size: 12px;
}
.cart-lines small {
  display: block;
  font-size: 10px;
  color: #64758a;
  margin-top: 5px;
}
.cart-lines input {
  width: 65px;
}
.cart-lines p {
  font-size: 12px;
  color: #64758a;
}
.counter-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #e3eaf1;
  padding-top: 20px;
  font-size: 14px;
}
.counter-total strong {
  font-size: 25px;
}
.counter-cart form {
  display: grid;
  gap: 16px;
}
.rx-line {
  border: 1px solid #dce4ed;
  border-radius: 10px;
  padding: 18px;
  margin-top: 8px;
}
.rx-line legend {
  font-size: 12px;
  font-weight: 600;
  padding: 0 7px;
}
.rx-line .profile-fields {
  margin-top: 14px;
}
.counter-cart .form-error {
  margin: 0;
}
@media (max-width: 1100px) {
  .counter-layout {
    grid-template-columns: 1fr;
  }
  .counter-cart {
    max-width: none;
  }
}
@media (max-width: 600px) {
  .counter-product-grid article {
    flex-wrap: wrap;
  }
  .counter-product-grid {
    padding: 0 15px 15px;
  }
  .counter-product-grid article > div {
    width: 100%;
  }
  .cart-lines > div {
    flex-wrap: wrap;
  }
}
@media print {
  body:has(#entry-dialog[open]) .workspace,
  body:has(#entry-dialog[open]) .sidebar,
  body:has(#entry-dialog[open]) #toast {
    display: none !important;
  }
  dialog[open] {
    display: block;
    position: static;
    max-width: 100%;
    width: 100%;
    border: 0;
    box-shadow: none;
  }
  dialog::backdrop {
    background: white;
  }
  dialog .form-actions,
  dialog .dialog-header button {
    display: none !important;
  }
}
