.ozon-input { position: relative; }
.ozon-input input,
.ozon-input textarea,
.ozon-input select { width: 100%; }
.ozon-input input,
.ozon-input textarea { padding-right: 38px; }
.ozon-input--select select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 64px;
}
.ozon-input--select::after {
  content: "▾";
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted, #667085);
  font-size: 13px;
  pointer-events: none;
}
.ozon-input .ozon-copy {
  position: absolute;
  right: 5px;
  top: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid var(--border, #dfe4ec);
  border-radius: 6px;
  background: var(--surface, #fff);
  color: var(--text-muted, #667085);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
}
.ozon-input textarea + .ozon-copy { top: 6px; }
.ozon-input--select .ozon-copy { right: 29px; }
.ozon-input .ozon-copy svg { display: block; }
.ozon-input .ozon-copy:hover {
  border-color: var(--accent, #2f6df6);
  color: var(--accent, #2f6df6);
}
.ozon-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ozon-more { margin-top: 12px; }
.ozon-more summary { cursor: pointer; color: var(--muted, #667); }
.ozon-form textarea.mono { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12px; }
.ozon-card .field { min-width: 0; }

.code-block { max-height: 540px; overflow: auto; white-space: pre-wrap; word-break: break-word; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12px; background: #f7f7f9; padding: 12px; border-radius: 8px; }

/* Выбор фотографий номенклатуры для карточки маркетплейса. */
.ozon-photos { margin-top: 16px; }
.ozon-photos__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.ozon-photos__head h4 { margin: 0 0 2px; font-size: 14px; }
.ozon-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(108px, 1fr));
  gap: 10px;
}
.ozon-photo {
  position: relative;
  display: block;
  padding: 6px;
  border: 1px solid var(--border, #dfe4ec);
  border-radius: 8px;
  background: var(--surface, #fff);
  cursor: grab;
}
.ozon-photo.is-selected {
  border-color: var(--accent, #2f6df6);
  box-shadow: 0 0 0 2px var(--accent-soft, #e8effe);
}
.ozon-photo.is-dragging { opacity: .45; }
.ozon-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 5px;
}
.ozon-photo input[type="checkbox"] {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--accent, #2f6df6);
}
.ozon-photo__label {
  display: block;
  margin-top: 5px;
  overflow: hidden;
  color: var(--muted, #667085);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ozon-photo__grip {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 1px 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, .88);
  color: var(--muted, #667085);
  font-size: 16px;
  line-height: 1;
  cursor: grab;
}
