.attachment-sheet[hidden] { display: none; }

.attachment-sheet {
  position: fixed;
  z-index: 10500;
  inset: 0;
  display: grid;
  align-items: end;
  padding: 12px;
}

.attachment-sheet__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(23, 37, 84, .55);
  backdrop-filter: blur(4px);
}

.attachment-sheet__panel {
  position: relative;
  width: min(100%, 430px);
  margin: 0 auto;
  padding: 18px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(23, 37, 84, .28);
}

.attachment-sheet__panel h2 {
  margin: 0;
  color: #172554;
  font-size: 19px;
}

.attachment-sheet__panel p {
  margin: 5px 0 14px;
  color: #667085;
  font-size: 13px;
}

.attachment-sheet__choices {
  display: grid;
  gap: 8px;
}

.attachment-sheet__choice {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  min-height: 58px;
  padding: 8px 10px;
  border: 1px solid #dfe7f2;
  border-radius: 14px;
  background: #f5f9ff;
  color: #172033;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  text-align: left;
}

.attachment-sheet__choice span:first-child {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  background: #eaf2ff;
  color: #2563eb;
  font-size: 21px;
}

.attachment-sheet__cancel {
  width: 100%;
  min-height: 46px;
  margin-top: 10px;
  border: 0;
  border-radius: 13px;
  background: #fff;
  color: #667085;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.attachment-uploading {
  opacity: .55;
  pointer-events: none;
}

@media (min-width: 700px) {
  .attachment-sheet {
    place-items: center;
  }
}

.product-picker[hidden] { display: none; }
.product-picker {
  position: fixed;
  z-index: 10400;
  inset: 0;
  display: grid;
  align-items: end;
  padding: 12px;
}
.product-picker__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(23, 37, 84, .55);
  backdrop-filter: blur(4px);
}
.product-picker__panel {
  position: relative;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  width: min(100%, 620px);
  height: min(82dvh, 760px);
  max-height: calc(100dvh - 24px);
  margin: 0 auto;
  overflow: hidden;
  border-radius: 22px;
  background: #fff;
}
.product-picker__panel header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid #dfe7f2;
  background: #fff;
  box-shadow: 0 6px 18px rgba(23, 37, 84, .06);
}
.product-picker__panel header span { color: #2563eb; font-size: 10px; font-weight: 900; }
.product-picker__panel h2 { margin: 3px 0 0; color: #172554; font-size: 19px; }
.product-picker__panel header button {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #f5f9ff;
  color: #172554;
  font-size: 22px;
}
.product-picker__filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  padding: 12px 16px 2px;
  background: #fff;
}
.product-picker__filters[hidden] { display: none; }
.product-picker__filter-placeholder {
  min-width: 0;
  min-height: 44px;
  visibility: hidden;
  pointer-events: none;
}
.product-picker__empty {
  margin: 24px;
  padding: 20px;
  border: 1px dashed var(--line);
  border-radius: 16px;
  color: var(--muted);
  text-align: center;
}
.product-picker__feedback {
  margin: 0 16px 8px;
  padding: 10px 12px;
  border-radius: 11px;
  background: #fff0ef;
  color: #b42318;
  font-size: 12px;
  font-weight: 750;
}
.product-picker__feedback[hidden] { display: none; }
.product-picker__filters button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  min-width: 0;
  min-height: 44px;
  padding: 8px 10px;
  overflow: hidden;
  border: 1px solid #dfe7f2;
  border-radius: 12px;
  background: #fff;
  color: #667085;
  font-weight: 850;
  text-align: left;
  cursor: pointer;
}
.product-picker__filters button > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.product-picker__filters button > b {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  border-radius: 999px;
  background: #eaf2ff;
  color: #2563eb;
  font-size: 10px;
}
.product-picker__filters button.selected {
  border-color: #2563eb;
  background: #2563eb;
  color: #fff;
}
.product-picker__filters button.selected > b {
  background: #fff;
  color: #2563eb;
}
.product-picker__filters button:focus-visible {
  outline: 3px solid rgba(37, 99, 235, .2);
  outline-offset: 2px;
}
.product-picker__list {
  display: grid;
  align-content: start;
  gap: 9px;
  min-height: 0;
  padding: 12px 10px 16px 16px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: #2563eb #eaf2ff;
  scrollbar-width: thin;
}
.product-picker__list::-webkit-scrollbar { width: 9px; }
.product-picker__list::-webkit-scrollbar-track {
  margin-block: 8px;
  border-radius: 999px;
  background: #eaf2ff;
}
.product-picker__list::-webkit-scrollbar-thumb {
  border: 2px solid #eaf2ff;
  border-radius: 999px;
  background: #2563eb;
}
.product-picker__list::-webkit-scrollbar-thumb:hover { background: #172554; }
.product-picker__item {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 9px;
  border: 1px solid #dfe7f2;
  border-radius: 15px;
  background: #f5f9ff;
}
.product-picker__item img {
  width: 76px;
  height: 76px;
  border-radius: 11px;
  object-fit: contain;
  background: #fff;
}
.product-picker__item div { min-width: 0; }
.product-picker__item strong,
.product-picker__item small,
.product-picker__item b { display: block; }
.product-picker__item small { margin-top: 3px; color: #667085; }
.product-picker__item b { margin-top: 5px; color: #2563eb; }
.product-picker__item button {
  min-height: 42px;
  padding: 8px 11px;
  border: 0;
  border-radius: 11px;
  background: #2563eb;
  color: #fff;
  font-weight: 900;
  line-height: 1.2;
}
@media (max-width: 430px) {
  .product-picker__filters {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
    padding-inline: 10px;
  }
  .product-picker__filters button {
    gap: 3px;
    padding-inline: 6px;
    font-size: 10px;
  }
  .product-picker__filters button > b {
    min-width: 19px;
    height: 19px;
    padding-inline: 4px;
  }
  .product-picker__item { grid-template-columns: 68px minmax(0, 1fr); }
  .product-picker__item img { width: 68px; height: 68px; }
  .product-picker__item button { grid-column: 1 / -1; width: 100%; }
}
@media (min-width: 700px) {
  .product-picker { place-items: center; }
}
