.esnaf-list-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: .75rem;
  margin: 1rem 0;
}
.esnaf-list-controls label {
  display: grid;
  flex: 1 1 8rem;
  gap: .25rem;
  max-width: 15rem;
  color: #31533e;
  font-weight: 600;
}
.esnaf-list-controls .form-select { min-height: 42px; }
.esnaf-view-switch { margin-inline-start: auto; }
.esnaf-subcategory-links {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: .75rem 0 1.25rem;
  padding: 0;
  list-style: none;
}
.esnaf-subcategory-links a {
  display: block;
  padding: .45rem .8rem;
  border: 1px solid #d2dfd3;
  border-radius: 999px;
  background: #f0f6ee;
  color: #145532;
  font-weight: 600;
}
#product-list:not(.product-list) { --bs-gutter-x: 12px; }
#product-list:not(.product-list) > .col { display: flex; min-width: 0; }
#product-list:not(.product-list) .product-thumb {
  display: flex;
  flex-direction: column;
  width: 100%;
  overflow: hidden;
  border: 1px solid #dce5db;
  border-radius: 14px;
  background: #fff;
}
#product-list:not(.product-list) .product-thumb .image img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}
#product-list:not(.product-list) .product-thumb .content {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}
#product-list:not(.product-list) .product-thumb .description { padding: .65rem; margin-bottom: .5rem; }
#product-list:not(.product-list) .product-thumb .description p { display: none; }
#product-list:not(.product-list) .product-thumb h4 {
  margin: 0 0 .4rem;
  overflow-wrap: anywhere;
  font-size: clamp(.9rem, 1.7vw, 1.1rem);
}
#product-list:not(.product-list) .product-thumb form { margin: auto 0 0; }
#product-list:not(.product-list) .product-thumb form .button { display: flex; }
#product-list:not(.product-list) .product-thumb form button { flex: 1; min-width: 0; min-height: 44px; padding-inline: .25rem; }
.esnaf-list-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .5rem 1rem;
  margin-bottom: 1rem;
}
.esnaf-list-pagination .pagination { flex-wrap: wrap; }
.esnaf-list-pagination p { margin: 0; color: #4c6354; }
.esnaf-state-card {
  max-width: 38rem;
  margin: clamp(1.25rem, 4vw, 3.5rem) auto;
  padding: clamp(1.25rem, 4vw, 2.5rem);
  border: 1px solid #dbe6dc;
  border-radius: 18px;
  background: #fff;
  color: #24382b;
}
.esnaf-state-card > i {
  display: inline-grid;
  width: 48px;
  height: 48px;
  place-items: center;
  margin-bottom: .8rem;
  border-radius: 50%;
  background: #eaf5eb;
  color: #176434;
}
.esnaf-state-card h1 { margin: 0 0 .75rem; font-size: clamp(1.45rem, 4vw, 2rem); }
.esnaf-search-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  align-items: end;
  gap: .85rem 1rem;
  margin-block: 1rem;
  padding: clamp(.9rem, 3vw, 1.4rem);
  border: 1px solid #dbe6dc;
  border-radius: 14px;
  background: #fff;
}
.esnaf-search-form input[type="search"], .esnaf-search-form .form-select { min-height: 44px; }
.esnaf-search-form > .form-check { margin-block: .25rem; }
.esnaf-search-form > button { justify-self: start; min-height: 44px; padding-inline: 1.3rem; }
@media (max-width: 575.98px) {
  .esnaf-list-controls label { max-width: none; }
  .esnaf-list-pagination { justify-content: flex-start; }
}


.esnaf-recovery-form {
  margin: 1rem 0 1.5rem;
  padding: 1rem;
  border: 1px solid #dbe6dc;
  border-radius: 14px;
  background: #fff;
}
#account-forgotten .esnaf-recovery { max-width: 38rem; margin-inline: auto; }

.esnaf-record-title { margin: .75rem 0 1rem; font-size: clamp(1.35rem, 4vw, 2rem); }
.esnaf-order-line-value small { display: none; }
@media (max-width: 767.98px) {
  .esnaf-order-lines, .esnaf-order-lines tbody { display: block; }
  .esnaf-order-lines thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .esnaf-order-lines .esnaf-order-line, .esnaf-order-lines .esnaf-order-line-total {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: .6rem;
    border: 1px solid #dce5db;
    border-radius: 12px;
    background: #fff;
  }
  .esnaf-order-lines .esnaf-order-line-total {
    grid-template-columns: minmax(0, 1fr) auto;
    margin-bottom: .25rem;
  }
  .esnaf-order-lines .esnaf-order-line > td, .esnaf-order-lines .esnaf-order-line-total > td {
    padding: .45rem .55rem;
    border: 0;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .esnaf-order-lines .esnaf-order-line-name, .esnaf-order-lines .esnaf-order-line-actions {
    grid-column: 1 / -1;
  }
  .esnaf-order-lines .esnaf-order-line-value small { display: block; color: #4b6554; }
  .esnaf-order-lines .esnaf-order-line-actions > .d-grid { grid-template-columns: 1fr 1fr; gap: .45rem; }
  .esnaf-order-lines .esnaf-order-line-actions .btn { margin: 0 !important; min-width: 0; }
  .esnaf-order-lines .esnaf-order-line-total td:first-of-type + td { text-align: left !important; }
  .esnaf-order-lines .esnaf-order-line-spacer { display: none; }
}
