/* Scoped to the product purchase card, including its server-rendered state. */
main > section > div:has(#customInput) {
  --purchase-line: #dbe4ef;
  --purchase-muted: #64748b;
  --purchase-surface: #f8fafc;
  padding: 22px !important;
  gap: 18px !important;
  border: 1px solid var(--purchase-line);
  border-radius: 18px !important;
  height: fit-content;
  min-width: 0;
}
.dark main > section > div:has(#customInput) {
  --purchase-line: #3a485b;
  --purchase-muted: #b3c0d2;
  --purchase-surface: #152131;
}
main > section > div:has(#customInput) > div.flex.items-center:first-child {
  flex-wrap: wrap;
  gap: 6px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--purchase-line);
  align-items: baseline;
}
main > section > div:has(#customInput) > div.flex.items-center:first-child::before {
  content: 'قیمت واحد';
  flex-basis: 100%;
  font-size: 12px;
  font-weight: 400;
  color: var(--purchase-muted);
  margin-bottom: 4px;
}
main > section > div:has(#customInput) > div.flex.items-center:first-child > p:first-child {
  font-size: clamp(26px, 2vw, 32px);
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
}
main > section > div:has(#customInput) > div.flex.items-center:first-child > p:nth-child(2) {
  font-size: 13px;
  color: var(--purchase-muted);
}
main > section > div:has(#customInput) [data-variant-selector-panel] {
  width: 100%;
  margin: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 14px;
}
main > section > div:has(#customInput) [data-variant-selector-panel] > label {
  min-width: 0;
  gap: 8px;
}
main > section > div:has(#customInput) .danilo-variant-trigger {
  min-height: 50px;
  border-radius: 12px;
  border-color: var(--purchase-line);
  font-size: 15px;
}
main > section > div:has(#customInput) .danilo-variant-menu {
  max-height: 240px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
main > section > div:has(#customInput) > button:has(#customInput) {
  min-height: 50px;
  border-radius: 12px;
  border-color: var(--purchase-line);
  background: var(--purchase-surface);
}
main > section > div:has(#customInput) #customInput {
  margin: 0;
  width: 60px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
main > section > div:has(#customInput) > button:has(> p) {
  padding: 14px 12px;
  border-radius: 12px;
  background: var(--purchase-surface);
  color: inherit;
  flex-wrap: wrap;
  gap: 8px;
}
main > section > div:has(#customInput) > button:has(> p) > p:first-child {
  color: var(--purchase-muted);
  font-size: 13px;
}
main > section > div:has(#customInput) > button:has(> p) > p:last-child {
  font-weight: 700;
  font-size: 16px;
}
main > section > div:has(#customInput) > button.bg-blue-500 {
  min-height: 52px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  gap: 8px;
}
main > section > div:has(#customInput) > div:last-child p {
  font-size: 12px;
  line-height: 1.9;
  color: var(--purchase-muted);
}
main > section > div:has(#customInput) button:focus-visible {
  outline: 2px solid #60a5fa;
  outline-offset: 3px;
}
@media (max-width: 640px) {
  main > section > div:has(#customInput) { padding: 18px !important; }
}
